Add paginationKey arguments to types in gov query

This commit is contained in:
Simon Warta 2021-09-27 16:39:45 +02:00
parent b2279928c6
commit a4964147d3
2 changed files with 11 additions and 2 deletions

View File

@ -6,6 +6,11 @@ and this project adheres to
## [Unreleased]
### Fixed
- @cosmjs/stargate: Add missing pagination key arguments to query types in
`GovExtension`.
## [0.26.0] - 2021-08-24
### Added

View File

@ -27,12 +27,16 @@ export interface GovExtension {
proposalStatus: ProposalStatus,
depositor: string,
voter: string,
paginationKey?: Uint8Array,
) => Promise<QueryProposalsResponse>;
readonly proposal: (proposalId: GovProposalId) => Promise<QueryProposalResponse>;
readonly deposits: (proposalId: GovProposalId) => Promise<QueryDepositsResponse>;
readonly deposits: (
proposalId: GovProposalId,
paginationKey?: Uint8Array,
) => Promise<QueryDepositsResponse>;
readonly deposit: (proposalId: GovProposalId, depositorAddress: string) => Promise<QueryDepositResponse>;
readonly tally: (proposalId: GovProposalId) => Promise<QueryTallyResultResponse>;
readonly votes: (proposalId: GovProposalId) => Promise<QueryVotesResponse>;
readonly votes: (proposalId: GovProposalId, paginationKey?: Uint8Array) => Promise<QueryVotesResponse>;
readonly vote: (proposalId: GovProposalId, voterAddress: string) => Promise<QueryVoteResponse>;
};
}