Interface: GovQueryExtensionMethods
@shareledgerjs/client.gov.GovQueryExtensionMethods
Methods
deposit
▸ deposit(proposalId
, depositor
, height?
): Promise
<undefined
| Deposit
>
Parameters
Name | Type |
---|---|
proposalId | GovProposalId |
depositor | string |
height? | number |
Returns
Promise
<undefined
| Deposit
>
deposits
▸ deposits(proposalId
, paginationKey?
, height?
): Promise
<QueryDepositsResponse
>
Parameters
Name | Type |
---|---|
proposalId | GovProposalId |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryDepositsResponse
>
proposal
▸ proposal(proposalId
, height?
): Promise
<undefined
| Proposal
>
Parameters
Name | Type |
---|---|
proposalId | GovProposalId |
height? | number |
Returns
Promise
<undefined
| Proposal
>
proposals
▸ proposals(proposalStatus
, voter
, depositor
, paginationKey?
, height?
): Promise
<QueryProposalsResponse
>
Parameters
Name | Type |
---|---|
proposalStatus | ProposalStatus |
voter | string |
depositor | string |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryProposalsResponse
>
tallyResult
▸ tallyResult(proposalId
, height?
): Promise
<undefined
| TallyResult
>
Parameters
Name | Type |
---|---|
proposalId | GovProposalId |
height? | number |
Returns
Promise
<undefined
| TallyResult
>
vote
▸ vote(proposalId
, voter
, height?
): Promise
<undefined
| Vote
>
Parameters
Name | Type |
---|---|
proposalId | GovProposalId |
voter | string |
height? | number |
Returns
Promise
<undefined
| Vote
>
votes
▸ votes(proposalId
, paginationKey?
, height?
): Promise
<QueryVotesResponse
>
Parameters
Name | Type |
---|---|
proposalId | GovProposalId |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryVotesResponse
>