@0xtorch/evm 0.0.161 → 0.0.163
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/megaEth.js +53 -0
- package/_cjs/chain/definitions/megaEth.js.map +1 -0
- package/_cjs/chain/index.js +8 -13
- package/_cjs/chain/index.js.map +1 -1
- package/_cjs/index.js +9 -13
- package/_cjs/index.js.map +1 -1
- package/_esm/chain/definitions/megaEth.js +48 -0
- package/_esm/chain/definitions/megaEth.js.map +1 -0
- package/_esm/chain/index.js +1 -2
- 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/megaEth.d.ts +18 -0
- package/_types/chain/definitions/megaEth.d.ts.map +1 -0
- package/_types/chain/index.d.ts +1 -2
- package/_types/chain/index.d.ts.map +1 -1
- package/_types/chain/viemChains/hyperEvm.d.ts +1 -0
- package/_types/chain/viemChains/hyperEvm.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/chain/definitions/megaEth.ts +72 -0
- package/chain/index.ts +6 -12
- package/index.ts +4 -8
- package/package.json +2 -2
- package/_cjs/chain/definitions/gesoVerse.js +0 -47
- package/_cjs/chain/definitions/gesoVerse.js.map +0 -1
- package/_cjs/chain/definitions/zkFair.js +0 -59
- package/_cjs/chain/definitions/zkFair.js.map +0 -1
- package/_cjs/chain/viemChains/gesoVerse.js +0 -23
- package/_cjs/chain/viemChains/gesoVerse.js.map +0 -1
- package/_esm/chain/definitions/gesoVerse.js +0 -42
- package/_esm/chain/definitions/gesoVerse.js.map +0 -1
- package/_esm/chain/definitions/zkFair.js +0 -60
- package/_esm/chain/definitions/zkFair.js.map +0 -1
- package/_esm/chain/viemChains/gesoVerse.js +0 -20
- package/_esm/chain/viemChains/gesoVerse.js.map +0 -1
- package/_types/chain/definitions/gesoVerse.d.ts +0 -16
- package/_types/chain/definitions/gesoVerse.d.ts.map +0 -1
- package/_types/chain/definitions/zkFair.d.ts +0 -17
- package/_types/chain/definitions/zkFair.d.ts.map +0 -1
- package/_types/chain/viemChains/gesoVerse.d.ts +0 -49
- package/_types/chain/viemChains/gesoVerse.d.ts.map +0 -1
- package/chain/definitions/gesoVerse.ts +0 -61
- package/chain/definitions/zkFair.ts +0 -80
- package/chain/viemChains/gesoVerse.ts +0 -20
|
@@ -1,80 +0,0 @@
|
|
|
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
|
-
explorerProxyUrl: proxyUrl,
|
|
11
|
-
}: {
|
|
12
|
-
explorerProxyUrl?: string
|
|
13
|
-
explorerHeaders?: Record<string, string>
|
|
14
|
-
}) =>
|
|
15
|
-
createZkFairChainCustom({
|
|
16
|
-
client: createClient({
|
|
17
|
-
chain: zkFair,
|
|
18
|
-
httpRpcs: zkFairHttpRpcs,
|
|
19
|
-
}),
|
|
20
|
-
explorer: createBlockscout({
|
|
21
|
-
name: 'ZKFair-Mainnet explorer',
|
|
22
|
-
baseUrl: 'https://scan.zkfair.io',
|
|
23
|
-
apiBaseUrl: 'https://scan.zkfair.io/api',
|
|
24
|
-
proxyUrl,
|
|
25
|
-
}),
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
type CreateZkFairChainParameters = {
|
|
29
|
-
client: Client
|
|
30
|
-
explorer: Explorer
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const createZkFairChainCustom = ({
|
|
34
|
-
client,
|
|
35
|
-
explorer,
|
|
36
|
-
}: CreateZkFairChainParameters): Chain => ({
|
|
37
|
-
id: 42_766,
|
|
38
|
-
network: 'zkfair',
|
|
39
|
-
name: 'ZKFair',
|
|
40
|
-
nativeToken: {
|
|
41
|
-
name: 'USDC',
|
|
42
|
-
symbol: 'USDC',
|
|
43
|
-
decimals: 18,
|
|
44
|
-
currency: usdc,
|
|
45
|
-
},
|
|
46
|
-
wrappedTokenAddresses: new Set([
|
|
47
|
-
'0xd33db7ec50a98164cc865dfaa64666906d79319c',
|
|
48
|
-
]),
|
|
49
|
-
explorer,
|
|
50
|
-
client,
|
|
51
|
-
blockTime: 45_000,
|
|
52
|
-
coingeckoId: 'zkfair',
|
|
53
|
-
defillamaId: undefined,
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
export const zkFairHttpRpcs: HttpRpc[] = [
|
|
57
|
-
{
|
|
58
|
-
url: 'https://rpc.zkfair.io',
|
|
59
|
-
getLogsIsUsable: true,
|
|
60
|
-
getLogsMaxBlockRange: 10_000n,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
url: 'https://endpoints.omniatech.io/v1/zkfair/mainnet/public',
|
|
64
|
-
getLogsIsUsable: true,
|
|
65
|
-
getLogsMaxBlockRange: 10_000n,
|
|
66
|
-
},
|
|
67
|
-
// Endpoint is not working
|
|
68
|
-
// {
|
|
69
|
-
// url: 'https://zkfair.blockpi.network/v1/rpc/public',
|
|
70
|
-
// getLogsIsUsable: true,
|
|
71
|
-
// getLogsMaxBlockRange: 10_000n,
|
|
72
|
-
// },
|
|
73
|
-
{
|
|
74
|
-
url: 'https://zkfair.rpc.thirdweb.com',
|
|
75
|
-
getLogsIsUsable: true,
|
|
76
|
-
getLogsMaxBlockRange: 10_000n,
|
|
77
|
-
},
|
|
78
|
-
]
|
|
79
|
-
|
|
80
|
-
export const zkFairWebsocketRpcUrls: readonly string[] = []
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineChain } from 'viem'
|
|
2
|
-
|
|
3
|
-
export const gesoVerse = defineChain({
|
|
4
|
-
id: 428,
|
|
5
|
-
name: 'GESOVerse',
|
|
6
|
-
nativeCurrency: { name: 'Oasys', symbol: 'OAS', decimals: 18 },
|
|
7
|
-
rpcUrls: {
|
|
8
|
-
default: {
|
|
9
|
-
http: ['https://rpc.verse.gesoten.com'],
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
blockExplorers: {
|
|
13
|
-
default: {
|
|
14
|
-
name: 'GESOVerse Explorer',
|
|
15
|
-
url: 'https://explorer.verse.gesoten.com',
|
|
16
|
-
apiUrl: 'https://explorer.verse.gesoten.com/api',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
testnet: false,
|
|
20
|
-
})
|