Skip to content

Commit

Permalink
chore: add sepolia rollups
Browse files Browse the repository at this point in the history
  • Loading branch information
0xGabi committed May 7, 2024
1 parent aeaac8a commit 9d2e6ac
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/cuddly-bugs-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@blobscan/api": patch
"@blobscan/db": patch
---

Added sepolia new rollups
2 changes: 2 additions & 0 deletions packages/api/src/routers/indexer/indexData.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ const ROLLUPS_ADDRESSES: { [chainId: string]: Record<string, Rollup> } = {
"11155111": {
"0xb2248390842d3c4acf1d8a893954afc0eac586e5": Rollup.ARBITRUM,
"0x6cdebe940bc0f26850285caca097c11c33103e47": Rollup.BASE,
"0xf15dc770221b99c98d4aaed568f2ab04b9d16e42": Rollup.KROMA,
"0x47c63d1e391fcb3dcdc40c4d7fa58adb172f8c38": Rollup.LINEA,
"0x8f23bb38f531600e5d8fddaaec41f13fab46e98c": Rollup.OPTIMISM,
"0x2d567ece699eabe5afcd141edb7a4f2d0d6ce8a0": Rollup.SCROLL,
"0x5b98b836969a60fec50fa925905dd1d382a7db43": Rollup.STARKNET,
"0x4e6bd53883107b063c502ddd49f9600dc51b3ddc": Rollup.MODE,
"0x3cd868e221a3be64b161d596a7482257a99d857f": Rollup.ZORA,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Update the `rollup` field for transactions that were created before the `rollup` field was added to the schema.
UPDATE "transaction"
SET "rollup" = CASE
WHEN "from_id" = '0xf15dc770221b99c98d4aaed568f2ab04b9d16e42' THEN 'kroma'::rollup
WHEN "from_id" = '0x2d567ece699eabe5afcd141edb7a4f2d0d6ce8a0' THEN 'scroll'::rollup
ELSE NULL
END
WHERE "from_id" IN ('0xf15dc770221b99c98d4aaed568f2ab04b9d16e42', '0x2d567ece699eabe5afcd141edb7a4f2d0d6ce8a0');

0 comments on commit 9d2e6ac

Please sign in to comment.