-
- {/* section 1 */}
-
-
-
+ {bridgeStatus ? (
+
-
-
-
-
- {receipt.status === "success" ? (
-
- ) : (
-
- )}
- {receipt.status}
-
-
+ }
+ overview={overviewContent}
+ />
+ ) : (
+ overviewContent
+ )}
+
+
+ );
+}
- {transaction.blockNumber && (
-
- {Number(transaction.blockNumber)}
-
- )}
+function GeneericTxDetails(props: {
+ transaction: Transaction;
+ receipt: TransactionReceipt;
+ block: {
+ timestamp: bigint;
+ baseFeePerGas: bigint | null;
+ };
+ chain: ChainMetadata;
+}) {
+ const { transaction, receipt, chain, block } = props;
- {timestamp && (
-
-
-
-
- {formatDistanceToNowStrict(timestamp, {
- addSuffix: true,
- })}
-
-
({formatDate(timestamp, "PP pp z")})
-
-
- )}
-
+ const timestamp = getDatefromTimestamp(block.timestamp);
- {/* section 2 */}
-
-
-
-
+ return (
+
+ {/* section 1 */}
+
+
+
+
- {transaction.to && (
-
-
-
+
+
+ {receipt.status === "success" ? (
+
+ ) : (
+
)}
-
+ {receipt.status}
+
+
- {/* section 3 */}
-
-
-
- {toEther(transaction.value)} {chain.nativeCurrency?.symbol}
-
-
+ {transaction.blockNumber && (
+
+ {Number(transaction.blockNumber)}
+
+ )}
-
+ {timestamp && (
+
+
+
- {toEther((transaction.gasPrice || 0n) * receipt.gasUsed)}{" "}
- {chain.nativeCurrency?.symbol}
+ {formatDistanceToNowStrict(timestamp, {
+ addSuffix: true,
+ })}
-
+
({formatDate(timestamp, "PP pp z")})
+
+
+ )}
+
-
-
- {toEther(transaction.gasPrice || 0n)}{" "}
- {chain.nativeCurrency?.symbol}
-
-
+ {/* section 2 */}
+
+
+
+
-
- {receipt.gasUsed.toString()}
-
+ {transaction.to && (
+
+
+
+ )}
+
-
-
- Base: {toTokens(block.baseFeePerGas || 0n, 9)} Gwei
+ {/* section 3 */}
+
+
+
+ {toEther(transaction.value)} {chain.nativeCurrency?.symbol}
+
+
- {transaction.maxFeePerGas && (
- <>
- |
-
- Max: {toTokens(transaction.maxFeePerGas || 0n, 9)} Gwei
-
- >
- )}
+
+
+ {toEther((transaction.gasPrice || 0n) * receipt.gasUsed)}{" "}
+ {chain.nativeCurrency?.symbol}
+
+
- {transaction.maxPriorityFeePerGas && (
- <>
- |
-
- Max priority:{" "}
- {transaction.maxPriorityFeePerGas?.toString()} Gwei
-
- >
- )}
-
-
+
+
+ {toEther(transaction.gasPrice || 0n)} {chain.nativeCurrency?.symbol}
+
+
-
- {toEther(block.baseFeePerGas || 0n * receipt.gasUsed)}
-
-
+
+ {receipt.gasUsed.toString()}
+
- {/* section 4 */}
-
-
-
-
- Txn type:
-
- {hexToNumber(transaction.typeHex || "0x0")} (
- {transaction.type})
-
-
-
- Nonce:
- {transaction.nonce}
-
-
- Position:
- {transaction.transactionIndex}
-
-
-
+
+
+ Base: {toTokens(block.baseFeePerGas || 0n, 9)} Gwei
-
-
-
-
-
-
-
+ {transaction.maxFeePerGas && (
+ <>
+
+ >
+ )}
+
+ {transaction.maxPriorityFeePerGas && (
+ <>
+