diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 84ef6d9cf..6bb6f801e 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -44,7 +44,7 @@ "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", - "@injectivelabs/indexer-proto-ts": "1.11.17", + "@injectivelabs/indexer-proto-ts": "1.11.19", "@injectivelabs/mito-proto-ts": "1.0.50", "@injectivelabs/networks": "^1.14.3-beta.0", "@injectivelabs/test-utils": "^1.14.1", diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcCampaignApi.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcCampaignApi.ts index 1036ea430..d4bd745b5 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcCampaignApi.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcCampaignApi.ts @@ -86,7 +86,7 @@ export class IndexerGrpcCampaignApi extends BaseGrpcConsumer { sortBy, campaignContract, }: { - skip?: string + skip?: number limit?: number sortBy: string campaignContract: string @@ -173,7 +173,7 @@ export class IndexerGrpcCampaignApi extends BaseGrpcConsumer { campaignContract, includeGuildInfo, }: { - skip?: string + skip?: number limit?: number guildId: string campaignContract: string diff --git a/packages/sdk-ts/src/client/indexer/transformers/IndexerCampaignTransformer.ts b/packages/sdk-ts/src/client/indexer/transformers/IndexerCampaignTransformer.ts index 61688a41e..712b521a4 100644 --- a/packages/sdk-ts/src/client/indexer/transformers/IndexerCampaignTransformer.ts +++ b/packages/sdk-ts/src/client/indexer/transformers/IndexerCampaignTransformer.ts @@ -105,7 +105,7 @@ export class IndexerCampaignTransformer { ) { return { guilds: response.guilds.map(IndexerCampaignTransformer.GrpcGuildToGuild), - paging: grpcPagingToPaging(response.pagination), + paging: grpcPagingToPaging(response.paging), updatedAt: parseInt(response.updatedAt, 10), summary: response.campaignSummary ? IndexerCampaignTransformer.GrpcGuildCampaignSummaryToGuildCampaignSummary( @@ -132,7 +132,7 @@ export class IndexerCampaignTransformer { members: response.members.map( IndexerCampaignTransformer.GrpcGuildMemberToGuildMember, ), - paging: grpcPagingToPaging(response.pagination), + paging: grpcPagingToPaging(response.paging), guildInfo: response.guildInfo ? IndexerCampaignTransformer.GrpcGuildToGuild(response.guildInfo) : undefined, diff --git a/yarn.lock b/yarn.lock index c8f34e567..c6660efd7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2159,10 +2159,10 @@ dependencies: browser-headers "^0.4.1" -"@injectivelabs/indexer-proto-ts@1.11.17": - version "1.11.17" - resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.11.17.tgz#27ca8d7a509b384878ebec033a731e78ae61f9f1" - integrity sha512-n9DjMgK5jxrUwO5m7bcXMoOkno4P00WJmQi8gXlmdrSBWbvbxuA7CCpondOrWLKGocOveStieTBxNdkqNPk0CA== +"@injectivelabs/indexer-proto-ts@1.11.19": + version "1.11.19" + resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.11.19.tgz#d5e73d11dbb53ab4f6d9df34b63d3c9c6fe1375b" + integrity sha512-/CWPtZy0d+5pQIZaZe096Scj45L1CXjo55zV5epFt2NK9x13+4x3j9bXX2wdPEGqytjefYB7lnCKlFL9D68IXQ== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0"