From 025484be6b12344cfa5a40cda963827aa60cb1e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Jim=C3=A9nez?= Date: Mon, 2 Dec 2024 19:13:36 +0700 Subject: [PATCH] feat: add category column to blob and transaction tables (#623) * feat(web): add category column to blob and transaction tables * chore(web): update changeset * fix(web): add 'category' to blob on transaction entity * refactor(web): merge 'category' and 'rollup' columns * fix: update missing test snapshots * feat(web): add rollup icon to start of the rows * feat(web): add rollups in blocks table * chore(web): update api changeset * chore(web): update snapshot * refactor(web): simplify table category conditional statements * refactor(web): remove scale styles for rollups icons in blocks table * fix(web): fix rollups list alignment in blocks table --- .changeset/chatty-pears-drum.md | 5 + .changeset/pink-pots-melt.md | 5 + apps/web/src/pages/blobs.tsx | 14 ++ apps/web/src/pages/blocks.tsx | 33 +++- apps/web/src/pages/txs.tsx | 19 +- .../api/src/routers/blob/common/selects.ts | 2 +- packages/api/src/utils/selects.ts | 2 + .../api/test/__snapshots__/blob.test.ts.snap | 187 +++++++++++++++++- .../api/test/__snapshots__/block.test.ts.snap | 104 ++++++++++ 9 files changed, 356 insertions(+), 15 deletions(-) create mode 100644 .changeset/chatty-pears-drum.md create mode 100644 .changeset/pink-pots-melt.md diff --git a/.changeset/chatty-pears-drum.md b/.changeset/chatty-pears-drum.md new file mode 100644 index 000000000..41b8e326a --- /dev/null +++ b/.changeset/chatty-pears-drum.md @@ -0,0 +1,5 @@ +--- +"@blobscan/api": minor +--- + +Added transaction category column to blob data. diff --git a/.changeset/pink-pots-melt.md b/.changeset/pink-pots-melt.md new file mode 100644 index 000000000..b97b41f5f --- /dev/null +++ b/.changeset/pink-pots-melt.md @@ -0,0 +1,5 @@ +--- +"@blobscan/web": minor +--- + +Added category column to blob, block and transaction tables. diff --git a/apps/web/src/pages/blobs.tsx b/apps/web/src/pages/blobs.tsx index 4fd47c71d..137348d3f 100644 --- a/apps/web/src/pages/blobs.tsx +++ b/apps/web/src/pages/blobs.tsx @@ -7,6 +7,7 @@ import { Filters } from "~/components/Filters"; import { Header } from "~/components/Header"; import { Link } from "~/components/Link"; import { PaginatedTable } from "~/components/PaginatedTable"; +import { RollupIcon } from "~/components/RollupIcon"; import { Skeleton } from "~/components/Skeleton"; import { StorageIcon } from "~/components/StorageIcon"; import { api } from "~/api-client"; @@ -24,6 +25,10 @@ import { const BLOBS_TABLE_HEADERS = [ { cells: [ + { + item: "", + className: "w-[40px]", + }, { item: "Versioned Hash", className: "2xl:w-[312px] xl:w-[276px] lg:w-[215px] w-[170px]", @@ -84,8 +89,17 @@ const Blobs: NextPage = function () { txHash, blockTimestamp, blockNumber, + transaction, }) => ({ cells: [ + { + item: + transaction?.category === "rollup" && transaction.rollup ? ( + + ) : ( + <> + ), + }, { item: ( ({ transactionHash: transaction.hash, blobVersionedHash: blob.versionedHash, + category: transaction.category, + rollup: transaction.rollup, })) ); const rows = transactionsCombinedWithInnerBlobs.map( - ({ transactionHash, blobVersionedHash }) => ({ + ({ transactionHash, blobVersionedHash, rollup, category }) => ({ cells: [ + { + item: + category === "rollup" && rollup ? ( + + ) : ( + <> + ), + }, { item: ( + {transactions.map((tx, i) => { + return tx.rollup ? ( +
+ +
+ ) : ( + <> + ); + })} + + ), + }, { item: ( & { blobsLength?: number }; export const TRANSACTIONS_TABLE_HEADERS = [ { cells: [ + { item: "", className: "w-[40px]" }, { item: "Hash", className: "w-[150px]", @@ -64,10 +66,7 @@ export const TRANSACTIONS_TABLE_HEADERS = [ item: "To", className: "w-[148px]", }, - { - item: "Rollup", - className: "w-[72px]", - }, + { item: "Blob Base Fee", className: "w-[172px]", @@ -128,6 +127,7 @@ const Txs: NextPage = function () { to, blobs, rollup, + category, blockNumber, blobGasBaseFee, blobGasMaxFee, @@ -202,6 +202,14 @@ const Txs: NextPage = function () { return { cells: [ + { + item: + category === "rollup" && rollup ? ( + + ) : ( + <> + ), + }, { item: ( @@ -244,9 +252,6 @@ const Txs: NextPage = function () { ), }, - { - item: rollup ? : <>, - }, { item: (
diff --git a/packages/api/src/routers/blob/common/selects.ts b/packages/api/src/routers/blob/common/selects.ts index a62becbb2..a3a7d7506 100644 --- a/packages/api/src/routers/blob/common/selects.ts +++ b/packages/api/src/routers/blob/common/selects.ts @@ -27,7 +27,6 @@ export function createBlobSelect(expands: Expands) { transaction: { select: { rollup: true, - category: true, ...(expands.transaction?.select ?? {}), }, }, @@ -56,6 +55,7 @@ export function createBlobsOnTransactionsSelect(expands: Expands) { transaction: { select: { rollup: true, + category: true, ...(expands.transaction?.select ?? {}), }, }, diff --git a/packages/api/src/utils/selects.ts b/packages/api/src/utils/selects.ts index ea6f4b790..bfb5c4d3e 100644 --- a/packages/api/src/utils/selects.ts +++ b/packages/api/src/utils/selects.ts @@ -25,4 +25,6 @@ export const blobsOnTransactionsReferencesSelect = export const transactionReferenceSelect = Prisma.validator()({ hash: true, + rollup: true, + category: true, }); diff --git a/packages/api/test/__snapshots__/blob.test.ts.snap b/packages/api/test/__snapshots__/blob.test.ts.snap index 0c0d3ccfb..748f4bb33 100644 --- a/packages/api/test/__snapshots__/blob.test.ts.snap +++ b/packages/api/test/__snapshots__/blob.test.ts.snap @@ -27,6 +27,9 @@ exports[`Blob router > getAll > when getting expanded blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash016", "txIndex": 0, "versionedHash": "blobHash001", @@ -57,6 +60,7 @@ exports[`Blob router > getAll > when getting expanded blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -233,6 +237,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab3", "size": 131072, "transaction": { + "category": "rollup", "rollup": "base", }, "txHash": "txHash004", @@ -254,6 +259,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab2", "size": 131072, "transaction": { + "category": "rollup", "rollup": "base", }, "txHash": "txHash004", @@ -275,6 +281,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab1", "size": 131072, "transaction": { + "category": "rollup", "rollup": "base", }, "txHash": "txHash004", @@ -296,6 +303,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof002", "size": 1100, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash003", @@ -321,6 +329,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash003", @@ -345,6 +354,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash002", "txIndex": 1, "versionedHash": "blobHash001", @@ -367,6 +379,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 2, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash003", @@ -385,6 +400,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 1, "proof": "proof002", "size": 1100, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash002", @@ -407,6 +425,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash001", @@ -434,6 +455,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash016", "txIndex": 0, "versionedHash": "blobHash001", @@ -457,6 +481,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -482,6 +507,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -511,6 +537,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash001", @@ -529,6 +558,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 1, "proof": "proof002", "size": 1100, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash002", @@ -551,6 +583,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 2, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash003", @@ -579,6 +614,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -604,6 +640,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -629,6 +666,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -654,6 +692,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash012", @@ -679,6 +718,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash012", @@ -704,6 +744,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash012", @@ -729,6 +770,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash007", @@ -750,6 +792,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof002", "size": 1100, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash003", @@ -775,6 +818,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash003", @@ -801,6 +845,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "0xaf8b65d906c672d670d3d9591ede355ac4dfc2f66f5690e836018fdb8582d3055474e3de6a069d3dfb4c15aa7c7f88a6", "size": 128000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "0xd80214f2e7c7271114f372b6a8baaf39bcb364448788f6d8229d2a903edf9272", @@ -830,6 +875,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "89cf91c4c8be6f2a390d4262425f79dffb74c174fb15a210182184543bf7394e5a7970a774ee8e0dabc315424c22df0f", "size": 1500, + "transaction": { + "category": "other", + }, "txHash": "0x5be77167b05f39ea8950f11b0da2bdfec6e04055030068b051ac5a43aaf251e9", "txIndex": 0, "versionedHash": "0x010001c79d78a76fb9b4bab3896ee3ea32f3e2607da7801eb1a92da39d6c1368", @@ -852,6 +900,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash013", "txIndex": 1, "versionedHash": "blobHash001", @@ -875,6 +926,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash012", @@ -900,6 +952,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash012", @@ -925,6 +978,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash012", @@ -946,6 +1000,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof005", "size": 1400, "transaction": { + "category": "rollup", "rollup": "base", }, "txHash": "txHash011", @@ -970,6 +1025,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash010", "txIndex": 3, "versionedHash": "blobHash003", @@ -992,6 +1050,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash009", "txIndex": 2, "versionedHash": "blobHash003", @@ -1011,6 +1072,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof002", "size": 1100, "transaction": { + "category": "rollup", "rollup": "arbitrum", }, "txHash": "txHash008", @@ -1036,6 +1098,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash007", @@ -1062,6 +1125,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof005", "size": 1400, "transaction": { + "category": "rollup", "rollup": "base", }, "txHash": "txHash011", @@ -1086,6 +1150,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash010", "txIndex": 3, "versionedHash": "blobHash003", @@ -1108,6 +1175,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash009", "txIndex": 2, "versionedHash": "blobHash003", @@ -1127,6 +1197,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof002", "size": 1100, "transaction": { + "category": "rollup", "rollup": "arbitrum", }, "txHash": "txHash008", @@ -1152,6 +1223,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash007", @@ -1176,6 +1248,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 2, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash006", "txIndex": 1, "versionedHash": "blobHash001", @@ -1198,6 +1273,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 1, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash006", "txIndex": 1, "versionedHash": "blobHash001", @@ -1220,6 +1298,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash006", "txIndex": 1, "versionedHash": "blobHash001", @@ -1242,6 +1323,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 2, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash005", "txIndex": 0, "versionedHash": "blobHash001", @@ -1260,6 +1344,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 1, "proof": "proof002", "size": 1100, + "transaction": { + "category": "other", + }, "txHash": "txHash005", "txIndex": 0, "versionedHash": "blobHash002", @@ -1278,6 +1365,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof002", "size": 1100, + "transaction": { + "category": "other", + }, "txHash": "txHash005", "txIndex": 0, "versionedHash": "blobHash002", @@ -1306,6 +1396,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash007", @@ -1330,6 +1421,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 2, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash003", @@ -1348,6 +1442,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 1, "proof": "proof002", "size": 1100, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash002", @@ -1370,6 +1467,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash001", @@ -1397,6 +1497,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 2, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash003", @@ -1415,6 +1518,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 1, "proof": "proof002", "size": 1100, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash002", @@ -1437,6 +1543,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash001", @@ -1465,6 +1574,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash007", @@ -1489,6 +1599,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 2, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash003", @@ -1507,6 +1620,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 1, "proof": "proof002", "size": 1100, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash002", @@ -1529,6 +1645,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash001", @@ -1553,6 +1672,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab3", "size": 131072, "transaction": { + "category": "rollup", "rollup": "base", }, "txHash": "txHash004", @@ -1574,6 +1694,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab2", "size": 131072, "transaction": { + "category": "rollup", "rollup": "base", }, "txHash": "txHash004", @@ -1595,6 +1716,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab1", "size": 131072, "transaction": { + "category": "rollup", "rollup": "base", }, "txHash": "txHash004", @@ -1616,6 +1738,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof002", "size": 1100, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash003", @@ -1641,6 +1764,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash003", @@ -1665,6 +1789,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash002", "txIndex": 1, "versionedHash": "blobHash001", @@ -1687,6 +1814,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 2, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash003", @@ -1705,6 +1835,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 1, "proof": "proof002", "size": 1100, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash002", @@ -1727,6 +1860,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash001", @@ -1751,6 +1887,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof002", "size": 1100, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash003", @@ -1776,6 +1913,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof001", "size": 1000, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash003", @@ -1800,6 +1938,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash002", "txIndex": 1, "versionedHash": "blobHash001", @@ -1822,6 +1963,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 2, "proof": "proof003", "size": 1200, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash003", @@ -1840,6 +1984,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 1, "proof": "proof002", "size": 1100, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash002", @@ -1862,6 +2009,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash001", "txIndex": 0, "versionedHash": "blobHash001", @@ -1889,6 +2039,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash016", "txIndex": 0, "versionedHash": "blobHash001", @@ -1912,6 +2065,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -1937,6 +2091,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -1962,6 +2117,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -1991,6 +2147,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash016", "txIndex": 0, "versionedHash": "blobHash001", @@ -2014,6 +2173,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -2039,6 +2199,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -2064,6 +2225,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -2088,6 +2250,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "89cf91c4c8be6f2a390d4262425f79dffb74c174fb15a210182184543bf7394e5a7970a774ee8e0dabc315424c22df0f", "size": 1500, + "transaction": { + "category": "other", + }, "txHash": "0x5be77167b05f39ea8950f11b0da2bdfec6e04055030068b051ac5a43aaf251e9", "txIndex": 0, "versionedHash": "0x010001c79d78a76fb9b4bab3896ee3ea32f3e2607da7801eb1a92da39d6c1368", @@ -2115,6 +2280,9 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash016", "txIndex": 0, "versionedHash": "blobHash001", @@ -2138,6 +2306,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -2163,6 +2332,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -2188,6 +2358,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -2217,6 +2388,9 @@ exports[`Blob router > getAll > when getting paginated blob results > should def "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash016", "txIndex": 0, "versionedHash": "blobHash001", @@ -2240,6 +2414,7 @@ exports[`Blob router > getAll > when getting paginated blob results > should def "proof": "proof004", "size": 1300, "transaction": { + "category": "rollup", "rollup": "optimism", }, "txHash": "txHash015", @@ -2269,6 +2444,9 @@ exports[`Blob router > getAll > when getting paginated blob results > should ret "index": 0, "proof": "89cf91c4c8be6f2a390d4262425f79dffb74c174fb15a210182184543bf7394e5a7970a774ee8e0dabc315424c22df0f", "size": 1500, + "transaction": { + "category": "other", + }, "txHash": "0x5be77167b05f39ea8950f11b0da2bdfec6e04055030068b051ac5a43aaf251e9", "txIndex": 0, "versionedHash": "0x010001c79d78a76fb9b4bab3896ee3ea32f3e2607da7801eb1a92da39d6c1368", @@ -2291,6 +2469,9 @@ exports[`Blob router > getAll > when getting paginated blob results > should ret "index": 0, "proof": "proof001", "size": 1000, + "transaction": { + "category": "other", + }, "txHash": "txHash013", "txIndex": 1, "versionedHash": "blobHash001", @@ -2366,7 +2547,6 @@ exports[`Blob router > getByBlobId > should get a blob by kzg commitment 1`] = ` "blockHash": "blockHash007", "blockNumber": 1007, "blockTimestamp": 2023-08-31T14:00:00.000Z, - "category": "rollup", "hash": "txHash015", "index": 0, "rollup": "optimism", @@ -2376,7 +2556,6 @@ exports[`Blob router > getByBlobId > should get a blob by kzg commitment 1`] = ` "blockHash": "blockHash007", "blockNumber": 1007, "blockTimestamp": 2023-08-31T14:00:00.000Z, - "category": "rollup", "hash": "txHash015", "index": 1, "rollup": "optimism", @@ -2386,7 +2565,6 @@ exports[`Blob router > getByBlobId > should get a blob by kzg commitment 1`] = ` "blockHash": "blockHash007", "blockNumber": 1007, "blockTimestamp": 2023-08-31T14:00:00.000Z, - "category": "rollup", "hash": "txHash015", "index": 2, "rollup": "optimism", @@ -2418,7 +2596,6 @@ exports[`Blob router > getByBlobId > should get a blob by versioned hash 1`] = ` "blockHash": "blockHash007", "blockNumber": 1007, "blockTimestamp": 2023-08-31T14:00:00.000Z, - "category": "rollup", "hash": "txHash015", "index": 0, "rollup": "optimism", @@ -2428,7 +2605,6 @@ exports[`Blob router > getByBlobId > should get a blob by versioned hash 1`] = ` "blockHash": "blockHash007", "blockNumber": 1007, "blockTimestamp": 2023-08-31T14:00:00.000Z, - "category": "rollup", "hash": "txHash015", "index": 1, "rollup": "optimism", @@ -2438,7 +2614,6 @@ exports[`Blob router > getByBlobId > should get a blob by versioned hash 1`] = ` "blockHash": "blockHash007", "blockNumber": 1007, "blockTimestamp": 2023-08-31T14:00:00.000Z, - "category": "rollup", "hash": "txHash015", "index": 2, "rollup": "optimism", diff --git a/packages/api/test/__snapshots__/block.test.ts.snap b/packages/api/test/__snapshots__/block.test.ts.snap index 421c00e1c..78ad4efba 100644 --- a/packages/api/test/__snapshots__/block.test.ts.snap +++ b/packages/api/test/__snapshots__/block.test.ts.snap @@ -32,6 +32,7 @@ exports[`Block router > getAll > when getting expanded block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash016", }, ], @@ -100,7 +101,9 @@ exports[`Block router > getAll > when getting expanded block results > should re "versionedHash": "blobHash004", }, ], + "category": "rollup", "hash": "txHash015", + "rollup": "optimism", }, ], }, @@ -331,7 +334,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "0x000000000000000000000000000000000000000000000000000000000000b3", }, ], + "category": "rollup", "hash": "txHash004", + "rollup": "base", }, ], }, @@ -357,6 +362,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash001", }, { @@ -365,6 +371,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash002", }, { @@ -376,7 +383,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash002", }, ], + "category": "rollup", "hash": "txHash003", + "rollup": "optimism", }, ], }, @@ -401,6 +410,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash016", }, ], @@ -427,7 +437,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash004", }, ], + "category": "rollup", "hash": "txHash015", + "rollup": "optimism", }, ], }, @@ -447,6 +459,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "0x010001c79d78a76fb9b4bab3896ee3ea32f3e2607da7801eb1a92da39d6c1368", }, ], + "category": "other", "hash": "0x5be77167b05f39ea8950f11b0da2bdfec6e04055030068b051ac5a43aaf251e9", }, ], @@ -478,6 +491,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash001", }, { @@ -486,6 +500,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash002", }, { @@ -497,7 +512,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash002", }, ], + "category": "rollup", "hash": "txHash003", + "rollup": "optimism", }, ], }, @@ -523,7 +540,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "0x000000000000000000000000000000000000000000000000000000000000b3", }, ], + "category": "rollup", "hash": "txHash004", + "rollup": "base", }, ], }, @@ -549,6 +568,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash005", }, { @@ -563,6 +583,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash006", }, ], @@ -594,7 +615,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash004", }, ], + "category": "rollup", "hash": "txHash015", + "rollup": "optimism", }, ], }, @@ -620,7 +643,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "rollup", "hash": "txHash012", + "rollup": "optimism", }, ], }, @@ -640,7 +665,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "rollup", "hash": "txHash007", + "rollup": "optimism", }, ], }, @@ -663,7 +690,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash002", }, ], + "category": "rollup", "hash": "txHash003", + "rollup": "optimism", }, ], }, @@ -688,7 +717,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "0x01d5cc28986f58db309e0fae63b60ade81a01667721e190ec142051240b5d436", }, ], + "category": "rollup", "hash": "0xd80214f2e7c7271114f372b6a8baaf39bcb364448788f6d8229d2a903edf9272", + "rollup": "optimism", }, ], }, @@ -713,6 +744,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "0x010001c79d78a76fb9b4bab3896ee3ea32f3e2607da7801eb1a92da39d6c1368", }, ], + "category": "other", "hash": "0x5be77167b05f39ea8950f11b0da2bdfec6e04055030068b051ac5a43aaf251e9", }, ], @@ -739,7 +771,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "rollup", "hash": "txHash012", + "rollup": "optimism", }, { "blobs": [ @@ -747,6 +781,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash013", }, ], @@ -767,7 +802,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "rollup", "hash": "txHash007", + "rollup": "optimism", }, { "blobs": [ @@ -775,7 +812,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash002", }, ], + "category": "rollup", "hash": "txHash008", + "rollup": "arbitrum", }, { "blobs": [ @@ -783,6 +822,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash009", }, { @@ -791,6 +831,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash010", }, { @@ -799,7 +840,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash005", }, ], + "category": "rollup", "hash": "txHash011", + "rollup": "base", }, ], }, @@ -824,7 +867,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "rollup", "hash": "txHash007", + "rollup": "optimism", }, { "blobs": [ @@ -832,7 +877,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash002", }, ], + "category": "rollup", "hash": "txHash008", + "rollup": "arbitrum", }, { "blobs": [ @@ -840,6 +887,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash009", }, { @@ -848,6 +896,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash010", }, { @@ -856,7 +905,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash005", }, ], + "category": "rollup", "hash": "txHash011", + "rollup": "base", }, ], }, @@ -882,6 +933,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash005", }, { @@ -896,6 +948,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash006", }, ], @@ -921,7 +974,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "rollup", "hash": "txHash007", + "rollup": "optimism", }, ], }, @@ -947,6 +1002,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash001", }, ], @@ -978,6 +1034,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash001", }, ], @@ -1003,7 +1060,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "rollup", "hash": "txHash007", + "rollup": "optimism", }, ], }, @@ -1029,6 +1088,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash001", }, ], @@ -1060,7 +1120,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "0x000000000000000000000000000000000000000000000000000000000000b3", }, ], + "category": "rollup", "hash": "txHash004", + "rollup": "base", }, ], }, @@ -1086,6 +1148,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash001", }, { @@ -1094,6 +1157,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash002", }, { @@ -1105,7 +1169,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash002", }, ], + "category": "rollup", "hash": "txHash003", + "rollup": "optimism", }, ], }, @@ -1136,6 +1202,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash001", }, { @@ -1144,6 +1211,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash002", }, { @@ -1155,7 +1223,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash002", }, ], + "category": "rollup", "hash": "txHash003", + "rollup": "optimism", }, ], }, @@ -1180,6 +1250,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash016", }, ], @@ -1206,7 +1277,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash004", }, ], + "category": "rollup", "hash": "txHash015", + "rollup": "optimism", }, ], }, @@ -1231,6 +1304,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash016", }, ], @@ -1257,7 +1331,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash004", }, ], + "category": "rollup", "hash": "txHash015", + "rollup": "optimism", }, ], }, @@ -1277,6 +1353,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "0x010001c79d78a76fb9b4bab3896ee3ea32f3e2607da7801eb1a92da39d6c1368", }, ], + "category": "other", "hash": "0x5be77167b05f39ea8950f11b0da2bdfec6e04055030068b051ac5a43aaf251e9", }, ], @@ -1302,6 +1379,7 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash016", }, ], @@ -1328,7 +1406,9 @@ exports[`Block router > getAll > when getting filtered block results > should re "versionedHash": "blobHash004", }, ], + "category": "rollup", "hash": "txHash015", + "rollup": "optimism", }, ], }, @@ -1353,6 +1433,7 @@ exports[`Block router > getAll > when getting paginated block results > should d "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash016", }, ], @@ -1379,7 +1460,9 @@ exports[`Block router > getAll > when getting paginated block results > should d "versionedHash": "blobHash004", }, ], + "category": "rollup", "hash": "txHash015", + "rollup": "optimism", }, ], }, @@ -1404,7 +1487,9 @@ exports[`Block router > getAll > when getting paginated block results > should r "versionedHash": "blobHash001", }, ], + "category": "rollup", "hash": "txHash007", + "rollup": "optimism", }, { "blobs": [ @@ -1412,7 +1497,9 @@ exports[`Block router > getAll > when getting paginated block results > should r "versionedHash": "blobHash002", }, ], + "category": "rollup", "hash": "txHash008", + "rollup": "arbitrum", }, { "blobs": [ @@ -1420,6 +1507,7 @@ exports[`Block router > getAll > when getting paginated block results > should r "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash009", }, { @@ -1428,6 +1516,7 @@ exports[`Block router > getAll > when getting paginated block results > should r "versionedHash": "blobHash003", }, ], + "category": "other", "hash": "txHash010", }, { @@ -1436,7 +1525,9 @@ exports[`Block router > getAll > when getting paginated block results > should r "versionedHash": "blobHash005", }, ], + "category": "rollup", "hash": "txHash011", + "rollup": "base", }, ], }, @@ -1462,6 +1553,7 @@ exports[`Block router > getAll > when getting paginated block results > should r "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash005", }, { @@ -1476,6 +1568,7 @@ exports[`Block router > getAll > when getting paginated block results > should r "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash006", }, ], @@ -1508,7 +1601,9 @@ exports[`Block router > getByBlockId > should get a block by block number 1`] = "versionedHash": "0x000000000000000000000000000000000000000000000000000000000000b3", }, ], + "category": "rollup", "hash": "txHash004", + "rollup": "base", }, ], } @@ -1531,7 +1626,9 @@ exports[`Block router > getByBlockId > should get a block by hash 1`] = ` "versionedHash": "0x01d5cc28986f58db309e0fae63b60ade81a01667721e190ec142051240b5d436", }, ], + "category": "rollup", "hash": "0xd80214f2e7c7271114f372b6a8baaf39bcb364448788f6d8229d2a903edf9272", + "rollup": "optimism", }, ], } @@ -1554,7 +1651,9 @@ exports[`Block router > getByBlockId > should get a reorged block by block numbe "versionedHash": "0x01d5cc28986f58db309e0fae63b60ade81a01667721e190ec142051240b5d436", }, ], + "category": "rollup", "hash": "0xd80214f2e7c7271114f372b6a8baaf39bcb364448788f6d8229d2a903edf9272", + "rollup": "optimism", }, ], } @@ -1577,6 +1676,7 @@ exports[`Block router > getByBlockId > should get the canonical block when provi "versionedHash": "blobHash001", }, ], + "category": "other", "hash": "txHash016", }, ], @@ -1636,7 +1736,9 @@ exports[`Block router > getByBlockId > when getting expanded block results > sho "versionedHash": "0x000000000000000000000000000000000000000000000000000000000000b3", }, ], + "category": "rollup", "hash": "txHash004", + "rollup": "base", }, ], } @@ -1698,7 +1800,9 @@ exports[`Block router > getByBlockId > when getting expanded block results > sho "versionedHash": "0x000000000000000000000000000000000000000000000000000000000000b3", }, ], + "category": "rollup", "hash": "txHash004", + "rollup": "base", }, ], }