Skip to content

Commit 18a482b

Browse files
authored
feat: add GIWA Sepolia chain definition (#3984)
1 parent 1e791ad commit 18a482b

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

.changeset/kind-lands-know.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 GIWA Sepolia chain.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import { chainConfig } from '../../op-stack/chainConfig.js'
2+
import { defineChain } from '../../utils/chain/defineChain.js'
3+
4+
const sourceId = 11_155_111 // sepolia
5+
6+
export const giwaSepolia = /*#__PURE__*/ defineChain({
7+
...chainConfig,
8+
id: 91342,
9+
network: 'giwa-sepolia',
10+
name: 'GIWA Sepolia',
11+
nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },
12+
blockTime: 1_000,
13+
rpcUrls: {
14+
default: {
15+
http: ['https://sepolia-rpc.giwa.io'],
16+
},
17+
},
18+
blockExplorers: {
19+
default: {
20+
name: 'Blockscout',
21+
url: 'https://sepolia-explorer.giwa.io',
22+
apiUrl: 'https://sepolia-explorer.giwa.io/api',
23+
},
24+
},
25+
contracts: {
26+
...chainConfig.contracts,
27+
multicall3: {
28+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
29+
blockCreated: 0,
30+
},
31+
disputeGameFactory: {
32+
[sourceId]: {
33+
address: '0x37347caB2afaa49B776372279143D71ad1f354F6',
34+
},
35+
},
36+
portal: {
37+
[sourceId]: {
38+
address: '0x956962C34687A954e611A83619ABaA37Ce6bC78A',
39+
},
40+
},
41+
l1StandardBridge: {
42+
[sourceId]: {
43+
address: '0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7',
44+
},
45+
},
46+
},
47+
testnet: true,
48+
sourceId,
49+
})

src/chains/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ export { fusionTestnet } from './definitions/fusionTestnet.js'
220220
export { garnet } from './definitions/garnet.js'
221221
export { geist } from './definitions/geist.js'
222222
export { genesys } from './definitions/genesys.js'
223+
export { giwaSepolia } from './definitions/giwaSepolia.js'
223224
export { glideL1Protocol } from './definitions/glideL1Protocol.js'
224225
export { glideL2Protocol } from './definitions/glideL2Protocol.js'
225226
export { gnosis } from './definitions/gnosis.js'

0 commit comments

Comments
 (0)