@0xtorch/evm 0.0.148 → 0.0.150

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 (175) hide show
  1. package/_cjs/chain/definitions/abstract.js +63 -0
  2. package/_cjs/chain/definitions/abstract.js.map +1 -0
  3. package/_cjs/chain/definitions/apeChain.js +61 -0
  4. package/_cjs/chain/definitions/apeChain.js.map +1 -0
  5. package/_cjs/chain/definitions/arbitrumNova.js +83 -0
  6. package/_cjs/chain/definitions/arbitrumNova.js.map +1 -0
  7. package/_cjs/chain/definitions/bitTorrent.js +68 -0
  8. package/_cjs/chain/definitions/bitTorrent.js.map +1 -0
  9. package/_cjs/chain/definitions/celo.js +81 -0
  10. package/_cjs/chain/definitions/celo.js.map +1 -0
  11. package/_cjs/chain/definitions/fraxtal.js +71 -0
  12. package/_cjs/chain/definitions/fraxtal.js.map +1 -0
  13. package/_cjs/chain/definitions/gnosis.js +87 -0
  14. package/_cjs/chain/definitions/gnosis.js.map +1 -0
  15. package/_cjs/chain/definitions/hyperEvm.js +73 -0
  16. package/_cjs/chain/definitions/hyperEvm.js.map +1 -0
  17. package/_cjs/chain/definitions/immutableZkEvm.js +66 -0
  18. package/_cjs/chain/definitions/immutableZkEvm.js.map +1 -0
  19. package/_cjs/chain/definitions/katana.js +51 -0
  20. package/_cjs/chain/definitions/katana.js.map +1 -0
  21. package/_cjs/chain/definitions/memeCore.js +56 -0
  22. package/_cjs/chain/definitions/memeCore.js.map +1 -0
  23. package/_cjs/chain/definitions/sei.js +63 -0
  24. package/_cjs/chain/definitions/sei.js.map +1 -0
  25. package/_cjs/chain/definitions/soneium.js +2 -2
  26. package/_cjs/chain/definitions/soneium.js.map +1 -1
  27. package/_cjs/chain/definitions/sonic.js +2 -2
  28. package/_cjs/chain/definitions/sonic.js.map +1 -1
  29. package/_cjs/chain/definitions/sophon.js +61 -0
  30. package/_cjs/chain/definitions/sophon.js.map +1 -0
  31. package/_cjs/chain/definitions/swell.js +53 -0
  32. package/_cjs/chain/definitions/swell.js.map +1 -0
  33. package/_cjs/chain/definitions/worldChain.js +71 -0
  34. package/_cjs/chain/definitions/worldChain.js.map +1 -0
  35. package/_cjs/chain/definitions/xdcNetwork.js +102 -0
  36. package/_cjs/chain/definitions/xdcNetwork.js.map +1 -0
  37. package/_cjs/chain/index.js +85 -4
  38. package/_cjs/chain/index.js.map +1 -1
  39. package/_cjs/chain/viemChains/hyperEvm.js +31 -0
  40. package/_cjs/chain/viemChains/hyperEvm.js.map +1 -0
  41. package/_cjs/index.js +70 -5
  42. package/_cjs/index.js.map +1 -1
  43. package/_esm/chain/definitions/abstract.js +58 -0
  44. package/_esm/chain/definitions/abstract.js.map +1 -0
  45. package/_esm/chain/definitions/apeChain.js +56 -0
  46. package/_esm/chain/definitions/apeChain.js.map +1 -0
  47. package/_esm/chain/definitions/arbitrumNova.js +78 -0
  48. package/_esm/chain/definitions/arbitrumNova.js.map +1 -0
  49. package/_esm/chain/definitions/bitTorrent.js +63 -0
  50. package/_esm/chain/definitions/bitTorrent.js.map +1 -0
  51. package/_esm/chain/definitions/celo.js +76 -0
  52. package/_esm/chain/definitions/celo.js.map +1 -0
  53. package/_esm/chain/definitions/fraxtal.js +66 -0
  54. package/_esm/chain/definitions/fraxtal.js.map +1 -0
  55. package/_esm/chain/definitions/gnosis.js +124 -0
  56. package/_esm/chain/definitions/gnosis.js.map +1 -0
  57. package/_esm/chain/definitions/hyperEvm.js +68 -0
  58. package/_esm/chain/definitions/hyperEvm.js.map +1 -0
  59. package/_esm/chain/definitions/immutableZkEvm.js +61 -0
  60. package/_esm/chain/definitions/immutableZkEvm.js.map +1 -0
  61. package/_esm/chain/definitions/katana.js +46 -0
  62. package/_esm/chain/definitions/katana.js.map +1 -0
  63. package/_esm/chain/definitions/memeCore.js +51 -0
  64. package/_esm/chain/definitions/memeCore.js.map +1 -0
  65. package/_esm/chain/definitions/sei.js +88 -0
  66. package/_esm/chain/definitions/sei.js.map +1 -0
  67. package/_esm/chain/definitions/soneium.js +1 -1
  68. package/_esm/chain/definitions/soneium.js.map +1 -1
  69. package/_esm/chain/definitions/sonic.js +1 -1
  70. package/_esm/chain/definitions/sonic.js.map +1 -1
  71. package/_esm/chain/definitions/sophon.js +56 -0
  72. package/_esm/chain/definitions/sophon.js.map +1 -0
  73. package/_esm/chain/definitions/swell.js +48 -0
  74. package/_esm/chain/definitions/swell.js.map +1 -0
  75. package/_esm/chain/definitions/worldChain.js +66 -0
  76. package/_esm/chain/definitions/worldChain.js.map +1 -0
  77. package/_esm/chain/definitions/xdcNetwork.js +97 -0
  78. package/_esm/chain/definitions/xdcNetwork.js.map +1 -0
  79. package/_esm/chain/index.js +16 -0
  80. package/_esm/chain/index.js.map +1 -1
  81. package/_esm/chain/viemChains/hyperEvm.js +28 -0
  82. package/_esm/chain/viemChains/hyperEvm.js.map +1 -0
  83. package/_esm/index.js +1 -1
  84. package/_esm/index.js.map +1 -1
  85. package/_types/chain/definitions/abstract.d.ts +18 -0
  86. package/_types/chain/definitions/abstract.d.ts.map +1 -0
  87. package/_types/chain/definitions/apeChain.d.ts +18 -0
  88. package/_types/chain/definitions/apeChain.d.ts.map +1 -0
  89. package/_types/chain/definitions/arbitrumNova.d.ts +18 -0
  90. package/_types/chain/definitions/arbitrumNova.d.ts.map +1 -0
  91. package/_types/chain/definitions/bitTorrent.d.ts +18 -0
  92. package/_types/chain/definitions/bitTorrent.d.ts.map +1 -0
  93. package/_types/chain/definitions/celo.d.ts +18 -0
  94. package/_types/chain/definitions/celo.d.ts.map +1 -0
  95. package/_types/chain/definitions/fraxtal.d.ts +18 -0
  96. package/_types/chain/definitions/fraxtal.d.ts.map +1 -0
  97. package/_types/chain/definitions/gnosis.d.ts +18 -0
  98. package/_types/chain/definitions/gnosis.d.ts.map +1 -0
  99. package/_types/chain/definitions/hyperEvm.d.ts +18 -0
  100. package/_types/chain/definitions/hyperEvm.d.ts.map +1 -0
  101. package/_types/chain/definitions/immutableZkEvm.d.ts +18 -0
  102. package/_types/chain/definitions/immutableZkEvm.d.ts.map +1 -0
  103. package/_types/chain/definitions/katana.d.ts +18 -0
  104. package/_types/chain/definitions/katana.d.ts.map +1 -0
  105. package/_types/chain/definitions/memeCore.d.ts +18 -0
  106. package/_types/chain/definitions/memeCore.d.ts.map +1 -0
  107. package/_types/chain/definitions/sei.d.ts +18 -0
  108. package/_types/chain/definitions/sei.d.ts.map +1 -0
  109. package/_types/chain/definitions/soneium.d.ts.map +1 -1
  110. package/_types/chain/definitions/sonic.d.ts.map +1 -1
  111. package/_types/chain/definitions/sophon.d.ts +18 -0
  112. package/_types/chain/definitions/sophon.d.ts.map +1 -0
  113. package/_types/chain/definitions/swell.d.ts +18 -0
  114. package/_types/chain/definitions/swell.d.ts.map +1 -0
  115. package/_types/chain/definitions/worldChain.d.ts +18 -0
  116. package/_types/chain/definitions/worldChain.d.ts.map +1 -0
  117. package/_types/chain/definitions/xdcNetwork.d.ts +18 -0
  118. package/_types/chain/definitions/xdcNetwork.d.ts.map +1 -0
  119. package/_types/chain/index.d.ts +16 -0
  120. package/_types/chain/index.d.ts.map +1 -1
  121. package/_types/chain/viemChains/chainVerse.d.ts +1 -0
  122. package/_types/chain/viemChains/chainVerse.d.ts.map +1 -1
  123. package/_types/chain/viemChains/defiVerse.d.ts +1 -0
  124. package/_types/chain/viemChains/defiVerse.d.ts.map +1 -1
  125. package/_types/chain/viemChains/geekVerse.d.ts +1 -0
  126. package/_types/chain/viemChains/geekVerse.d.ts.map +1 -1
  127. package/_types/chain/viemChains/gesoVerse.d.ts +1 -0
  128. package/_types/chain/viemChains/gesoVerse.d.ts.map +1 -1
  129. package/_types/chain/viemChains/homeVerse.d.ts +1 -0
  130. package/_types/chain/viemChains/homeVerse.d.ts.map +1 -1
  131. package/_types/chain/viemChains/{soneium.d.ts → hyperEvm.d.ts} +16 -37
  132. package/_types/chain/viemChains/hyperEvm.d.ts.map +1 -0
  133. package/_types/chain/viemChains/mchVerse.d.ts +1 -0
  134. package/_types/chain/viemChains/mchVerse.d.ts.map +1 -1
  135. package/_types/chain/viemChains/saakuru.d.ts +1 -0
  136. package/_types/chain/viemChains/saakuru.d.ts.map +1 -1
  137. package/_types/chain/viemChains/tcgVerse.d.ts +1 -0
  138. package/_types/chain/viemChains/tcgVerse.d.ts.map +1 -1
  139. package/_types/index.d.ts +1 -1
  140. package/_types/index.d.ts.map +1 -1
  141. package/chain/definitions/abstract.ts +82 -0
  142. package/chain/definitions/apeChain.ts +80 -0
  143. package/chain/definitions/arbitrumNova.ts +102 -0
  144. package/chain/definitions/bitTorrent.ts +87 -0
  145. package/chain/definitions/celo.ts +100 -0
  146. package/chain/definitions/fraxtal.ts +90 -0
  147. package/chain/definitions/gnosis.ts +148 -0
  148. package/chain/definitions/hyperEvm.ts +92 -0
  149. package/chain/definitions/immutableZkEvm.ts +83 -0
  150. package/chain/definitions/katana.ts +70 -0
  151. package/chain/definitions/memeCore.ts +75 -0
  152. package/chain/definitions/sei.ts +112 -0
  153. package/chain/definitions/soneium.ts +1 -1
  154. package/chain/definitions/sonic.ts +1 -1
  155. package/chain/definitions/sophon.ts +80 -0
  156. package/chain/definitions/swell.ts +72 -0
  157. package/chain/definitions/worldChain.ts +90 -0
  158. package/chain/definitions/xdcNetwork.ts +121 -0
  159. package/chain/index.ts +96 -0
  160. package/chain/viemChains/hyperEvm.ts +28 -0
  161. package/index.ts +64 -0
  162. package/package.json +3 -3
  163. package/_cjs/chain/viemChains/soneium.js +0 -55
  164. package/_cjs/chain/viemChains/soneium.js.map +0 -1
  165. package/_cjs/chain/viemChains/sonic.js +0 -30
  166. package/_cjs/chain/viemChains/sonic.js.map +0 -1
  167. package/_esm/chain/viemChains/soneium.js +0 -52
  168. package/_esm/chain/viemChains/soneium.js.map +0 -1
  169. package/_esm/chain/viemChains/sonic.js +0 -27
  170. package/_esm/chain/viemChains/sonic.js.map +0 -1
  171. package/_types/chain/viemChains/soneium.d.ts.map +0 -1
  172. package/_types/chain/viemChains/sonic.d.ts +0 -35
  173. package/_types/chain/viemChains/sonic.d.ts.map +0 -1
  174. package/chain/viemChains/soneium.ts +0 -53
  175. package/chain/viemChains/sonic.ts +0 -27
@@ -0,0 +1,90 @@
1
+ import { fraxtal } from 'viem/chains'
2
+ import type { Client } from '../../client'
3
+ import { createClient } from '../../client'
4
+ import type { Explorer } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
+ import type { Chain } from '../types/chain'
7
+ import type { HttpRpc } from '../types/rpc'
8
+
9
+ export const createFraxtalChain = ({
10
+ explorerApiKey: apiKey,
11
+ explorerProxyUrl: proxyUrl,
12
+ explorerPageSize: pageSize,
13
+ }: {
14
+ explorerApiKey?: string
15
+ explorerProxyUrl?: string
16
+ explorerPageSize?: number
17
+ }): Chain =>
18
+ createFraxtalChainCustom({
19
+ client: createClient({
20
+ chain: fraxtal,
21
+ httpRpcs: fraxtalHttpRpcs,
22
+ }),
23
+ explorer: createEtherscanV2({
24
+ name: 'Fraxscan',
25
+ baseUrl: 'https://fraxscan.com',
26
+ chainId: 252,
27
+ apiKey,
28
+ proxyUrl,
29
+ pageSize,
30
+ }),
31
+ })
32
+
33
+ type CreateFraxtalChainCustomParameters = {
34
+ client: Client
35
+ explorer: Explorer
36
+ }
37
+
38
+ export const createFraxtalChainCustom = ({
39
+ client,
40
+ explorer,
41
+ }: CreateFraxtalChainCustomParameters): Chain => ({
42
+ id: 252,
43
+ network: 'fraxtal',
44
+ name: 'Fraxtal',
45
+ nativeToken: {
46
+ name: 'Frax',
47
+ symbol: 'FRAX',
48
+ decimals: 18,
49
+ currency: {
50
+ symbol: 'FRAX',
51
+ type: 'CryptoCurrency',
52
+ id: 'frax-share',
53
+ name: 'Frax',
54
+ updatedAt: 0,
55
+ },
56
+ },
57
+ wrappedTokenAddresses: new Set([
58
+ '0xfc00000000000000000000000000000000000002',
59
+ ]),
60
+ explorer,
61
+ client,
62
+ blockTime: 2000,
63
+ coingeckoId: 'fraxtal',
64
+ defillamaId: undefined,
65
+ })
66
+
67
+ export const fraxtalHttpRpcs: HttpRpc[] = [
68
+ {
69
+ url: 'https://rpc.frax.com',
70
+ getLogsIsUsable: true,
71
+ getLogsMaxBlockRange: 10_000n,
72
+ },
73
+ {
74
+ url: 'https://fraxtal.drpc.org',
75
+ getLogsIsUsable: true,
76
+ getLogsMaxBlockRange: 10_000n,
77
+ },
78
+ {
79
+ url: 'https://fraxtal.gateway.tenderly.co',
80
+ getLogsIsUsable: true,
81
+ getLogsMaxBlockRange: 10_000n,
82
+ },
83
+ {
84
+ url: 'https://fraxtal.rpc.grove.city/v1/01fdb492',
85
+ getLogsIsUsable: true,
86
+ getLogsMaxBlockRange: 10_000n,
87
+ },
88
+ ]
89
+
90
+ export const fraxtalWebsocketRpcUrls: string[] = ['wss://fraxtal.drpc.org']
@@ -0,0 +1,148 @@
1
+ import { gnosis } from 'viem/chains'
2
+ import type { Client } from '../../client'
3
+ import { createClient } from '../../client'
4
+ import type { Explorer } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
+ import type { Chain } from '../types/chain'
7
+ import type { HttpRpc } from '../types/rpc'
8
+
9
+ export const createGnosisChain = ({
10
+ explorerApiKey: apiKey,
11
+ explorerProxyUrl: proxyUrl,
12
+ explorerPageSize: pageSize,
13
+ }: {
14
+ explorerApiKey?: string
15
+ explorerProxyUrl?: string
16
+ explorerPageSize?: number
17
+ }): Chain =>
18
+ createGnosisChainCustom({
19
+ client: createClient({ chain: gnosis, httpRpcs: gnosisHttpRpcs }),
20
+ explorer: createEtherscanV2({
21
+ name: 'GnosisScan',
22
+ baseUrl: 'https://gnosisscan.io',
23
+ chainId: 100,
24
+ apiKey,
25
+ proxyUrl,
26
+ pageSize,
27
+ }),
28
+ })
29
+
30
+ type CreateGnosisChainCustomParameters = {
31
+ client: Client
32
+ explorer: Explorer
33
+ }
34
+
35
+ export const createGnosisChainCustom = ({
36
+ client,
37
+ explorer,
38
+ }: CreateGnosisChainCustomParameters): Chain => ({
39
+ id: 100,
40
+ network: 'gnosis',
41
+ name: 'Gnosis',
42
+ nativeToken: {
43
+ name: 'Dai',
44
+ symbol: 'DAI',
45
+ decimals: 18,
46
+ currency: {
47
+ symbol: 'DAI',
48
+ type: 'CryptoCurrency',
49
+ id: 'dai',
50
+ name: 'Dai',
51
+ updatedAt: 0,
52
+ },
53
+ },
54
+ wrappedTokenAddresses: new Set([
55
+ '0xe91d153e0b41518a2ce8dd3d7944fa863463a97d',
56
+ ]),
57
+ explorer,
58
+ client,
59
+ blockTime: 5000,
60
+ coingeckoId: 'xdai',
61
+ defillamaId: undefined,
62
+ })
63
+
64
+ export const gnosisHttpRpcs: HttpRpc[] = [
65
+ {
66
+ url: 'https://rpc.gnosischain.com',
67
+ getLogsIsUsable: true,
68
+ getLogsMaxBlockRange: 10_000n,
69
+ },
70
+ // Not archive node
71
+ // {
72
+ // url: 'https://gnosis-public.nodies.app',
73
+ // getLogsIsUsable: true,
74
+ // getLogsMaxBlockRange: 10_000n,
75
+ // },
76
+ {
77
+ url: 'https://rpc.gnosis.gateway.fm',
78
+ getLogsIsUsable: true,
79
+ getLogsMaxBlockRange: 10_000n,
80
+ },
81
+ {
82
+ url: 'https://gnosis-mainnet.public.blastapi.io',
83
+ getLogsIsUsable: false,
84
+ getLogsMaxBlockRange: 0n,
85
+ },
86
+ // Not archive node
87
+ // {
88
+ // url: 'https://rpc.ap-southeast-1.gateway.fm/v4/gnosis/non-archival/mainnet',
89
+ // getLogsIsUsable: true,
90
+ // getLogsMaxBlockRange: 10_000n,
91
+ // },
92
+ {
93
+ url: 'https://gnosis.api.onfinality.io/public',
94
+ getLogsIsUsable: false,
95
+ getLogsMaxBlockRange: 0n,
96
+ },
97
+ // Not archive node
98
+ // {
99
+ // url: 'https://gnosis.drpc.org',
100
+ // getLogsIsUsable: true,
101
+ // getLogsMaxBlockRange: 10_000n,
102
+ // },
103
+ // Not archive node
104
+ // {
105
+ // url: 'https://endpoints.omniatech.io/v1/gnosis/mainnet/public',
106
+ // getLogsIsUsable: true,
107
+ // getLogsMaxBlockRange: 10_000n,
108
+ // },
109
+ // Not archive node
110
+ // {
111
+ // url: 'https://gnosis-rpc.publicnode.com',
112
+ // getLogsIsUsable: true,
113
+ // getLogsMaxBlockRange: 10_000n,
114
+ // },
115
+ {
116
+ url: 'https://1rpc.io/gnosis',
117
+ getLogsIsUsable: true,
118
+ getLogsMaxBlockRange: 10_000n,
119
+ },
120
+ {
121
+ url: 'https://gno-mainnet.gateway.tatum.io',
122
+ getLogsIsUsable: true,
123
+ getLogsMaxBlockRange: 10_000n,
124
+ },
125
+ // Not archive node
126
+ // {
127
+ // url: 'https://0xrpc.io/gno',
128
+ // getLogsIsUsable: true,
129
+ // getLogsMaxBlockRange: 10_000n,
130
+ // },
131
+ // Not archive node
132
+ // {
133
+ // url: 'https://gnosis.therpc.io',
134
+ // getLogsIsUsable: true,
135
+ // getLogsMaxBlockRange: 10_000n,
136
+ // },
137
+ {
138
+ url: 'https://gnosis.rpc.grove.city/v1/01fdb492',
139
+ getLogsIsUsable: true,
140
+ getLogsMaxBlockRange: 10_000n,
141
+ },
142
+ ]
143
+
144
+ export const gnosisWebsocketRpcUrls: string[] = [
145
+ 'wss://gnosis.drpc.org',
146
+ 'wss://gnosis-rpc.publicnode.com',
147
+ 'wss://0xrpc.io/gno',
148
+ ]
@@ -0,0 +1,92 @@
1
+ import type { Client } from '../../client'
2
+ import { createClient } from '../../client'
3
+ import type { Explorer } from '../../explorer'
4
+ import { createEtherscanV2 } from '../../explorer'
5
+ import type { Chain } from '../types/chain'
6
+ import type { HttpRpc } from '../types/rpc'
7
+ import { hyperEvm } from '../viemChains/hyperEvm'
8
+
9
+ export const createHyperEvmChain = ({
10
+ explorerApiKey: apiKey,
11
+ explorerProxyUrl: proxyUrl,
12
+ explorerPageSize: pageSize,
13
+ }: {
14
+ explorerApiKey?: string
15
+ explorerProxyUrl?: string
16
+ explorerPageSize?: number
17
+ }): Chain =>
18
+ createHyperEvmChainCustom({
19
+ client: createClient({ chain: hyperEvm, httpRpcs: hyperEvmHttpRpcs }),
20
+ explorer: createEtherscanV2({
21
+ name: 'HyperEVMScan',
22
+ baseUrl: 'https://hyperevmscan.io',
23
+ chainId: 999,
24
+ apiKey,
25
+ proxyUrl,
26
+ pageSize,
27
+ }),
28
+ })
29
+
30
+ type CreateHyperEvmChainCustomParameters = {
31
+ client: Client
32
+ explorer: Explorer
33
+ }
34
+
35
+ export const createHyperEvmChainCustom = ({
36
+ client,
37
+ explorer,
38
+ }: CreateHyperEvmChainCustomParameters): Chain => ({
39
+ id: 999,
40
+ network: 'hyper-evm',
41
+ name: 'HyperEVM',
42
+ nativeToken: {
43
+ name: 'Hyperliquid',
44
+ symbol: 'HYPE',
45
+ decimals: 18,
46
+ currency: {
47
+ symbol: 'HYPE',
48
+ type: 'CryptoCurrency',
49
+ id: 'hyperliquid',
50
+ name: 'Hyperliquid',
51
+ updatedAt: 0,
52
+ },
53
+ },
54
+ wrappedTokenAddresses: new Set([
55
+ '0x5555555555555555555555555555555555555555',
56
+ ]),
57
+ explorer,
58
+ client,
59
+ blockTime: 1000,
60
+ coingeckoId: 'hyperevm',
61
+ defillamaId: undefined,
62
+ })
63
+
64
+ export const hyperEvmHttpRpcs: HttpRpc[] = [
65
+ {
66
+ url: 'https://rpc.hyperliquid.xyz/evm',
67
+ getLogsIsUsable: true,
68
+ getLogsMaxBlockRange: 1000n,
69
+ },
70
+ {
71
+ url: 'https://rpc.hypurrscan.io',
72
+ getLogsIsUsable: true,
73
+ getLogsMaxBlockRange: 1000n,
74
+ },
75
+ {
76
+ url: 'https://hyperliquid-json-rpc.stakely.io',
77
+ getLogsIsUsable: true,
78
+ getLogsMaxBlockRange: 1000n,
79
+ },
80
+ {
81
+ url: 'https://hyperliquid.drpc.org',
82
+ getLogsIsUsable: true,
83
+ getLogsMaxBlockRange: 10_000n,
84
+ },
85
+ {
86
+ url: 'https://rpc.hyperlend.finance',
87
+ getLogsIsUsable: true,
88
+ getLogsMaxBlockRange: 10_000n,
89
+ },
90
+ ]
91
+
92
+ export const hyperEvmWebsocketRpcUrls: string[] = ['wss://hyperliquid.drpc.org']
@@ -0,0 +1,83 @@
1
+ import { immutableZkEvm } from 'viem/chains'
2
+ import type { Client } from '../../client'
3
+ import { createClient } from '../../client'
4
+ import type { Explorer } from '../../explorer'
5
+ import { createBlockscout } from '../../explorer'
6
+ import type { Chain } from '../types/chain'
7
+ import type { HttpRpc } from '../types/rpc'
8
+
9
+ export const createImmutableZkEvmChain = ({
10
+ explorerProxyUrl: proxyUrl,
11
+ }: {
12
+ explorerApiKey?: string
13
+ explorerProxyUrl?: string
14
+ explorerPageSize?: number
15
+ }): Chain =>
16
+ createImmutableZkEvmChainCustom({
17
+ client: createClient({
18
+ chain: immutableZkEvm,
19
+ httpRpcs: immutableZkEvmHttpRpcs,
20
+ }),
21
+ explorer: createBlockscout({
22
+ name: 'Immutable explorer',
23
+ baseUrl: 'https://explorer.immutable.com',
24
+ apiBaseUrl: 'https://explorer.immutable.com/api',
25
+ proxyUrl,
26
+ }),
27
+ })
28
+
29
+ type CreateImmutableZkEvmChainCustomParameters = {
30
+ client: Client
31
+ explorer: Explorer
32
+ }
33
+
34
+ export const createImmutableZkEvmChainCustom = ({
35
+ client,
36
+ explorer,
37
+ }: CreateImmutableZkEvmChainCustomParameters): Chain => ({
38
+ id: 13_371,
39
+ network: 'immutable-zk-evm',
40
+ name: 'Immutable zkEVM',
41
+ nativeToken: {
42
+ name: 'Immutable',
43
+ symbol: 'IMX',
44
+ decimals: 18,
45
+ currency: {
46
+ symbol: 'IMX',
47
+ type: 'CryptoCurrency',
48
+ id: 'immutable-x',
49
+ name: 'Immutable',
50
+ updatedAt: 0,
51
+ },
52
+ },
53
+ wrappedTokenAddresses: new Set([
54
+ '0x3a0c2ba54d6cbd3121f01b96dfd20e99d1696c9d',
55
+ ]),
56
+ explorer,
57
+ client,
58
+ blockTime: 2000,
59
+ coingeckoId: 'immutable',
60
+ defillamaId: undefined,
61
+ })
62
+
63
+ export const immutableZkEvmHttpRpcs: HttpRpc[] = [
64
+ {
65
+ url: 'https://rpc.immutable.com',
66
+ getLogsIsUsable: true,
67
+ getLogsMaxBlockRange: 5000n,
68
+ },
69
+ {
70
+ url: 'https://immutable-zkevm.drpc.org',
71
+ getLogsIsUsable: true,
72
+ getLogsMaxBlockRange: 10_000n,
73
+ },
74
+ {
75
+ url: 'https://immutable.gateway.tenderly.co',
76
+ getLogsIsUsable: true,
77
+ getLogsMaxBlockRange: 10_000n,
78
+ },
79
+ ]
80
+
81
+ export const immutableZkEvmWebsocketRpcUrls: string[] = [
82
+ 'wss://immutable-zkevm.drpc.org',
83
+ ]
@@ -0,0 +1,70 @@
1
+ import { ethereum } from '@0xtorch/core'
2
+ import { katana } from 'viem/chains'
3
+ import type { Client } from '../../client'
4
+ import { createClient } from '../../client'
5
+ import type { Explorer } from '../../explorer'
6
+ import { createEtherscanV2 } from '../../explorer'
7
+ import type { Chain } from '../types/chain'
8
+ import type { HttpRpc } from '../types/rpc'
9
+
10
+ export const createKatanaChain = ({
11
+ explorerApiKey: apiKey,
12
+ explorerProxyUrl: proxyUrl,
13
+ explorerPageSize: pageSize,
14
+ }: {
15
+ explorerApiKey?: string
16
+ explorerProxyUrl?: string
17
+ explorerPageSize?: number
18
+ }): Chain =>
19
+ createKatanaChainCustom({
20
+ client: createClient({
21
+ chain: katana,
22
+ httpRpcs: katanaHttpRpcs,
23
+ }),
24
+ explorer: createEtherscanV2({
25
+ name: 'KatanaScan',
26
+ baseUrl: 'https://katanascan.com',
27
+ chainId: 747_474,
28
+ apiKey,
29
+ proxyUrl,
30
+ pageSize,
31
+ }),
32
+ })
33
+
34
+ type CreateKatanaChainCustomParameters = {
35
+ client: Client
36
+ explorer: Explorer
37
+ }
38
+
39
+ export const createKatanaChainCustom = ({
40
+ client,
41
+ explorer,
42
+ }: CreateKatanaChainCustomParameters): Chain => ({
43
+ id: 747_474,
44
+ network: 'katana',
45
+ name: 'Katana',
46
+ nativeToken: {
47
+ name: 'Ethereum',
48
+ symbol: 'ETH',
49
+ decimals: 18,
50
+ currency: ethereum,
51
+ },
52
+ wrappedTokenAddresses: new Set([
53
+ '0xee7d8bcfb72bc1880d0cf19822eb0a2e6577ab62',
54
+ ]),
55
+ explorer,
56
+ client,
57
+ blockTime: 1000,
58
+ coingeckoId: 'katana',
59
+ defillamaId: undefined,
60
+ })
61
+
62
+ export const katanaHttpRpcs: HttpRpc[] = [
63
+ {
64
+ url: 'https://rpc.katana.network',
65
+ getLogsIsUsable: true,
66
+ getLogsMaxBlockRange: 10_000n,
67
+ },
68
+ ]
69
+
70
+ export const katanaWebsocketRpcUrls: string[] = []
@@ -0,0 +1,75 @@
1
+ import { memecore } from 'viem/chains'
2
+ import type { Client } from '../../client'
3
+ import { createClient } from '../../client'
4
+ import type { Explorer } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
+ import type { Chain } from '../types/chain'
7
+ import type { HttpRpc } from '../types/rpc'
8
+
9
+ export const createMemeCoreChain = ({
10
+ explorerApiKey: apiKey,
11
+ explorerProxyUrl: proxyUrl,
12
+ explorerPageSize: pageSize,
13
+ }: {
14
+ explorerApiKey?: string
15
+ explorerProxyUrl?: string
16
+ explorerPageSize?: number
17
+ }): Chain =>
18
+ createMemeCoreChainCustom({
19
+ client: createClient({
20
+ chain: memecore,
21
+ httpRpcs: memeCoreHttpRpcs,
22
+ }),
23
+ explorer: createEtherscanV2({
24
+ name: 'MemeCoreScan',
25
+ baseUrl: 'https://memecorescan.io',
26
+ chainId: 4352,
27
+ apiKey,
28
+ proxyUrl,
29
+ pageSize,
30
+ }),
31
+ })
32
+
33
+ type CreateMemeCoreChainCustomParameters = {
34
+ client: Client
35
+ explorer: Explorer
36
+ }
37
+
38
+ export const createMemeCoreChainCustom = ({
39
+ client,
40
+ explorer,
41
+ }: CreateMemeCoreChainCustomParameters): Chain => ({
42
+ id: 4352,
43
+ network: 'meme-core',
44
+ name: 'MemeCore',
45
+ nativeToken: {
46
+ name: 'MemeCore',
47
+ symbol: 'M',
48
+ decimals: 18,
49
+ currency: {
50
+ symbol: 'M',
51
+ type: 'CryptoCurrency',
52
+ id: 'memecore',
53
+ name: 'MemeCore',
54
+ updatedAt: 0,
55
+ },
56
+ },
57
+ wrappedTokenAddresses: new Set([
58
+ '0x653e645e3d81a72e71328bc01a04002945e3ef7a',
59
+ ]),
60
+ explorer,
61
+ client,
62
+ blockTime: 7000,
63
+ coingeckoId: 'memecore',
64
+ defillamaId: undefined,
65
+ })
66
+
67
+ export const memeCoreHttpRpcs: HttpRpc[] = [
68
+ {
69
+ url: 'https://rpc.memecore.net',
70
+ getLogsIsUsable: true,
71
+ getLogsMaxBlockRange: 10_000n,
72
+ },
73
+ ]
74
+
75
+ export const memeCoreWebsocketRpcUrls: string[] = ['wss://ws.memecore.net']
@@ -0,0 +1,112 @@
1
+ import { sei } from 'viem/chains'
2
+ import type { Client } from '../../client'
3
+ import { createClient } from '../../client'
4
+ import type { Explorer } from '../../explorer'
5
+ import { createEtherscanV2 } from '../../explorer'
6
+ import type { Chain } from '../types/chain'
7
+ import type { HttpRpc } from '../types/rpc'
8
+
9
+ export const createSeiChain = ({
10
+ explorerApiKey: apiKey,
11
+ explorerProxyUrl: proxyUrl,
12
+ explorerPageSize: pageSize,
13
+ }: {
14
+ explorerApiKey?: string
15
+ explorerProxyUrl?: string
16
+ explorerPageSize?: number
17
+ }): Chain =>
18
+ createSeiChainCustom({
19
+ client: createClient({ chain: sei, httpRpcs: seiHttpRpcs }),
20
+ explorer: createEtherscanV2({
21
+ name: 'SeiScan',
22
+ baseUrl: 'https://seiscan.io',
23
+ chainId: 1329,
24
+ apiKey,
25
+ proxyUrl,
26
+ pageSize,
27
+ }),
28
+ })
29
+
30
+ type CreateSeiChainCustomParameters = {
31
+ client: Client
32
+ explorer: Explorer
33
+ }
34
+
35
+ export const createSeiChainCustom = ({
36
+ client,
37
+ explorer,
38
+ }: CreateSeiChainCustomParameters): Chain => ({
39
+ id: 1329,
40
+ network: 'sei',
41
+ name: 'Sei',
42
+ nativeToken: {
43
+ name: 'Sei',
44
+ symbol: 'SEI',
45
+ decimals: 18,
46
+ currency: {
47
+ symbol: 'SEI',
48
+ type: 'CryptoCurrency',
49
+ id: 'sei-network',
50
+ name: 'Sei',
51
+ updatedAt: 0,
52
+ },
53
+ },
54
+ wrappedTokenAddresses: new Set([
55
+ '0xe30fedd158a2e3b13e9badaeabafc5516e95e8c7',
56
+ ]),
57
+ explorer,
58
+ client,
59
+ blockTime: undefined,
60
+ coingeckoId: 'sei-v2',
61
+ defillamaId: undefined,
62
+ })
63
+
64
+ export const seiHttpRpcs: HttpRpc[] = [
65
+ // Not archive node
66
+ // {
67
+ // url: 'https://evm-rpc.sei-apis.com',
68
+ // getLogsIsUsable: true,
69
+ // getLogsMaxBlockRange: 2000n,
70
+ // },
71
+ // Not archive node
72
+ // {
73
+ // url: 'https://sei.drpc.org',
74
+ // getLogsIsUsable: true,
75
+ // getLogsMaxBlockRange: 2000n,
76
+ // },
77
+ // Not archive node
78
+ // {
79
+ // url: 'https://sei-evm-rpc.stakeme.pro',
80
+ // getLogsIsUsable: true,
81
+ // getLogsMaxBlockRange: 2000n,
82
+ // },
83
+ // Not archive node
84
+ // {
85
+ // url: 'https://sei-public.nodies.app',
86
+ // getLogsIsUsable: true,
87
+ // getLogsMaxBlockRange: 10_000n,
88
+ // },
89
+ // Not archive node
90
+ // {
91
+ // url: 'https://sei.therpc.io',
92
+ // getLogsIsUsable: true,
93
+ // getLogsMaxBlockRange: 2000n,
94
+ // },
95
+ {
96
+ url: 'https://sei-mainnet.public.blastapi.io',
97
+ getLogsIsUsable: false,
98
+ getLogsMaxBlockRange: 0n,
99
+ },
100
+ {
101
+ url: 'https://1329.rpc.thirdweb.com',
102
+ getLogsIsUsable: true,
103
+ getLogsMaxBlockRange: 1000n,
104
+ },
105
+ {
106
+ url: 'https://sei.rpc.grove.city/v1/01fdb492',
107
+ getLogsIsUsable: true,
108
+ getLogsMaxBlockRange: 2000n,
109
+ },
110
+ ]
111
+
112
+ export const seiWebsocketRpcUrls: string[] = ['wss://sei.drpc.org']
@@ -1,10 +1,10 @@
1
1
  import { ethereum } from '@0xtorch/core'
2
+ import { soneium } from 'viem/chains'
2
3
  import { type Client, createClient } from '../../client'
3
4
  import type { Explorer } from '../../explorer'
4
5
  import { createBlockscout } from '../../explorer'
5
6
  import type { Chain } from '../types/chain'
6
7
  import type { HttpRpc } from '../types/rpc'
7
- import { soneium } from '../viemChains/soneium'
8
8
 
9
9
  type CreateSoneiumChainParameters = {
10
10
  client: Client
@@ -1,9 +1,9 @@
1
+ import { sonic } from 'viem/chains'
1
2
  import { type Client, createClient } from '../../client'
2
3
  import type { Explorer } from '../../explorer'
3
4
  import { createEtherscanV2 } from '../../explorer'
4
5
  import type { Chain } from '../types/chain'
5
6
  import type { HttpRpc } from '../types/rpc'
6
- import { sonic } from '../viemChains/sonic'
7
7
 
8
8
  export const createSonicChain = ({
9
9
  explorerApiKey: apiKey,