@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.
- package/_cjs/chain/definitions/abstract.js +63 -0
- package/_cjs/chain/definitions/abstract.js.map +1 -0
- package/_cjs/chain/definitions/apeChain.js +61 -0
- package/_cjs/chain/definitions/apeChain.js.map +1 -0
- package/_cjs/chain/definitions/arbitrumNova.js +83 -0
- package/_cjs/chain/definitions/arbitrumNova.js.map +1 -0
- package/_cjs/chain/definitions/bitTorrent.js +68 -0
- package/_cjs/chain/definitions/bitTorrent.js.map +1 -0
- package/_cjs/chain/definitions/celo.js +81 -0
- package/_cjs/chain/definitions/celo.js.map +1 -0
- package/_cjs/chain/definitions/fraxtal.js +71 -0
- package/_cjs/chain/definitions/fraxtal.js.map +1 -0
- package/_cjs/chain/definitions/gnosis.js +87 -0
- package/_cjs/chain/definitions/gnosis.js.map +1 -0
- package/_cjs/chain/definitions/hyperEvm.js +73 -0
- package/_cjs/chain/definitions/hyperEvm.js.map +1 -0
- package/_cjs/chain/definitions/immutableZkEvm.js +66 -0
- package/_cjs/chain/definitions/immutableZkEvm.js.map +1 -0
- package/_cjs/chain/definitions/katana.js +51 -0
- package/_cjs/chain/definitions/katana.js.map +1 -0
- package/_cjs/chain/definitions/memeCore.js +56 -0
- package/_cjs/chain/definitions/memeCore.js.map +1 -0
- package/_cjs/chain/definitions/sei.js +63 -0
- package/_cjs/chain/definitions/sei.js.map +1 -0
- package/_cjs/chain/definitions/soneium.js +2 -2
- package/_cjs/chain/definitions/soneium.js.map +1 -1
- package/_cjs/chain/definitions/sonic.js +2 -2
- package/_cjs/chain/definitions/sonic.js.map +1 -1
- package/_cjs/chain/definitions/sophon.js +61 -0
- package/_cjs/chain/definitions/sophon.js.map +1 -0
- package/_cjs/chain/definitions/swell.js +53 -0
- package/_cjs/chain/definitions/swell.js.map +1 -0
- package/_cjs/chain/definitions/worldChain.js +71 -0
- package/_cjs/chain/definitions/worldChain.js.map +1 -0
- package/_cjs/chain/definitions/xdcNetwork.js +102 -0
- package/_cjs/chain/definitions/xdcNetwork.js.map +1 -0
- package/_cjs/chain/index.js +85 -4
- package/_cjs/chain/index.js.map +1 -1
- package/_cjs/chain/viemChains/hyperEvm.js +31 -0
- package/_cjs/chain/viemChains/hyperEvm.js.map +1 -0
- package/_cjs/index.js +70 -5
- package/_cjs/index.js.map +1 -1
- package/_esm/chain/definitions/abstract.js +58 -0
- package/_esm/chain/definitions/abstract.js.map +1 -0
- package/_esm/chain/definitions/apeChain.js +56 -0
- package/_esm/chain/definitions/apeChain.js.map +1 -0
- package/_esm/chain/definitions/arbitrumNova.js +78 -0
- package/_esm/chain/definitions/arbitrumNova.js.map +1 -0
- package/_esm/chain/definitions/bitTorrent.js +63 -0
- package/_esm/chain/definitions/bitTorrent.js.map +1 -0
- package/_esm/chain/definitions/celo.js +76 -0
- package/_esm/chain/definitions/celo.js.map +1 -0
- package/_esm/chain/definitions/fraxtal.js +66 -0
- package/_esm/chain/definitions/fraxtal.js.map +1 -0
- package/_esm/chain/definitions/gnosis.js +124 -0
- package/_esm/chain/definitions/gnosis.js.map +1 -0
- package/_esm/chain/definitions/hyperEvm.js +68 -0
- package/_esm/chain/definitions/hyperEvm.js.map +1 -0
- package/_esm/chain/definitions/immutableZkEvm.js +61 -0
- package/_esm/chain/definitions/immutableZkEvm.js.map +1 -0
- package/_esm/chain/definitions/katana.js +46 -0
- package/_esm/chain/definitions/katana.js.map +1 -0
- package/_esm/chain/definitions/memeCore.js +51 -0
- package/_esm/chain/definitions/memeCore.js.map +1 -0
- package/_esm/chain/definitions/sei.js +88 -0
- package/_esm/chain/definitions/sei.js.map +1 -0
- package/_esm/chain/definitions/soneium.js +1 -1
- package/_esm/chain/definitions/soneium.js.map +1 -1
- package/_esm/chain/definitions/sonic.js +1 -1
- package/_esm/chain/definitions/sonic.js.map +1 -1
- package/_esm/chain/definitions/sophon.js +56 -0
- package/_esm/chain/definitions/sophon.js.map +1 -0
- package/_esm/chain/definitions/swell.js +48 -0
- package/_esm/chain/definitions/swell.js.map +1 -0
- package/_esm/chain/definitions/worldChain.js +66 -0
- package/_esm/chain/definitions/worldChain.js.map +1 -0
- package/_esm/chain/definitions/xdcNetwork.js +97 -0
- package/_esm/chain/definitions/xdcNetwork.js.map +1 -0
- package/_esm/chain/index.js +16 -0
- package/_esm/chain/index.js.map +1 -1
- package/_esm/chain/viemChains/hyperEvm.js +28 -0
- package/_esm/chain/viemChains/hyperEvm.js.map +1 -0
- package/_esm/index.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_types/chain/definitions/abstract.d.ts +18 -0
- package/_types/chain/definitions/abstract.d.ts.map +1 -0
- package/_types/chain/definitions/apeChain.d.ts +18 -0
- package/_types/chain/definitions/apeChain.d.ts.map +1 -0
- package/_types/chain/definitions/arbitrumNova.d.ts +18 -0
- package/_types/chain/definitions/arbitrumNova.d.ts.map +1 -0
- package/_types/chain/definitions/bitTorrent.d.ts +18 -0
- package/_types/chain/definitions/bitTorrent.d.ts.map +1 -0
- package/_types/chain/definitions/celo.d.ts +18 -0
- package/_types/chain/definitions/celo.d.ts.map +1 -0
- package/_types/chain/definitions/fraxtal.d.ts +18 -0
- package/_types/chain/definitions/fraxtal.d.ts.map +1 -0
- package/_types/chain/definitions/gnosis.d.ts +18 -0
- package/_types/chain/definitions/gnosis.d.ts.map +1 -0
- package/_types/chain/definitions/hyperEvm.d.ts +18 -0
- package/_types/chain/definitions/hyperEvm.d.ts.map +1 -0
- package/_types/chain/definitions/immutableZkEvm.d.ts +18 -0
- package/_types/chain/definitions/immutableZkEvm.d.ts.map +1 -0
- package/_types/chain/definitions/katana.d.ts +18 -0
- package/_types/chain/definitions/katana.d.ts.map +1 -0
- package/_types/chain/definitions/memeCore.d.ts +18 -0
- package/_types/chain/definitions/memeCore.d.ts.map +1 -0
- package/_types/chain/definitions/sei.d.ts +18 -0
- package/_types/chain/definitions/sei.d.ts.map +1 -0
- package/_types/chain/definitions/soneium.d.ts.map +1 -1
- package/_types/chain/definitions/sonic.d.ts.map +1 -1
- package/_types/chain/definitions/sophon.d.ts +18 -0
- package/_types/chain/definitions/sophon.d.ts.map +1 -0
- package/_types/chain/definitions/swell.d.ts +18 -0
- package/_types/chain/definitions/swell.d.ts.map +1 -0
- package/_types/chain/definitions/worldChain.d.ts +18 -0
- package/_types/chain/definitions/worldChain.d.ts.map +1 -0
- package/_types/chain/definitions/xdcNetwork.d.ts +18 -0
- package/_types/chain/definitions/xdcNetwork.d.ts.map +1 -0
- package/_types/chain/index.d.ts +16 -0
- package/_types/chain/index.d.ts.map +1 -1
- package/_types/chain/viemChains/chainVerse.d.ts +1 -0
- package/_types/chain/viemChains/chainVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/defiVerse.d.ts +1 -0
- package/_types/chain/viemChains/defiVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/geekVerse.d.ts +1 -0
- package/_types/chain/viemChains/geekVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/gesoVerse.d.ts +1 -0
- package/_types/chain/viemChains/gesoVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/homeVerse.d.ts +1 -0
- package/_types/chain/viemChains/homeVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/{soneium.d.ts → hyperEvm.d.ts} +16 -37
- package/_types/chain/viemChains/hyperEvm.d.ts.map +1 -0
- package/_types/chain/viemChains/mchVerse.d.ts +1 -0
- package/_types/chain/viemChains/mchVerse.d.ts.map +1 -1
- package/_types/chain/viemChains/saakuru.d.ts +1 -0
- package/_types/chain/viemChains/saakuru.d.ts.map +1 -1
- package/_types/chain/viemChains/tcgVerse.d.ts +1 -0
- package/_types/chain/viemChains/tcgVerse.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/chain/definitions/abstract.ts +82 -0
- package/chain/definitions/apeChain.ts +80 -0
- package/chain/definitions/arbitrumNova.ts +102 -0
- package/chain/definitions/bitTorrent.ts +87 -0
- package/chain/definitions/celo.ts +100 -0
- package/chain/definitions/fraxtal.ts +90 -0
- package/chain/definitions/gnosis.ts +148 -0
- package/chain/definitions/hyperEvm.ts +92 -0
- package/chain/definitions/immutableZkEvm.ts +83 -0
- package/chain/definitions/katana.ts +70 -0
- package/chain/definitions/memeCore.ts +75 -0
- package/chain/definitions/sei.ts +112 -0
- package/chain/definitions/soneium.ts +1 -1
- package/chain/definitions/sonic.ts +1 -1
- package/chain/definitions/sophon.ts +80 -0
- package/chain/definitions/swell.ts +72 -0
- package/chain/definitions/worldChain.ts +90 -0
- package/chain/definitions/xdcNetwork.ts +121 -0
- package/chain/index.ts +96 -0
- package/chain/viemChains/hyperEvm.ts +28 -0
- package/index.ts +64 -0
- package/package.json +3 -3
- package/_cjs/chain/viemChains/soneium.js +0 -55
- package/_cjs/chain/viemChains/soneium.js.map +0 -1
- package/_cjs/chain/viemChains/sonic.js +0 -30
- package/_cjs/chain/viemChains/sonic.js.map +0 -1
- package/_esm/chain/viemChains/soneium.js +0 -52
- package/_esm/chain/viemChains/soneium.js.map +0 -1
- package/_esm/chain/viemChains/sonic.js +0 -27
- package/_esm/chain/viemChains/sonic.js.map +0 -1
- package/_types/chain/viemChains/soneium.d.ts.map +0 -1
- package/_types/chain/viemChains/sonic.d.ts +0 -35
- package/_types/chain/viemChains/sonic.d.ts.map +0 -1
- package/chain/viemChains/soneium.ts +0 -53
- 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,
|