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