Skip to main content

Interface: GovQueryExtensionMethods

@shareledgerjs/client.gov.GovQueryExtensionMethods

Methods

deposit

deposit(proposalId, depositor, height?): Promise<undefined | Deposit>

Parameters

NameType
proposalIdGovProposalId
depositorstring
height?number

Returns

Promise<undefined | Deposit>


deposits

deposits(proposalId, paginationKey?, height?): Promise<QueryDepositsResponse>

Parameters

NameType
proposalIdGovProposalId
paginationKey?Uint8Array
height?number

Returns

Promise<QueryDepositsResponse>


proposal

proposal(proposalId, height?): Promise<undefined | Proposal>

Parameters

NameType
proposalIdGovProposalId
height?number

Returns

Promise<undefined | Proposal>


proposals

proposals(proposalStatus, voter, depositor, paginationKey?, height?): Promise<QueryProposalsResponse>

Parameters

NameType
proposalStatusProposalStatus
voterstring
depositorstring
paginationKey?Uint8Array
height?number

Returns

Promise<QueryProposalsResponse>


tallyResult

tallyResult(proposalId, height?): Promise<undefined | TallyResult>

Parameters

NameType
proposalIdGovProposalId
height?number

Returns

Promise<undefined | TallyResult>


vote

vote(proposalId, voter, height?): Promise<undefined | Vote>

Parameters

NameType
proposalIdGovProposalId
voterstring
height?number

Returns

Promise<undefined | Vote>


votes

votes(proposalId, paginationKey?, height?): Promise<QueryVotesResponse>

Parameters

NameType
proposalIdGovProposalId
paginationKey?Uint8Array
height?number

Returns

Promise<QueryVotesResponse>