@ape.swap/bonds-sdk 1.0.165 → 1.0.167
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/config/constants/addresses.d.ts +18 -0
- package/dist/config/constants/addresses.js +112 -0
- package/dist/config/constants/api.d.ts +6 -0
- package/dist/config/constants/api.js +6 -0
- package/dist/config/constants/chains.d.ts +48 -0
- package/dist/config/constants/chains.js +439 -0
- package/dist/config/constants/lifiRouting.d.ts +2 -0
- package/dist/config/constants/lifiRouting.js +6 -0
- package/dist/config/constants/lists.d.ts +10 -0
- package/dist/config/constants/lists.js +21 -0
- package/dist/config/constants/meta.d.ts +11 -0
- package/dist/config/constants/meta.js +92 -0
- package/dist/config/constants/misc.d.ts +3 -0
- package/dist/config/constants/misc.js +4 -0
- package/dist/config/constants/networks.d.ts +2 -0
- package/dist/config/constants/networks.js +44 -0
- package/dist/config/constants/products.d.ts +21 -0
- package/dist/config/constants/products.js +58 -0
- package/dist/config/constants/providers.d.ts +14 -0
- package/dist/config/constants/providers.js +103 -0
- package/dist/config/constants/queryKeys.d.ts +18 -0
- package/dist/config/constants/queryKeys.js +18 -0
- package/dist/config/constants/tokens.d.ts +6 -0
- package/dist/config/constants/tokens.js +452 -0
- package/dist/config/constants/tutorials.d.ts +7 -0
- package/dist/config/constants/tutorials.js +80 -0
- package/dist/scss/Bonds.scss +0 -4
- package/package.json +2 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChainId } from './chains';
|
|
2
|
+
type AddressMap = {
|
|
3
|
+
[chainId: number]: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const BANANA_ADDRESSES: AddressMap;
|
|
6
|
+
export declare const GNANA_ADDRESSES: AddressMap;
|
|
7
|
+
export declare const ABOND_ADDRESSES: AddressMap;
|
|
8
|
+
export declare const USDC: AddressMap;
|
|
9
|
+
export declare const SWAP_ROUTER_ADDRESSES: AddressMap;
|
|
10
|
+
export declare const PRICE_GETTER_ADDRESSES: AddressMap;
|
|
11
|
+
export declare const MULTICALL: AddressMap;
|
|
12
|
+
export declare const MULTICALL_V2: AddressMap;
|
|
13
|
+
export declare const SoulZapTokenManager: Partial<Record<ChainId, string>>;
|
|
14
|
+
export declare const LENS_CONTRACT: AddressMap;
|
|
15
|
+
export declare const LOCK_VEABOND_ADDRESSES: AddressMap;
|
|
16
|
+
export declare const veABOND_ADDRESSES: AddressMap;
|
|
17
|
+
export declare const FEVEABOND_CLAIM_ADDRESSES: AddressMap;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2
|
+
import { SupportedChainId } from '@ape.swap/sdk-core';
|
|
3
|
+
import { ChainId } from './chains';
|
|
4
|
+
export var BANANA_ADDRESSES = (_a = {},
|
|
5
|
+
_a[SupportedChainId.BSC_TESTNET] = '0x4Fb99590cA95fc3255D9fA66a1cA46c43C34b09a',
|
|
6
|
+
_a[SupportedChainId.BSC] = '0x603c7f932ED1fc6575303D8Fb018fDCBb0f39a95',
|
|
7
|
+
_a[SupportedChainId.POLYGON] = '0x5d47baba0d66083c52009271faf3f50dcc01023c',
|
|
8
|
+
_a[SupportedChainId.MAINNET] = '0x92df60c51c710a1b1c20e42d85e221f3a1bfc7f2',
|
|
9
|
+
_a[SupportedChainId.TLOS] = '0x667fd83e24ca1d935d36717d305d54fa0cac991c',
|
|
10
|
+
_a[SupportedChainId.ARBITRUM_ONE] = '0xd978F8489e1245568704407a479a71FcCe2aFE8F',
|
|
11
|
+
_a);
|
|
12
|
+
export var GNANA_ADDRESSES = (_b = {},
|
|
13
|
+
_b[SupportedChainId.BSC] = '0xdDb3Bd8645775F59496c821E4F55A7eA6A6dc299',
|
|
14
|
+
_b[SupportedChainId.BSC_TESTNET] = '0x9407026d236DEAE22CC1F3c419A9e47CBfCFE9E5',
|
|
15
|
+
_b);
|
|
16
|
+
export var ABOND_ADDRESSES = (_c = {},
|
|
17
|
+
_c[SupportedChainId.BSC] = '0x34294AfABCbaFfc616ac6614F6d2e17260b78BEd',
|
|
18
|
+
_c[SupportedChainId.MAINNET] = '0xe6828D65bf5023AE1851D90D8783Cc821ba7eeE1',
|
|
19
|
+
_c[SupportedChainId.POLYGON] = '0xe6828D65bf5023AE1851D90D8783Cc821ba7eeE1',
|
|
20
|
+
_c);
|
|
21
|
+
// used as default swap output token
|
|
22
|
+
export var USDC = (_d = {},
|
|
23
|
+
_d[ChainId.POLYGON_ZK] = '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035',
|
|
24
|
+
_d[ChainId.AVALANCHE] = '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E',
|
|
25
|
+
_d[ChainId.OPTIMISM] = '0x7F5c764cBc14f9669B88837ca1490cCa17c31607',
|
|
26
|
+
_d[ChainId.FANTOM] = '0x04068DA6C83AFCFA0e13ba15A6696662335D5B75',
|
|
27
|
+
_d[ChainId.GNOSIS] = '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83',
|
|
28
|
+
_d);
|
|
29
|
+
export var SWAP_ROUTER_ADDRESSES = (_e = {},
|
|
30
|
+
_e[ChainId.BSC] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
31
|
+
_e[ChainId.POLYGON] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
32
|
+
_e[ChainId.MAINNET] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
33
|
+
_e[ChainId.TLOS] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
34
|
+
_e[ChainId.ARBITRUM_ONE] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
35
|
+
_e[ChainId.AVALANCHE] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
36
|
+
_e[ChainId.FANTOM] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
37
|
+
_e[ChainId.OPTIMISM] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
38
|
+
_e[ChainId.POLYGON_ZK] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
39
|
+
_e[ChainId.GNOSIS] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
40
|
+
_e[ChainId.LINEA] = '0xDE1E598b81620773454588B85D6b5D4eEC32573e',
|
|
41
|
+
_e[ChainId.BASE] = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE',
|
|
42
|
+
_e);
|
|
43
|
+
export var PRICE_GETTER_ADDRESSES = (_f = {},
|
|
44
|
+
_f[SupportedChainId.BSC_TESTNET] = '0x85d2C626E28a42E184cF8e32db1461013D23331D',
|
|
45
|
+
_f[SupportedChainId.BSC] = '0xF08Fc6d054880699A8a5Ebc363238c98B39FEbC9',
|
|
46
|
+
_f[SupportedChainId.POLYGON] = '0x6908356faC751dA36F4ec1B4ADBc56d0B3862155',
|
|
47
|
+
_f[SupportedChainId.MAINNET] = '0x10ffd467e8701fc2887b3df9b9a31adfefd388ec',
|
|
48
|
+
_f[SupportedChainId.TLOS] = '0x85d2C626E28a42E184cF8e32db1461013D23331D',
|
|
49
|
+
_f[SupportedChainId.ARBITRUM_ONE] = '0xe6828D65bf5023AE1851D90D8783Cc821ba7eeE1',
|
|
50
|
+
_f[ChainId.LINEA] = '0x35b1eadAbaDD0Edd26076247f3dEdF9E15De8D5D',
|
|
51
|
+
_f[ChainId.LIGHTLINK] = '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4',
|
|
52
|
+
_f[ChainId.IOTA] = '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4',
|
|
53
|
+
_f[ChainId.BASE] = '0x2e6AB3cc819BE64886C1bB403813cCBec0407a5b',
|
|
54
|
+
_f);
|
|
55
|
+
// This is the multicall v3
|
|
56
|
+
export var MULTICALL = (_g = {},
|
|
57
|
+
_g[SupportedChainId.BSC] = '0x47A307e3167820daf22a377D777371753758f59c',
|
|
58
|
+
_g[SupportedChainId.BSC_TESTNET] = '0x3ce277594919dfCCedf1F42843366b530518fB79',
|
|
59
|
+
_g[SupportedChainId.POLYGON] = '0x1F98415757620B543A52E61c46B32eB19261F984',
|
|
60
|
+
_g[SupportedChainId.POLYGON_MUMBAI] = '0xdDCbf776dF3dE60163066A5ddDF2277cB445E0F3',
|
|
61
|
+
_g[SupportedChainId.MAINNET] = '0x1F98415757620B543A52E61c46B32eB19261F984',
|
|
62
|
+
_g[SupportedChainId.TLOS] = '0xf553b2be7aac670bcd812ba64a5025d9f5095ab5',
|
|
63
|
+
_g[SupportedChainId.ARBITRUM_ONE] = '0xC169b45E7A157Fe3fa248673576bcadcaFd8757B',
|
|
64
|
+
_g[ChainId.AVALANCHE] = '0xce96d67e45ea7c5d2c0ee234059d9616f8cf1afc',
|
|
65
|
+
_g[ChainId.INJECTED_EVM_TESTNET] = '0x75B6D0902CE996D9F1A6d5784835986D88f944C6',
|
|
66
|
+
_g[ChainId.SEPOLIA] = '0x0c5e96420De43bBFDba3bC24543C22D272E33732',
|
|
67
|
+
_g[ChainId.INEVM] = '0x63806777284CdCf6140e402fdFd3c175648F52E3',
|
|
68
|
+
_g[ChainId.LINEA] = '0x0a11a37Eff2e32Fd532F6e1C30e77B7DCBeF2de1',
|
|
69
|
+
_g[ChainId.LIGHTLINK] = '0xD2f432d6260Ce513eA499Bc30a720e78ad26B4A1',
|
|
70
|
+
_g[ChainId.BASE] = '0xce512f490Bf09C4544A12a7264750B28FbE9AD76',
|
|
71
|
+
_g);
|
|
72
|
+
export var MULTICALL_V2 = (_h = {},
|
|
73
|
+
_h[SupportedChainId.BSC] = '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
|
|
74
|
+
_h[SupportedChainId.BSC_TESTNET] = '0x67ADCB4dF3931b0C5Da724058ADC2174a9844412',
|
|
75
|
+
_h[SupportedChainId.POLYGON] = '0x95028E5B8a734bb7E2071F96De89BABe75be9C8E',
|
|
76
|
+
_h[SupportedChainId.MAINNET] = '0xeefBa1e63905eF1D7ACbA5a8513c70307C1cE441',
|
|
77
|
+
_h[SupportedChainId.TLOS] = '0xa1a283f10f578201a97a8f69d8c15828b778f04b',
|
|
78
|
+
_h[SupportedChainId.ARBITRUM_ONE] = '0x089d8780e1c0789d0ef786bf001bee52d8351cad',
|
|
79
|
+
_h[ChainId.AVALANCHE] = '0xaad9d7d0c94f8bd2117fafaf3c35f77e9908740f',
|
|
80
|
+
_h[ChainId.FANTOM] = '0xdb9e00ce3b7afd5fece9b515c7f647e716282781',
|
|
81
|
+
_h[ChainId.OPTIMISM] = '0xdb9e00ce3b7afd5fece9b515c7f647e716282781',
|
|
82
|
+
_h[ChainId.POLYGON_ZK] = '0xe9654472e5bb9152cc5ef8c53c89839a8dc1f411',
|
|
83
|
+
_h[ChainId.CRONOS] = '0xDb9e00CE3B7AFD5fEce9B515c7f647E716282781',
|
|
84
|
+
_h[ChainId.GNOSIS] = '0xDb9e00CE3B7AFD5fEce9B515c7f647E716282781',
|
|
85
|
+
_h[ChainId.INJECTED_EVM_TESTNET] = '0xB52705F7082BFEB70E9dB26aD265ebEDB88D51f2',
|
|
86
|
+
_h[ChainId.SEPOLIA] = '0x4170Ebf53bbA01eb45594ad6F090d7FE5407be68',
|
|
87
|
+
_h[ChainId.INEVM] = '0x7039F6DDB900762c33842e406fB908EB8a03fB84',
|
|
88
|
+
_h[ChainId.LINEA] = '0x3f6F9c727C9fdf70Fe56f6e22Bc4dcb75206a78c',
|
|
89
|
+
_h[ChainId.LIGHTLINK] = '0xb9a543d7B7dF05C8845AeA6627dE4a6622Ac863C',
|
|
90
|
+
_h[ChainId.IOTA] = '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
91
|
+
_h[ChainId.BASE] = '0xDF845ff2dA2325Df9C6CC3DDF7418C54E16bbFDF',
|
|
92
|
+
_h);
|
|
93
|
+
export var SoulZapTokenManager = (_j = {},
|
|
94
|
+
_j[ChainId.POLYGON] = '0x3F15Ee3d7dd7AcFB14625A1E2FBce22912Fa91be',
|
|
95
|
+
_j[ChainId.LINEA] = '0x93b636d58656B2CCA69c539e511C14eb3b71DA2f',
|
|
96
|
+
_j[ChainId.BSC] = '0x7119014f0d75A7a31b875F79cE14b2a32B34B067',
|
|
97
|
+
_j[ChainId.BASE] = '0x0B750790dCa8f289fAB5eFd1a48EfAb969e51D16',
|
|
98
|
+
_j);
|
|
99
|
+
export var LENS_CONTRACT = (_k = {},
|
|
100
|
+
_k[SupportedChainId.BSC_TESTNET] = '0xcC51213d12431249001548228124c3bFAa359F96',
|
|
101
|
+
_k[SupportedChainId.BSC] = '0x2108f3a25C379d26fe29140F3991c24ed54B5Ec3',
|
|
102
|
+
_k);
|
|
103
|
+
export var LOCK_VEABOND_ADDRESSES = (_l = {},
|
|
104
|
+
_l[SupportedChainId.BSC] = '0x36cc29Cd24D55Fe8E56532A0fCc13978bf9f7293',
|
|
105
|
+
_l);
|
|
106
|
+
export var veABOND_ADDRESSES = (_m = {},
|
|
107
|
+
_m[SupportedChainId.BSC] = '0x1cE1b8e28E4D4c1C4dA01b69f5434A9Fb7BE023D',
|
|
108
|
+
_m[SupportedChainId.MAINNET] = '0x1cE1b8e28E4D4c1C4dA01b69f5434A9Fb7BE023D',
|
|
109
|
+
_m);
|
|
110
|
+
export var FEVEABOND_CLAIM_ADDRESSES = (_o = {},
|
|
111
|
+
_o[SupportedChainId.BSC] = '0x57b3e16f98fc83E39C6E53Bab4F8909c67F17A80',
|
|
112
|
+
_o);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const apiV2BaseUrl: string;
|
|
2
|
+
export declare const bondsRealTimeApi: string;
|
|
3
|
+
export declare const baseUrlStrapi: string;
|
|
4
|
+
export declare const mailChimpUrl: string;
|
|
5
|
+
export declare const LHD_API_TEMP = "https://lhd-temp-api.herokuapp.com";
|
|
6
|
+
export declare const LHD_API = "https://lhd-api.apeswap.finance";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var apiV2BaseUrl = process.env.NEXT_PUBLIC_API_V2_BASE_URL || 'https://staging-api.ape.bond';
|
|
2
|
+
export var bondsRealTimeApi = process.env.NEXT_PUBLIC_REAL_TIME_API || 'https://realtime-api-staging.ape.bond/bonds';
|
|
3
|
+
export var baseUrlStrapi = process.env.NEXT_PUBLIC_API_STRAPI_BASE_URL || 'https://apeswap-strapi.herokuapp.com';
|
|
4
|
+
export var mailChimpUrl = "https://finance.us10.list-manage.com/subscribe/post?u=".concat(process.env.NEXT_PUBLIC_MAILCHIMP_U, "&id=").concat(process.env.NEXT_PUBLIC_MAILCHIMP_ID);
|
|
5
|
+
export var LHD_API_TEMP = 'https://lhd-temp-api.herokuapp.com';
|
|
6
|
+
export var LHD_API = 'https://lhd-api.apeswap.finance';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { icons } from '../../components/uikit/Svg/types';
|
|
2
|
+
export declare const AVERAGE_L1_BLOCK_TIME = 12000;
|
|
3
|
+
export declare enum ChainId {
|
|
4
|
+
MAINNET = 1,
|
|
5
|
+
ARBITRUM_ONE = 42161,
|
|
6
|
+
POLYGON = 137,
|
|
7
|
+
POLYGON_MUMBAI = 80001,
|
|
8
|
+
BSC = 56,
|
|
9
|
+
BSC_TESTNET = 97,
|
|
10
|
+
TLOS = 40,
|
|
11
|
+
AVALANCHE = 43114,
|
|
12
|
+
OPTIMISM = 10,
|
|
13
|
+
FANTOM = 250,
|
|
14
|
+
CRONOS = 25,
|
|
15
|
+
POLYGON_ZK = 1101,
|
|
16
|
+
CELO = 42220,
|
|
17
|
+
GNOSIS = 100,
|
|
18
|
+
OKX = 66,
|
|
19
|
+
INJECTED_EVM_TESTNET = 2424,
|
|
20
|
+
INEVM = 2525,
|
|
21
|
+
SEPOLIA = 11155111,
|
|
22
|
+
LINEA = 59144,
|
|
23
|
+
LIGHTLINK = 1890,
|
|
24
|
+
IOTA = 8822,
|
|
25
|
+
IOTA_TESTNET = 1075,
|
|
26
|
+
BASE = 8453
|
|
27
|
+
}
|
|
28
|
+
export declare const MAINNET_CHAINS: ChainId[];
|
|
29
|
+
export declare const DEX_ONLY_CHAINS: ChainId[];
|
|
30
|
+
export declare const CHAIN_NAMES: Record<ChainId, string>;
|
|
31
|
+
export declare const NETWORK_ICONS: Partial<Record<number, icons>>;
|
|
32
|
+
export declare const NETWORK_LABEL: Record<number, string>;
|
|
33
|
+
export declare const BLOCK_EXPLORER: Record<number, string>;
|
|
34
|
+
interface ChainParamContent {
|
|
35
|
+
chainId: string;
|
|
36
|
+
chainName: string;
|
|
37
|
+
nativeCurrency: {
|
|
38
|
+
name: string;
|
|
39
|
+
symbol: string;
|
|
40
|
+
decimals: number;
|
|
41
|
+
logo: string;
|
|
42
|
+
};
|
|
43
|
+
blockExplorerUrls: string[];
|
|
44
|
+
logoURI: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const CHAIN_PARAMS: Record<ChainId, ChainParamContent>;
|
|
47
|
+
export declare const getChainInfo: (chainId: ChainId) => any;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
var _a, _b, _c, _d, _e;
|
|
2
|
+
// Network chain ids
|
|
3
|
+
import { icons } from '../../components/uikit/Svg/types';
|
|
4
|
+
import { APESWAP_LIST_REPO } from './lists';
|
|
5
|
+
export var AVERAGE_L1_BLOCK_TIME = 12000;
|
|
6
|
+
//This is the list of supported EVM chains
|
|
7
|
+
export var ChainId;
|
|
8
|
+
(function (ChainId) {
|
|
9
|
+
ChainId[ChainId["MAINNET"] = 1] = "MAINNET";
|
|
10
|
+
ChainId[ChainId["ARBITRUM_ONE"] = 42161] = "ARBITRUM_ONE";
|
|
11
|
+
ChainId[ChainId["POLYGON"] = 137] = "POLYGON";
|
|
12
|
+
ChainId[ChainId["POLYGON_MUMBAI"] = 80001] = "POLYGON_MUMBAI";
|
|
13
|
+
ChainId[ChainId["BSC"] = 56] = "BSC";
|
|
14
|
+
ChainId[ChainId["BSC_TESTNET"] = 97] = "BSC_TESTNET";
|
|
15
|
+
ChainId[ChainId["TLOS"] = 40] = "TLOS";
|
|
16
|
+
ChainId[ChainId["AVALANCHE"] = 43114] = "AVALANCHE";
|
|
17
|
+
ChainId[ChainId["OPTIMISM"] = 10] = "OPTIMISM";
|
|
18
|
+
ChainId[ChainId["FANTOM"] = 250] = "FANTOM";
|
|
19
|
+
ChainId[ChainId["CRONOS"] = 25] = "CRONOS";
|
|
20
|
+
ChainId[ChainId["POLYGON_ZK"] = 1101] = "POLYGON_ZK";
|
|
21
|
+
ChainId[ChainId["CELO"] = 42220] = "CELO";
|
|
22
|
+
ChainId[ChainId["GNOSIS"] = 100] = "GNOSIS";
|
|
23
|
+
ChainId[ChainId["OKX"] = 66] = "OKX";
|
|
24
|
+
ChainId[ChainId["INJECTED_EVM_TESTNET"] = 2424] = "INJECTED_EVM_TESTNET";
|
|
25
|
+
ChainId[ChainId["INEVM"] = 2525] = "INEVM";
|
|
26
|
+
ChainId[ChainId["SEPOLIA"] = 11155111] = "SEPOLIA";
|
|
27
|
+
ChainId[ChainId["LINEA"] = 59144] = "LINEA";
|
|
28
|
+
ChainId[ChainId["LIGHTLINK"] = 1890] = "LIGHTLINK";
|
|
29
|
+
ChainId[ChainId["IOTA"] = 8822] = "IOTA";
|
|
30
|
+
ChainId[ChainId["IOTA_TESTNET"] = 1075] = "IOTA_TESTNET";
|
|
31
|
+
ChainId[ChainId["BASE"] = 8453] = "BASE";
|
|
32
|
+
})(ChainId || (ChainId = {}));
|
|
33
|
+
// These are the lists we will display to the user
|
|
34
|
+
export var MAINNET_CHAINS = [
|
|
35
|
+
ChainId.BSC,
|
|
36
|
+
ChainId.POLYGON,
|
|
37
|
+
ChainId.MAINNET,
|
|
38
|
+
ChainId.ARBITRUM_ONE,
|
|
39
|
+
//ChainId.INJECTED_EVM_TESTNET,
|
|
40
|
+
ChainId.INEVM,
|
|
41
|
+
// ChainId.SEPOLIA,
|
|
42
|
+
// ChainId.BSC_TESTNET,
|
|
43
|
+
ChainId.LINEA,
|
|
44
|
+
ChainId.LIGHTLINK,
|
|
45
|
+
ChainId.BASE,
|
|
46
|
+
];
|
|
47
|
+
export var DEX_ONLY_CHAINS = [
|
|
48
|
+
ChainId.AVALANCHE,
|
|
49
|
+
ChainId.OPTIMISM,
|
|
50
|
+
ChainId.FANTOM,
|
|
51
|
+
//ChainId.CRONOS, temporarily disabled
|
|
52
|
+
ChainId.POLYGON_ZK,
|
|
53
|
+
ChainId.GNOSIS,
|
|
54
|
+
];
|
|
55
|
+
export var CHAIN_NAMES = (_a = {},
|
|
56
|
+
_a[ChainId.MAINNET] = 'mainnet',
|
|
57
|
+
_a[ChainId.ARBITRUM_ONE] = 'arbitrum_one',
|
|
58
|
+
_a[ChainId.POLYGON] = 'polygon',
|
|
59
|
+
_a[ChainId.POLYGON_MUMBAI] = 'polygon_mumbai',
|
|
60
|
+
_a[ChainId.BSC] = 'bnb_chain',
|
|
61
|
+
_a[ChainId.BSC_TESTNET] = 'bnb_chain_testnet',
|
|
62
|
+
_a[ChainId.TLOS] = 'telos',
|
|
63
|
+
_a[ChainId.AVALANCHE] = 'avalanche',
|
|
64
|
+
_a[ChainId.OPTIMISM] = 'optimism',
|
|
65
|
+
_a[ChainId.FANTOM] = 'fantom',
|
|
66
|
+
_a[ChainId.CRONOS] = 'cronos',
|
|
67
|
+
_a[ChainId.POLYGON_ZK] = 'polygon_zk',
|
|
68
|
+
_a[ChainId.CELO] = 'celo',
|
|
69
|
+
_a[ChainId.GNOSIS] = 'gnosis',
|
|
70
|
+
_a[ChainId.OKX] = 'okexchain',
|
|
71
|
+
_a[ChainId.INJECTED_EVM_TESTNET] = 'InEVM (test)',
|
|
72
|
+
_a[ChainId.INEVM] = 'inEVM',
|
|
73
|
+
_a[ChainId.SEPOLIA] = 'Sepolia',
|
|
74
|
+
_a[ChainId.LINEA] = 'Linea',
|
|
75
|
+
_a[ChainId.LIGHTLINK] = 'Lightlink_Phoenix',
|
|
76
|
+
_a[ChainId.IOTA] = 'Iota',
|
|
77
|
+
_a[ChainId.IOTA_TESTNET] = 'Iota_Testnet',
|
|
78
|
+
_a[ChainId.BASE] = 'Base',
|
|
79
|
+
_a);
|
|
80
|
+
// Network Icons
|
|
81
|
+
export var NETWORK_ICONS = (_b = {},
|
|
82
|
+
_b[ChainId.BSC] = icons.BNB_TOKEN,
|
|
83
|
+
_b[ChainId.POLYGON] = icons.POLYGON_TOKEN,
|
|
84
|
+
_b[ChainId.MAINNET] = icons.ETH_TOKEN,
|
|
85
|
+
_b[ChainId.TLOS] = icons.TLOS_TOKEN,
|
|
86
|
+
_b[ChainId.ARBITRUM_ONE] = icons.ARBITRUM_TOKEN,
|
|
87
|
+
_b[ChainId.AVALANCHE] = icons.AVAX_TOKEN,
|
|
88
|
+
_b[ChainId.OPTIMISM] = icons.OPTIMISM_TOKEN,
|
|
89
|
+
_b[ChainId.FANTOM] = icons.FANTOM_TOKEN,
|
|
90
|
+
_b[ChainId.CRONOS] = icons.CRONOS_TOKEN,
|
|
91
|
+
_b[ChainId.POLYGON_ZK] = icons.POLYGONZK_TOKEN,
|
|
92
|
+
_b[ChainId.CELO] = icons.CELO_TOKEN,
|
|
93
|
+
_b[ChainId.GNOSIS] = icons.GNOSIS_TOKEN,
|
|
94
|
+
_b[ChainId.OKX] = icons.OKX_TOKEN,
|
|
95
|
+
_b[ChainId.INJECTED_EVM_TESTNET] = icons.INEVM,
|
|
96
|
+
_b[ChainId.INEVM] = icons.INEVM,
|
|
97
|
+
_b[ChainId.SEPOLIA] = icons.ETH_TOKEN,
|
|
98
|
+
_b[ChainId.LINEA] = icons.LINEA,
|
|
99
|
+
_b[ChainId.LIGHTLINK] = icons.LIGHTLINK,
|
|
100
|
+
_b[ChainId.IOTA] = icons.IOTA,
|
|
101
|
+
_b[ChainId.BASE] = icons.BASE,
|
|
102
|
+
_b);
|
|
103
|
+
// Network labels
|
|
104
|
+
export var NETWORK_LABEL = (_c = {},
|
|
105
|
+
_c[ChainId.BSC] = 'BNB',
|
|
106
|
+
_c[ChainId.BSC_TESTNET] = 'BNB Testnet',
|
|
107
|
+
_c[ChainId.POLYGON] = 'Polygon',
|
|
108
|
+
_c[ChainId.POLYGON_MUMBAI] = 'Polygon Testnet',
|
|
109
|
+
_c[ChainId.MAINNET] = 'Ethereum',
|
|
110
|
+
_c[ChainId.TLOS] = 'Telos',
|
|
111
|
+
_c[ChainId.ARBITRUM_ONE] = 'Arbitrum',
|
|
112
|
+
_c[ChainId.AVALANCHE] = 'Avalanche',
|
|
113
|
+
_c[ChainId.OPTIMISM] = 'Optimism',
|
|
114
|
+
_c[ChainId.FANTOM] = 'Fantom',
|
|
115
|
+
_c[ChainId.CRONOS] = 'Cronos',
|
|
116
|
+
_c[ChainId.POLYGON_ZK] = 'zkEVM',
|
|
117
|
+
_c[ChainId.CELO] = 'Celo',
|
|
118
|
+
_c[ChainId.GNOSIS] = 'Gnosis',
|
|
119
|
+
_c[ChainId.OKX] = 'OKXChain',
|
|
120
|
+
_c[ChainId.INJECTED_EVM_TESTNET] = 'InEVM (test)',
|
|
121
|
+
_c[ChainId.INEVM] = 'inEVM',
|
|
122
|
+
_c[ChainId.SEPOLIA] = 'Sepolia',
|
|
123
|
+
_c[ChainId.LINEA] = 'Linea',
|
|
124
|
+
_c[ChainId.LIGHTLINK] = 'Lightlink',
|
|
125
|
+
_c[ChainId.IOTA] = 'Iota',
|
|
126
|
+
_c[ChainId.IOTA_TESTNET] = 'Iota Testnet',
|
|
127
|
+
_c[ChainId.BASE] = 'Base',
|
|
128
|
+
_c);
|
|
129
|
+
// Network block explorers
|
|
130
|
+
export var BLOCK_EXPLORER = (_d = {},
|
|
131
|
+
_d[ChainId.MAINNET] = 'https://etherscan.io',
|
|
132
|
+
_d[ChainId.ARBITRUM_ONE] = 'https://arbiscan.io',
|
|
133
|
+
_d[ChainId.POLYGON] = 'https://polygonscan.com',
|
|
134
|
+
_d[ChainId.POLYGON_MUMBAI] = 'https://mumbai.polygonscan.com',
|
|
135
|
+
_d[ChainId.BSC] = 'https://bscscan.com',
|
|
136
|
+
_d[ChainId.BSC_TESTNET] = 'https://testnet.bscscan.com',
|
|
137
|
+
_d[ChainId.TLOS] = 'https://www.teloscan.io',
|
|
138
|
+
_d[ChainId.AVALANCHE] = 'https://cchain.explorer.avax.network',
|
|
139
|
+
_d[ChainId.OPTIMISM] = 'https://optimistic.etherscan.io',
|
|
140
|
+
_d[ChainId.FANTOM] = 'https://ftmscan.com',
|
|
141
|
+
_d[ChainId.CRONOS] = 'https://cronos.crypto.org/explorer',
|
|
142
|
+
_d[ChainId.POLYGON_ZK] = 'https://zkevm.polygonscan.com',
|
|
143
|
+
_d[ChainId.CELO] = 'https://explorer.celo.org',
|
|
144
|
+
_d[ChainId.GNOSIS] = 'https://blockscout.com/xdai/mainnet',
|
|
145
|
+
_d[ChainId.OKX] = 'https://www.oklink.com/en/okc',
|
|
146
|
+
_d[ChainId.INJECTED_EVM_TESTNET] = 'https://testnet.explorer.inevm.com',
|
|
147
|
+
_d[ChainId.INEVM] = 'https://explorer.inevm.com',
|
|
148
|
+
_d[ChainId.SEPOLIA] = 'https://sepolia.etherscan.io',
|
|
149
|
+
_d[ChainId.LINEA] = 'https://lineascan.build',
|
|
150
|
+
_d[ChainId.LIGHTLINK] = 'https://phoenix.lightlink.io',
|
|
151
|
+
_d[ChainId.IOTA] = 'https://explorer.evm.iota.org',
|
|
152
|
+
_d[ChainId.IOTA_TESTNET] = 'https://explorer.evm.testnet.iotaledger.net/',
|
|
153
|
+
_d[ChainId.BASE] = 'https://basescan.org',
|
|
154
|
+
_d);
|
|
155
|
+
export var CHAIN_PARAMS = (_e = {},
|
|
156
|
+
_e[ChainId.BSC] = {
|
|
157
|
+
chainId: '0x38',
|
|
158
|
+
chainName: 'Binance Smart Chain',
|
|
159
|
+
nativeCurrency: {
|
|
160
|
+
name: 'bnb',
|
|
161
|
+
symbol: 'BNB',
|
|
162
|
+
decimals: 18,
|
|
163
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/BNB.svg"),
|
|
164
|
+
},
|
|
165
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.BSC]],
|
|
166
|
+
logoURI: "".concat(APESWAP_LIST_REPO, "/assets/wbnb.png"),
|
|
167
|
+
},
|
|
168
|
+
_e[ChainId.BSC_TESTNET] = {
|
|
169
|
+
chainId: '0x61',
|
|
170
|
+
chainName: 'Binance Smart Chain Testnet',
|
|
171
|
+
nativeCurrency: {
|
|
172
|
+
name: 'bnb',
|
|
173
|
+
symbol: 'BNB',
|
|
174
|
+
decimals: 18,
|
|
175
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/BNB.svg"),
|
|
176
|
+
},
|
|
177
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.BSC_TESTNET]],
|
|
178
|
+
logoURI: "".concat(APESWAP_LIST_REPO, "/assets/wbnb.png"),
|
|
179
|
+
},
|
|
180
|
+
_e[ChainId.POLYGON] = {
|
|
181
|
+
chainId: '0x89',
|
|
182
|
+
chainName: 'Matic',
|
|
183
|
+
nativeCurrency: {
|
|
184
|
+
name: 'Matic',
|
|
185
|
+
symbol: 'MATIC',
|
|
186
|
+
decimals: 18,
|
|
187
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/MATIC.svg"),
|
|
188
|
+
},
|
|
189
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.POLYGON]],
|
|
190
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon.svg',
|
|
191
|
+
},
|
|
192
|
+
_e[ChainId.POLYGON_MUMBAI] = {
|
|
193
|
+
chainId: '0x89',
|
|
194
|
+
chainName: 'Matic',
|
|
195
|
+
nativeCurrency: {
|
|
196
|
+
name: 'Matic',
|
|
197
|
+
symbol: 'MATIC',
|
|
198
|
+
decimals: 18,
|
|
199
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/MATIC.svg"),
|
|
200
|
+
},
|
|
201
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.POLYGON_MUMBAI]],
|
|
202
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon.svg',
|
|
203
|
+
},
|
|
204
|
+
_e[ChainId.MAINNET] = {
|
|
205
|
+
chainId: '0x1',
|
|
206
|
+
chainName: 'Ethereum',
|
|
207
|
+
nativeCurrency: {
|
|
208
|
+
name: 'Ethereum',
|
|
209
|
+
symbol: 'ETH',
|
|
210
|
+
decimals: 18,
|
|
211
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/ETH.svg"),
|
|
212
|
+
},
|
|
213
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.MAINNET]],
|
|
214
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
|
|
215
|
+
},
|
|
216
|
+
_e[ChainId.TLOS] = {
|
|
217
|
+
chainId: '0x28',
|
|
218
|
+
chainName: 'Telos',
|
|
219
|
+
nativeCurrency: {
|
|
220
|
+
name: 'Telos',
|
|
221
|
+
symbol: 'TLOS',
|
|
222
|
+
decimals: 18,
|
|
223
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/TLOS.svg"),
|
|
224
|
+
},
|
|
225
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.TLOS]],
|
|
226
|
+
logoURI: "".concat(APESWAP_LIST_REPO, "/assets/wtlos.svg"),
|
|
227
|
+
},
|
|
228
|
+
_e[ChainId.ARBITRUM_ONE] = {
|
|
229
|
+
chainId: '0xa4b1',
|
|
230
|
+
chainName: 'Arbitrum',
|
|
231
|
+
nativeCurrency: {
|
|
232
|
+
name: 'Ether',
|
|
233
|
+
symbol: 'ETH',
|
|
234
|
+
decimals: 18,
|
|
235
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/ETH.svg"),
|
|
236
|
+
},
|
|
237
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.ARBITRUM_ONE]],
|
|
238
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arbitrum.svg',
|
|
239
|
+
},
|
|
240
|
+
_e[ChainId.AVALANCHE] = {
|
|
241
|
+
chainId: '0xa86a',
|
|
242
|
+
chainName: 'Avalanche Mainnet',
|
|
243
|
+
nativeCurrency: {
|
|
244
|
+
name: 'AVAX',
|
|
245
|
+
symbol: 'AVAX',
|
|
246
|
+
decimals: 18,
|
|
247
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/AVAX.svg"),
|
|
248
|
+
},
|
|
249
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.AVALANCHE]],
|
|
250
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/avalanche.svg',
|
|
251
|
+
},
|
|
252
|
+
_e[ChainId.OPTIMISM] = {
|
|
253
|
+
chainId: '0xa',
|
|
254
|
+
chainName: 'Optimism',
|
|
255
|
+
nativeCurrency: {
|
|
256
|
+
name: 'ETH',
|
|
257
|
+
symbol: 'ETH',
|
|
258
|
+
decimals: 18,
|
|
259
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/ETH.svg"),
|
|
260
|
+
},
|
|
261
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.OPTIMISM]],
|
|
262
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/optimism.svg',
|
|
263
|
+
},
|
|
264
|
+
_e[ChainId.FANTOM] = {
|
|
265
|
+
chainId: '0xfa',
|
|
266
|
+
chainName: 'Fantom Opera',
|
|
267
|
+
nativeCurrency: {
|
|
268
|
+
name: 'FTM',
|
|
269
|
+
symbol: 'FTM',
|
|
270
|
+
decimals: 18,
|
|
271
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/FTM.svg"),
|
|
272
|
+
},
|
|
273
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.FANTOM]],
|
|
274
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/fantom.svg',
|
|
275
|
+
},
|
|
276
|
+
_e[ChainId.CRONOS] = {
|
|
277
|
+
chainId: '0x19',
|
|
278
|
+
chainName: 'Cronos',
|
|
279
|
+
nativeCurrency: {
|
|
280
|
+
name: 'CRO',
|
|
281
|
+
symbol: 'CRO',
|
|
282
|
+
decimals: 18,
|
|
283
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/CRO.svg"),
|
|
284
|
+
},
|
|
285
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.CRONOS]],
|
|
286
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/cronos.svg',
|
|
287
|
+
},
|
|
288
|
+
_e[ChainId.POLYGON_ZK] = {
|
|
289
|
+
chainId: '0x44d',
|
|
290
|
+
chainName: 'zkEVM',
|
|
291
|
+
nativeCurrency: {
|
|
292
|
+
name: 'ETH',
|
|
293
|
+
symbol: 'ETH',
|
|
294
|
+
decimals: 18,
|
|
295
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/ETH.svg"),
|
|
296
|
+
},
|
|
297
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.POLYGON_ZK]],
|
|
298
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
|
|
299
|
+
},
|
|
300
|
+
_e[ChainId.CELO] = {
|
|
301
|
+
chainId: '0xa4ec',
|
|
302
|
+
chainName: 'Celo Mainnet',
|
|
303
|
+
nativeCurrency: {
|
|
304
|
+
name: 'CELO',
|
|
305
|
+
symbol: 'CELO',
|
|
306
|
+
decimals: 18,
|
|
307
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/CELO.svg"),
|
|
308
|
+
},
|
|
309
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.CELO]],
|
|
310
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/celo.svg',
|
|
311
|
+
},
|
|
312
|
+
_e[ChainId.GNOSIS] = {
|
|
313
|
+
chainId: '0x64',
|
|
314
|
+
chainName: 'Gnosis',
|
|
315
|
+
nativeCurrency: {
|
|
316
|
+
name: 'xDai',
|
|
317
|
+
symbol: 'xDai',
|
|
318
|
+
decimals: 18,
|
|
319
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/XDAI.svg"),
|
|
320
|
+
},
|
|
321
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.GNOSIS]],
|
|
322
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/gnosis.svg',
|
|
323
|
+
},
|
|
324
|
+
_e[ChainId.OKX] = {
|
|
325
|
+
chainId: '0x42',
|
|
326
|
+
chainName: 'OKXChain Mainnet',
|
|
327
|
+
nativeCurrency: {
|
|
328
|
+
name: 'OKT',
|
|
329
|
+
symbol: 'OKT',
|
|
330
|
+
decimals: 18,
|
|
331
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/OKT.svg"),
|
|
332
|
+
},
|
|
333
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.GNOSIS]],
|
|
334
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/okx.svg',
|
|
335
|
+
},
|
|
336
|
+
_e[ChainId.INJECTED_EVM_TESTNET] = {
|
|
337
|
+
chainId: '0x978',
|
|
338
|
+
chainName: 'InEVM (test)',
|
|
339
|
+
nativeCurrency: {
|
|
340
|
+
name: 'INJ',
|
|
341
|
+
symbol: 'INJ',
|
|
342
|
+
decimals: 18,
|
|
343
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/ETH.svg"),
|
|
344
|
+
},
|
|
345
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.INJECTED_EVM_TESTNET]],
|
|
346
|
+
logoURI: 'https://docs.injective.network/img/injective.svg',
|
|
347
|
+
},
|
|
348
|
+
_e[ChainId.INEVM] = {
|
|
349
|
+
chainId: '0x978',
|
|
350
|
+
chainName: 'InEVM',
|
|
351
|
+
nativeCurrency: {
|
|
352
|
+
name: 'INJ',
|
|
353
|
+
symbol: 'INJ',
|
|
354
|
+
decimals: 18,
|
|
355
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/INJ.svg"),
|
|
356
|
+
},
|
|
357
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.INEVM]],
|
|
358
|
+
logoURI: 'https://docs.injective.network/img/injective.svg',
|
|
359
|
+
},
|
|
360
|
+
_e[ChainId.SEPOLIA] = {
|
|
361
|
+
chainId: '0xaa36a7',
|
|
362
|
+
chainName: 'Sepolia',
|
|
363
|
+
nativeCurrency: {
|
|
364
|
+
name: 'ETH',
|
|
365
|
+
symbol: 'ETH',
|
|
366
|
+
decimals: 18,
|
|
367
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/ETH.svg"),
|
|
368
|
+
},
|
|
369
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.SEPOLIA]],
|
|
370
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
|
|
371
|
+
},
|
|
372
|
+
_e[ChainId.LINEA] = {
|
|
373
|
+
chainId: '0xe708',
|
|
374
|
+
chainName: 'Linea',
|
|
375
|
+
nativeCurrency: {
|
|
376
|
+
name: 'ETH',
|
|
377
|
+
symbol: 'ETH',
|
|
378
|
+
decimals: 18,
|
|
379
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/ETH.svg"),
|
|
380
|
+
},
|
|
381
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.LINEA]],
|
|
382
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
|
|
383
|
+
},
|
|
384
|
+
_e[ChainId.LIGHTLINK] = {
|
|
385
|
+
chainId: '0x762',
|
|
386
|
+
chainName: 'Lightlink Phoenix',
|
|
387
|
+
nativeCurrency: {
|
|
388
|
+
name: 'ETH',
|
|
389
|
+
symbol: 'ETH',
|
|
390
|
+
decimals: 18,
|
|
391
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/ETH.svg"),
|
|
392
|
+
},
|
|
393
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.LIGHTLINK]],
|
|
394
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
|
|
395
|
+
},
|
|
396
|
+
_e[ChainId.IOTA] = {
|
|
397
|
+
chainId: '0x2276',
|
|
398
|
+
chainName: 'IOTA',
|
|
399
|
+
nativeCurrency: {
|
|
400
|
+
name: 'IOTA',
|
|
401
|
+
symbol: 'IOTA',
|
|
402
|
+
decimals: 18,
|
|
403
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/IOTA.svg"),
|
|
404
|
+
},
|
|
405
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.IOTA]],
|
|
406
|
+
logoURI: "".concat(APESWAP_LIST_REPO, "/assets/IOTA.svg"),
|
|
407
|
+
},
|
|
408
|
+
_e[ChainId.IOTA_TESTNET] = {
|
|
409
|
+
chainId: '0x433',
|
|
410
|
+
chainName: 'IOTA',
|
|
411
|
+
nativeCurrency: {
|
|
412
|
+
name: 'IOTA',
|
|
413
|
+
symbol: 'IOTA',
|
|
414
|
+
decimals: 18,
|
|
415
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/IOTA.svg"),
|
|
416
|
+
},
|
|
417
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.IOTA_TESTNET]],
|
|
418
|
+
logoURI: "".concat(APESWAP_LIST_REPO, "/assets/IOTA.svg"),
|
|
419
|
+
},
|
|
420
|
+
_e[ChainId.BASE] = {
|
|
421
|
+
chainId: '0x2105',
|
|
422
|
+
chainName: 'BASE',
|
|
423
|
+
nativeCurrency: {
|
|
424
|
+
name: 'ETH',
|
|
425
|
+
symbol: 'ETH',
|
|
426
|
+
decimals: 18,
|
|
427
|
+
logo: "".concat(APESWAP_LIST_REPO, "/assets/ETH.svg"),
|
|
428
|
+
},
|
|
429
|
+
blockExplorerUrls: [BLOCK_EXPLORER[ChainId.BASE]],
|
|
430
|
+
logoURI: "".concat(APESWAP_LIST_REPO, "/assets/ETH.svg"),
|
|
431
|
+
},
|
|
432
|
+
_e);
|
|
433
|
+
export var getChainInfo = function (chainId) {
|
|
434
|
+
var _a;
|
|
435
|
+
if (chainId) {
|
|
436
|
+
return (_a = CHAIN_PARAMS[chainId]) !== null && _a !== void 0 ? _a : undefined;
|
|
437
|
+
}
|
|
438
|
+
return undefined;
|
|
439
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const APESWAP_LIST_REPO_BRANCH: string;
|
|
2
|
+
export declare const APESWAP_LISTS_URL: string;
|
|
3
|
+
export declare const APESWAP_LIST_REPO: string;
|
|
4
|
+
export declare const APESWAP: string;
|
|
5
|
+
export declare const LIFI = "https://li.quest/v1/tokens";
|
|
6
|
+
export declare const UNSUPPORTED_LIST_URLS: string[];
|
|
7
|
+
export declare const DEFAULT_ACTIVE_LIST_URLS: string[];
|
|
8
|
+
export declare const DEFAULT_INACTIVE_LIST_URLS: string[];
|
|
9
|
+
export declare const DEFAULT_LIST_OF_LISTS: string[];
|
|
10
|
+
export declare const APE_CHAIN_LISTS: number[];
|