Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update metrics interface #415

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"build:testnet": "NETWORK_NAME=testnet bash build.sh",
"build:mainnet": "NETWORK_NAME=mainnet bash build.sh",
"build:qa": "NETWORK_NAME=legacy bash build.sh",
"build:portal": "tsc && vite build",
"build:packages": "bun run build:core",
"build:core": "cd packages/core && bun install && bun run build",
Expand Down Expand Up @@ -60,4 +61,4 @@
"vite": "^4.4.9",
"vite-plugin-vercel": "^0.2.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/core/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export interface IAddressCounters {
token_transfers_count: string
transactions_count: string
validations_count: string
transactions_last_day: number
transactions_today: number
transactions_last_7_days: number
transactions_last_30_days: number
}
Expand Down
2 changes: 1 addition & 1 deletion skale-network
Submodule skale-network updated 38 files
+8 −5 metadata/legacy/chains.json
+ metadata/legacy/screenshots/adorable-quaint-bellatrix-lumberworld-1.jpg
+ metadata/legacy/screenshots/adorable-quaint-bellatrix-lumberworld-2.jpg
+ metadata/legacy/screenshots/adorable-quaint-bellatrix-otter-heaven-1.jpg
+46 −150 metadata/mainnet/chains.json
+0 −14 metadata/mainnet/logos/__offchain-labrys.svg
+0 −79 metadata/mainnet/logos/__offchain-portis.svg
+0 −19 metadata/mainnet/logos/__offchain-the-graph.svg
+ metadata/mainnet/logos/elated-tan-skat-coinchance.png
+ metadata/mainnet/logos/elated-tan-skat-hello-pixel.png
+0 −41 metadata/mainnet/logos/green-giddy-denebola-mystrios.svg
+ metadata/mainnet/logos/green-giddy-denebola-vital-veda.png
+ metadata/mainnet/logos/green-giddy-denobola-world3.png
+ metadata/mainnet/logos/parallel-stormy-spica-chirperai.png
+ metadata/mainnet/logos/parallel-stormy-spica-music-moon.png
+ metadata/mainnet/screenshots/__offchain-labrys-1.jpg
+ metadata/mainnet/screenshots/__offchain-labrys-2.jpg
+ metadata/mainnet/screenshots/__offchain-portis-1.jpg
+ metadata/mainnet/screenshots/__offchain-portis-2.png
+ metadata/mainnet/screenshots/__offchain-the-graph-1.jpg
+ metadata/mainnet/screenshots/__offchain-the-graph-2.jpg
+ metadata/mainnet/screenshots/elated-tan-skat-coinchance-1.png
+ metadata/mainnet/screenshots/elated-tan-skat-coinchance-2.png
+ metadata/mainnet/screenshots/elated-tan-skat-hello-pixel-1.jpg
+ metadata/mainnet/screenshots/elated-tan-skat-hello-pixel-2.jpg
+ metadata/mainnet/screenshots/green-giddy-denebola-mystrios-1.jpg
+ metadata/mainnet/screenshots/green-giddy-denebola-mystrios-2.png
+ metadata/mainnet/screenshots/green-giddy-denebola-vital-veda-1.png
+ metadata/mainnet/screenshots/green-giddy-denebola-vital-veda-2.png
+ metadata/mainnet/screenshots/green-giddy-denebola-world3-1.jpg
+ metadata/mainnet/screenshots/green-giddy-denebola-world3-2.png
+ metadata/mainnet/screenshots/green-giddy-denebola-world3-3.jpg
+ metadata/mainnet/screenshots/parallel-stormy-spica-chirperai-1.png
+ metadata/mainnet/screenshots/parallel-stormy-spica-chirperai-2.png
+ metadata/mainnet/screenshots/parallel-stormy-spica-music-moon-1.jpg
+ metadata/mainnet/screenshots/parallel-stormy-spica-music-moon-2.jpg
+17,574 −0 releases/mainnet/skale-manager/1.12.0/skale-manager-1.12.0-mainnet-abi.json
+27 −0 releases/mainnet/skale-manager/1.12.0/skale-manager-1.12.0-mainnet-contracts.json
4 changes: 2 additions & 2 deletions src/core/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function getTotalAppCounters(
token_transfers_count: '0',
transactions_count: '0',
validations_count: '0',
transactions_last_day: 0,
transactions_today: 0,
transactions_last_7_days: 0,
transactions_last_30_days: 0
}
Expand All @@ -63,7 +63,7 @@ export function getTotalAppCounters(
totalCounters.validations_count = (
parseInt(totalCounters.validations_count) + parseInt(addressCounters.validations_count)
).toString()
totalCounters.transactions_last_day += addressCounters.transactions_last_day
totalCounters.transactions_today += addressCounters.transactions_today
totalCounters.transactions_last_7_days += addressCounters.transactions_last_7_days
totalCounters.transactions_last_30_days += addressCounters.transactions_last_30_days
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export default function App(props: {
grow
text="Daily transactions"
value={
counters ? formatNumber(Number(counters.transactions_last_day)) : undefined
counters ? formatNumber(Number(counters.transactions_today)) : undefined
}
icon={<HourglassTopRoundedIcon />}
/>
Expand Down
Loading