Merge pull request #881 from cosmos/add-gov-pagination

Add paginationKey arguments to types in gov query
This commit is contained in:
Simon Warta 2021-09-29 13:20:54 +02:00 committed by GitHub
commit 63c2199c9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>;
};
}