Skip to content

Commit

Permalink
feat: add Superseed Sepolia and Mainnet (#3119)
Browse files Browse the repository at this point in the history
* Add Superseed Sepolia

* Add Superseed Mainnet

* chore: version package (#3075)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 12, 2024
1 parent 9a4136b commit ee61159
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-tigers-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Add Superseed Sepolia Testnet
5 changes: 5 additions & 0 deletions .changeset/poor-frogs-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Add Superseed Mainnet
54 changes: 54 additions & 0 deletions src/chains/definitions/superseed.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { chainConfig } from '../../op-stack/chainConfig.js'
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 1 // mainnet

export const superseed = /*#__PURE__*/ defineChain({
...chainConfig,
id: 5330,
name: 'Superseed',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://mainnet.superseed.xyz'],
},
},
blockExplorers: {
default: {
name: 'Superseed Explorer',
url: 'https://explorer.superseed.xyz',
apiUrl: 'https://explorer.superseed.xyz/api/v2',
},
},
contracts: {
...chainConfig.contracts,
disputeGameFactory: {
[sourceId]: {
address: '0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0',
blockCreated: 20737481,
},
},
l2OutputOracle: {
[sourceId]: {
address: '0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949',
blockCreated: 20737481,
},
},
portal: {
[sourceId]: {
address: '0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07',
blockCreated: 20737481,
},
},
l1StandardBridge: {
[sourceId]: {
address: '0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede',
blockCreated: 20737481,
},
},
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
},
},
sourceId,
})
47 changes: 47 additions & 0 deletions src/chains/definitions/superseedSepolia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import { chainConfig } from '../../op-stack/chainConfig.js'
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 11155111 // sepolia

export const superseedSepolia = /*#__PURE__*/ defineChain({
...chainConfig,
id: 53302,
name: 'Superseed Sepolia',
nativeCurrency: {
name: 'Ether',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://sepolia.superseed.xyz'],
},
},
blockExplorers: {
default: {
name: 'Superseed Sepolia Explorer',
url: 'https://sepolia-explorer.superseed.xyz',
apiUrl: 'https://sepolia-explorer.superseed.xyz/api/v2',
},
},
contracts: {
...chainConfig.contracts,
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
},
portal: {
[sourceId]: {
address: '0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB',
blockCreated: 5523438,
},
},
l1StandardBridge: {
[sourceId]: {
address: '0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C',
blockCreated: 5523442,
},
},
},
testnet: true,
sourceId,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ export { storyTestnet } from './definitions/storyTestnet.js'
export { stratis } from './definitions/stratis.js'
export { superlumio } from './definitions/superlumio.js'
export { superposition } from './definitions/superposition.js'
export { superseed } from './definitions/superseed.js'
export { superseedSepolia } from './definitions/superseedSepolia.js'
export { swan } from './definitions/swan.js'
export { swanProximaTestnet } from './definitions/swanProximaTestnet.js'
export { swanSaturnTestnet } from './definitions/swanSaturnTestnet.js'
Expand Down

0 comments on commit ee61159

Please sign in to comment.