@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,80 @@
1
+ import { sophon } 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 createSophonChain = ({
10
+ explorerApiKey: apiKey,
11
+ explorerProxyUrl: proxyUrl,
12
+ explorerPageSize: pageSize,
13
+ }: {
14
+ explorerApiKey?: string
15
+ explorerProxyUrl?: string
16
+ explorerPageSize?: number
17
+ }): Chain =>
18
+ createSophonChainCustom({
19
+ client: createClient({
20
+ chain: sophon,
21
+ httpRpcs: sophonHttpRpcs,
22
+ }),
23
+ explorer: createEtherscanV2({
24
+ name: 'Sophscan',
25
+ baseUrl: 'https://sophscan.xyz',
26
+ chainId: 50_104,
27
+ apiKey,
28
+ proxyUrl,
29
+ pageSize,
30
+ }),
31
+ })
32
+
33
+ type CreateSophonChainCustomParameters = {
34
+ client: Client
35
+ explorer: Explorer
36
+ }
37
+
38
+ export const createSophonChainCustom = ({
39
+ client,
40
+ explorer,
41
+ }: CreateSophonChainCustomParameters): Chain => ({
42
+ id: 50_104,
43
+ network: 'sophon',
44
+ name: 'Sophon',
45
+ nativeToken: {
46
+ name: 'Sophon',
47
+ symbol: 'SOPH',
48
+ decimals: 18,
49
+ currency: {
50
+ symbol: 'SOPH',
51
+ type: 'CryptoCurrency',
52
+ id: 'sophon',
53
+ name: 'Sophon',
54
+ updatedAt: 0,
55
+ },
56
+ },
57
+ wrappedTokenAddresses: new Set([
58
+ '0x2b1a859de6a55c553520d7780bc5805712b128f9',
59
+ ]),
60
+ explorer,
61
+ client,
62
+ blockTime: undefined,
63
+ coingeckoId: 'sophon',
64
+ defillamaId: undefined,
65
+ })
66
+
67
+ export const sophonHttpRpcs: HttpRpc[] = [
68
+ {
69
+ url: 'https://rpc.sophon.xyz',
70
+ getLogsIsUsable: true,
71
+ getLogsMaxBlockRange: 10_000n,
72
+ },
73
+ {
74
+ url: 'https://rpc-quicknode.sophon.xyz',
75
+ getLogsIsUsable: true,
76
+ getLogsMaxBlockRange: 10_000n,
77
+ },
78
+ ]
79
+
80
+ export const sophonWebsocketRpcUrls: string[] = []
@@ -0,0 +1,72 @@
1
+ import { ethereum } from '@0xtorch/core'
2
+ import { swellchain } 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 createSwellChain = ({
11
+ explorerApiKey: apiKey,
12
+ explorerProxyUrl: proxyUrl,
13
+ explorerPageSize: pageSize,
14
+ }: {
15
+ explorerApiKey?: string
16
+ explorerProxyUrl?: string
17
+ explorerPageSize?: number
18
+ }): Chain =>
19
+ createSwellChainCustom({
20
+ client: createClient({ chain: swellchain, httpRpcs: swellHttpRpcs }),
21
+ explorer: createEtherscanV2({
22
+ name: 'Swellchainscan',
23
+ baseUrl: 'https://swellchainscan.io',
24
+ chainId: 1923,
25
+ apiKey,
26
+ proxyUrl,
27
+ pageSize,
28
+ }),
29
+ })
30
+
31
+ type CreateSwellChainCustomParameters = {
32
+ client: Client
33
+ explorer: Explorer
34
+ }
35
+
36
+ export const createSwellChainCustom = ({
37
+ client,
38
+ explorer,
39
+ }: CreateSwellChainCustomParameters): Chain => ({
40
+ id: 1923,
41
+ network: 'swellchain',
42
+ name: 'Swellchain',
43
+ nativeToken: {
44
+ name: 'Ethereum',
45
+ symbol: 'ETH',
46
+ decimals: 18,
47
+ currency: ethereum,
48
+ },
49
+ wrappedTokenAddresses: new Set([
50
+ '0x4200000000000000000000000000000000000006',
51
+ ]),
52
+ explorer,
53
+ client,
54
+ blockTime: 2000,
55
+ coingeckoId: 'swellchain',
56
+ defillamaId: undefined,
57
+ })
58
+
59
+ export const swellHttpRpcs: HttpRpc[] = [
60
+ {
61
+ url: 'https://rpc.ankr.com/swell',
62
+ getLogsIsUsable: true,
63
+ getLogsMaxBlockRange: 1000n,
64
+ },
65
+ {
66
+ url: 'https://swell-mainnet.alt.technology',
67
+ getLogsIsUsable: true,
68
+ getLogsMaxBlockRange: 1000n,
69
+ },
70
+ ]
71
+
72
+ export const swellWebsocketRpcUrls: string[] = []
@@ -0,0 +1,90 @@
1
+ import { ethereum } from '@0xtorch/core'
2
+ import { worldchain } 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 createWorldChain = ({
11
+ explorerApiKey: apiKey,
12
+ explorerProxyUrl: proxyUrl,
13
+ explorerPageSize: pageSize,
14
+ }: {
15
+ explorerApiKey?: string
16
+ explorerProxyUrl?: string
17
+ explorerPageSize?: number
18
+ }): Chain =>
19
+ createWorldChainCustom({
20
+ client: createClient({ chain: worldchain, httpRpcs: worldChainHttpRpcs }),
21
+ explorer: createEtherscanV2({
22
+ name: 'World Scan',
23
+ baseUrl: 'https://worldscan.org',
24
+ chainId: 480,
25
+ apiKey,
26
+ proxyUrl,
27
+ pageSize,
28
+ }),
29
+ })
30
+
31
+ type CreateWorldChainCustomParameters = {
32
+ client: Client
33
+ explorer: Explorer
34
+ }
35
+
36
+ export const createWorldChainCustom = ({
37
+ client,
38
+ explorer,
39
+ }: CreateWorldChainCustomParameters): Chain => ({
40
+ id: 480,
41
+ network: 'world-chain',
42
+ name: 'World Chain',
43
+ nativeToken: {
44
+ name: 'Ethereum',
45
+ symbol: 'ETH',
46
+ decimals: 18,
47
+ currency: ethereum,
48
+ },
49
+ wrappedTokenAddresses: new Set([
50
+ '0x4200000000000000000000000000000000000006',
51
+ ]),
52
+ explorer,
53
+ client,
54
+ blockTime: 2000,
55
+ coingeckoId: 'world-chain',
56
+ defillamaId: undefined,
57
+ })
58
+
59
+ export const worldChainHttpRpcs: HttpRpc[] = [
60
+ {
61
+ url: 'https://worldchain-mainnet.g.alchemy.com/public',
62
+ getLogsIsUsable: true,
63
+ getLogsMaxBlockRange: 10_000n,
64
+ },
65
+ {
66
+ url: 'https://480.rpc.thirdweb.com',
67
+ getLogsIsUsable: true,
68
+ getLogsMaxBlockRange: 1000n,
69
+ },
70
+ {
71
+ url: 'https://worldchain-mainnet.gateway.tenderly.co',
72
+ getLogsIsUsable: true,
73
+ getLogsMaxBlockRange: 10_000n,
74
+ },
75
+ {
76
+ url: 'https://sparkling-autumn-dinghy.worldchain-mainnet.quiknode.pro',
77
+ getLogsIsUsable: true,
78
+ getLogsMaxBlockRange: 10_000n,
79
+ },
80
+ {
81
+ url: 'https://worldchain.drpc.org',
82
+ getLogsIsUsable: true,
83
+ getLogsMaxBlockRange: 10_000n,
84
+ },
85
+ ]
86
+
87
+ export const worldChainWebsocketRpcUrls: string[] = [
88
+ 'wss://worldchain-mainnet.gateway.tenderly.co',
89
+ 'wss://worldchain.drpc.org',
90
+ ]
@@ -0,0 +1,121 @@
1
+ import { xdc } 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 createXdcNetworkChain = ({
10
+ explorerApiKey: apiKey,
11
+ explorerProxyUrl: proxyUrl,
12
+ explorerPageSize: pageSize,
13
+ }: {
14
+ explorerApiKey?: string
15
+ explorerProxyUrl?: string
16
+ explorerPageSize?: number
17
+ }): Chain =>
18
+ createXdcNetworkChainCustom({
19
+ client: createClient({ chain: xdc, httpRpcs: xdcNetworkHttpRpcs }),
20
+ explorer: createEtherscanV2({
21
+ name: 'XDCScan',
22
+ baseUrl: 'https://xdcscan.com',
23
+ chainId: 50,
24
+ apiKey,
25
+ proxyUrl,
26
+ pageSize,
27
+ }),
28
+ })
29
+
30
+ type CreateXdcNetworkChainCustomParameters = {
31
+ client: Client
32
+ explorer: Explorer
33
+ }
34
+
35
+ export const createXdcNetworkChainCustom = ({
36
+ client,
37
+ explorer,
38
+ }: CreateXdcNetworkChainCustomParameters): Chain => ({
39
+ id: 50,
40
+ network: 'xdc-network',
41
+ name: 'XDC Network',
42
+ nativeToken: {
43
+ name: 'XDC Network',
44
+ symbol: 'XDC',
45
+ decimals: 18,
46
+ currency: {
47
+ symbol: 'XDC',
48
+ type: 'CryptoCurrency',
49
+ id: 'xdce-crowd-sale',
50
+ name: 'XDC Network',
51
+ updatedAt: 0,
52
+ },
53
+ },
54
+ wrappedTokenAddresses: new Set([
55
+ '0x951857744785e80e2de051c32ee7b25f9c458c42',
56
+ ]),
57
+ explorer,
58
+ client,
59
+ blockTime: undefined,
60
+ coingeckoId: 'xdc-network',
61
+ defillamaId: undefined,
62
+ })
63
+
64
+ export const xdcNetworkHttpRpcs: HttpRpc[] = [
65
+ {
66
+ url: 'https://rpc.xdcrpc.com',
67
+ getLogsIsUsable: true,
68
+ getLogsMaxBlockRange: 10_000n,
69
+ },
70
+ {
71
+ url: 'https://rpc1.xinfin.network',
72
+ getLogsIsUsable: true,
73
+ getLogsMaxBlockRange: 10_000n,
74
+ },
75
+ {
76
+ url: 'https://erpc.xinfin.network',
77
+ getLogsIsUsable: true,
78
+ getLogsMaxBlockRange: 10_000n,
79
+ },
80
+ {
81
+ url: 'https://erpc.xdcrpc.com',
82
+ getLogsIsUsable: true,
83
+ getLogsMaxBlockRange: 10_000n,
84
+ },
85
+ {
86
+ url: 'https://rpc.xdc.org',
87
+ getLogsIsUsable: true,
88
+ getLogsMaxBlockRange: 10_000n,
89
+ },
90
+ {
91
+ url: 'https://rpc.xdc.network',
92
+ getLogsIsUsable: true,
93
+ getLogsMaxBlockRange: 10_000n,
94
+ },
95
+ {
96
+ url: 'https://earpc.xinfin.network',
97
+ getLogsIsUsable: true,
98
+ getLogsMaxBlockRange: 10_000n,
99
+ },
100
+ {
101
+ url: 'https://erpc.xinfin.network',
102
+ getLogsIsUsable: true,
103
+ getLogsMaxBlockRange: 10_000n,
104
+ },
105
+ {
106
+ url: 'https://rpc.ankr.com/xdc',
107
+ getLogsIsUsable: false,
108
+ getLogsMaxBlockRange: 0n,
109
+ },
110
+ {
111
+ url: 'https://xdc-mainnet.gateway.tatum.io',
112
+ getLogsIsUsable: true,
113
+ getLogsMaxBlockRange: 10_000n,
114
+ },
115
+ ]
116
+
117
+ export const xdcNetworkWebsocketRpcUrls: string[] = [
118
+ 'wss://rpc.xdcrpc.com/ws',
119
+ 'wss://erpc.xdcrpc.com/ws',
120
+ 'wss://ews.xinfin.network/ws',
121
+ ]
package/chain/index.ts CHANGED
@@ -1,3 +1,21 @@
1
+ export {
2
+ createAbstractChain,
3
+ createAbstractChainCustom,
4
+ abstractHttpRpcs,
5
+ abstractWebsocketRpcUrls,
6
+ } from './definitions/abstract'
7
+ export {
8
+ createApeChain,
9
+ createApeChainCustom,
10
+ apeHttpRpcs,
11
+ apeWebsocketRpcUrls,
12
+ } from './definitions/apeChain'
13
+ export {
14
+ createArbitrumNovaChain,
15
+ createArbitrumNovaChainCustom,
16
+ arbitrumNovaHttpRpcs,
17
+ arbitrumNovaWebsocketRpcUrls,
18
+ } from './definitions/arbitrumNova'
1
19
  export {
2
20
  createArbitrumOneChain,
3
21
  createArbitrumOneChainCustom,
@@ -34,6 +52,12 @@ export {
34
52
  berachainHttpRpcs,
35
53
  berachainWebsocketRpcUrls,
36
54
  } from './definitions/berachain'
55
+ export {
56
+ createBitTorrentChain,
57
+ createBitTorrentChainCustom,
58
+ bitTorrentHttpRpcs,
59
+ bitTorrentWebsocketRpcUrls,
60
+ } from './definitions/bitTorrent'
37
61
  export {
38
62
  createBlastChain,
39
63
  createBlastChainCustom,
@@ -46,6 +70,12 @@ export {
46
70
  bscHttpRpcs,
47
71
  bscWebsocketRpcUrls,
48
72
  } from './definitions/bsc'
73
+ export {
74
+ createCeloChain,
75
+ createCeloChainCustom,
76
+ celoHttpRpcs,
77
+ celoWebsocketRpcUrls,
78
+ } from './definitions/celo'
49
79
  export {
50
80
  createChainVerseChain,
51
81
  createChainVerseChainCustom,
@@ -76,6 +106,12 @@ export {
76
106
  fantomHttpRpcs,
77
107
  fantomWebsocketRpcUrls,
78
108
  } from './definitions/fantom'
109
+ export {
110
+ createFraxtalChain,
111
+ createFraxtalChainCustom,
112
+ fraxtalHttpRpcs,
113
+ fraxtalWebsocketRpcUrls,
114
+ } from './definitions/fraxtal'
79
115
  export {
80
116
  createGeekVerseChain,
81
117
  createGeekVerseChainCustom,
@@ -88,12 +124,36 @@ export {
88
124
  gesoVerseHttpRpcs,
89
125
  gesoVerseWebsocketRpcUrls,
90
126
  } from './definitions/gesoVerse'
127
+ export {
128
+ createGnosisChain,
129
+ createGnosisChainCustom,
130
+ gnosisHttpRpcs,
131
+ gnosisWebsocketRpcUrls,
132
+ } from './definitions/gnosis'
91
133
  export {
92
134
  createHomeVerseChain,
93
135
  createHomeVerseChainCustom,
94
136
  homeVerseHttpRpcs,
95
137
  homeVerseWebsocketRpcUrls,
96
138
  } from './definitions/homeVerse'
139
+ export {
140
+ createHyperEvmChain,
141
+ createHyperEvmChainCustom,
142
+ hyperEvmHttpRpcs,
143
+ hyperEvmWebsocketRpcUrls,
144
+ } from './definitions/hyperEvm'
145
+ export {
146
+ createImmutableZkEvmChain,
147
+ createImmutableZkEvmChainCustom,
148
+ immutableZkEvmHttpRpcs,
149
+ immutableZkEvmWebsocketRpcUrls,
150
+ } from './definitions/immutableZkEvm'
151
+ export {
152
+ createKatanaChain,
153
+ createKatanaChainCustom,
154
+ katanaHttpRpcs,
155
+ katanaWebsocketRpcUrls,
156
+ } from './definitions/katana'
97
157
  export {
98
158
  createLineaChain,
99
159
  createLineaChainCustom,
@@ -112,6 +172,12 @@ export {
112
172
  mchVerseHttpRpcs,
113
173
  mchVerseWebsocketRpcUrls,
114
174
  } from './definitions/mchVerse'
175
+ export {
176
+ createMemeCoreChain,
177
+ createMemeCoreChainCustom,
178
+ memeCoreHttpRpcs,
179
+ memeCoreWebsocketRpcUrls,
180
+ } from './definitions/memeCore'
115
181
  export {
116
182
  createMetisChain,
117
183
  createMetisChainCustom,
@@ -184,6 +250,12 @@ export {
184
250
  scrollHttpRpcs,
185
251
  scrollWebsocketRpcUrls,
186
252
  } from './definitions/scroll'
253
+ export {
254
+ createSeiChain,
255
+ createSeiChainCustom,
256
+ seiHttpRpcs,
257
+ seiWebsocketRpcUrls,
258
+ } from './definitions/sei'
187
259
  export {
188
260
  createSoneiumChain,
189
261
  createSoneiumChainCustom,
@@ -196,6 +268,18 @@ export {
196
268
  sonicHttpRpcs,
197
269
  sonicWebsocketRpcUrls,
198
270
  } from './definitions/sonic'
271
+ export {
272
+ createSophonChain,
273
+ createSophonChainCustom,
274
+ sophonHttpRpcs,
275
+ sophonWebsocketRpcUrls,
276
+ } from './definitions/sophon'
277
+ export {
278
+ createSwellChain,
279
+ createSwellChainCustom,
280
+ swellHttpRpcs,
281
+ swellWebsocketRpcUrls,
282
+ } from './definitions/swell'
199
283
  export {
200
284
  createTaikoChain,
201
285
  createTaikoChainCustom,
@@ -214,6 +298,18 @@ export {
214
298
  unichainHttpRpcs,
215
299
  unichainWebsocketRpcUrls,
216
300
  } from './definitions/unichain'
301
+ export {
302
+ createWorldChain,
303
+ createWorldChainCustom,
304
+ worldChainHttpRpcs,
305
+ worldChainWebsocketRpcUrls,
306
+ } from './definitions/worldChain'
307
+ export {
308
+ createXdcNetworkChain,
309
+ createXdcNetworkChainCustom,
310
+ xdcNetworkHttpRpcs,
311
+ xdcNetworkWebsocketRpcUrls,
312
+ } from './definitions/xdcNetwork'
217
313
  export {
218
314
  createYooldoVerseChain,
219
315
  createYooldoVerseChainCustom,
@@ -0,0 +1,28 @@
1
+ import { defineChain } from 'viem'
2
+ import { chainConfig } from 'viem/op-stack'
3
+
4
+ export const hyperEvm = /*#__PURE__*/ defineChain({
5
+ ...chainConfig,
6
+ id: 999,
7
+ name: 'HyperEVM',
8
+ nativeCurrency: { name: 'Hyperliquid', symbol: 'HYPE', decimals: 18 },
9
+ rpcUrls: {
10
+ default: {
11
+ http: ['https://rpc.hyperliquid.xyz/evm'],
12
+ },
13
+ },
14
+ blockExplorers: {
15
+ default: {
16
+ name: 'HyperEVMScan',
17
+ url: 'https://hyperevmscan.io',
18
+ apiUrl: 'https://hyperevmscan.io/api',
19
+ },
20
+ },
21
+ contracts: {
22
+ ...chainConfig.contracts,
23
+ multicall3: {
24
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11',
25
+ blockCreated: 13051,
26
+ },
27
+ },
28
+ })
package/index.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  export { erc1155Abi, erc20Abi, erc721Abi, wethAbi } from './abis'
2
2
  export {
3
+ abstractHttpRpcs,
4
+ abstractWebsocketRpcUrls,
5
+ apeHttpRpcs,
6
+ apeWebsocketRpcUrls,
7
+ arbitrumNovaHttpRpcs,
8
+ arbitrumNovaWebsocketRpcUrls,
3
9
  arbitrumOneHttpRpcs,
4
10
  arbitrumOneWebsocketRpcUrls,
5
11
  astarHttpRpcs,
@@ -12,12 +18,22 @@ export {
12
18
  baseWebsocketRpcUrls,
13
19
  berachainHttpRpcs,
14
20
  berachainWebsocketRpcUrls,
21
+ bitTorrentHttpRpcs,
22
+ bitTorrentWebsocketRpcUrls,
15
23
  blastHttpRpcs,
16
24
  blastWebsocketRpcUrls,
17
25
  bscHttpRpcs,
18
26
  bscWebsocketRpcUrls,
27
+ celoHttpRpcs,
28
+ celoWebsocketRpcUrls,
19
29
  chainVerseHttpRpcs,
20
30
  chainVerseWebsocketRpcUrls,
31
+ createAbstractChain,
32
+ createAbstractChainCustom,
33
+ createApeChain,
34
+ createApeChainCustom,
35
+ createArbitrumNovaChain,
36
+ createArbitrumNovaChainCustom,
21
37
  createArbitrumOneChain,
22
38
  createArbitrumOneChainCustom,
23
39
  createAstarChain,
@@ -30,10 +46,14 @@ export {
30
46
  createBaseChainCustom,
31
47
  createBerachain,
32
48
  createBerachainCustom,
49
+ createBitTorrentChain,
50
+ createBitTorrentChainCustom,
33
51
  createBlastChain,
34
52
  createBlastChainCustom,
35
53
  createBscChain,
36
54
  createBscChainCustom,
55
+ createCeloChain,
56
+ createCeloChainCustom,
37
57
  createChainVerseChain,
38
58
  createChainVerseChainCustom,
39
59
  createDefiVerseChain,
@@ -44,12 +64,22 @@ export {
44
64
  createEthereumChainCustom,
45
65
  createFantomChain,
46
66
  createFantomChainCustom,
67
+ createFraxtalChain,
68
+ createFraxtalChainCustom,
47
69
  createGeekVerseChain,
48
70
  createGeekVerseChainCustom,
49
71
  createGesoVerseChain,
50
72
  createGesoVerseChainCustom,
73
+ createGnosisChain,
74
+ createGnosisChainCustom,
51
75
  createHomeVerseChain,
52
76
  createHomeVerseChainCustom,
77
+ createHyperEvmChain,
78
+ createHyperEvmChainCustom,
79
+ createImmutableZkEvmChain,
80
+ createImmutableZkEvmChainCustom,
81
+ createKatanaChain,
82
+ createKatanaChainCustom,
53
83
  createLineaChain,
54
84
  createLineaChainCustom,
55
85
  createMantaPacificChain,
@@ -58,6 +88,8 @@ export {
58
88
  createMantleChainCustom,
59
89
  createMchVerseChain,
60
90
  createMchVerseChainCustom,
91
+ createMemeCoreChain,
92
+ createMemeCoreChainCustom,
61
93
  createMetisChain,
62
94
  createMetisChainCustom,
63
95
  createMoonbeamChain,
@@ -80,16 +112,26 @@ export {
80
112
  createSaakuruChainCustom,
81
113
  createScrollChain,
82
114
  createScrollChainCustom,
115
+ createSeiChain,
116
+ createSeiChainCustom,
83
117
  createSoneiumChain,
84
118
  createSoneiumChainCustom,
85
119
  createSonicChain,
86
120
  createSonicChainCustom,
121
+ createSophonChain,
122
+ createSophonChainCustom,
123
+ createSwellChain,
124
+ createSwellChainCustom,
87
125
  createTaikoChain,
88
126
  createTaikoChainCustom,
89
127
  createTcgVerseChain,
90
128
  createTcgVerseChainCustom,
91
129
  createUnichain,
92
130
  createUnichainCustom,
131
+ createWorldChain,
132
+ createWorldChainCustom,
133
+ createXdcNetworkChain,
134
+ createXdcNetworkChainCustom,
93
135
  createYooldoVerseChain,
94
136
  createYooldoVerseChainCustom,
95
137
  createZkFairChain,
@@ -106,12 +148,22 @@ export {
106
148
  ethereumWebsocketRpcUrls,
107
149
  fantomHttpRpcs,
108
150
  fantomWebsocketRpcUrls,
151
+ fraxtalHttpRpcs,
152
+ fraxtalWebsocketRpcUrls,
109
153
  geekVerseHttpRpcs,
110
154
  geekVerseWebsocketRpcUrls,
111
155
  gesoVerseHttpRpcs,
112
156
  gesoVerseWebsocketRpcUrls,
157
+ gnosisHttpRpcs,
158
+ gnosisWebsocketRpcUrls,
113
159
  homeVerseHttpRpcs,
114
160
  homeVerseWebsocketRpcUrls,
161
+ hyperEvmHttpRpcs,
162
+ hyperEvmWebsocketRpcUrls,
163
+ immutableZkEvmHttpRpcs,
164
+ immutableZkEvmWebsocketRpcUrls,
165
+ katanaHttpRpcs,
166
+ katanaWebsocketRpcUrls,
115
167
  lineaHttpRpcs,
116
168
  lineaWebsocketRpcUrls,
117
169
  mantaPacificHttpRpcs,
@@ -120,6 +172,8 @@ export {
120
172
  mantleWebsocketRpcUrls,
121
173
  mchVerseHttpRpcs,
122
174
  mchVerseWebsocketRpcUrls,
175
+ memeCoreHttpRpcs,
176
+ memeCoreWebsocketRpcUrls,
123
177
  metisHttpRpcs,
124
178
  metisWebsocketRpcUrls,
125
179
  moonbeamHttpRpcs,
@@ -142,16 +196,26 @@ export {
142
196
  saakuruWebsocketRpcUrls,
143
197
  scrollHttpRpcs,
144
198
  scrollWebsocketRpcUrls,
199
+ seiHttpRpcs,
200
+ seiWebsocketRpcUrls,
145
201
  soneiumHttpRpcs,
146
202
  soneiumWebsocketRpcUrls,
147
203
  sonicHttpRpcs,
148
204
  sonicWebsocketRpcUrls,
205
+ sophonHttpRpcs,
206
+ sophonWebsocketRpcUrls,
207
+ swellHttpRpcs,
208
+ swellWebsocketRpcUrls,
149
209
  taikoHttpRpcs,
150
210
  taikoWebsocketRpcUrls,
151
211
  tcgVerseHttpRpcs,
152
212
  tcgVerseWebsocketRpcUrls,
153
213
  unichainHttpRpcs,
154
214
  unichainWebsocketRpcUrls,
215
+ worldChainHttpRpcs,
216
+ worldChainWebsocketRpcUrls,
217
+ xdcNetworkHttpRpcs,
218
+ xdcNetworkWebsocketRpcUrls,
155
219
  yooldoVerseHttpRpcs,
156
220
  yooldoVerseWebsocketRpcUrls,
157
221
  zkFairHttpRpcs,