Skip to content

Commit 5531c78

Browse files
feat(chains): add OP Stack config to Whitechain Sepolia (#5055)
Co-authored-by: Oleksandr Ursol <oleksandr.ursol@createglobal.pro>
1 parent 3dd157b commit 5531c78

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

.changeset/khaki-pillows-tickle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Added OP Stack configuration to the Whitechain Sepolia chain.

src/chains/definitions/whitechainSepolia.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1+
import { chainConfig } from '../../op-stack/chainConfig.js'
12
import { defineChain } from '../../utils/chain/defineChain.js'
23

4+
const sourceId = 11_155_111 // sepolia
5+
36
export const whitechainSepolia = /*#__PURE__*/ defineChain({
4-
testnet: true,
7+
...chainConfig,
58
id: 1874,
69
name: 'Whitechain Sepolia',
710
nativeCurrency: {
811
decimals: 18,
912
name: 'WBT',
1013
symbol: 'WBT',
1114
},
15+
blockTime: 1_000,
1216
rpcUrls: {
1317
default: {
1418
http: ['https://rpc.testnet.whitechain.io'],
19+
webSocket: ['wss://rpc.testnet.whitechain.io/ws'],
1520
},
1621
},
1722
blockExplorers: {
@@ -21,8 +26,28 @@ export const whitechainSepolia = /*#__PURE__*/ defineChain({
2126
},
2227
},
2328
contracts: {
29+
...chainConfig.contracts,
2430
multicall3: {
2531
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
2632
},
33+
disputeGameFactory: {
34+
[sourceId]: {
35+
address: '0xfaa2fAA8912C069c01abc169c33713c79027c833',
36+
},
37+
},
38+
portal: {
39+
[sourceId]: {
40+
address: '0xFF9b597b0781457ae6aa7256Ca5ed5839bF7D0C3',
41+
blockCreated: 11071328,
42+
},
43+
},
44+
l1StandardBridge: {
45+
[sourceId]: {
46+
address: '0x0c50bE539AB5D72d226038928F2eB25100899DED',
47+
blockCreated: 11071328,
48+
},
49+
},
2750
},
51+
testnet: true,
52+
sourceId,
2853
})

0 commit comments

Comments
 (0)