Skip to content

Commit

Permalink
chore: add 30 days field to stats api
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-moore committed Sep 11, 2024
1 parent 9fdd911 commit c403cab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/sdk-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions packages/sdk-ts/src/client/indexer/types/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ export interface ExplorerStats {
txsTotal: string
addresses: string
injSupply: string
txsInPast30Days: string
txsInPast24Hours: string
blockCountInPast24Hours: string
txsPerSecondInPast24Hours: string
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c403cab

Please sign in to comment.