Skip to content

Commit

Permalink
chore: package bump for abacus
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Dec 7, 2024
1 parent 60a9524 commit b1d9266
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/sdk-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk-ts/src/client/abacus/grpc/AbacusGrpcApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class AbacusGrpcApi extends BaseGrpcConsumer {

try {
const response =
await this.retry<InjectiveAbacusRpc.PointsStatsDailyForAccountResponse>(
await this.retry<InjectiveAbacusRpc.HistoricalPointsStatsRowCollection>(
() => this.client.PointsStatsDailyForAccount(request),
)

Expand Down Expand Up @@ -97,7 +97,7 @@ export class AbacusGrpcApi extends BaseGrpcConsumer {

try {
const response =
await this.retry<InjectiveAbacusRpc.PointsStatsWeeklyForAccountResponse>(
await this.retry<InjectiveAbacusRpc.HistoricalPointsStatsRowCollection>(
() => this.client.PointsStatsWeeklyForAccount(request),
)

Expand Down
8 changes: 4 additions & 4 deletions packages/sdk-ts/src/client/abacus/grpc/transformers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected].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/[email protected].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"
Expand Down

0 comments on commit b1d9266

Please sign in to comment.