@shapeshiftoss/contracts 1.0.6 → 1.0.7
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/LICENSE.md +21 -0
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/abis/index.d.ts +0 -5
- package/dist/cjs/abis/index.js +0 -5
- package/dist/cjs/constants.d.ts +0 -1
- package/dist/cjs/constants.js +1 -5
- package/dist/cjs/ethersProviderSingleton.js +41 -32
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/publicRpcUrls.d.ts +37 -0
- package/dist/cjs/publicRpcUrls.js +101 -0
- package/dist/cjs/viemClient.d.ts +20973 -4
- package/dist/cjs/viemClient.js +70 -47
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/abis/index.d.ts +0 -5
- package/dist/esm/abis/index.js +0 -5
- package/dist/esm/constants.d.ts +0 -1
- package/dist/esm/constants.js +0 -4
- package/dist/esm/ethersProviderSingleton.js +41 -32
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/publicRpcUrls.d.ts +37 -0
- package/dist/esm/publicRpcUrls.js +98 -0
- package/dist/esm/viemClient.d.ts +20973 -4
- package/dist/esm/viemClient.js +70 -47
- package/package.json +13 -14
- package/dist/cjs/abis/foxy.d.ts +0 -519
- package/dist/cjs/abis/foxy.js +0 -678
- package/dist/cjs/abis/liquidityReserve.d.ts +0 -421
- package/dist/cjs/abis/liquidityReserve.js +0 -550
- package/dist/cjs/abis/tokeManager.d.ts +0 -774
- package/dist/cjs/abis/tokeManager.js +0 -511
- package/dist/cjs/abis/tokePool.d.ts +0 -502
- package/dist/cjs/abis/tokePool.js +0 -311
- package/dist/cjs/abis/tokeRewardHash.d.ts +0 -112
- package/dist/cjs/abis/tokeRewardHash.js +0 -74
- package/dist/esm/abis/foxy.d.ts +0 -519
- package/dist/esm/abis/foxy.js +0 -675
- package/dist/esm/abis/liquidityReserve.d.ts +0 -421
- package/dist/esm/abis/liquidityReserve.js +0 -547
- package/dist/esm/abis/tokeManager.d.ts +0 -774
- package/dist/esm/abis/tokeManager.js +0 -508
- package/dist/esm/abis/tokePool.d.ts +0 -502
- package/dist/esm/abis/tokePool.js +0 -308
- package/dist/esm/abis/tokeRewardHash.d.ts +0 -112
- package/dist/esm/abis/tokeRewardHash.js +0 -71
package/dist/cjs/abis/index.d.ts
CHANGED
|
@@ -4,17 +4,12 @@ export * from './arbRetryableTx';
|
|
|
4
4
|
export * from './arbSys';
|
|
5
5
|
export * from './farming';
|
|
6
6
|
export * from './evergreenFarming';
|
|
7
|
-
export * from './foxy';
|
|
8
7
|
export * from './foxyStaking';
|
|
9
8
|
export * from './l1ArbitrumGateway';
|
|
10
9
|
export * from './l1OrbitCustomGateway';
|
|
11
10
|
export * from './l2ArbitrumGateway';
|
|
12
|
-
export * from './liquidityReserve';
|
|
13
11
|
export * from './rfox';
|
|
14
12
|
export * from './thorchainRouter';
|
|
15
|
-
export * from './tokeManager';
|
|
16
|
-
export * from './tokePool';
|
|
17
|
-
export * from './tokeRewardHash';
|
|
18
13
|
export * from './iUniswapV2Pair';
|
|
19
14
|
export * from './uniswapV2Router02';
|
|
20
15
|
export * from './iUniswapV3Pool';
|
package/dist/cjs/abis/index.js
CHANGED
|
@@ -20,17 +20,12 @@ __exportStar(require("./arbRetryableTx"), exports);
|
|
|
20
20
|
__exportStar(require("./arbSys"), exports);
|
|
21
21
|
__exportStar(require("./farming"), exports);
|
|
22
22
|
__exportStar(require("./evergreenFarming"), exports);
|
|
23
|
-
__exportStar(require("./foxy"), exports);
|
|
24
23
|
__exportStar(require("./foxyStaking"), exports);
|
|
25
24
|
__exportStar(require("./l1ArbitrumGateway"), exports);
|
|
26
25
|
__exportStar(require("./l1OrbitCustomGateway"), exports);
|
|
27
26
|
__exportStar(require("./l2ArbitrumGateway"), exports);
|
|
28
|
-
__exportStar(require("./liquidityReserve"), exports);
|
|
29
27
|
__exportStar(require("./rfox"), exports);
|
|
30
28
|
__exportStar(require("./thorchainRouter"), exports);
|
|
31
|
-
__exportStar(require("./tokeManager"), exports);
|
|
32
|
-
__exportStar(require("./tokePool"), exports);
|
|
33
|
-
__exportStar(require("./tokeRewardHash"), exports);
|
|
34
29
|
__exportStar(require("./iUniswapV2Pair"), exports);
|
|
35
30
|
__exportStar(require("./uniswapV2Router02"), exports);
|
|
36
31
|
__exportStar(require("./iUniswapV3Pool"), exports);
|
package/dist/cjs/constants.d.ts
CHANGED
|
@@ -6638,4 +6638,3 @@ export declare const UNI_V2_FOX_STAKING_REWARDS_V4_CONTRACT = "0x24FD7FB95dc742e
|
|
|
6638
6638
|
export declare const UNI_V2_FOX_STAKING_REWARDS_V5_CONTRACT = "0xC14eaA8284feFF79EDc118E06caDBf3813a7e555";
|
|
6639
6639
|
export declare const UNI_V2_FOX_STAKING_REWARDS_CONTRACTS: readonly ["0xDd80E21669A664Bce83E3AD9a0d74f8Dad5D9E72", "0xc54B9F82C1c54E9D4d274d633c7523f2299c42A0", "0x212ebf9FD3c10F371557b08E993eAaB385c3932b", "0x24FD7FB95dc742e23Dc3829d3e656FEeb5f67fa0", "0xC14eaA8284feFF79EDc118E06caDBf3813a7e555"];
|
|
6640
6640
|
export declare const PERMIT2_CONTRACT = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
6641
|
-
export declare const MULTICALL3_CONTRACT = "0xcA11bde05977b3631167028862bE2a173976CA11";
|
package/dist/cjs/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PERMIT2_CONTRACT = exports.UNI_V2_FOX_STAKING_REWARDS_CONTRACTS = exports.UNI_V2_FOX_STAKING_REWARDS_V5_CONTRACT = exports.UNI_V2_FOX_STAKING_REWARDS_V4_CONTRACT = exports.UNI_V2_FOX_STAKING_REWARDS_V3_CONTRACT = exports.UNI_V2_FOX_STAKING_REWARDS_V2_CONTRACT = exports.UNI_V2_FOX_STAKING_REWARDS_V1_CONTRACT = exports.FOXY_STAKING_CONTRACT = exports.SHAPE_SHIFT_ROUTER_CONTRACT = exports.L1_ORBIT_CUSTOM_GATEWAY_CONTRACT = exports.L1_ARBITRUM_GATEWAY_CONTRACT = exports.L2_ARBITRUM_GATEWAY_CONTRACT = exports.L2_ARBITRUM_CUSTOM_GATEWAY_CONTRACT = exports.ARB_RETRYABLE_TX_CONTRACT = exports.ARBITRUM_L2_ERC20_GATEWAY_PROXY_CONTRACT = exports.ARB_SYS_CONTRACT = exports.ARB_OUTBOX_CONTRACT = exports.COWSWAP_SETTLEMENT_CONTRACT_MAINNET = exports.ZRX_OPTIMISM_PROXY_CONTRACT = exports.ZRX_ETHEREUM_PROXY_CONTRACT = exports.CONTRACT_TYPE_TO_ABI = exports.CONTRACT_ADDRESS_TO_ABI = exports.RFOX_WAD = exports.RFOX_REWARD_RATE = exports.RFOX_UNI_V2_ETH_FOX_PROXY_CONTRACT = exports.RFOX_PROXY_CONTRACT = exports.TS_AGGREGATOR_TOKEN_TRANSFER_PROXY_CONTRACT_MAINNET = exports.THOR_ROUTER_CONTRACT_MAINNET = exports.UNISWAP_V3_POOL_FACTORY_CONTRACT_MAINNET = exports.UNISWAP_V3_QUOTER_CONTRACT_MAINNET = exports.UNISWAP_V2_FACTORY_CONTRACT_MAINNET = exports.UNISWAP_V2_ROUTER_02_CONTRACT_MAINNET = exports.ETH_FOX_POOL_CONTRACT = exports.foxEthStakingContractAddresses = exports.ETH_FOX_STAKING_EVERGREEN_CONTRACT = exports.ETH_FOX_STAKING_V9_CONTRACT = exports.ETH_FOX_STAKING_V8_CONTRACT = exports.ETH_FOX_STAKING_V7_CONTRACT = exports.ETH_FOX_STAKING_V6_CONTRACT = exports.ETH_FOX_STAKING_V5_CONTRACT = exports.ETH_FOX_STAKING_V4_CONTRACT = exports.ETH_FOX_STAKING_V3_CONTRACT = exports.ETH_FOX_STAKING_V2_CONTRACT = exports.ETH_FOX_STAKING_V1_CONTRACT = exports.FOX_TOKEN_CONTRACT = exports.WETH_TOKEN_CONTRACT = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
const evergreenFarming_1 = require("./abis/evergreenFarming");
|
|
6
6
|
const farming_1 = require("./abis/farming");
|
|
@@ -106,7 +106,3 @@ exports.UNI_V2_FOX_STAKING_REWARDS_CONTRACTS = [
|
|
|
106
106
|
// Permit2 is deployed here across all chains.
|
|
107
107
|
// https://0x.org/docs/introduction/0x-cheat-sheet#permit2-contract
|
|
108
108
|
exports.PERMIT2_CONTRACT = '0x000000000022D473030F116dDEE9F6B43aC78BA3';
|
|
109
|
-
// Multicall3 is deployed at the same address across all EVM chains
|
|
110
|
-
// See: https://www.multicall3.com/deployments
|
|
111
|
-
// GitHub: https://github.com/mds1/multicall3
|
|
112
|
-
exports.MULTICALL3_CONTRACT = '0xcA11bde05977b3631167028862bE2a173976CA11';
|
|
@@ -5,73 +5,82 @@ const types_1 = require("@shapeshiftoss/types");
|
|
|
5
5
|
const utils_1 = require("@shapeshiftoss/utils");
|
|
6
6
|
const ethers_1 = require("ethers");
|
|
7
7
|
const ethers5_1 = require("ethers5");
|
|
8
|
+
const publicRpcUrls_1 = require("./publicRpcUrls");
|
|
8
9
|
const rpcUrlByChainId = (chainId) => {
|
|
9
10
|
const url = (() => {
|
|
10
11
|
switch (chainId) {
|
|
12
|
+
// First-class chains: env-driven with public fallback
|
|
11
13
|
case types_1.KnownChainIds.AvalancheMainnet:
|
|
12
|
-
return process.env.VITE_AVALANCHE_NODE_URL;
|
|
14
|
+
return process.env.VITE_AVALANCHE_NODE_URL ?? publicRpcUrls_1.PUBLIC_RPC_URLS.avalanche[0];
|
|
13
15
|
case types_1.KnownChainIds.OptimismMainnet:
|
|
14
|
-
return process.env.VITE_OPTIMISM_NODE_URL;
|
|
16
|
+
return process.env.VITE_OPTIMISM_NODE_URL ?? publicRpcUrls_1.PUBLIC_RPC_URLS.optimism[0];
|
|
15
17
|
case types_1.KnownChainIds.BnbSmartChainMainnet:
|
|
16
|
-
return process.env.VITE_BNBSMARTCHAIN_NODE_URL;
|
|
18
|
+
return process.env.VITE_BNBSMARTCHAIN_NODE_URL ?? publicRpcUrls_1.PUBLIC_RPC_URLS.bsc[0];
|
|
17
19
|
case types_1.KnownChainIds.PolygonMainnet:
|
|
18
|
-
return process.env.VITE_POLYGON_NODE_URL;
|
|
20
|
+
return process.env.VITE_POLYGON_NODE_URL ?? publicRpcUrls_1.PUBLIC_RPC_URLS.polygon[0];
|
|
19
21
|
case types_1.KnownChainIds.GnosisMainnet:
|
|
20
|
-
return process.env.VITE_GNOSIS_NODE_URL;
|
|
22
|
+
return process.env.VITE_GNOSIS_NODE_URL ?? publicRpcUrls_1.PUBLIC_RPC_URLS.gnosis[0];
|
|
21
23
|
case types_1.KnownChainIds.EthereumMainnet:
|
|
22
|
-
return process.env.VITE_ETHEREUM_NODE_URL;
|
|
24
|
+
return process.env.VITE_ETHEREUM_NODE_URL ?? publicRpcUrls_1.PUBLIC_RPC_URLS.ethereum[0];
|
|
23
25
|
case types_1.KnownChainIds.ArbitrumMainnet:
|
|
24
|
-
return process.env.VITE_ARBITRUM_NODE_URL;
|
|
26
|
+
return process.env.VITE_ARBITRUM_NODE_URL ?? publicRpcUrls_1.PUBLIC_RPC_URLS.arbitrum[0];
|
|
25
27
|
case types_1.KnownChainIds.BaseMainnet:
|
|
26
|
-
return process.env.VITE_BASE_NODE_URL;
|
|
28
|
+
return process.env.VITE_BASE_NODE_URL ?? publicRpcUrls_1.PUBLIC_RPC_URLS.base[0];
|
|
29
|
+
// Second-class chains: fallback-only
|
|
27
30
|
case types_1.KnownChainIds.MonadMainnet:
|
|
28
|
-
return
|
|
31
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.monad[0];
|
|
29
32
|
case types_1.KnownChainIds.HyperEvmMainnet:
|
|
30
|
-
return
|
|
33
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.hyperEvm[0];
|
|
31
34
|
case types_1.KnownChainIds.PlasmaMainnet:
|
|
32
|
-
return
|
|
35
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.plasma[0];
|
|
33
36
|
case types_1.KnownChainIds.MantleMainnet:
|
|
34
|
-
return
|
|
37
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.mantle[0];
|
|
35
38
|
case types_1.KnownChainIds.InkMainnet:
|
|
36
|
-
return
|
|
39
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.ink[0];
|
|
37
40
|
case types_1.KnownChainIds.MegaEthMainnet:
|
|
38
|
-
return
|
|
41
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.megaEth[0];
|
|
39
42
|
case types_1.KnownChainIds.BerachainMainnet:
|
|
40
|
-
return
|
|
43
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.berachain[0];
|
|
41
44
|
case types_1.KnownChainIds.CronosMainnet:
|
|
42
|
-
return
|
|
45
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.cronos[0];
|
|
43
46
|
case types_1.KnownChainIds.KatanaMainnet:
|
|
44
|
-
return
|
|
47
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.katana[0];
|
|
48
|
+
case types_1.KnownChainIds.EtherealMainnet:
|
|
49
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.ethereal[0];
|
|
45
50
|
case types_1.KnownChainIds.FlowEvmMainnet:
|
|
46
|
-
return
|
|
51
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.flowEvm[0];
|
|
47
52
|
case types_1.KnownChainIds.CeloMainnet:
|
|
48
|
-
return
|
|
53
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.celo[0];
|
|
49
54
|
case types_1.KnownChainIds.PlumeMainnet:
|
|
50
|
-
return
|
|
55
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.plume[0];
|
|
51
56
|
case types_1.KnownChainIds.StoryMainnet:
|
|
52
|
-
return
|
|
57
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.story[0];
|
|
53
58
|
case types_1.KnownChainIds.ZkSyncEraMainnet:
|
|
54
|
-
return
|
|
59
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.zkSyncEra[0];
|
|
55
60
|
case types_1.KnownChainIds.BlastMainnet:
|
|
56
|
-
return
|
|
61
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.blast[0];
|
|
57
62
|
case types_1.KnownChainIds.WorldChainMainnet:
|
|
58
|
-
return
|
|
63
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.worldChain[0];
|
|
59
64
|
case types_1.KnownChainIds.HemiMainnet:
|
|
60
|
-
return
|
|
65
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.hemi[0];
|
|
61
66
|
case types_1.KnownChainIds.LineaMainnet:
|
|
62
|
-
return
|
|
67
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.linea[0];
|
|
63
68
|
case types_1.KnownChainIds.ScrollMainnet:
|
|
64
|
-
return
|
|
69
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.scroll[0];
|
|
65
70
|
case types_1.KnownChainIds.SonicMainnet:
|
|
66
|
-
return
|
|
71
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.sonic[0];
|
|
67
72
|
case types_1.KnownChainIds.UnichainMainnet:
|
|
68
|
-
return
|
|
73
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.unichain[0];
|
|
69
74
|
case types_1.KnownChainIds.BobMainnet:
|
|
70
|
-
return
|
|
75
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.bob[0];
|
|
71
76
|
case types_1.KnownChainIds.ModeMainnet:
|
|
72
|
-
return
|
|
77
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.mode[0];
|
|
73
78
|
case types_1.KnownChainIds.SoneiumMainnet:
|
|
74
|
-
return
|
|
79
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.soneium[0];
|
|
80
|
+
case types_1.KnownChainIds.SeiMainnet:
|
|
81
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.sei[0];
|
|
82
|
+
case types_1.KnownChainIds.AbstractMainnet:
|
|
83
|
+
return publicRpcUrls_1.PUBLIC_RPC_URLS.abstract[0];
|
|
75
84
|
default:
|
|
76
85
|
return (0, utils_1.assertUnreachable)(chainId);
|
|
77
86
|
}
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./constants"), exports);
|
|
18
|
+
__exportStar(require("./publicRpcUrls"), exports);
|
|
18
19
|
__exportStar(require("./types"), exports);
|
|
19
20
|
__exportStar(require("./contractManager"), exports);
|
|
20
21
|
__exportStar(require("./ethersProviderSingleton"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const PUBLIC_RPC_URLS: {
|
|
2
|
+
readonly ethereum: readonly ["https://ethereum-rpc.publicnode.com", "https://eth.drpc.org"];
|
|
3
|
+
readonly bsc: readonly ["https://bsc-rpc.publicnode.com", "https://bsc.drpc.org"];
|
|
4
|
+
readonly avalanche: readonly ["https://avalanche-c-chain-rpc.publicnode.com", "https://avalanche.drpc.org"];
|
|
5
|
+
readonly arbitrum: readonly ["https://arbitrum-one-rpc.publicnode.com", "https://arbitrum.drpc.org"];
|
|
6
|
+
readonly optimism: readonly ["https://optimism-rpc.publicnode.com", "https://optimism.drpc.org"];
|
|
7
|
+
readonly gnosis: readonly ["https://gnosis-rpc.publicnode.com", "https://gnosis.drpc.org"];
|
|
8
|
+
readonly polygon: readonly ["https://polygon-bor-rpc.publicnode.com", "https://polygon.drpc.org"];
|
|
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
|
+
readonly bob: readonly ["https://rpc.gobob.xyz", "https://bob.drpc.org"];
|
|
14
|
+
readonly celo: readonly ["https://forno.celo.org", "https://celo.drpc.org", "https://celo.api.onfinality.io/public", "https://celo-mainnet.gateway.tatum.io"];
|
|
15
|
+
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
|
+
readonly hyperEvm: readonly ["https://rpc.hyperliquid.xyz/evm", "https://hyperliquid.drpc.org"];
|
|
20
|
+
readonly ink: readonly ["https://rpc-gel.inkonchain.com", "https://rpc-qnd.inkonchain.com", "https://ink.drpc.org"];
|
|
21
|
+
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
|
+
readonly mantle: readonly ["https://rpc.mantle.xyz", "https://mantle-rpc.publicnode.com", "https://mantle.drpc.org", "https://mantle.api.onfinality.io/public"];
|
|
24
|
+
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
|
+
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
|
+
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
|
+
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
|
+
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
|
+
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
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PUBLIC_RPC_URLS = void 0;
|
|
4
|
+
exports.PUBLIC_RPC_URLS = {
|
|
5
|
+
// first class chains
|
|
6
|
+
ethereum: ['https://ethereum-rpc.publicnode.com', 'https://eth.drpc.org'],
|
|
7
|
+
bsc: ['https://bsc-rpc.publicnode.com', 'https://bsc.drpc.org'],
|
|
8
|
+
avalanche: ['https://avalanche-c-chain-rpc.publicnode.com', 'https://avalanche.drpc.org'],
|
|
9
|
+
arbitrum: ['https://arbitrum-one-rpc.publicnode.com', 'https://arbitrum.drpc.org'],
|
|
10
|
+
optimism: ['https://optimism-rpc.publicnode.com', 'https://optimism.drpc.org'],
|
|
11
|
+
gnosis: ['https://gnosis-rpc.publicnode.com', 'https://gnosis.drpc.org'],
|
|
12
|
+
polygon: ['https://polygon-bor-rpc.publicnode.com', 'https://polygon.drpc.org'],
|
|
13
|
+
base: ['https://base-rpc.publicnode.com', 'https://base.drpc.org'],
|
|
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
|
+
bob: ['https://rpc.gobob.xyz', 'https://bob.drpc.org'],
|
|
29
|
+
celo: [
|
|
30
|
+
'https://forno.celo.org',
|
|
31
|
+
'https://celo.drpc.org',
|
|
32
|
+
'https://celo.api.onfinality.io/public',
|
|
33
|
+
'https://celo-mainnet.gateway.tatum.io',
|
|
34
|
+
],
|
|
35
|
+
cronos: [
|
|
36
|
+
'https://evm.cronos.org',
|
|
37
|
+
'https://cronos-evm-rpc.publicnode.com',
|
|
38
|
+
'https://cronos.drpc.org',
|
|
39
|
+
'https://cro-mainnet.gateway.tatum.io',
|
|
40
|
+
],
|
|
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
|
+
hyperEvm: ['https://rpc.hyperliquid.xyz/evm', 'https://hyperliquid.drpc.org'],
|
|
45
|
+
ink: ['https://rpc-gel.inkonchain.com', 'https://rpc-qnd.inkonchain.com', 'https://ink.drpc.org'],
|
|
46
|
+
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
|
+
mantle: [
|
|
49
|
+
'https://rpc.mantle.xyz',
|
|
50
|
+
'https://mantle-rpc.publicnode.com',
|
|
51
|
+
'https://mantle.drpc.org',
|
|
52
|
+
'https://mantle.api.onfinality.io/public',
|
|
53
|
+
],
|
|
54
|
+
megaEth: ['https://mainnet.megaeth.com/rpc', 'https://megaeth.drpc.org'],
|
|
55
|
+
mode: ['https://mainnet.mode.network', 'https://mode.drpc.org'],
|
|
56
|
+
monad: [
|
|
57
|
+
'https://rpc.monad.xyz',
|
|
58
|
+
'https://monad-mainnet.drpc.org',
|
|
59
|
+
'https://rpc-mainnet.monadinfra.com',
|
|
60
|
+
'https://rpc1.monad.xyz',
|
|
61
|
+
'https://rpc3.monad.xyz',
|
|
62
|
+
],
|
|
63
|
+
plasma: [
|
|
64
|
+
'https://rpc.plasma.to',
|
|
65
|
+
'https://plasma.drpc.org',
|
|
66
|
+
'https://plasma.api.onfinality.io/public',
|
|
67
|
+
],
|
|
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
|
+
sei: ['https://evm-rpc.sei-apis.com', 'https://sei.drpc.org'],
|
|
80
|
+
soneium: ['https://rpc.soneium.org', 'https://soneium.drpc.org'],
|
|
81
|
+
sonic: [
|
|
82
|
+
'https://rpc.soniclabs.com',
|
|
83
|
+
'https://sonic-rpc.publicnode.com',
|
|
84
|
+
'https://sonic.drpc.org',
|
|
85
|
+
'https://sonic.api.onfinality.io/public',
|
|
86
|
+
],
|
|
87
|
+
story: ['https://mainnet.storyrpc.io'],
|
|
88
|
+
unichain: [
|
|
89
|
+
'https://mainnet.unichain.org',
|
|
90
|
+
'https://unichain-rpc.publicnode.com',
|
|
91
|
+
'https://unichain.drpc.org',
|
|
92
|
+
'https://unichain.api.onfinality.io/public',
|
|
93
|
+
'https://unichain-mainnet.gateway.tatum.io',
|
|
94
|
+
],
|
|
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
|
+
};
|