@0xtorch/evm 0.0.124 → 0.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/chain/definitions/soneium.js +59 -0
- package/_cjs/chain/definitions/soneium.js.map +1 -0
- package/_cjs/chain/definitions/sonic.js +78 -0
- package/_cjs/chain/definitions/sonic.js.map +1 -0
- package/_cjs/chain/definitions/taiko.js +99 -0
- package/_cjs/chain/definitions/taiko.js.map +1 -0
- package/_cjs/chain/index.js +17 -1
- package/_cjs/chain/index.js.map +1 -1
- package/_cjs/chain/viemChains/soneium.js +55 -0
- package/_cjs/chain/viemChains/soneium.js.map +1 -0
- package/_cjs/chain/viemChains/sonic.js +30 -0
- package/_cjs/chain/viemChains/sonic.js.map +1 -0
- package/_cjs/index.js +15 -3
- package/_cjs/index.js.map +1 -1
- package/_esm/chain/definitions/soneium.js +54 -0
- package/_esm/chain/definitions/soneium.js.map +1 -0
- package/_esm/chain/definitions/sonic.js +73 -0
- package/_esm/chain/definitions/sonic.js.map +1 -0
- package/_esm/chain/definitions/taiko.js +106 -0
- package/_esm/chain/definitions/taiko.js.map +1 -0
- package/_esm/chain/index.js +3 -0
- package/_esm/chain/index.js.map +1 -1
- package/_esm/chain/viemChains/soneium.js +52 -0
- package/_esm/chain/viemChains/soneium.js.map +1 -0
- package/_esm/chain/viemChains/sonic.js +27 -0
- package/_esm/chain/viemChains/sonic.js.map +1 -0
- package/_esm/index.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_types/chain/definitions/soneium.d.ts +16 -0
- package/_types/chain/definitions/soneium.d.ts.map +1 -0
- package/_types/chain/definitions/sonic.d.ts +18 -0
- package/_types/chain/definitions/sonic.d.ts.map +1 -0
- package/_types/chain/definitions/taiko.d.ts +18 -0
- package/_types/chain/definitions/taiko.d.ts.map +1 -0
- package/_types/chain/index.d.ts +3 -0
- package/_types/chain/index.d.ts.map +1 -1
- package/_types/chain/viemChains/soneium.d.ts +306 -0
- package/_types/chain/viemChains/soneium.d.ts.map +1 -0
- package/_types/chain/viemChains/sonic.d.ts +33 -0
- package/_types/chain/viemChains/sonic.d.ts.map +1 -0
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/chain/definitions/soneium.ts +73 -0
- package/chain/definitions/sonic.ts +96 -0
- package/chain/definitions/taiko.ts +129 -0
- package/chain/index.ts +18 -0
- package/chain/viemChains/soneium.ts +53 -0
- package/chain/viemChains/sonic.ts +27 -0
- package/index.ts +12 -0
- package/package.json +1 -1
- package/.DS_Store +0 -0
- package/analyzer/.DS_Store +0 -0
- package/chain/.DS_Store +0 -0
- package/client/.DS_Store +0 -0
- package/explorer/.DS_Store +0 -0
package/chain/index.ts
CHANGED
|
@@ -178,6 +178,24 @@ export {
|
|
|
178
178
|
scrollHttpRpcs,
|
|
179
179
|
scrollWebsocketRpcUrls,
|
|
180
180
|
} from './definitions/scroll'
|
|
181
|
+
export {
|
|
182
|
+
createSoneiumChain,
|
|
183
|
+
createSoneiumChainCustom,
|
|
184
|
+
soneiumHttpRpcs,
|
|
185
|
+
soneiumWebsocketRpcUrls,
|
|
186
|
+
} from './definitions/soneium'
|
|
187
|
+
export {
|
|
188
|
+
createSonicChain,
|
|
189
|
+
createSonicChainCustom,
|
|
190
|
+
sonicHttpRpcs,
|
|
191
|
+
sonicWebsocketRpcUrls,
|
|
192
|
+
} from './definitions/sonic'
|
|
193
|
+
export {
|
|
194
|
+
createTaikoChain,
|
|
195
|
+
createTaikoChainCustom,
|
|
196
|
+
taikoHttpRpcs,
|
|
197
|
+
taikoWebsocketRpcUrls,
|
|
198
|
+
} from './definitions/taiko'
|
|
181
199
|
export {
|
|
182
200
|
createTcgVerseChain,
|
|
183
201
|
createTcgVerseChainCustom,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineChain } from 'viem'
|
|
2
|
+
import { chainConfig } from 'viem/op-stack'
|
|
3
|
+
|
|
4
|
+
const sourceId = 1 // mainnet
|
|
5
|
+
|
|
6
|
+
export const soneium = /*#__PURE__*/ defineChain({
|
|
7
|
+
...chainConfig,
|
|
8
|
+
id: 1868,
|
|
9
|
+
name: 'Soneium Mainnet',
|
|
10
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
11
|
+
rpcUrls: {
|
|
12
|
+
default: {
|
|
13
|
+
http: ['https://rpc.soneium.org'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
blockExplorers: {
|
|
17
|
+
default: {
|
|
18
|
+
name: 'Blockscout',
|
|
19
|
+
url: 'https://soneium.blockscout.com',
|
|
20
|
+
apiUrl: 'https://soneium.blockscout.com/api',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
contracts: {
|
|
24
|
+
...chainConfig.contracts,
|
|
25
|
+
disputeGameFactory: {
|
|
26
|
+
[sourceId]: {
|
|
27
|
+
address: '0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
l2OutputOracle: {
|
|
31
|
+
[sourceId]: {
|
|
32
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
portal: {
|
|
36
|
+
[sourceId]: {
|
|
37
|
+
address: '0x88e529a6ccd302c948689cd5156c83d4614fae92',
|
|
38
|
+
blockCreated: 7061266,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
l1StandardBridge: {
|
|
42
|
+
[sourceId]: {
|
|
43
|
+
address: '0xeb9bf100225c214efc3e7c651ebbadcf85177607',
|
|
44
|
+
blockCreated: 7061266,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
multicall3: {
|
|
48
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
49
|
+
blockCreated: 1,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
sourceId,
|
|
53
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineChain } from 'viem'
|
|
2
|
+
|
|
3
|
+
export const sonic = /*#__PURE__*/ defineChain({
|
|
4
|
+
id: 146,
|
|
5
|
+
name: 'Sonic',
|
|
6
|
+
nativeCurrency: {
|
|
7
|
+
decimals: 18,
|
|
8
|
+
name: 'Sonic',
|
|
9
|
+
symbol: 'S',
|
|
10
|
+
},
|
|
11
|
+
rpcUrls: {
|
|
12
|
+
default: { http: ['https://rpc.soniclabs.com'] },
|
|
13
|
+
},
|
|
14
|
+
blockExplorers: {
|
|
15
|
+
default: {
|
|
16
|
+
name: 'Sonic Explorer',
|
|
17
|
+
url: 'https://sonicscan.org/',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
contracts: {
|
|
21
|
+
multicall3: {
|
|
22
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
23
|
+
blockCreated: 60,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
testnet: false,
|
|
27
|
+
})
|
package/index.ts
CHANGED
|
@@ -76,6 +76,12 @@ export {
|
|
|
76
76
|
createSaakuruChainCustom,
|
|
77
77
|
createScrollChain,
|
|
78
78
|
createScrollChainCustom,
|
|
79
|
+
createSoneiumChain,
|
|
80
|
+
createSoneiumChainCustom,
|
|
81
|
+
createSonicChain,
|
|
82
|
+
createSonicChainCustom,
|
|
83
|
+
createTaikoChain,
|
|
84
|
+
createTaikoChainCustom,
|
|
79
85
|
createTcgVerseChain,
|
|
80
86
|
createTcgVerseChainCustom,
|
|
81
87
|
createYooldoVerseChain,
|
|
@@ -130,6 +136,12 @@ export {
|
|
|
130
136
|
saakuruWebsocketRpcUrls,
|
|
131
137
|
scrollHttpRpcs,
|
|
132
138
|
scrollWebsocketRpcUrls,
|
|
139
|
+
soneiumHttpRpcs,
|
|
140
|
+
soneiumWebsocketRpcUrls,
|
|
141
|
+
sonicHttpRpcs,
|
|
142
|
+
sonicWebsocketRpcUrls,
|
|
143
|
+
taikoHttpRpcs,
|
|
144
|
+
taikoWebsocketRpcUrls,
|
|
133
145
|
tcgVerseHttpRpcs,
|
|
134
146
|
tcgVerseWebsocketRpcUrls,
|
|
135
147
|
yooldoVerseHttpRpcs,
|
package/package.json
CHANGED
package/.DS_Store
DELETED
|
Binary file
|
package/analyzer/.DS_Store
DELETED
|
Binary file
|
package/chain/.DS_Store
DELETED
|
Binary file
|
package/client/.DS_Store
DELETED
|
Binary file
|
package/explorer/.DS_Store
DELETED
|
Binary file
|