Readonly
gov
gov: {
deposit: ((proposalId, depositorAddress) => Promise<QueryDepositResponse>);
deposits: ((proposalId, paginationKey?) => Promise<QueryDepositsResponse>);
params: ((parametersType) => Promise<QueryParamsResponse>);
proposal: ((proposalId) => Promise<QueryProposalResponse>);
proposals: ((proposalStatus, depositor, voter, paginationKey?) => Promise<QueryProposalsResponse>);
tally: ((proposalId) => Promise<QueryTallyResultResponse>);
vote: ((proposalId, voterAddress) => Promise<QueryVoteResponse>);
votes: ((proposalId, paginationKey?) => Promise<QueryVotesResponse>);
}
Type declaration
Readonly
deposit: ((proposalId, depositorAddress) => Promise<QueryDepositResponse>)
- (proposalId, depositorAddress): Promise<QueryDepositResponse>
Returns Promise<QueryDepositResponse>
Readonly
deposits: ((proposalId, paginationKey?) => Promise<QueryDepositsResponse>)
- (proposalId, paginationKey?): Promise<QueryDepositsResponse>
Parameters
Optional
paginationKey: Uint8Array
Returns Promise<QueryDepositsResponse>
Readonly
params: ((parametersType) => Promise<QueryParamsResponse>)
- (parametersType): Promise<QueryParamsResponse>
Returns Promise<QueryParamsResponse>
Readonly
proposal: ((proposalId) => Promise<QueryProposalResponse>)
- (proposalId): Promise<QueryProposalResponse>
Returns Promise<QueryProposalResponse>
Readonly
proposals: ((proposalStatus, depositor, voter, paginationKey?) => Promise<QueryProposalsResponse>)
- (proposalStatus, depositor, voter, paginationKey?): Promise<QueryProposalsResponse>
Parameters
proposalStatus: ProposalStatus
depositor: string
voter: string
Optional
paginationKey: Uint8Array
Returns Promise<QueryProposalsResponse>
Readonly
tally: ((proposalId) => Promise<QueryTallyResultResponse>)
- (proposalId): Promise<QueryTallyResultResponse>
Returns Promise<QueryTallyResultResponse>
Readonly
vote: ((proposalId, voterAddress) => Promise<QueryVoteResponse>)
- (proposalId, voterAddress): Promise<QueryVoteResponse>
Returns Promise<QueryVoteResponse>
Readonly
votes: ((proposalId, paginationKey?) => Promise<QueryVotesResponse>)
- (proposalId, paginationKey?): Promise<QueryVotesResponse>
Parameters
Optional
paginationKey: Uint8Array
Returns Promise<QueryVotesResponse>