From a4964147d344d461a5606cef65be0df61749ef85 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 27 Sep 2021 16:39:45 +0200 Subject: [PATCH] Add paginationKey arguments to types in gov query --- CHANGELOG.md | 5 +++++ packages/stargate/src/queries/gov.ts | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57dde6b4..691e522e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/stargate/src/queries/gov.ts b/packages/stargate/src/queries/gov.ts index 7e9c9d52..e8c81aae 100644 --- a/packages/stargate/src/queries/gov.ts +++ b/packages/stargate/src/queries/gov.ts @@ -27,12 +27,16 @@ export interface GovExtension { proposalStatus: ProposalStatus, depositor: string, voter: string, + paginationKey?: Uint8Array, ) => Promise; readonly proposal: (proposalId: GovProposalId) => Promise; - readonly deposits: (proposalId: GovProposalId) => Promise; + readonly deposits: ( + proposalId: GovProposalId, + paginationKey?: Uint8Array, + ) => Promise; readonly deposit: (proposalId: GovProposalId, depositorAddress: string) => Promise; readonly tally: (proposalId: GovProposalId) => Promise; - readonly votes: (proposalId: GovProposalId) => Promise; + readonly votes: (proposalId: GovProposalId, paginationKey?: Uint8Array) => Promise; readonly vote: (proposalId: GovProposalId, voterAddress: string) => Promise; }; }