Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LegacyGovAPI

Hierarchy

  • BaseAPI
    • LegacyGovAPI

Index

Constructors

Properties

Methods

  • depositParameters(chainID: string, params?: APIParams): Promise<DepositParams>
  • deposits(proposalId: number, chainID: string, _params?: Partial<PaginationOptions & APIParams>): Promise<[Deposit[], Pagination]>
  • Get the deposits for a proposal

    Parameters

    • proposalId: number

      proposal's ID

    • chainID: string

      chain id

    • _params: Partial<PaginationOptions & APIParams> = {}

    Returns Promise<[Deposit[], Pagination]>

  • getReqFromAddress(address: string): APIRequester
  • getReqFromChainID(chainID: string): APIRequester
  • initialDeposit(proposalId: number, chainID: string): Promise<Coins>
  • parameters(chainID: string, params?: APIParams): Promise<GovParams>
  • proposal(proposalId: number, chainID: string, params?: APIParams): Promise<Proposal>
  • proposals(chainID: string, params?: Partial<PaginationOptions & APIParams>): Promise<[Proposal[], Pagination]>
  • proposer(proposalId: number, chainID: string): Promise<string>
  • searchProposalCreationTx(proposalId: number, chainID: string): Promise<Tx.Data>
  • tally(proposalId: number, chainID: string, params?: APIParams): Promise<Tally>
  • Gets the current tally for a proposal.

    Parameters

    • proposalId: number

      proposal's ID

    • chainID: string

      chain id

    • params: APIParams = {}

    Returns Promise<Tally>

  • tallyParameters(chainID: string, params?: APIParams): Promise<TallyParams>
  • votes(proposalId: number, chainID: string, _params?: Partial<PaginationOptions & APIParams>): Promise<[Vote[], Pagination]>
  • Get the current votes for a proposal

    Parameters

    • proposalId: number

      proposal's ID

    • chainID: string

      chain id

    • _params: Partial<PaginationOptions & APIParams> = {}

    Returns Promise<[Vote[], Pagination]>

  • votingParameters(chainID: string, params?: APIParams): Promise<VotingParams>