diff --git a/.env.example b/.env.example index a18021b..925008d 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ NEXT_PUBLIC_BLOCK_EXPLORER_URL=https://base.blockscout.com -TIPS_UI_RPC_URL=http://localhost:8549 +TIPS_UI_RPC_URL=http://localhost:8545 TIPS_UI_AWS_REGION=us-east-1 TIPS_UI_S3_BUCKET_NAME=tips TIPS_UI_S3_CONFIG_TYPE=manual diff --git a/src/app/bundles/[uuid]/page.tsx b/src/app/bundles/[uuid]/page.tsx index 0212106..cf0df3d 100644 --- a/src/app/bundles/[uuid]/page.tsx +++ b/src/app/bundles/[uuid]/page.tsx @@ -299,41 +299,43 @@ function TransactionDetails({ } function SimulationCard({ meter }: { meter: MeterBundleResponse }) { + const totalTimeUs = meter.totalExecutionTimeUs + meter.stateRootTimeUs; + return (
-
-
-
Total Gas
-
- {meter.totalGasUsed.toLocaleString()} -
-
+
-
Execution Time
+
Execution
- {meter.results.reduce((sum, r) => sum + r.executionTimeUs, 0)}μs + {meter.totalExecutionTimeUs.toLocaleString()}μs
-
Gas Price
+
State Root
- {formatGasPrice(meter.bundleGasPrice)} + {meter.stateRootTimeUs.toLocaleString()}μs
-
Coinbase Diff
+
Total Time
- {formatHexValue(meter.coinbaseDiff)} + {totalTimeUs.toLocaleString()}μs
-
+
- State Block + Total Gas - #{meter.stateBlockNumber} + {meter.totalGasUsed.toLocaleString()} + +
+
+ Gas Price + + {formatGasPrice(meter.bundleGasPrice)}
@@ -343,9 +345,15 @@ function SimulationCard({ meter }: { meter: MeterBundleResponse }) {
- ETH to Coinbase + Coinbase Diff + + {formatHexValue(meter.coinbaseDiff)} + +
+
+ State Block - {formatHexValue(meter.ethSentToCoinbase)} + #{meter.stateBlockNumber}
diff --git a/src/lib/s3.ts b/src/lib/s3.ts index 0d0cde7..32281e3 100644 --- a/src/lib/s3.ts +++ b/src/lib/s3.ts @@ -127,6 +127,7 @@ export interface MeterBundleResponse { stateBlockNumber: number; totalGasUsed: number; totalExecutionTimeUs: number; + stateRootTimeUs: number; } export interface BundleData {