Skip to content

Commit 9e64aa8

Browse files
Add Soneium Mainnet and Minato (ethereum-optimism#1075)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 03a2128 commit 9e64aa8

File tree

4 files changed

+42
-1
lines changed

4 files changed

+42
-1
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ For right now, each OP Chain has their own review process. So, if you are adding
2525
- If you are adding a token to `Zora`: please use the [`zora` label](https://github.com/ethereum-optimism/ethereum-optimism.github.io/labels/zora) and add [@tbtstl](https://github.com/tbtstl) as a reviewer.
2626
- If you are adding a token to `Mode`: please use the [`mode` label](https://github.com/ethereum-optimism/ethereum-optimism.github.io/labels/mode).
2727
- If you are adding a token to `Lisk` (e.g. `lisk` [mainnet] or `lisk-sepolia` [testnet]): please use the [`lisk` label](https://github.com/ethereum-optimism/ethereum-optimism.github.io/labels/lisk) and add [@shuse2](https://github.com/shuse2) as a reviewer.
28+
- If you are adding a token to `Soneium` (e.g. `soneium` [mainnet] or `soneium-minato` [testnet]): please use the [`soneium` label](https://github.com/ethereum-optimism/ethereum-optimism.github.io/labels/soneium).
2829

2930
### Automated checks
3031

Diff for: src/chains.ts

+32
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ export const NETWORK_DATA: Record<Chain, Network> = {
6767
),
6868
layer: 2
6969
},
70+
soneium: {
71+
id: 1868,
72+
name: 'Soneium',
73+
provider: new ethers.providers.StaticJsonRpcProvider(
74+
'https://rpc.soneium.org'
75+
),
76+
layer: 2,
77+
},
7078
sepolia: {
7179
id: 11155111,
7280
name: 'Sepolia',
@@ -117,6 +125,14 @@ export const NETWORK_DATA: Record<Chain, Network> = {
117125
),
118126
layer: 2
119127
},
128+
'soneium-minato': {
129+
id: 1946,
130+
name: 'Soneium Minato',
131+
provider: new ethers.providers.StaticJsonRpcProvider(
132+
'https://rpc.minato.soneium.org'
133+
),
134+
layer: 2,
135+
},
120136
}
121137

122138
interface L2BridgeInformation {
@@ -153,6 +169,9 @@ export const L2_STANDARD_BRIDGE_INFORMATION: Record<
153169
'metall2': {
154170
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
155171
},
172+
soneium: {
173+
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
174+
},
156175
'optimism-sepolia': {
157176
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
158177
},
@@ -168,6 +187,9 @@ export const L2_STANDARD_BRIDGE_INFORMATION: Record<
168187
'unichain-sepolia': {
169188
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
170189
},
190+
'soneium-minato': {
191+
l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010',
192+
},
171193
}
172194

173195
export const L2_TO_L1_PAIR: Partial<Record<L2Chain, L1Chain>> = {
@@ -177,10 +199,12 @@ export const L2_TO_L1_PAIR: Partial<Record<L2Chain, L1Chain>> = {
177199
lisk: 'ethereum',
178200
redstone: 'ethereum',
179201
metall2: 'ethereum',
202+
soneium: 'ethereum',
180203
'optimism-sepolia': 'sepolia',
181204
'base-sepolia': 'sepolia',
182205
'lisk-sepolia': 'sepolia',
183206
'metall2-sepolia': 'sepolia',
207+
'soneium-minato': 'sepolia',
184208
}
185209

186210
export const L1_STANDARD_BRIDGE_INFORMATION: Record<
@@ -215,6 +239,10 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record<
215239
{
216240
l2Chain: 'unichain',
217241
l1StandardBridgeAddress: '0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA',
242+
},
243+
{
244+
l2Chain: 'soneium',
245+
l1StandardBridgeAddress: '0xeb9bf100225c214efc3e7c651ebbadcf85177607',
218246
}
219247
],
220248
sepolia: [
@@ -237,6 +265,10 @@ export const L1_STANDARD_BRIDGE_INFORMATION: Record<
237265
{
238266
l2Chain: 'unichain-sepolia',
239267
l1StandardBridgeAddress: '0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2',
268+
},
269+
{
270+
l2Chain: 'soneium-minato',
271+
l1StandardBridgeAddress: '0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2',
240272
}
241273
],
242274
}

Diff for: src/schemas.ts

+4
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ export const TOKEN_DATA_SCHEMA = {
6767
unichain: TOKEN_SCHEMA,
6868
redstone: TOKEN_SCHEMA,
6969
metall2: TOKEN_SCHEMA,
70+
soneium: TOKEN_SCHEMA,
7071
sepolia: TOKEN_SCHEMA,
7172
'base-sepolia': TOKEN_SCHEMA,
7273
'optimism-sepolia': TOKEN_SCHEMA,
7374
'lisk-sepolia': TOKEN_SCHEMA,
7475
'metall2-sepolia': TOKEN_SCHEMA,
7576
'unichain-sepolia': TOKEN_SCHEMA,
77+
'soneium-minato': TOKEN_SCHEMA,
7678
},
7779
additionalProperties: false,
7880
anyOf: [
@@ -84,12 +86,14 @@ export const TOKEN_DATA_SCHEMA = {
8486
{ required: ['unichain'] },
8587
{ required: ['redstone'] },
8688
{ required: ['metall2'] },
89+
{ required: ['soneium'] },
8790
{ required: ['sepolia'] },
8891
{ required: ['base-sepolia'] },
8992
{ required: ['optimism-sepolia'] },
9093
{ required: ['lisk-sepolia'] },
9194
{ required: ['metall2-sepolia'] },
9295
{ required: ['unichain-sepolia'] },
96+
{ required: ['soneium-minato'] },
9397
],
9498
},
9599
},

Diff for: src/types.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export type Chain =
3434
| 'redstone'
3535
| 'metall2'
3636
| 'metall2-sepolia'
37+
| 'soneium'
38+
| 'soneium-minato'
3739

3840
const l2Chains = [
3941
'optimism',
@@ -47,7 +49,9 @@ const l2Chains = [
4749
'lisk-sepolia',
4850
'redstone',
4951
'metall2',
50-
'metall2-sepolia'
52+
'metall2-sepolia',
53+
'soneium',
54+
'soneium-minato'
5155
] as const
5256
export type L2Chain = typeof l2Chains[number]
5357

0 commit comments

Comments
 (0)