@0xtorch/evm 0.0.92 → 0.0.94
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/astarZkEvm.js +53 -0
- package/_cjs/chain/definitions/astarZkEvm.js.map +1 -0
- package/_cjs/chain/definitions/blast.js +91 -0
- package/_cjs/chain/definitions/blast.js.map +1 -0
- package/_cjs/chain/definitions/scroll.js +81 -0
- package/_cjs/chain/definitions/scroll.js.map +1 -0
- package/_cjs/chain/definitions/zkFair.js +53 -0
- package/_cjs/chain/definitions/zkFair.js.map +1 -0
- package/_cjs/chain/definitions/zkSyncEra.js +66 -0
- package/_cjs/chain/definitions/zkSyncEra.js.map +1 -0
- package/_cjs/chain/index.js +27 -2
- package/_cjs/chain/index.js.map +1 -1
- package/_cjs/index.js +23 -3
- package/_cjs/index.js.map +1 -1
- package/_esm/chain/definitions/astarZkEvm.js +48 -0
- package/_esm/chain/definitions/astarZkEvm.js.map +1 -0
- package/_esm/chain/definitions/blast.js +98 -0
- package/_esm/chain/definitions/blast.js.map +1 -0
- package/_esm/chain/definitions/scroll.js +88 -0
- package/_esm/chain/definitions/scroll.js.map +1 -0
- package/_esm/chain/definitions/zkFair.js +48 -0
- package/_esm/chain/definitions/zkFair.js.map +1 -0
- package/_esm/chain/definitions/zkSyncEra.js +85 -0
- package/_esm/chain/definitions/zkSyncEra.js.map +1 -0
- package/_esm/chain/index.js +5 -0
- package/_esm/chain/index.js.map +1 -1
- package/_esm/index.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_types/chain/definitions/astarZkEvm.d.ts +14 -0
- package/_types/chain/definitions/astarZkEvm.d.ts.map +1 -0
- package/_types/chain/definitions/blast.d.ts +18 -0
- package/_types/chain/definitions/blast.d.ts.map +1 -0
- package/_types/chain/definitions/scroll.d.ts +18 -0
- package/_types/chain/definitions/scroll.d.ts.map +1 -0
- package/_types/chain/definitions/zkFair.d.ts +14 -0
- package/_types/chain/definitions/zkFair.d.ts.map +1 -0
- package/_types/chain/definitions/zkSyncEra.d.ts +18 -0
- package/_types/chain/definitions/zkSyncEra.d.ts.map +1 -0
- package/_types/chain/index.d.ts +5 -0
- package/_types/chain/index.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/chain/definitions/astarZkEvm.ts +63 -0
- package/chain/definitions/blast.ts +121 -0
- package/chain/definitions/scroll.ts +111 -0
- package/chain/definitions/zkFair.ts +63 -0
- package/chain/definitions/zkSyncEra.ts +108 -0
- package/chain/index.ts +30 -0
- package/index.ts +20 -0
- package/package.json +2 -2
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ethereum } from '@0xtorch/core'
|
|
2
|
+
import { astarZkEVM } from 'viem/chains'
|
|
3
|
+
import { type Client, 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
|
+
type CreateAstarZkEvmChainParameters = {
|
|
10
|
+
client: Client
|
|
11
|
+
explorer: Explorer
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const createAstarZkEvmChain = (): Chain =>
|
|
15
|
+
createAstarZkEvmChainCustom({
|
|
16
|
+
client: createClient({
|
|
17
|
+
chain: astarZkEVM,
|
|
18
|
+
httpRpcs: astarZkEvmHttpRpcs,
|
|
19
|
+
}),
|
|
20
|
+
explorer: createBlockscout({
|
|
21
|
+
name: 'Astar zkEVM explorer',
|
|
22
|
+
baseUrl: 'https://astar-zkevm.explorer.startale.com',
|
|
23
|
+
apiBaseUrl: 'https://astar-zkevm.explorer.startale.com/api',
|
|
24
|
+
}),
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
export const createAstarZkEvmChainCustom = ({
|
|
28
|
+
client,
|
|
29
|
+
explorer,
|
|
30
|
+
}: CreateAstarZkEvmChainParameters): Chain => ({
|
|
31
|
+
id: 3776,
|
|
32
|
+
network: 'astar-zkevm',
|
|
33
|
+
name: 'Astar zkEVM',
|
|
34
|
+
nativeToken: {
|
|
35
|
+
name: 'Ethereum',
|
|
36
|
+
symbol: 'ETH',
|
|
37
|
+
decimals: 18,
|
|
38
|
+
currency: ethereum,
|
|
39
|
+
},
|
|
40
|
+
wrappedTokenAddresses: new Set([
|
|
41
|
+
'0xe9cc37904875b459fa5d0fe37680d36f1ed55e38',
|
|
42
|
+
]),
|
|
43
|
+
explorer,
|
|
44
|
+
client,
|
|
45
|
+
blockTime: 3000,
|
|
46
|
+
coingeckoId: 'astar-zkevm',
|
|
47
|
+
defillamaId: undefined,
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
export const astarZkEvmHttpRpcs: HttpRpc[] = [
|
|
51
|
+
{
|
|
52
|
+
url: 'https://rpc.startale.com/astar-zkevm',
|
|
53
|
+
getLogsIsUsable: true,
|
|
54
|
+
getLogsMaxBlockRange: 10_000n,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
url: 'https://astar-zkevm-rpc.dwellir.com',
|
|
58
|
+
getLogsIsUsable: true,
|
|
59
|
+
getLogsMaxBlockRange: 10_000n,
|
|
60
|
+
},
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
export const astarZkEvmWebsocketRpcUrls: readonly string[] = []
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { ethereum } from '@0xtorch/core'
|
|
2
|
+
import { blast } from 'viem/chains'
|
|
3
|
+
import { type Client, createClient } from '../../client'
|
|
4
|
+
import type { Explorer } from '../../explorer'
|
|
5
|
+
import { createEtherscan } from '../../explorer'
|
|
6
|
+
import type { Chain } from '../types/chain'
|
|
7
|
+
import type { HttpRpc } from '../types/rpc'
|
|
8
|
+
|
|
9
|
+
export const createBlastChain = ({
|
|
10
|
+
explorerApiKey: apiKey,
|
|
11
|
+
explorerProxyUrl: proxyUrl,
|
|
12
|
+
explorerHeaders: headers,
|
|
13
|
+
}: {
|
|
14
|
+
explorerApiKey?: string
|
|
15
|
+
explorerProxyUrl?: string
|
|
16
|
+
explorerHeaders?: Record<string, string>
|
|
17
|
+
}): Chain =>
|
|
18
|
+
createBlastChainCustom({
|
|
19
|
+
client: createClient({
|
|
20
|
+
chain: blast,
|
|
21
|
+
httpRpcs: blastHttpRpcs,
|
|
22
|
+
}),
|
|
23
|
+
explorer: createEtherscan({
|
|
24
|
+
name: 'BlastScan',
|
|
25
|
+
baseUrl: 'https://blastscan.io',
|
|
26
|
+
apiBaseUrl: 'https://api.blastscan.io/api',
|
|
27
|
+
apiKey,
|
|
28
|
+
proxyUrl,
|
|
29
|
+
headers,
|
|
30
|
+
}),
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
type CreateBlastChainParameters = {
|
|
34
|
+
client: Client
|
|
35
|
+
explorer: Explorer
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const createBlastChainCustom = ({
|
|
39
|
+
client,
|
|
40
|
+
explorer,
|
|
41
|
+
}: CreateBlastChainParameters): Chain => ({
|
|
42
|
+
id: 81457,
|
|
43
|
+
network: 'blast',
|
|
44
|
+
name: 'Blast',
|
|
45
|
+
nativeToken: {
|
|
46
|
+
name: 'Ethereum',
|
|
47
|
+
symbol: 'ETH',
|
|
48
|
+
decimals: 18,
|
|
49
|
+
currency: ethereum,
|
|
50
|
+
},
|
|
51
|
+
wrappedTokenAddresses: new Set([
|
|
52
|
+
'0x4300000000000000000000000000000000000004',
|
|
53
|
+
]),
|
|
54
|
+
explorer,
|
|
55
|
+
client,
|
|
56
|
+
blockTime: 2000,
|
|
57
|
+
coingeckoId: 'blast',
|
|
58
|
+
defillamaId: 'blast',
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
export const blastHttpRpcs: HttpRpc[] = [
|
|
62
|
+
{
|
|
63
|
+
url: 'https://rpc.blast.io',
|
|
64
|
+
getLogsIsUsable: true,
|
|
65
|
+
getLogsMaxBlockRange: 10_000n,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
url: 'https://blast.din.dev/rpc',
|
|
69
|
+
getLogsIsUsable: true,
|
|
70
|
+
getLogsMaxBlockRange: 10_000n,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
url: 'https://blastl2-mainnet.public.blastapi.io',
|
|
74
|
+
getLogsIsUsable: false,
|
|
75
|
+
getLogsMaxBlockRange: 0n,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
url: 'https://blast.blockpi.network/v1/rpc/public',
|
|
79
|
+
getLogsIsUsable: true,
|
|
80
|
+
getLogsMaxBlockRange: 1024n,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
url: 'https://rpc.ankr.com/blast',
|
|
84
|
+
getLogsIsUsable: true,
|
|
85
|
+
getLogsMaxBlockRange: 10_000n,
|
|
86
|
+
},
|
|
87
|
+
// Endpoint is not working
|
|
88
|
+
// {
|
|
89
|
+
// url: 'https://blast.gasswap.org',
|
|
90
|
+
// getLogsIsUsable: true,
|
|
91
|
+
// getLogsMaxBlockRange: 10_000n,
|
|
92
|
+
// },
|
|
93
|
+
{
|
|
94
|
+
url: 'https://rpc.envelop.is/blast',
|
|
95
|
+
getLogsIsUsable: true,
|
|
96
|
+
getLogsMaxBlockRange: 10_000n,
|
|
97
|
+
},
|
|
98
|
+
// Not archiving receipts
|
|
99
|
+
// {
|
|
100
|
+
// url: 'https://blast-rpc.publicnode.com',
|
|
101
|
+
// getLogsIsUsable: true,
|
|
102
|
+
// getLogsMaxBlockRange: 10_000n,
|
|
103
|
+
// },
|
|
104
|
+
{
|
|
105
|
+
url: 'https://blast.drpc.org',
|
|
106
|
+
getLogsIsUsable: true,
|
|
107
|
+
getLogsMaxBlockRange: 10_000n,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
url: 'https://blast.gateway.tenderly.co',
|
|
111
|
+
getLogsIsUsable: true,
|
|
112
|
+
getLogsMaxBlockRange: 10_000n,
|
|
113
|
+
},
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
export const blastWebsocketRpcUrls: readonly string[] = [
|
|
117
|
+
'wss://blast.gasswap.org',
|
|
118
|
+
'wss://blast-rpc.publicnode.com',
|
|
119
|
+
'wss://blast.drpc.org',
|
|
120
|
+
'wss://blast.callstaticrpc.com',
|
|
121
|
+
]
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ethereum } from '@0xtorch/core'
|
|
2
|
+
import { scroll } from 'viem/chains'
|
|
3
|
+
import { type Client, createClient } from '../../client'
|
|
4
|
+
import type { Explorer } from '../../explorer'
|
|
5
|
+
import { createEtherscan } from '../../explorer'
|
|
6
|
+
import type { Chain } from '../types/chain'
|
|
7
|
+
import type { HttpRpc } from '../types/rpc'
|
|
8
|
+
|
|
9
|
+
export const createScrollChain = ({
|
|
10
|
+
explorerApiKey: apiKey,
|
|
11
|
+
explorerProxyUrl: proxyUrl,
|
|
12
|
+
explorerHeaders: headers,
|
|
13
|
+
}: {
|
|
14
|
+
explorerApiKey?: string
|
|
15
|
+
explorerProxyUrl?: string
|
|
16
|
+
explorerHeaders?: Record<string, string>
|
|
17
|
+
}) =>
|
|
18
|
+
createScrollChainCustom({
|
|
19
|
+
client: createClient({
|
|
20
|
+
chain: scroll,
|
|
21
|
+
httpRpcs: scrollHttpRpcs,
|
|
22
|
+
}),
|
|
23
|
+
explorer: createEtherscan({
|
|
24
|
+
name: 'Scrollscan',
|
|
25
|
+
baseUrl: 'https://scrollscan.com',
|
|
26
|
+
apiBaseUrl: 'https://api.scrollscan.com/api',
|
|
27
|
+
apiKey,
|
|
28
|
+
proxyUrl,
|
|
29
|
+
headers,
|
|
30
|
+
}),
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
type CreateScrollChainParameters = {
|
|
34
|
+
client: Client
|
|
35
|
+
explorer: Explorer
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const createScrollChainCustom = ({
|
|
39
|
+
client,
|
|
40
|
+
explorer,
|
|
41
|
+
}: CreateScrollChainParameters): Chain => ({
|
|
42
|
+
id: 534_352,
|
|
43
|
+
network: 'scroll',
|
|
44
|
+
name: 'Scroll',
|
|
45
|
+
nativeToken: {
|
|
46
|
+
name: 'Ethereum',
|
|
47
|
+
symbol: 'ETH',
|
|
48
|
+
decimals: 18,
|
|
49
|
+
currency: ethereum,
|
|
50
|
+
},
|
|
51
|
+
wrappedTokenAddresses: new Set([
|
|
52
|
+
'0x5300000000000000000000000000000000000004',
|
|
53
|
+
]),
|
|
54
|
+
explorer,
|
|
55
|
+
client,
|
|
56
|
+
blockTime: 3000,
|
|
57
|
+
coingeckoId: 'scroll',
|
|
58
|
+
defillamaId: 'scroll',
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
export const scrollHttpRpcs: HttpRpc[] = [
|
|
62
|
+
{
|
|
63
|
+
url: 'https://rpc.scroll.io',
|
|
64
|
+
getLogsIsUsable: true,
|
|
65
|
+
getLogsMaxBlockRange: 10_000n,
|
|
66
|
+
},
|
|
67
|
+
// Endpoint is not working
|
|
68
|
+
// {
|
|
69
|
+
// url: 'https://rpc-scroll.icecreamswap.com',
|
|
70
|
+
// getLogsIsUsable: true,
|
|
71
|
+
// getLogsMaxBlockRange: 10_000n,
|
|
72
|
+
// },
|
|
73
|
+
{
|
|
74
|
+
url: 'https://scroll-mainnet.public.blastapi.io',
|
|
75
|
+
getLogsIsUsable: false,
|
|
76
|
+
getLogsMaxBlockRange: 0n,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
url: 'https://scroll-mainnet-public.unifra.io',
|
|
80
|
+
getLogsIsUsable: true,
|
|
81
|
+
getLogsMaxBlockRange: 10_000n,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
url: 'https://scroll.blockpi.network/v1/rpc/public',
|
|
85
|
+
getLogsIsUsable: true,
|
|
86
|
+
getLogsMaxBlockRange: 1024n,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
url: 'https://1rpc.io/scroll',
|
|
90
|
+
getLogsIsUsable: true,
|
|
91
|
+
getLogsMaxBlockRange: 1000n,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
url: 'https://scroll.drpc.org',
|
|
95
|
+
getLogsIsUsable: true,
|
|
96
|
+
getLogsMaxBlockRange: 10_000n,
|
|
97
|
+
},
|
|
98
|
+
// Endpoint is not working
|
|
99
|
+
// {
|
|
100
|
+
// url: 'https://scroll-mainnet.rpc.grove.city/v1/a7a7c8e2',
|
|
101
|
+
// getLogsIsUsable: true,
|
|
102
|
+
// getLogsMaxBlockRange: 10_000n,
|
|
103
|
+
// },
|
|
104
|
+
{
|
|
105
|
+
url: 'https://scroll.api.onfinality.io/public',
|
|
106
|
+
getLogsIsUsable: true,
|
|
107
|
+
getLogsMaxBlockRange: 2000n,
|
|
108
|
+
},
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
export const scrollWebsocketRpcUrls: readonly string[] = []
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { usdc } from '@0xtorch/core'
|
|
2
|
+
import { zkFair } from 'viem/chains'
|
|
3
|
+
import { type Client, 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 createZkFairChain = () =>
|
|
10
|
+
createZkFairChainCustom({
|
|
11
|
+
client: createClient({
|
|
12
|
+
chain: zkFair,
|
|
13
|
+
httpRpcs: zkFairHttpRpcs,
|
|
14
|
+
}),
|
|
15
|
+
explorer: createBlockscout({
|
|
16
|
+
name: 'ZKFair-Mainnet explorer',
|
|
17
|
+
baseUrl: 'https://scan.zkfair.io',
|
|
18
|
+
apiBaseUrl: 'https://scan.zkfair.io/api',
|
|
19
|
+
}),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
type CreateZkFairChainParameters = {
|
|
23
|
+
client: Client
|
|
24
|
+
explorer: Explorer
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const createZkFairChainCustom = ({
|
|
28
|
+
client,
|
|
29
|
+
explorer,
|
|
30
|
+
}: CreateZkFairChainParameters): Chain => ({
|
|
31
|
+
id: 42_766,
|
|
32
|
+
network: 'zkfair',
|
|
33
|
+
name: 'ZKFair',
|
|
34
|
+
nativeToken: {
|
|
35
|
+
name: 'USDC',
|
|
36
|
+
symbol: 'USDC',
|
|
37
|
+
decimals: 18,
|
|
38
|
+
currency: usdc,
|
|
39
|
+
},
|
|
40
|
+
wrappedTokenAddresses: new Set([
|
|
41
|
+
'0xd33db7ec50a98164cc865dfaa64666906d79319c',
|
|
42
|
+
]),
|
|
43
|
+
explorer,
|
|
44
|
+
client,
|
|
45
|
+
blockTime: 45_000,
|
|
46
|
+
coingeckoId: 'zkfair',
|
|
47
|
+
defillamaId: undefined,
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
export const zkFairHttpRpcs: HttpRpc[] = [
|
|
51
|
+
{
|
|
52
|
+
url: 'https://rpc.zkfair.io',
|
|
53
|
+
getLogsIsUsable: true,
|
|
54
|
+
getLogsMaxBlockRange: 10_000n,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
url: 'https://endpoints.omniatech.io/v1/zkfair/mainnet/public',
|
|
58
|
+
getLogsIsUsable: true,
|
|
59
|
+
getLogsMaxBlockRange: 10_000n,
|
|
60
|
+
},
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
export const zkFairWebsocketRpcUrls: readonly string[] = []
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ethereum } from '@0xtorch/core'
|
|
2
|
+
import { zksync } from 'viem/chains'
|
|
3
|
+
import { type Client, createClient } from '../../client'
|
|
4
|
+
import type { Explorer } from '../../explorer'
|
|
5
|
+
import { createEtherscan } from '../../explorer'
|
|
6
|
+
import type { Chain } from '../types/chain'
|
|
7
|
+
import type { HttpRpc } from '../types/rpc'
|
|
8
|
+
|
|
9
|
+
export const createZkSyncEraChain = ({
|
|
10
|
+
explorerApiKey: apiKey,
|
|
11
|
+
explorerProxyUrl: proxyUrl,
|
|
12
|
+
explorerHeaders: headers,
|
|
13
|
+
}: {
|
|
14
|
+
explorerApiKey?: string
|
|
15
|
+
explorerProxyUrl?: string
|
|
16
|
+
explorerHeaders?: Record<string, string>
|
|
17
|
+
}) =>
|
|
18
|
+
createZkSyncEraChainCustom({
|
|
19
|
+
client: createClient({
|
|
20
|
+
chain: zksync,
|
|
21
|
+
httpRpcs: zksyncEraHttpRpcs,
|
|
22
|
+
}),
|
|
23
|
+
explorer: createEtherscan({
|
|
24
|
+
name: 'zkSync Era Explorer',
|
|
25
|
+
baseUrl: 'https://era.zksync.network',
|
|
26
|
+
apiBaseUrl: 'https://api-era.zksync.network/api',
|
|
27
|
+
apiKey,
|
|
28
|
+
proxyUrl,
|
|
29
|
+
headers,
|
|
30
|
+
}),
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
type CreateZkSyncEraChainParameters = {
|
|
34
|
+
client: Client
|
|
35
|
+
explorer: Explorer
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const createZkSyncEraChainCustom = ({
|
|
39
|
+
client,
|
|
40
|
+
explorer,
|
|
41
|
+
}: CreateZkSyncEraChainParameters): Chain => ({
|
|
42
|
+
id: 324,
|
|
43
|
+
network: 'zksync-era',
|
|
44
|
+
name: 'zkSync Era',
|
|
45
|
+
nativeToken: {
|
|
46
|
+
name: 'Ethereum',
|
|
47
|
+
symbol: 'ETH',
|
|
48
|
+
decimals: 18,
|
|
49
|
+
currency: ethereum,
|
|
50
|
+
},
|
|
51
|
+
wrappedTokenAddresses: new Set([
|
|
52
|
+
'0x5aea5775959fbc2557cc8789bc1bf90a239d9a91',
|
|
53
|
+
]),
|
|
54
|
+
explorer,
|
|
55
|
+
client,
|
|
56
|
+
blockTime: 1000,
|
|
57
|
+
coingeckoId: 'zksync',
|
|
58
|
+
defillamaId: undefined,
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
export const zksyncEraHttpRpcs: HttpRpc[] = [
|
|
62
|
+
{
|
|
63
|
+
url: 'https://mainnet.era.zksync.io',
|
|
64
|
+
getLogsIsUsable: true,
|
|
65
|
+
getLogsMaxBlockRange: 10_000n,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
url: 'https://zksync-era.blockpi.network/v1/rpc/public',
|
|
69
|
+
getLogsIsUsable: true,
|
|
70
|
+
getLogsMaxBlockRange: 1024n,
|
|
71
|
+
},
|
|
72
|
+
// Not archiving receipts
|
|
73
|
+
// {
|
|
74
|
+
// url: 'https://go.getblock.io/f76c09905def4618a34946bf71851542',
|
|
75
|
+
// getLogsIsUsable: true,
|
|
76
|
+
// getLogsMaxBlockRange: 10_000n,
|
|
77
|
+
// },
|
|
78
|
+
// Not archiving receipts
|
|
79
|
+
// {
|
|
80
|
+
// url: 'https://zksync.meowrpc.com',
|
|
81
|
+
// getLogsIsUsable: true,
|
|
82
|
+
// getLogsMaxBlockRange: 1024n,
|
|
83
|
+
// },
|
|
84
|
+
// Not archiving receipts
|
|
85
|
+
// {
|
|
86
|
+
// url: 'https://zksync.drpc.org',
|
|
87
|
+
// getLogsIsUsable: false,
|
|
88
|
+
// getLogsMaxBlockRange: 0n,
|
|
89
|
+
// },
|
|
90
|
+
{
|
|
91
|
+
url: 'https://1rpc.io/zksync2-era',
|
|
92
|
+
getLogsIsUsable: true,
|
|
93
|
+
getLogsMaxBlockRange: 1000n,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
url: 'https://endpoints.omniatech.io/v1/zksync-era/mainnet/public',
|
|
97
|
+
getLogsIsUsable: true,
|
|
98
|
+
getLogsMaxBlockRange: 10_000n,
|
|
99
|
+
},
|
|
100
|
+
// Not archiving receipts
|
|
101
|
+
// {
|
|
102
|
+
// url: 'https://api.zan.top/zksync-mainnet',
|
|
103
|
+
// getLogsIsUsable: true,
|
|
104
|
+
// getLogsMaxBlockRange: 10_000n,
|
|
105
|
+
// },
|
|
106
|
+
]
|
|
107
|
+
|
|
108
|
+
export const zksyncEraWebsocketRpcUrls: readonly string[] = []
|
package/chain/index.ts
CHANGED
|
@@ -10,6 +10,12 @@ export {
|
|
|
10
10
|
astarHttpRpcs,
|
|
11
11
|
astarWebsocketRpcUrls,
|
|
12
12
|
} from './definitions/astar'
|
|
13
|
+
export {
|
|
14
|
+
createAstarZkEvmChain,
|
|
15
|
+
createAstarZkEvmChainCustom,
|
|
16
|
+
astarZkEvmHttpRpcs,
|
|
17
|
+
astarZkEvmWebsocketRpcUrls,
|
|
18
|
+
} from './definitions/astarZkEvm'
|
|
13
19
|
export {
|
|
14
20
|
createAvalancheCChain,
|
|
15
21
|
createAvalancheCChainCustom,
|
|
@@ -22,6 +28,12 @@ export {
|
|
|
22
28
|
baseHttpRpcs,
|
|
23
29
|
baseWebsocketRpcUrls,
|
|
24
30
|
} from './definitions/base'
|
|
31
|
+
export {
|
|
32
|
+
createBlastChain,
|
|
33
|
+
createBlastChainCustom,
|
|
34
|
+
blastHttpRpcs,
|
|
35
|
+
blastWebsocketRpcUrls,
|
|
36
|
+
} from './definitions/blast'
|
|
25
37
|
export {
|
|
26
38
|
createBscChain,
|
|
27
39
|
createBscChainCustom,
|
|
@@ -100,6 +112,24 @@ export {
|
|
|
100
112
|
roninHttpRpcs,
|
|
101
113
|
roninWebsocketRpcUrls,
|
|
102
114
|
} from './definitions/ronin'
|
|
115
|
+
export {
|
|
116
|
+
createScrollChain,
|
|
117
|
+
createScrollChainCustom,
|
|
118
|
+
scrollHttpRpcs,
|
|
119
|
+
scrollWebsocketRpcUrls,
|
|
120
|
+
} from './definitions/scroll'
|
|
121
|
+
export {
|
|
122
|
+
createZkFairChain,
|
|
123
|
+
createZkFairChainCustom,
|
|
124
|
+
zkFairHttpRpcs,
|
|
125
|
+
zkFairWebsocketRpcUrls,
|
|
126
|
+
} from './definitions/zkFair'
|
|
127
|
+
export {
|
|
128
|
+
createZkSyncEraChain,
|
|
129
|
+
createZkSyncEraChainCustom,
|
|
130
|
+
zksyncEraHttpRpcs,
|
|
131
|
+
zksyncEraWebsocketRpcUrls,
|
|
132
|
+
} from './definitions/zkSyncEra'
|
|
103
133
|
export {
|
|
104
134
|
createZoraChain,
|
|
105
135
|
createZoraChainCustom,
|
package/index.ts
CHANGED
|
@@ -4,20 +4,28 @@ export {
|
|
|
4
4
|
arbitrumOneWebsocketRpcUrls,
|
|
5
5
|
astarHttpRpcs,
|
|
6
6
|
astarWebsocketRpcUrls,
|
|
7
|
+
astarZkEvmHttpRpcs,
|
|
8
|
+
astarZkEvmWebsocketRpcUrls,
|
|
7
9
|
avalancheCHttpRpcs,
|
|
8
10
|
avalancheCWebsocketRpcUrls,
|
|
9
11
|
baseHttpRpcs,
|
|
10
12
|
baseWebsocketRpcUrls,
|
|
13
|
+
blastHttpRpcs,
|
|
14
|
+
blastWebsocketRpcUrls,
|
|
11
15
|
bscHttpRpcs,
|
|
12
16
|
bscWebsocketRpcUrls,
|
|
13
17
|
createArbitrumOneChain,
|
|
14
18
|
createArbitrumOneChainCustom,
|
|
15
19
|
createAstarChain,
|
|
16
20
|
createAstarChainCustom,
|
|
21
|
+
createAstarZkEvmChain,
|
|
22
|
+
createAstarZkEvmChainCustom,
|
|
17
23
|
createAvalancheCChain,
|
|
18
24
|
createAvalancheCChainCustom,
|
|
19
25
|
createBaseChain,
|
|
20
26
|
createBaseChainCustom,
|
|
27
|
+
createBlastChain,
|
|
28
|
+
createBlastChainCustom,
|
|
21
29
|
createBscChain,
|
|
22
30
|
createBscChainCustom,
|
|
23
31
|
createEthereumChain,
|
|
@@ -44,6 +52,12 @@ export {
|
|
|
44
52
|
createPolygonPosChainCustom,
|
|
45
53
|
createRoninChain,
|
|
46
54
|
createRoninChainCustom,
|
|
55
|
+
createScrollChain,
|
|
56
|
+
createScrollChainCustom,
|
|
57
|
+
createZkFairChain,
|
|
58
|
+
createZkFairChainCustom,
|
|
59
|
+
createZkSyncEraChain,
|
|
60
|
+
createZkSyncEraChainCustom,
|
|
47
61
|
createZoraChain,
|
|
48
62
|
createZoraChainCustom,
|
|
49
63
|
ethereumHttpRpcs,
|
|
@@ -70,6 +84,12 @@ export {
|
|
|
70
84
|
polygonPosWebsocketRpcUrls,
|
|
71
85
|
roninHttpRpcs,
|
|
72
86
|
roninWebsocketRpcUrls,
|
|
87
|
+
scrollHttpRpcs,
|
|
88
|
+
scrollWebsocketRpcUrls,
|
|
89
|
+
zkFairHttpRpcs,
|
|
90
|
+
zkFairWebsocketRpcUrls,
|
|
91
|
+
zksyncEraHttpRpcs,
|
|
92
|
+
zksyncEraWebsocketRpcUrls,
|
|
73
93
|
zoraHttpRpcs,
|
|
74
94
|
zoraWebsocketRpcUrls,
|
|
75
95
|
} from './chain'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xtorch/evm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.94",
|
|
4
4
|
"description": "Cryptorch EVM extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cryptorch",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@0xtorch/big-decimal": "^0.0.11",
|
|
41
|
-
"@0xtorch/core": "^0.0.
|
|
41
|
+
"@0xtorch/core": "^0.0.50",
|
|
42
42
|
"abitype": "^1.0.6",
|
|
43
43
|
"viem": "2.21.18",
|
|
44
44
|
"zod": "^3.23.8"
|