From c403cab9651f14b66a6e6155479c9e1a8d05d9e7 Mon Sep 17 00:00:00 2001 From: shane-moore Date: Wed, 11 Sep 2024 16:15:55 -0400 Subject: [PATCH] chore: add 30 days field to stats api --- packages/sdk-ts/package.json | 2 +- .../transformers/IndexerGrpcExplorerTransformer.ts | 1 + packages/sdk-ts/src/client/indexer/types/explorer.ts | 1 + yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 4c50d710e..c0bcb5a75 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.52", + "@injectivelabs/indexer-proto-ts": "1.11.53", "@injectivelabs/mito-proto-ts": "1.0.65", "@injectivelabs/networks": "^1.14.14", "@injectivelabs/test-utils": "^1.14.14", diff --git a/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcExplorerTransformer.ts b/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcExplorerTransformer.ts index f514e6dcd..4b20f399b 100644 --- a/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcExplorerTransformer.ts +++ b/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcExplorerTransformer.ts @@ -406,6 +406,7 @@ export class IndexerGrpcExplorerTransformer { addresses: response.addresses, injSupply: response.injSupply, txsInPast24Hours: response.txs24H, + txsInPast30Days: response.txs30D, blockCountInPast24Hours: response.blockCount24H, txsPerSecondInPast24Hours: response.txsPs24H, txsPerSecondInPast100Blocks: response.txsPs100B, diff --git a/packages/sdk-ts/src/client/indexer/types/explorer.ts b/packages/sdk-ts/src/client/indexer/types/explorer.ts index 629232846..1c13f604d 100644 --- a/packages/sdk-ts/src/client/indexer/types/explorer.ts +++ b/packages/sdk-ts/src/client/indexer/types/explorer.ts @@ -384,6 +384,7 @@ export interface ExplorerStats { txsTotal: string addresses: string injSupply: string + txsInPast30Days: string txsInPast24Hours: string blockCountInPast24Hours: string txsPerSecondInPast24Hours: string diff --git a/yarn.lock b/yarn.lock index 94eb95dd6..ddaa4b4fb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2211,10 +2211,10 @@ dependencies: browser-headers "^0.4.1" -"@injectivelabs/indexer-proto-ts@1.11.52": - version "1.11.52" - resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.11.52.tgz#ed66d6d24269cfa6cc0f327adbbc5ab90cfce1af" - integrity sha512-COUUDtC7BrPuHLT9WZOfrhuBTWlkwG+hFwxOOSt4WNds7tyvpvoOQSB5DlLf+0XQYWu15H1ePjAZ2axWiObeTg== +"@injectivelabs/indexer-proto-ts@1.11.53": + version "1.11.53" + resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.11.53.tgz#9dba45c5af0c719505090b47cc4cdcd17da0cb8c" + integrity sha512-hc67sPi5Pr0iZO2SLgsk43f+n7f1ZGkx82ux4kXtE61lTuHPRWfweel1zHQfo+bmnD8wO3MKD2TZWTeoWbsyhQ== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0"