@pioneer-platform/uniswap-client 0.1.0 → 0.2.0
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/CHANGELOG.md +27 -0
- package/package.json +15 -24
- package/tsconfig.json +2 -1
- package/lib/constants/chainInfo.d.ts +0 -47
- package/lib/constants/chainInfo.js +0 -248
- package/lib/constants/chains.d.ts +0 -46
- package/lib/constants/chains.js +0 -136
- package/lib/constants/governance.d.ts +0 -8
- package/lib/constants/governance.js +0 -23
- package/lib/constants/lists.d.ts +0 -12
- package/lib/constants/lists.js +0 -56
- package/lib/constants/locales.d.ts +0 -6
- package/lib/constants/locales.js +0 -71
- package/lib/constants/misc.d.ts +0 -16
- package/lib/constants/misc.js +0 -31
- package/lib/constants/networks.d.ts +0 -21
- package/lib/constants/networks.js +0 -169
- package/lib/constants/proposals/index.d.ts +0 -5
- package/lib/constants/proposals/index.js +0 -8
- package/lib/constants/proposals/polygon_proposal_title.d.ts +0 -1
- package/lib/constants/proposals/polygon_proposal_title.js +0 -4
- package/lib/constants/proposals/uniswap_grants_proposal_description.d.ts +0 -1
- package/lib/constants/proposals/uniswap_grants_proposal_description.js +0 -109
- package/lib/constants/providers.d.ts +0 -20
- package/lib/constants/providers.js +0 -32
- package/lib/constants/routing.d.ts +0 -16
- package/lib/constants/routing.js +0 -106
- package/lib/constants/supportArticles.d.ts +0 -13
- package/lib/constants/supportArticles.js +0 -17
- package/lib/constants/tokens.d.ts +0 -70
- package/lib/constants/tokens.js +0 -252
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -724
- package/lib/routing/clientSideSmartOrderRouter.d.ts +0 -5
- package/lib/routing/clientSideSmartOrderRouter.js +0 -102
- package/lib/routing/gas.d.ts +0 -5
- package/lib/routing/gas.js +0 -71
- package/lib/routing/types.d.ts +0 -393
- package/lib/routing/types.js +0 -320
- package/lib/routing/utils.d.ts +0 -28
- package/lib/routing/utils.js +0 -264
- package/lib/rpc/AppJsonRpcProvider.d.ts +0 -44
- package/lib/rpc/AppJsonRpcProvider.js +0 -92
- package/lib/rpc/ConfiguredJsonRpcProvider.d.ts +0 -8
- package/lib/rpc/ConfiguredJsonRpcProvider.js +0 -16
- package/lib/utils/contracts/getContract.d.ts +0 -3
- package/lib/utils/contracts/getContract.js +0 -28
- package/lib/utils/transformSwapRouteToGetQuoteResult.d.ts +0 -4
- package/lib/utils/transformSwapRouteToGetQuoteResult.js +0 -113
- package/lib/utils/uniswapData.d.ts +0 -21
- package/lib/utils/uniswapData.js +0 -139
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @pioneer-platform/uniswap-client
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Automated minor version bump for all packages
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @pioneer-platform/maya-network@8.5.0
|
|
13
|
+
- @pioneer-platform/loggerdog@8.5.0
|
|
14
|
+
- @pioneer-platform/pioneer-coins@9.5.0
|
|
15
|
+
- @pioneer-platform/pioneer-caip@9.4.0
|
|
16
|
+
- @pioneer-platform/pioneer-discovery@0.2.0
|
|
17
|
+
|
|
18
|
+
## 0.1.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Automated patch version bump for all packages
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @pioneer-platform/maya-network@8.4.1
|
|
25
|
+
- @pioneer-platform/loggerdog@8.4.1
|
|
26
|
+
- @pioneer-platform/pioneer-coins@9.4.1
|
|
27
|
+
- @pioneer-platform/pioneer-caip@9.3.1
|
|
28
|
+
- @pioneer-platform/pioneer-discovery@0.1.1
|
|
29
|
+
|
|
3
30
|
## 0.1.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/uniswap-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@keepkey/keepkey-sdk": "^0.2.57",
|
|
8
|
-
"@pioneer-platform/loggerdog": "^8.
|
|
9
|
-
"@pioneer-platform/maya-network": "^8.
|
|
10
|
-
"@pioneer-platform/pioneer-caip": "^9.
|
|
11
|
-
"@pioneer-platform/pioneer-coins": "^9.
|
|
12
|
-
"@pioneer-platform/pioneer-discovery": "^0.
|
|
8
|
+
"@pioneer-platform/loggerdog": "^8.5.0",
|
|
9
|
+
"@pioneer-platform/maya-network": "^8.5.0",
|
|
10
|
+
"@pioneer-platform/pioneer-caip": "^9.4.0",
|
|
11
|
+
"@pioneer-platform/pioneer-coins": "^9.5.0",
|
|
12
|
+
"@pioneer-platform/pioneer-discovery": "^0.2.0",
|
|
13
13
|
"@types/ms": "^0.7.34",
|
|
14
14
|
"@types/ms.macro": "^2.0.2",
|
|
15
|
-
"@uniswap/router-sdk": "1.9.0",
|
|
16
|
-
"@uniswap/sdk": "^3.0.3",
|
|
17
|
-
"@uniswap/sdk-core": "4.2.0",
|
|
18
|
-
"@uniswap/smart-order-router": "3.26.0",
|
|
19
|
-
"@uniswap/token-lists": "^1.0.0-beta.34",
|
|
20
|
-
"@uniswap/uniswapx-sdk": "^2.0.1-alpha.10",
|
|
21
|
-
"@uniswap/universal-router-sdk": "1.8.2",
|
|
22
|
-
"@uniswap/v2-sdk": "4.3.0",
|
|
23
|
-
"@uniswap/v3-sdk": "3.11.0",
|
|
24
15
|
"axios": "^1.6.0",
|
|
25
16
|
"dayjs": "^1.11.10",
|
|
26
17
|
"dotenv": "^8.2.0",
|
|
@@ -28,6 +19,14 @@
|
|
|
28
19
|
"ms.macro": "^2.0.0",
|
|
29
20
|
"uuidv4": "^6.2.13"
|
|
30
21
|
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"npm": "pnpm i",
|
|
24
|
+
"test": "pnpm run build && node __tests__/test-module.js",
|
|
25
|
+
"test-sdk": "pnpm run build && node __tests__/test-module-sdk.js",
|
|
26
|
+
"build": "tsc -p .",
|
|
27
|
+
"prepublish": "pnpm run build",
|
|
28
|
+
"refresh": "rm -rf ./node_modules ./package-lock.json && pnpm install"
|
|
29
|
+
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@types/async-retry": "^1.4.8",
|
|
33
32
|
"@types/bunyan": "^1.8.11",
|
|
@@ -41,13 +40,5 @@
|
|
|
41
40
|
"ts-jest": "^29.0.5",
|
|
42
41
|
"typescript": "^5.0.4"
|
|
43
42
|
},
|
|
44
|
-
"gitHead": "a76012f6693a12181c4744e53e977a9eaeef0ed3"
|
|
45
|
-
"scripts": {
|
|
46
|
-
"npm": "pnpm i",
|
|
47
|
-
"test": "pnpm run build && node __tests__/test-module.js",
|
|
48
|
-
"test-sdk": "pnpm run build && node __tests__/test-module-sdk.js",
|
|
49
|
-
"build": "tsc -p .",
|
|
50
|
-
"prepublish": "pnpm run build",
|
|
51
|
-
"refresh": "rm -rf ./node_modules ./package-lock.json && pnpm install"
|
|
52
|
-
}
|
|
43
|
+
"gitHead": "a76012f6693a12181c4744e53e977a9eaeef0ed3"
|
|
53
44
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@uniswap/sdk-core';
|
|
2
|
-
import { SupportedL1ChainId, SupportedL2ChainId } from './chains';
|
|
3
|
-
export declare const AVERAGE_L1_BLOCK_TIME: any;
|
|
4
|
-
export declare const DEFAULT_MS_BEFORE_WARNING: any;
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @param chainId
|
|
8
|
-
* @returns The approximate whole number of blocks written to the corresponding chainId per Ethereum mainnet epoch.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getBlocksPerMainnetEpochForChainId(chainId: number | undefined): number;
|
|
11
|
-
export declare enum NetworkType {
|
|
12
|
-
L1 = 0,
|
|
13
|
-
L2 = 1
|
|
14
|
-
}
|
|
15
|
-
interface BaseChainInfo {
|
|
16
|
-
readonly networkType: NetworkType;
|
|
17
|
-
readonly blockWaitMsBeforeWarning?: number;
|
|
18
|
-
readonly docs: string;
|
|
19
|
-
readonly bridge?: string;
|
|
20
|
-
readonly explorer: string;
|
|
21
|
-
readonly infoLink: string;
|
|
22
|
-
readonly label: string;
|
|
23
|
-
readonly helpCenterUrl?: string;
|
|
24
|
-
readonly nativeCurrency: {
|
|
25
|
-
name: string;
|
|
26
|
-
symbol: string;
|
|
27
|
-
decimals: number;
|
|
28
|
-
};
|
|
29
|
-
readonly color?: string;
|
|
30
|
-
readonly backgroundColor?: string;
|
|
31
|
-
}
|
|
32
|
-
interface L1ChainInfo extends BaseChainInfo {
|
|
33
|
-
readonly networkType: NetworkType.L1;
|
|
34
|
-
readonly defaultListUrl?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface L2ChainInfo extends BaseChainInfo {
|
|
37
|
-
readonly networkType: NetworkType.L2;
|
|
38
|
-
readonly bridge: string;
|
|
39
|
-
readonly statusPage?: string;
|
|
40
|
-
readonly defaultListUrl: string;
|
|
41
|
-
}
|
|
42
|
-
export declare function getChainInfo(chainId: SupportedL1ChainId, featureFlags?: Record<ChainId | SupportedL1ChainId | SupportedL2ChainId | number, boolean>): L1ChainInfo;
|
|
43
|
-
export declare function getChainInfo(chainId: SupportedL2ChainId, featureFlags?: Record<ChainId | SupportedL1ChainId | SupportedL2ChainId | number, boolean>): L2ChainInfo;
|
|
44
|
-
export declare function getChainInfo(chainId: ChainId, featureFlags?: Record<ChainId | SupportedL1ChainId | SupportedL2ChainId | number, boolean>): L1ChainInfo | L2ChainInfo;
|
|
45
|
-
export declare function getChainInfo(chainId: ChainId | SupportedL1ChainId | SupportedL2ChainId | number | undefined, featureFlags?: Record<ChainId | SupportedL1ChainId | SupportedL2ChainId | number, boolean>): L1ChainInfo | L2ChainInfo | undefined;
|
|
46
|
-
export declare function getChainInfoOrDefault(chainId: number | undefined, featureFlags?: Record<number, boolean>): L1ChainInfo | L2ChainInfo;
|
|
47
|
-
export {};
|
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NetworkType = exports.DEFAULT_MS_BEFORE_WARNING = exports.AVERAGE_L1_BLOCK_TIME = void 0;
|
|
7
|
-
exports.getBlocksPerMainnetEpochForChainId = getBlocksPerMainnetEpochForChainId;
|
|
8
|
-
exports.getChainInfo = getChainInfo;
|
|
9
|
-
exports.getChainInfoOrDefault = getChainInfoOrDefault;
|
|
10
|
-
const sdk_core_1 = require("@uniswap/sdk-core");
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
const ms_1 = __importDefault(require("ms"));
|
|
13
|
-
const lists_1 = require("./lists");
|
|
14
|
-
exports.AVERAGE_L1_BLOCK_TIME = (0, ms_1.default)(`12s`);
|
|
15
|
-
exports.DEFAULT_MS_BEFORE_WARNING = (0, ms_1.default)(`10m`);
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param chainId
|
|
19
|
-
* @returns The approximate whole number of blocks written to the corresponding chainId per Ethereum mainnet epoch.
|
|
20
|
-
*/
|
|
21
|
-
function getBlocksPerMainnetEpochForChainId(chainId) {
|
|
22
|
-
// Average block times were pulled from https://dune.com/jacobdcastro/avg-block-times on 2024-03-14,
|
|
23
|
-
// and corroborated with that chain's documentation/explorer.
|
|
24
|
-
// Blocks per mainnet epoch is computed as `Math.floor(12s / AVG_BLOCK_TIME)` and hard-coded.
|
|
25
|
-
switch (chainId) {
|
|
26
|
-
case sdk_core_1.ChainId.ARBITRUM_ONE:
|
|
27
|
-
return 46;
|
|
28
|
-
case sdk_core_1.ChainId.OPTIMISM:
|
|
29
|
-
return 6;
|
|
30
|
-
case sdk_core_1.ChainId.POLYGON:
|
|
31
|
-
return 5;
|
|
32
|
-
case sdk_core_1.ChainId.BASE:
|
|
33
|
-
return 6;
|
|
34
|
-
case sdk_core_1.ChainId.BNB:
|
|
35
|
-
return 4;
|
|
36
|
-
case sdk_core_1.ChainId.AVALANCHE:
|
|
37
|
-
return 6;
|
|
38
|
-
case sdk_core_1.ChainId.CELO:
|
|
39
|
-
return 2;
|
|
40
|
-
default:
|
|
41
|
-
return 1;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
var NetworkType;
|
|
45
|
-
(function (NetworkType) {
|
|
46
|
-
NetworkType[NetworkType["L1"] = 0] = "L1";
|
|
47
|
-
NetworkType[NetworkType["L2"] = 1] = "L2";
|
|
48
|
-
})(NetworkType || (exports.NetworkType = NetworkType = {}));
|
|
49
|
-
const CHAIN_INFO = {
|
|
50
|
-
[sdk_core_1.ChainId.MAINNET]: {
|
|
51
|
-
networkType: NetworkType.L1,
|
|
52
|
-
docs: 'https://docs.uniswap.org/',
|
|
53
|
-
explorer: 'https://etherscan.io/',
|
|
54
|
-
infoLink: 'https://info.uniswap.org/#/',
|
|
55
|
-
label: 'Ethereum',
|
|
56
|
-
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
57
|
-
color: '#fcfc03',
|
|
58
|
-
},
|
|
59
|
-
[sdk_core_1.ChainId.GOERLI]: {
|
|
60
|
-
networkType: NetworkType.L1,
|
|
61
|
-
docs: 'https://docs.uniswap.org/',
|
|
62
|
-
explorer: 'https://goerli.etherscan.io/',
|
|
63
|
-
infoLink: 'https://info.uniswap.org/#/',
|
|
64
|
-
label: 'Görli',
|
|
65
|
-
nativeCurrency: { name: 'Görli Ether', symbol: 'görETH', decimals: 18 },
|
|
66
|
-
color: '#fcfc03',
|
|
67
|
-
},
|
|
68
|
-
[sdk_core_1.ChainId.SEPOLIA]: {
|
|
69
|
-
networkType: NetworkType.L1,
|
|
70
|
-
docs: 'https://docs.uniswap.org/',
|
|
71
|
-
explorer: 'https://sepolia.etherscan.io/',
|
|
72
|
-
infoLink: 'https://info.uniswap.org/#/',
|
|
73
|
-
label: 'Sepolia',
|
|
74
|
-
nativeCurrency: { name: 'Sepolia Ether', symbol: 'SepoliaETH', decimals: 18 },
|
|
75
|
-
color: '#fcfc03',
|
|
76
|
-
},
|
|
77
|
-
[sdk_core_1.ChainId.OPTIMISM]: {
|
|
78
|
-
networkType: NetworkType.L2,
|
|
79
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`25m`),
|
|
80
|
-
bridge: 'https://app.optimism.io/bridge',
|
|
81
|
-
defaultListUrl: lists_1.OPTIMISM_LIST,
|
|
82
|
-
docs: 'https://optimism.io/',
|
|
83
|
-
explorer: 'https://optimistic.etherscan.io/',
|
|
84
|
-
infoLink: 'https://info.uniswap.org/#/optimism/',
|
|
85
|
-
label: 'Optimism',
|
|
86
|
-
statusPage: 'https://optimism.io/status',
|
|
87
|
-
helpCenterUrl: 'https://help.uniswap.org/en/collections/3137778-uniswap-on-optimistic-ethereum-oξ',
|
|
88
|
-
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
89
|
-
color: '#fcfc03',
|
|
90
|
-
backgroundColor: '#fcfc03',
|
|
91
|
-
},
|
|
92
|
-
[sdk_core_1.ChainId.OPTIMISM_GOERLI]: {
|
|
93
|
-
networkType: NetworkType.L2,
|
|
94
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`25m`),
|
|
95
|
-
bridge: 'https://app.optimism.io/bridge',
|
|
96
|
-
defaultListUrl: lists_1.OPTIMISM_LIST,
|
|
97
|
-
docs: 'https://optimism.io/',
|
|
98
|
-
explorer: 'https://goerli-optimism.etherscan.io/',
|
|
99
|
-
infoLink: 'https://info.uniswap.org/#/optimism/',
|
|
100
|
-
label: 'Optimism Görli',
|
|
101
|
-
statusPage: 'https://optimism.io/status',
|
|
102
|
-
helpCenterUrl: 'https://help.uniswap.org/en/collections/3137778-uniswap-on-optimistic-ethereum-oξ',
|
|
103
|
-
nativeCurrency: { name: 'Optimism Goerli Ether', symbol: 'görOpETH', decimals: 18 },
|
|
104
|
-
color: '#fcfc03',
|
|
105
|
-
},
|
|
106
|
-
[sdk_core_1.ChainId.ARBITRUM_ONE]: {
|
|
107
|
-
networkType: NetworkType.L2,
|
|
108
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`10m`),
|
|
109
|
-
bridge: 'https://bridge.arbitrum.io/',
|
|
110
|
-
docs: 'https://offchainlabs.com/',
|
|
111
|
-
explorer: 'https://arbiscan.io/',
|
|
112
|
-
infoLink: 'https://info.uniswap.org/#/arbitrum',
|
|
113
|
-
label: 'Arbitrum',
|
|
114
|
-
defaultListUrl: lists_1.ARBITRUM_LIST,
|
|
115
|
-
helpCenterUrl: 'https://help.uniswap.org/en/collections/3137787-uniswap-on-arbitrum',
|
|
116
|
-
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
117
|
-
color: '#fcfc03',
|
|
118
|
-
backgroundColor: '#fcfc03',
|
|
119
|
-
},
|
|
120
|
-
[sdk_core_1.ChainId.ARBITRUM_GOERLI]: {
|
|
121
|
-
networkType: NetworkType.L2,
|
|
122
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`10m`),
|
|
123
|
-
bridge: 'https://bridge.arbitrum.io/',
|
|
124
|
-
docs: 'https://offchainlabs.com/',
|
|
125
|
-
explorer: 'https://goerli.arbiscan.io/',
|
|
126
|
-
infoLink: 'https://info.uniswap.org/#/arbitrum/',
|
|
127
|
-
label: 'Arbitrum Goerli',
|
|
128
|
-
defaultListUrl: lists_1.ARBITRUM_LIST, // TODO: use arbitrum goerli token list
|
|
129
|
-
helpCenterUrl: 'https://help.uniswap.org/en/collections/3137787-uniswap-on-arbitrum',
|
|
130
|
-
nativeCurrency: { name: 'Goerli Arbitrum Ether', symbol: 'goerliArbETH', decimals: 18 },
|
|
131
|
-
color: '#fcfc03',
|
|
132
|
-
},
|
|
133
|
-
[sdk_core_1.ChainId.POLYGON]: {
|
|
134
|
-
networkType: NetworkType.L1,
|
|
135
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`10m`),
|
|
136
|
-
bridge: 'https://wallet.polygon.technology/polygon/bridge',
|
|
137
|
-
docs: 'https://polygon.io/',
|
|
138
|
-
explorer: 'https://polygonscan.com/',
|
|
139
|
-
infoLink: 'https://info.uniswap.org/#/polygon/',
|
|
140
|
-
label: 'Polygon',
|
|
141
|
-
nativeCurrency: { name: 'Polygon Matic', symbol: 'MATIC', decimals: 18 },
|
|
142
|
-
color: '#fcfc03',
|
|
143
|
-
backgroundColor: '#fcfc03',
|
|
144
|
-
},
|
|
145
|
-
[sdk_core_1.ChainId.POLYGON_MUMBAI]: {
|
|
146
|
-
networkType: NetworkType.L1,
|
|
147
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`10m`),
|
|
148
|
-
bridge: 'https://wallet.polygon.technology/polygon/bridge/deposit',
|
|
149
|
-
docs: 'https://polygon.io/',
|
|
150
|
-
explorer: 'https://mumbai.polygonscan.com/',
|
|
151
|
-
infoLink: 'https://info.uniswap.org/#/polygon/',
|
|
152
|
-
label: 'Polygon Mumbai',
|
|
153
|
-
nativeCurrency: { name: 'Polygon Mumbai Matic', symbol: 'mMATIC', decimals: 18 },
|
|
154
|
-
},
|
|
155
|
-
[sdk_core_1.ChainId.CELO]: {
|
|
156
|
-
networkType: NetworkType.L1,
|
|
157
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`10m`),
|
|
158
|
-
bridge: 'https://www.portalbridge.com/#/transfer',
|
|
159
|
-
docs: 'https://docs.celo.org/',
|
|
160
|
-
explorer: 'https://celoscan.io/',
|
|
161
|
-
infoLink: 'https://info.uniswap.org/#/celo/',
|
|
162
|
-
label: 'Celo',
|
|
163
|
-
nativeCurrency: { name: 'Celo', symbol: 'CELO', decimals: 18 },
|
|
164
|
-
defaultListUrl: lists_1.CELO_LIST,
|
|
165
|
-
},
|
|
166
|
-
[sdk_core_1.ChainId.CELO_ALFAJORES]: {
|
|
167
|
-
networkType: NetworkType.L1,
|
|
168
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`10m`),
|
|
169
|
-
bridge: 'https://www.portalbridge.com/#/transfer',
|
|
170
|
-
docs: 'https://docs.celo.org/',
|
|
171
|
-
explorer: 'https://alfajores-blockscout.celo-testnet.org/',
|
|
172
|
-
infoLink: 'https://info.uniswap.org/#/celo/',
|
|
173
|
-
label: 'Celo Alfajores',
|
|
174
|
-
nativeCurrency: { name: 'Celo', symbol: 'CELO', decimals: 18 },
|
|
175
|
-
defaultListUrl: lists_1.CELO_LIST,
|
|
176
|
-
},
|
|
177
|
-
[sdk_core_1.ChainId.BNB]: {
|
|
178
|
-
networkType: NetworkType.L1,
|
|
179
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`10m`),
|
|
180
|
-
bridge: 'https://cbridge.celer.network/1/56',
|
|
181
|
-
docs: 'https://docs.bnbchain.org/',
|
|
182
|
-
explorer: 'https://bscscan.com/',
|
|
183
|
-
infoLink: 'https://info.uniswap.org/#/bnb/',
|
|
184
|
-
label: 'BNB Chain',
|
|
185
|
-
nativeCurrency: { name: 'BNB', symbol: 'BNB', decimals: 18 },
|
|
186
|
-
defaultListUrl: lists_1.PLASMA_BNB_LIST,
|
|
187
|
-
color: '#fcfc03',
|
|
188
|
-
backgroundColor: '#fcfc03',
|
|
189
|
-
},
|
|
190
|
-
[sdk_core_1.ChainId.AVALANCHE]: {
|
|
191
|
-
networkType: NetworkType.L1,
|
|
192
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`10m`),
|
|
193
|
-
bridge: 'https://core.app/bridge/',
|
|
194
|
-
docs: 'https://docs.avax.network/',
|
|
195
|
-
explorer: 'https://snowtrace.io/',
|
|
196
|
-
infoLink: 'https://info.uniswap.org/#/avax/', // TODO(WEB-2336): Add avax support to info site
|
|
197
|
-
label: 'Avalanche',
|
|
198
|
-
nativeCurrency: { name: 'AVAX', symbol: 'AVAX', decimals: 18 },
|
|
199
|
-
defaultListUrl: lists_1.AVALANCHE_LIST,
|
|
200
|
-
color: '#fcfc03',
|
|
201
|
-
backgroundColor: '#fcfc03',
|
|
202
|
-
},
|
|
203
|
-
[sdk_core_1.ChainId.BASE]: {
|
|
204
|
-
networkType: NetworkType.L2,
|
|
205
|
-
blockWaitMsBeforeWarning: (0, ms_1.default)(`25m`),
|
|
206
|
-
bridge: 'https://bridge.base.org/deposit',
|
|
207
|
-
defaultListUrl: lists_1.BASE_LIST,
|
|
208
|
-
docs: 'https://docs.base.org',
|
|
209
|
-
explorer: 'https://basescan.org/',
|
|
210
|
-
infoLink: 'https://info.uniswap.org/#/base/',
|
|
211
|
-
label: 'Base',
|
|
212
|
-
statusPage: 'https://status.base.org/',
|
|
213
|
-
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
214
|
-
color: '#fcfc03',
|
|
215
|
-
},
|
|
216
|
-
[sdk_core_1.ChainId.BLAST]: {
|
|
217
|
-
networkType: NetworkType.L2,
|
|
218
|
-
bridge: 'https://blast.io/bridge',
|
|
219
|
-
defaultListUrl: '',
|
|
220
|
-
docs: 'https://docs.blast.io',
|
|
221
|
-
explorer: 'https://blastscan.io/',
|
|
222
|
-
infoLink: 'https://info.uniswap.org/#/blast/',
|
|
223
|
-
label: 'Blast',
|
|
224
|
-
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
225
|
-
color: '#fcfc03', //'#fcfc03'
|
|
226
|
-
},
|
|
227
|
-
};
|
|
228
|
-
/**
|
|
229
|
-
* Overloaded method for returning ChainInfo given a chainID
|
|
230
|
-
* Return type varies depending on input type:
|
|
231
|
-
* number | undefined -> returns chaininfo | undefined
|
|
232
|
-
* ChainId -> returns L1ChainInfo | L2ChainInfo
|
|
233
|
-
* SupportedL1ChainId -> returns L1ChainInfo
|
|
234
|
-
* SupportedL2ChainId -> returns L2ChainInfo
|
|
235
|
-
*/
|
|
236
|
-
function getChainInfo(chainId, featureFlags) {
|
|
237
|
-
if (featureFlags && chainId in featureFlags) {
|
|
238
|
-
return featureFlags[chainId] ? CHAIN_INFO[chainId] : undefined;
|
|
239
|
-
}
|
|
240
|
-
if (chainId) {
|
|
241
|
-
return CHAIN_INFO[chainId] ?? undefined;
|
|
242
|
-
}
|
|
243
|
-
return undefined;
|
|
244
|
-
}
|
|
245
|
-
const MAINNET_INFO = CHAIN_INFO[sdk_core_1.ChainId.MAINNET];
|
|
246
|
-
function getChainInfoOrDefault(chainId, featureFlags) {
|
|
247
|
-
return getChainInfo(chainId, featureFlags) ?? MAINNET_INFO;
|
|
248
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ChainId, SupportedChainsType } from '@uniswap/sdk-core';
|
|
2
|
-
export declare const CHAIN_IDS_TO_NAMES: {
|
|
3
|
-
readonly [ChainId.MAINNET]: "mainnet";
|
|
4
|
-
readonly [ChainId.GOERLI]: "goerli";
|
|
5
|
-
readonly [ChainId.SEPOLIA]: "sepolia";
|
|
6
|
-
readonly [ChainId.POLYGON]: "polygon";
|
|
7
|
-
readonly [ChainId.POLYGON_MUMBAI]: "polygon_mumbai";
|
|
8
|
-
readonly [ChainId.CELO]: "celo";
|
|
9
|
-
readonly [ChainId.CELO_ALFAJORES]: "celo_alfajores";
|
|
10
|
-
readonly [ChainId.ARBITRUM_ONE]: "arbitrum";
|
|
11
|
-
readonly [ChainId.ARBITRUM_GOERLI]: "arbitrum_goerli";
|
|
12
|
-
readonly [ChainId.OPTIMISM]: "optimism";
|
|
13
|
-
readonly [ChainId.OPTIMISM_GOERLI]: "optimism_goerli";
|
|
14
|
-
readonly [ChainId.BNB]: "bnb";
|
|
15
|
-
readonly [ChainId.AVALANCHE]: "avalanche";
|
|
16
|
-
readonly [ChainId.BASE]: "base";
|
|
17
|
-
readonly [ChainId.BLAST]: "blast";
|
|
18
|
-
};
|
|
19
|
-
export type SupportedInterfaceChain = Exclude<SupportedChainsType, ChainId.BASE_GOERLI | ChainId.ARBITRUM_SEPOLIA | ChainId.OPTIMISM_SEPOLIA | ChainId.ROOTSTOCK | ChainId.ZORA | ChainId.ZORA_SEPOLIA>;
|
|
20
|
-
export declare function isSupportedChain(chainId: number | null | undefined | ChainId, featureFlags?: Record<number, boolean>): chainId is SupportedInterfaceChain;
|
|
21
|
-
export declare function asSupportedChain(chainId: number | null | undefined | ChainId, featureFlags?: Record<number, boolean>): SupportedInterfaceChain | undefined;
|
|
22
|
-
export declare const SUPPORTED_GAS_ESTIMATE_CHAIN_IDS: readonly [any, any, any, any, any, any, any, any, any];
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated when v2 pools are enabled on chains supported through sdk-core
|
|
25
|
-
*/
|
|
26
|
-
export declare const SUPPORTED_V2POOL_CHAIN_IDS_DEPRECATED: readonly [any, any];
|
|
27
|
-
export declare const SUPPORTED_V2POOL_CHAIN_IDS: number[];
|
|
28
|
-
export declare const TESTNET_CHAIN_IDS: readonly [any, any, any, any, any, any];
|
|
29
|
-
/**
|
|
30
|
-
* All the chain IDs that are running the Ethereum protocol.
|
|
31
|
-
*/
|
|
32
|
-
export declare const L1_CHAIN_IDS: readonly [any, any, any, any, any, any, any, any, any];
|
|
33
|
-
export type SupportedL1ChainId = (typeof L1_CHAIN_IDS)[number];
|
|
34
|
-
/**
|
|
35
|
-
* Controls some L2 specific behavior, e.g. slippage tolerance, special UI behavior.
|
|
36
|
-
* The expectation is that all of these networks have immediate transaction confirmation.
|
|
37
|
-
*/
|
|
38
|
-
export declare const L2_CHAIN_IDS: readonly [any, any, any, any, any, any];
|
|
39
|
-
export type SupportedL2ChainId = (typeof L2_CHAIN_IDS)[number];
|
|
40
|
-
/**
|
|
41
|
-
* Get the priority of a chainId based on its relevance to the user.
|
|
42
|
-
* @param {ChainId} chainId - The chainId to determine the priority for.
|
|
43
|
-
* @returns {number} The priority of the chainId, the lower the priority, the earlier it should be displayed, with base of MAINNET=0.
|
|
44
|
-
*/
|
|
45
|
-
export declare function getChainPriority(chainId: ChainId): number;
|
|
46
|
-
export declare function isUniswapXSupportedChain(chainId: number): boolean;
|
package/lib/constants/chains.js
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.L2_CHAIN_IDS = exports.L1_CHAIN_IDS = exports.TESTNET_CHAIN_IDS = exports.SUPPORTED_V2POOL_CHAIN_IDS = exports.SUPPORTED_V2POOL_CHAIN_IDS_DEPRECATED = exports.SUPPORTED_GAS_ESTIMATE_CHAIN_IDS = exports.CHAIN_IDS_TO_NAMES = void 0;
|
|
4
|
-
exports.isSupportedChain = isSupportedChain;
|
|
5
|
-
exports.asSupportedChain = asSupportedChain;
|
|
6
|
-
exports.getChainPriority = getChainPriority;
|
|
7
|
-
exports.isUniswapXSupportedChain = isUniswapXSupportedChain;
|
|
8
|
-
const sdk_core_1 = require("@uniswap/sdk-core");
|
|
9
|
-
exports.CHAIN_IDS_TO_NAMES = {
|
|
10
|
-
[sdk_core_1.ChainId.MAINNET]: 'mainnet',
|
|
11
|
-
[sdk_core_1.ChainId.GOERLI]: 'goerli',
|
|
12
|
-
[sdk_core_1.ChainId.SEPOLIA]: 'sepolia',
|
|
13
|
-
[sdk_core_1.ChainId.POLYGON]: 'polygon',
|
|
14
|
-
[sdk_core_1.ChainId.POLYGON_MUMBAI]: 'polygon_mumbai',
|
|
15
|
-
[sdk_core_1.ChainId.CELO]: 'celo',
|
|
16
|
-
[sdk_core_1.ChainId.CELO_ALFAJORES]: 'celo_alfajores',
|
|
17
|
-
[sdk_core_1.ChainId.ARBITRUM_ONE]: 'arbitrum',
|
|
18
|
-
[sdk_core_1.ChainId.ARBITRUM_GOERLI]: 'arbitrum_goerli',
|
|
19
|
-
[sdk_core_1.ChainId.OPTIMISM]: 'optimism',
|
|
20
|
-
[sdk_core_1.ChainId.OPTIMISM_GOERLI]: 'optimism_goerli',
|
|
21
|
-
[sdk_core_1.ChainId.BNB]: 'bnb',
|
|
22
|
-
[sdk_core_1.ChainId.AVALANCHE]: 'avalanche',
|
|
23
|
-
[sdk_core_1.ChainId.BASE]: 'base',
|
|
24
|
-
[sdk_core_1.ChainId.BLAST]: 'blast',
|
|
25
|
-
};
|
|
26
|
-
// Include ChainIds in this array if they are not supported by the UX yet, but are already in the SDK.
|
|
27
|
-
const NOT_YET_UX_SUPPORTED_CHAIN_IDS = [
|
|
28
|
-
sdk_core_1.ChainId.BASE_GOERLI,
|
|
29
|
-
sdk_core_1.ChainId.ARBITRUM_SEPOLIA,
|
|
30
|
-
sdk_core_1.ChainId.OPTIMISM_SEPOLIA,
|
|
31
|
-
sdk_core_1.ChainId.ROOTSTOCK,
|
|
32
|
-
sdk_core_1.ChainId.ZORA,
|
|
33
|
-
sdk_core_1.ChainId.ZORA_SEPOLIA,
|
|
34
|
-
];
|
|
35
|
-
function isSupportedChain(chainId, featureFlags) {
|
|
36
|
-
if (featureFlags && chainId && chainId in featureFlags) {
|
|
37
|
-
return featureFlags[chainId];
|
|
38
|
-
}
|
|
39
|
-
return !!chainId && sdk_core_1.SUPPORTED_CHAINS.indexOf(chainId) !== -1 && NOT_YET_UX_SUPPORTED_CHAIN_IDS.indexOf(chainId) === -1;
|
|
40
|
-
}
|
|
41
|
-
function asSupportedChain(chainId, featureFlags) {
|
|
42
|
-
if (!chainId)
|
|
43
|
-
return undefined;
|
|
44
|
-
if (featureFlags && chainId in featureFlags && !featureFlags[chainId]) {
|
|
45
|
-
return undefined;
|
|
46
|
-
}
|
|
47
|
-
return isSupportedChain(chainId) ? chainId : undefined;
|
|
48
|
-
}
|
|
49
|
-
exports.SUPPORTED_GAS_ESTIMATE_CHAIN_IDS = [
|
|
50
|
-
sdk_core_1.ChainId.MAINNET,
|
|
51
|
-
sdk_core_1.ChainId.POLYGON,
|
|
52
|
-
sdk_core_1.ChainId.CELO,
|
|
53
|
-
sdk_core_1.ChainId.OPTIMISM,
|
|
54
|
-
sdk_core_1.ChainId.ARBITRUM_ONE,
|
|
55
|
-
sdk_core_1.ChainId.BNB,
|
|
56
|
-
sdk_core_1.ChainId.AVALANCHE,
|
|
57
|
-
sdk_core_1.ChainId.BASE,
|
|
58
|
-
sdk_core_1.ChainId.BLAST,
|
|
59
|
-
];
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated when v2 pools are enabled on chains supported through sdk-core
|
|
62
|
-
*/
|
|
63
|
-
exports.SUPPORTED_V2POOL_CHAIN_IDS_DEPRECATED = [sdk_core_1.ChainId.MAINNET, sdk_core_1.ChainId.GOERLI];
|
|
64
|
-
exports.SUPPORTED_V2POOL_CHAIN_IDS = Object.keys(sdk_core_1.V2_ROUTER_ADDRESSES).map((chainId) => parseInt(chainId));
|
|
65
|
-
exports.TESTNET_CHAIN_IDS = [
|
|
66
|
-
sdk_core_1.ChainId.GOERLI,
|
|
67
|
-
sdk_core_1.ChainId.SEPOLIA,
|
|
68
|
-
sdk_core_1.ChainId.POLYGON_MUMBAI,
|
|
69
|
-
sdk_core_1.ChainId.ARBITRUM_GOERLI,
|
|
70
|
-
sdk_core_1.ChainId.OPTIMISM_GOERLI,
|
|
71
|
-
sdk_core_1.ChainId.CELO_ALFAJORES,
|
|
72
|
-
];
|
|
73
|
-
/**
|
|
74
|
-
* All the chain IDs that are running the Ethereum protocol.
|
|
75
|
-
*/
|
|
76
|
-
exports.L1_CHAIN_IDS = [
|
|
77
|
-
sdk_core_1.ChainId.MAINNET,
|
|
78
|
-
sdk_core_1.ChainId.GOERLI,
|
|
79
|
-
sdk_core_1.ChainId.SEPOLIA,
|
|
80
|
-
sdk_core_1.ChainId.POLYGON,
|
|
81
|
-
sdk_core_1.ChainId.POLYGON_MUMBAI,
|
|
82
|
-
sdk_core_1.ChainId.CELO,
|
|
83
|
-
sdk_core_1.ChainId.CELO_ALFAJORES,
|
|
84
|
-
sdk_core_1.ChainId.BNB,
|
|
85
|
-
sdk_core_1.ChainId.AVALANCHE,
|
|
86
|
-
];
|
|
87
|
-
/**
|
|
88
|
-
* Controls some L2 specific behavior, e.g. slippage tolerance, special UI behavior.
|
|
89
|
-
* The expectation is that all of these networks have immediate transaction confirmation.
|
|
90
|
-
*/
|
|
91
|
-
exports.L2_CHAIN_IDS = [
|
|
92
|
-
sdk_core_1.ChainId.ARBITRUM_ONE,
|
|
93
|
-
sdk_core_1.ChainId.ARBITRUM_GOERLI,
|
|
94
|
-
sdk_core_1.ChainId.OPTIMISM,
|
|
95
|
-
sdk_core_1.ChainId.OPTIMISM_GOERLI,
|
|
96
|
-
sdk_core_1.ChainId.BASE,
|
|
97
|
-
sdk_core_1.ChainId.BLAST,
|
|
98
|
-
];
|
|
99
|
-
/**
|
|
100
|
-
* Get the priority of a chainId based on its relevance to the user.
|
|
101
|
-
* @param {ChainId} chainId - The chainId to determine the priority for.
|
|
102
|
-
* @returns {number} The priority of the chainId, the lower the priority, the earlier it should be displayed, with base of MAINNET=0.
|
|
103
|
-
*/
|
|
104
|
-
function getChainPriority(chainId) {
|
|
105
|
-
switch (chainId) {
|
|
106
|
-
case sdk_core_1.ChainId.MAINNET:
|
|
107
|
-
case sdk_core_1.ChainId.GOERLI:
|
|
108
|
-
case sdk_core_1.ChainId.SEPOLIA:
|
|
109
|
-
return 0;
|
|
110
|
-
case sdk_core_1.ChainId.ARBITRUM_ONE:
|
|
111
|
-
case sdk_core_1.ChainId.ARBITRUM_GOERLI:
|
|
112
|
-
return 1;
|
|
113
|
-
case sdk_core_1.ChainId.OPTIMISM:
|
|
114
|
-
case sdk_core_1.ChainId.OPTIMISM_GOERLI:
|
|
115
|
-
return 2;
|
|
116
|
-
case sdk_core_1.ChainId.POLYGON:
|
|
117
|
-
case sdk_core_1.ChainId.POLYGON_MUMBAI:
|
|
118
|
-
return 3;
|
|
119
|
-
case sdk_core_1.ChainId.BASE:
|
|
120
|
-
return 4;
|
|
121
|
-
case sdk_core_1.ChainId.BNB:
|
|
122
|
-
return 5;
|
|
123
|
-
case sdk_core_1.ChainId.AVALANCHE:
|
|
124
|
-
return 6;
|
|
125
|
-
case sdk_core_1.ChainId.CELO:
|
|
126
|
-
case sdk_core_1.ChainId.CELO_ALFAJORES:
|
|
127
|
-
return 7;
|
|
128
|
-
case sdk_core_1.ChainId.BLAST:
|
|
129
|
-
return 8;
|
|
130
|
-
default:
|
|
131
|
-
return Infinity;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
function isUniswapXSupportedChain(chainId) {
|
|
135
|
-
return chainId === sdk_core_1.ChainId.MAINNET;
|
|
136
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const COMMON_CONTRACT_NAMES: Record<number, {
|
|
2
|
-
[address: string]: string;
|
|
3
|
-
}>;
|
|
4
|
-
export declare const DEFAULT_AVERAGE_BLOCK_TIME_IN_SECS = 12;
|
|
5
|
-
export declare const AVERAGE_BLOCK_TIME_IN_SECS: {
|
|
6
|
-
[chainId: number]: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const LATEST_GOVERNOR_INDEX = 2;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LATEST_GOVERNOR_INDEX = exports.AVERAGE_BLOCK_TIME_IN_SECS = exports.DEFAULT_AVERAGE_BLOCK_TIME_IN_SECS = exports.COMMON_CONTRACT_NAMES = void 0;
|
|
4
|
-
const sdk_core_1 = require("@uniswap/sdk-core");
|
|
5
|
-
exports.COMMON_CONTRACT_NAMES = {
|
|
6
|
-
[sdk_core_1.ChainId.MAINNET]: {
|
|
7
|
-
[sdk_core_1.UNI_ADDRESSES[sdk_core_1.ChainId.MAINNET]]: 'UNI',
|
|
8
|
-
[sdk_core_1.TIMELOCK_ADDRESSES[sdk_core_1.ChainId.MAINNET]]: 'Timelock',
|
|
9
|
-
[sdk_core_1.GOVERNANCE_ALPHA_V0_ADDRESSES[sdk_core_1.ChainId.MAINNET]]: 'Governance (V0)',
|
|
10
|
-
[sdk_core_1.GOVERNANCE_ALPHA_V1_ADDRESSES[sdk_core_1.ChainId.MAINNET]]: 'Governance (V1)',
|
|
11
|
-
[sdk_core_1.GOVERNANCE_BRAVO_ADDRESSES[sdk_core_1.ChainId.MAINNET]]: 'Governance',
|
|
12
|
-
'0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e': 'ENS Registry',
|
|
13
|
-
'0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41': 'ENS Public Resolver',
|
|
14
|
-
'0xf754A7E347F81cFdc70AF9FbCCe9Df3D826360FA': 'Franchiser Factory',
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
// in PoS, ethereum block time is 12s, see https://ethereum.org/en/developers/docs/blocks/#block-time
|
|
18
|
-
exports.DEFAULT_AVERAGE_BLOCK_TIME_IN_SECS = 12;
|
|
19
|
-
// Block time here is slightly higher (~1s) than average in order to avoid ongoing proposals past the displayed time
|
|
20
|
-
exports.AVERAGE_BLOCK_TIME_IN_SECS = {
|
|
21
|
-
1: exports.DEFAULT_AVERAGE_BLOCK_TIME_IN_SECS,
|
|
22
|
-
};
|
|
23
|
-
exports.LATEST_GOVERNOR_INDEX = 2;
|
package/lib/constants/lists.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const UNI_LIST = "https://cloudflare-ipfs.com/ipns/tokens.uniswap.org";
|
|
2
|
-
export declare const UNI_EXTENDED_LIST = "https://cloudflare-ipfs.com/ipns/extendedtokens.uniswap.org";
|
|
3
|
-
export declare const OPTIMISM_LIST = "https://static.optimism.io/optimism.tokenlist.json";
|
|
4
|
-
export declare const ARBITRUM_LIST = "https://bridge.arbitrum.io/token-list-42161.json";
|
|
5
|
-
export declare const CELO_LIST = "https://celo-org.github.io/celo-token-list/celo.tokenlist.json";
|
|
6
|
-
export declare const PLASMA_BNB_LIST = "https://raw.githubusercontent.com/plasmadlt/plasma-finance-token-list/master/bnb.json";
|
|
7
|
-
export declare const AVALANCHE_LIST = "https://raw.githubusercontent.com/ava-labs/avalanche-bridge-resources/main/token_list.json";
|
|
8
|
-
export declare const BASE_LIST = "https://raw.githubusercontent.com/ethereum-optimism/ethereum-optimism.github.io/master/optimism.tokenlist.json";
|
|
9
|
-
export declare const UNSUPPORTED_LIST_URLS: string[];
|
|
10
|
-
export declare const DEFAULT_ACTIVE_LIST_URLS: string[];
|
|
11
|
-
export declare const DEFAULT_INACTIVE_LIST_URLS: string[];
|
|
12
|
-
export declare const DEFAULT_LIST_OF_LISTS: string[];
|