From b1d92660d431af3201fce06b1541da314c98db75 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Sat, 7 Dec 2024 11:14:06 +0100 Subject: [PATCH] chore: package bump for abacus --- packages/sdk-ts/package.json | 2 +- packages/sdk-ts/src/client/abacus/grpc/AbacusGrpcApi.ts | 4 ++-- .../sdk-ts/src/client/abacus/grpc/transformers/index.ts | 8 ++++---- yarn.lock | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 3e7492482..fb3c8d3c6 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -121,7 +121,7 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmjs/stargate": "^0.32.3", "@ethersproject/bytes": "^5.7.0", - "@injectivelabs/abacus-proto-ts": "1.13.0", + "@injectivelabs/abacus-proto-ts": "1.13.1", "@injectivelabs/core-proto-ts": "1.13.4", "@injectivelabs/exceptions": "^1.14.34-beta.0", "@injectivelabs/grpc-web": "^0.0.1", diff --git a/packages/sdk-ts/src/client/abacus/grpc/AbacusGrpcApi.ts b/packages/sdk-ts/src/client/abacus/grpc/AbacusGrpcApi.ts index db77a140e..78cafbf21 100644 --- a/packages/sdk-ts/src/client/abacus/grpc/AbacusGrpcApi.ts +++ b/packages/sdk-ts/src/client/abacus/grpc/AbacusGrpcApi.ts @@ -61,7 +61,7 @@ export class AbacusGrpcApi extends BaseGrpcConsumer { try { const response = - await this.retry( + await this.retry( () => this.client.PointsStatsDailyForAccount(request), ) @@ -97,7 +97,7 @@ export class AbacusGrpcApi extends BaseGrpcConsumer { try { const response = - await this.retry( + await this.retry( () => this.client.PointsStatsWeeklyForAccount(request), ) diff --git a/packages/sdk-ts/src/client/abacus/grpc/transformers/index.ts b/packages/sdk-ts/src/client/abacus/grpc/transformers/index.ts index 6ed1fda90..d5422ba73 100644 --- a/packages/sdk-ts/src/client/abacus/grpc/transformers/index.ts +++ b/packages/sdk-ts/src/client/abacus/grpc/transformers/index.ts @@ -2,15 +2,15 @@ import { InjectiveAbacusRpc } from '@injectivelabs/abacus-proto-ts' export class AbacusGrpcTransformer { static grpcPointsStatsDailyToPointsStatsDaily( - response: InjectiveAbacusRpc.PointsStatsDailyForAccountResponse, + response: InjectiveAbacusRpc.HistoricalPointsStatsRowCollection, ) { - return response.field + return response.rows } static grpcPointsStatsWeeklyToPointsStatsWeekly( - response: InjectiveAbacusRpc.PointsStatsWeeklyForAccountResponse, + response: InjectiveAbacusRpc.HistoricalPointsStatsRowCollection, ) { - return response.field + return response.rows } static grpcPointsLatestToPointsLatest( diff --git a/yarn.lock b/yarn.lock index 42943d8e8..5c4da8581 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2183,10 +2183,10 @@ resolved "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== -"@injectivelabs/abacus-proto-ts@1.13.0": - version "1.13.0" - resolved "https://registry.npmjs.org/@injectivelabs/abacus-proto-ts/-/abacus-proto-ts-1.13.0.tgz#cf5b0e683d9c51e01377f3137a2b8af65e798a13" - integrity sha512-yfMbTux7ljzDcmkKAZTHh3PuwjtlNfQ5PxFhEPO51gfQdRab0t3CqZ31rN+Q7LEaRMxZH/OxW2+ULLAUF07fsQ== +"@injectivelabs/abacus-proto-ts@1.13.1": + version "1.13.1" + resolved "https://registry.npmjs.org/@injectivelabs/abacus-proto-ts/-/abacus-proto-ts-1.13.1.tgz#4c94dea04fadd6a419b9f03020f8679cb56c1b86" + integrity sha512-cD1At+d9vmp3ktmz+dqz85bVSZ47Nw77pwf8buuTAmnHZzCjbPwDdZGSeenj0CJ6lIMw6v/UxWfVm/5sxJpjxQ== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0"