Skip to content
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
21 changes: 21 additions & 0 deletions src/app/bundles/[uuid]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,27 @@ function SimulationCard({ meter }: { meter: MeterBundleResponse }) {
</div>
</div>
</div>
{(meter.stateRootAccountNodeCount > 0 ||
meter.stateRootStorageNodeCount > 0) && (
<div className="grid grid-cols-2 gap-6 mt-4 pt-4 border-t border-gray-100">
<div>
<div className="text-xs text-gray-500 mb-1">
Account Trie Nodes
</div>
<div className="text-xl font-semibold text-gray-900">
{meter.stateRootAccountNodeCount.toLocaleString()}
</div>
</div>
<div>
<div className="text-xs text-gray-500 mb-1">
Storage Trie Nodes
</div>
<div className="text-xl font-semibold text-gray-900">
{meter.stateRootStorageNodeCount.toLocaleString()}
</div>
</div>
</div>
)}
</div>
<div className="border-t border-gray-100 px-5 py-3 bg-gray-50/50 grid grid-cols-5 gap-4 text-xs">
<div>
Expand Down
2 changes: 2 additions & 0 deletions src/lib/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ export interface MeterBundleResponse {
totalGasUsed: number;
totalExecutionTimeUs: number;
stateRootTimeUs: number;
stateRootAccountNodeCount: number;
stateRootStorageNodeCount: number;
}

export interface BundleData {
Expand Down
Loading