@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.
Files changed (55) hide show
  1. package/_cjs/chain/definitions/soneium.js +59 -0
  2. package/_cjs/chain/definitions/soneium.js.map +1 -0
  3. package/_cjs/chain/definitions/sonic.js +78 -0
  4. package/_cjs/chain/definitions/sonic.js.map +1 -0
  5. package/_cjs/chain/definitions/taiko.js +99 -0
  6. package/_cjs/chain/definitions/taiko.js.map +1 -0
  7. package/_cjs/chain/index.js +17 -1
  8. package/_cjs/chain/index.js.map +1 -1
  9. package/_cjs/chain/viemChains/soneium.js +55 -0
  10. package/_cjs/chain/viemChains/soneium.js.map +1 -0
  11. package/_cjs/chain/viemChains/sonic.js +30 -0
  12. package/_cjs/chain/viemChains/sonic.js.map +1 -0
  13. package/_cjs/index.js +15 -3
  14. package/_cjs/index.js.map +1 -1
  15. package/_esm/chain/definitions/soneium.js +54 -0
  16. package/_esm/chain/definitions/soneium.js.map +1 -0
  17. package/_esm/chain/definitions/sonic.js +73 -0
  18. package/_esm/chain/definitions/sonic.js.map +1 -0
  19. package/_esm/chain/definitions/taiko.js +106 -0
  20. package/_esm/chain/definitions/taiko.js.map +1 -0
  21. package/_esm/chain/index.js +3 -0
  22. package/_esm/chain/index.js.map +1 -1
  23. package/_esm/chain/viemChains/soneium.js +52 -0
  24. package/_esm/chain/viemChains/soneium.js.map +1 -0
  25. package/_esm/chain/viemChains/sonic.js +27 -0
  26. package/_esm/chain/viemChains/sonic.js.map +1 -0
  27. package/_esm/index.js +1 -1
  28. package/_esm/index.js.map +1 -1
  29. package/_types/chain/definitions/soneium.d.ts +16 -0
  30. package/_types/chain/definitions/soneium.d.ts.map +1 -0
  31. package/_types/chain/definitions/sonic.d.ts +18 -0
  32. package/_types/chain/definitions/sonic.d.ts.map +1 -0
  33. package/_types/chain/definitions/taiko.d.ts +18 -0
  34. package/_types/chain/definitions/taiko.d.ts.map +1 -0
  35. package/_types/chain/index.d.ts +3 -0
  36. package/_types/chain/index.d.ts.map +1 -1
  37. package/_types/chain/viemChains/soneium.d.ts +306 -0
  38. package/_types/chain/viemChains/soneium.d.ts.map +1 -0
  39. package/_types/chain/viemChains/sonic.d.ts +33 -0
  40. package/_types/chain/viemChains/sonic.d.ts.map +1 -0
  41. package/_types/index.d.ts +1 -1
  42. package/_types/index.d.ts.map +1 -1
  43. package/chain/definitions/soneium.ts +73 -0
  44. package/chain/definitions/sonic.ts +96 -0
  45. package/chain/definitions/taiko.ts +129 -0
  46. package/chain/index.ts +18 -0
  47. package/chain/viemChains/soneium.ts +53 -0
  48. package/chain/viemChains/sonic.ts +27 -0
  49. package/index.ts +12 -0
  50. package/package.json +1 -1
  51. package/.DS_Store +0 -0
  52. package/analyzer/.DS_Store +0 -0
  53. package/chain/.DS_Store +0 -0
  54. package/client/.DS_Store +0 -0
  55. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xtorch/evm",
3
- "version": "0.0.124",
3
+ "version": "0.0.126",
4
4
  "description": "Cryptorch EVM extension",
5
5
  "keywords": [
6
6
  "cryptorch",
package/.DS_Store DELETED
Binary file
Binary file
package/chain/.DS_Store DELETED
Binary file
package/client/.DS_Store DELETED
Binary file
Binary file