@shapeshiftoss/contracts 2.1.0 → 2.1.2
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/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/ethersProviderSingleton.js +0 -28
- package/dist/cjs/publicRpcUrls.d.ts +0 -14
- package/dist/cjs/publicRpcUrls.js +0 -37
- package/dist/cjs/viemClient.d.ts +10 -46256
- package/dist/cjs/viemClient.js +1 -68
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ethersProviderSingleton.js +0 -28
- package/dist/esm/publicRpcUrls.d.ts +0 -14
- package/dist/esm/publicRpcUrls.js +0 -37
- package/dist/esm/viemClient.d.ts +10 -46256
- package/dist/esm/viemClient.js +1 -68
- package/package.json +4 -4
|
@@ -38,48 +38,20 @@ const rpcUrlByChainId = (chainId) => {
|
|
|
38
38
|
return publicRpcUrls_1.PUBLIC_RPC_URLS.ink[0];
|
|
39
39
|
case types_1.KnownChainIds.MegaEthMainnet:
|
|
40
40
|
return publicRpcUrls_1.PUBLIC_RPC_URLS.megaEth[0];
|
|
41
|
-
case types_1.KnownChainIds.BerachainMainnet:
|
|
42
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.berachain[0];
|
|
43
41
|
case types_1.KnownChainIds.CronosMainnet:
|
|
44
42
|
return publicRpcUrls_1.PUBLIC_RPC_URLS.cronos[0];
|
|
45
43
|
case types_1.KnownChainIds.KatanaMainnet:
|
|
46
44
|
return publicRpcUrls_1.PUBLIC_RPC_URLS.katana[0];
|
|
47
|
-
case types_1.KnownChainIds.EtherealMainnet:
|
|
48
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.ethereal[0];
|
|
49
|
-
case types_1.KnownChainIds.FlowEvmMainnet:
|
|
50
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.flowEvm[0];
|
|
51
45
|
case types_1.KnownChainIds.CeloMainnet:
|
|
52
46
|
return publicRpcUrls_1.PUBLIC_RPC_URLS.celo[0];
|
|
53
|
-
case types_1.KnownChainIds.PlumeMainnet:
|
|
54
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.plume[0];
|
|
55
|
-
case types_1.KnownChainIds.StoryMainnet:
|
|
56
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.story[0];
|
|
57
|
-
case types_1.KnownChainIds.ZkSyncEraMainnet:
|
|
58
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.zkSyncEra[0];
|
|
59
|
-
case types_1.KnownChainIds.BlastMainnet:
|
|
60
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.blast[0];
|
|
61
|
-
case types_1.KnownChainIds.WorldChainMainnet:
|
|
62
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.worldChain[0];
|
|
63
|
-
case types_1.KnownChainIds.HemiMainnet:
|
|
64
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.hemi[0];
|
|
65
|
-
case types_1.KnownChainIds.LineaMainnet:
|
|
66
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.linea[0];
|
|
67
|
-
case types_1.KnownChainIds.ScrollMainnet:
|
|
68
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.scroll[0];
|
|
69
47
|
case types_1.KnownChainIds.SonicMainnet:
|
|
70
48
|
return publicRpcUrls_1.PUBLIC_RPC_URLS.sonic[0];
|
|
71
49
|
case types_1.KnownChainIds.UnichainMainnet:
|
|
72
50
|
return publicRpcUrls_1.PUBLIC_RPC_URLS.unichain[0];
|
|
73
51
|
case types_1.KnownChainIds.BobMainnet:
|
|
74
52
|
return publicRpcUrls_1.PUBLIC_RPC_URLS.bob[0];
|
|
75
|
-
case types_1.KnownChainIds.ModeMainnet:
|
|
76
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.mode[0];
|
|
77
|
-
case types_1.KnownChainIds.SoneiumMainnet:
|
|
78
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.soneium[0];
|
|
79
53
|
case types_1.KnownChainIds.SeiMainnet:
|
|
80
54
|
return publicRpcUrls_1.PUBLIC_RPC_URLS.sei[0];
|
|
81
|
-
case types_1.KnownChainIds.AbstractMainnet:
|
|
82
|
-
return publicRpcUrls_1.PUBLIC_RPC_URLS.abstract[0];
|
|
83
55
|
case types_1.KnownChainIds.RobinhoodMainnet:
|
|
84
56
|
return publicRpcUrls_1.PUBLIC_RPC_URLS.robinhood[0];
|
|
85
57
|
case types_1.KnownChainIds.ElysiumMainnet:
|
|
@@ -7,33 +7,19 @@ export declare const PUBLIC_RPC_URLS: {
|
|
|
7
7
|
readonly gnosis: readonly ["https://gnosis-rpc.publicnode.com", "https://gnosis.drpc.org"];
|
|
8
8
|
readonly polygon: readonly ["https://polygon-bor-rpc.publicnode.com", "https://polygon.drpc.org"];
|
|
9
9
|
readonly base: readonly ["https://base-rpc.publicnode.com", "https://base.drpc.org"];
|
|
10
|
-
readonly abstract: readonly ["https://api.mainnet.abs.xyz", "https://abstract.drpc.org", "https://abstract.api.onfinality.io/public", "https://abstract-mainnet.gateway.tatum.io"];
|
|
11
|
-
readonly berachain: readonly ["https://rpc.berachain.com", "https://berachain-rpc.publicnode.com", "https://berachain.drpc.org", "https://berachain-mainnet.gateway.tatum.io"];
|
|
12
|
-
readonly blast: readonly ["https://rpc.blast.io", "https://blast-rpc.publicnode.com", "https://blast.drpc.org"];
|
|
13
10
|
readonly bob: readonly ["https://rpc.gobob.xyz", "https://bob.drpc.org"];
|
|
14
11
|
readonly celo: readonly ["https://forno.celo.org", "https://celo.drpc.org", "https://celo.api.onfinality.io/public", "https://celo-mainnet.gateway.tatum.io"];
|
|
15
12
|
readonly cronos: readonly ["https://evm.cronos.org", "https://cronos-evm-rpc.publicnode.com", "https://cronos.drpc.org", "https://cro-mainnet.gateway.tatum.io"];
|
|
16
|
-
readonly ethereal: readonly ["https://rpc.ethereal.trade"];
|
|
17
|
-
readonly flowEvm: readonly ["https://mainnet.evm.nodes.onflow.org", "https://flow-mainnet.gateway.tatum.io"];
|
|
18
|
-
readonly hemi: readonly ["https://rpc.hemi.network/rpc", "https://hemi.drpc.org"];
|
|
19
13
|
readonly hyperEvm: readonly ["https://rpc.hyperliquid.xyz/evm", "https://hyperliquid.drpc.org"];
|
|
20
14
|
readonly ink: readonly ["https://rpc-gel.inkonchain.com", "https://rpc-qnd.inkonchain.com", "https://ink.drpc.org"];
|
|
21
15
|
readonly katana: readonly ["https://rpc.katana.network", "https://rpc.katanarpc.com", "https://katana.drpc.org"];
|
|
22
|
-
readonly linea: readonly ["https://rpc.linea.build", "https://linea-rpc.publicnode.com", "https://linea.drpc.org"];
|
|
23
16
|
readonly mantle: readonly ["https://rpc.mantle.xyz", "https://mantle-rpc.publicnode.com", "https://mantle.drpc.org", "https://mantle.api.onfinality.io/public"];
|
|
24
17
|
readonly megaEth: readonly ["https://mainnet.megaeth.com/rpc", "https://megaeth.drpc.org"];
|
|
25
|
-
readonly mode: readonly ["https://mainnet.mode.network", "https://mode.drpc.org"];
|
|
26
18
|
readonly monad: readonly ["https://rpc.monad.xyz", "https://monad-mainnet.drpc.org", "https://rpc-mainnet.monadinfra.com", "https://rpc1.monad.xyz", "https://rpc3.monad.xyz"];
|
|
27
19
|
readonly plasma: readonly ["https://rpc.plasma.to", "https://plasma.drpc.org", "https://plasma.api.onfinality.io/public"];
|
|
28
|
-
readonly plume: readonly ["https://rpc.plume.org", "https://plume.drpc.org", "https://plume-mainnet.gateway.tatum.io"];
|
|
29
|
-
readonly scroll: readonly ["https://rpc.scroll.io", "https://scroll-rpc.publicnode.com", "https://scroll.drpc.org", "https://scroll.api.onfinality.io/public"];
|
|
30
20
|
readonly sei: readonly ["https://evm-rpc.sei-apis.com", "https://sei.drpc.org"];
|
|
31
|
-
readonly soneium: readonly ["https://rpc.soneium.org", "https://soneium.drpc.org"];
|
|
32
21
|
readonly sonic: readonly ["https://rpc.soniclabs.com", "https://sonic-rpc.publicnode.com", "https://sonic.drpc.org", "https://sonic.api.onfinality.io/public"];
|
|
33
|
-
readonly story: readonly ["https://mainnet.storyrpc.io"];
|
|
34
22
|
readonly unichain: readonly ["https://mainnet.unichain.org", "https://unichain-rpc.publicnode.com", "https://unichain.drpc.org", "https://unichain.api.onfinality.io/public", "https://unichain-mainnet.gateway.tatum.io"];
|
|
35
|
-
readonly worldChain: readonly ["https://worldchain-mainnet.g.alchemy.com/public", "https://worldchain.drpc.org"];
|
|
36
|
-
readonly zkSyncEra: readonly ["https://mainnet.era.zksync.io", "https://zksync.drpc.org", "https://zksync.api.onfinality.io/public"];
|
|
37
23
|
readonly robinhood: readonly ["https://rpc.mainnet.chain.robinhood.com", "https://robinhood-rpc.publicnode.com"];
|
|
38
24
|
readonly elysium: readonly ["https://rpc.elysium.kinetiq.xyz", "https://elysium.drpc.org"];
|
|
39
25
|
};
|
|
@@ -12,19 +12,6 @@ exports.PUBLIC_RPC_URLS = {
|
|
|
12
12
|
polygon: ['https://polygon-bor-rpc.publicnode.com', 'https://polygon.drpc.org'],
|
|
13
13
|
base: ['https://base-rpc.publicnode.com', 'https://base.drpc.org'],
|
|
14
14
|
// second class chains
|
|
15
|
-
abstract: [
|
|
16
|
-
'https://api.mainnet.abs.xyz',
|
|
17
|
-
'https://abstract.drpc.org',
|
|
18
|
-
'https://abstract.api.onfinality.io/public',
|
|
19
|
-
'https://abstract-mainnet.gateway.tatum.io',
|
|
20
|
-
],
|
|
21
|
-
berachain: [
|
|
22
|
-
'https://rpc.berachain.com',
|
|
23
|
-
'https://berachain-rpc.publicnode.com',
|
|
24
|
-
'https://berachain.drpc.org',
|
|
25
|
-
'https://berachain-mainnet.gateway.tatum.io',
|
|
26
|
-
],
|
|
27
|
-
blast: ['https://rpc.blast.io', 'https://blast-rpc.publicnode.com', 'https://blast.drpc.org'],
|
|
28
15
|
bob: ['https://rpc.gobob.xyz', 'https://bob.drpc.org'],
|
|
29
16
|
celo: [
|
|
30
17
|
'https://forno.celo.org',
|
|
@@ -38,13 +25,9 @@ exports.PUBLIC_RPC_URLS = {
|
|
|
38
25
|
'https://cronos.drpc.org',
|
|
39
26
|
'https://cro-mainnet.gateway.tatum.io',
|
|
40
27
|
],
|
|
41
|
-
ethereal: ['https://rpc.ethereal.trade'],
|
|
42
|
-
flowEvm: ['https://mainnet.evm.nodes.onflow.org', 'https://flow-mainnet.gateway.tatum.io'],
|
|
43
|
-
hemi: ['https://rpc.hemi.network/rpc', 'https://hemi.drpc.org'],
|
|
44
28
|
hyperEvm: ['https://rpc.hyperliquid.xyz/evm', 'https://hyperliquid.drpc.org'],
|
|
45
29
|
ink: ['https://rpc-gel.inkonchain.com', 'https://rpc-qnd.inkonchain.com', 'https://ink.drpc.org'],
|
|
46
30
|
katana: ['https://rpc.katana.network', 'https://rpc.katanarpc.com', 'https://katana.drpc.org'],
|
|
47
|
-
linea: ['https://rpc.linea.build', 'https://linea-rpc.publicnode.com', 'https://linea.drpc.org'],
|
|
48
31
|
mantle: [
|
|
49
32
|
'https://rpc.mantle.xyz',
|
|
50
33
|
'https://mantle-rpc.publicnode.com',
|
|
@@ -52,7 +35,6 @@ exports.PUBLIC_RPC_URLS = {
|
|
|
52
35
|
'https://mantle.api.onfinality.io/public',
|
|
53
36
|
],
|
|
54
37
|
megaEth: ['https://mainnet.megaeth.com/rpc', 'https://megaeth.drpc.org'],
|
|
55
|
-
mode: ['https://mainnet.mode.network', 'https://mode.drpc.org'],
|
|
56
38
|
monad: [
|
|
57
39
|
'https://rpc.monad.xyz',
|
|
58
40
|
'https://monad-mainnet.drpc.org',
|
|
@@ -65,26 +47,13 @@ exports.PUBLIC_RPC_URLS = {
|
|
|
65
47
|
'https://plasma.drpc.org',
|
|
66
48
|
'https://plasma.api.onfinality.io/public',
|
|
67
49
|
],
|
|
68
|
-
plume: [
|
|
69
|
-
'https://rpc.plume.org',
|
|
70
|
-
'https://plume.drpc.org',
|
|
71
|
-
'https://plume-mainnet.gateway.tatum.io',
|
|
72
|
-
],
|
|
73
|
-
scroll: [
|
|
74
|
-
'https://rpc.scroll.io',
|
|
75
|
-
'https://scroll-rpc.publicnode.com',
|
|
76
|
-
'https://scroll.drpc.org',
|
|
77
|
-
'https://scroll.api.onfinality.io/public',
|
|
78
|
-
],
|
|
79
50
|
sei: ['https://evm-rpc.sei-apis.com', 'https://sei.drpc.org'],
|
|
80
|
-
soneium: ['https://rpc.soneium.org', 'https://soneium.drpc.org'],
|
|
81
51
|
sonic: [
|
|
82
52
|
'https://rpc.soniclabs.com',
|
|
83
53
|
'https://sonic-rpc.publicnode.com',
|
|
84
54
|
'https://sonic.drpc.org',
|
|
85
55
|
'https://sonic.api.onfinality.io/public',
|
|
86
56
|
],
|
|
87
|
-
story: ['https://mainnet.storyrpc.io'],
|
|
88
57
|
unichain: [
|
|
89
58
|
'https://mainnet.unichain.org',
|
|
90
59
|
'https://unichain-rpc.publicnode.com',
|
|
@@ -92,12 +61,6 @@ exports.PUBLIC_RPC_URLS = {
|
|
|
92
61
|
'https://unichain.api.onfinality.io/public',
|
|
93
62
|
'https://unichain-mainnet.gateway.tatum.io',
|
|
94
63
|
],
|
|
95
|
-
worldChain: ['https://worldchain-mainnet.g.alchemy.com/public', 'https://worldchain.drpc.org'],
|
|
96
|
-
zkSyncEra: [
|
|
97
|
-
'https://mainnet.era.zksync.io',
|
|
98
|
-
'https://zksync.drpc.org',
|
|
99
|
-
'https://zksync.api.onfinality.io/public',
|
|
100
|
-
],
|
|
101
64
|
robinhood: ['https://rpc.mainnet.chain.robinhood.com', 'https://robinhood-rpc.publicnode.com'],
|
|
102
65
|
elysium: ['https://rpc.elysium.kinetiq.xyz', 'https://elysium.drpc.org'],
|
|
103
66
|
};
|