@tria-sdk/constants 1.0.14 → 1.0.15
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/index.js +20 -4
- package/dist/src/chains.js +37 -34
- package/dist/src/config.js +17 -10
- package/dist/src/connect.js +8 -5
- package/dist/src/txn.js +50 -47
- package/package.json +1 -1
- package/src/chains.ts +2 -2
- package/tsconfig.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/config"), exports);
|
|
18
|
+
__exportStar(require("./src/chains"), exports);
|
|
19
|
+
__exportStar(require("./src/txn"), exports);
|
|
20
|
+
__exportStar(require("./src/connect"), exports);
|
package/dist/src/chains.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chainNameToLogoBlack = exports.chainNameToLogo = exports.networks = exports.ALLCHAINS = exports.AA_SUPPORTED_EVM_CHAINS = exports.SUPPORTED_EVM_CHAINS = exports.TESTNET_CHAINS = exports.neoxTestnet = exports.bitlayerTestnet = exports.zkLinkTestnet = exports.zkLink = void 0;
|
|
4
|
+
exports.zkLink = "ZKLINK-NOVA";
|
|
5
|
+
exports.zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
|
|
6
|
+
exports.bitlayerTestnet = "BITLAYER-TESTNET";
|
|
7
|
+
exports.neoxTestnet = "NEOX-TESTNET";
|
|
8
|
+
exports.TESTNET_CHAINS = [
|
|
6
9
|
"MUMBAI",
|
|
7
10
|
"FUSESPARK",
|
|
8
11
|
"MANTA-TESTNET",
|
|
9
12
|
"METIS-TESTNET",
|
|
10
13
|
"MANTLE-TESTNET",
|
|
11
|
-
zkLinkTestnet,
|
|
12
|
-
bitlayerTestnet,
|
|
13
|
-
neoxTestnet,
|
|
14
|
+
exports.zkLinkTestnet,
|
|
15
|
+
exports.bitlayerTestnet,
|
|
16
|
+
exports.neoxTestnet,
|
|
14
17
|
];
|
|
15
|
-
|
|
18
|
+
exports.SUPPORTED_EVM_CHAINS = [
|
|
16
19
|
"ETH",
|
|
17
20
|
"POLYGON",
|
|
18
21
|
"AVALANCHE",
|
|
@@ -29,12 +32,12 @@ export const SUPPORTED_EVM_CHAINS = [
|
|
|
29
32
|
"METIS-TESTNET",
|
|
30
33
|
"MANTLE",
|
|
31
34
|
"MANTLE-TESTNET",
|
|
32
|
-
zkLink,
|
|
33
|
-
zkLinkTestnet,
|
|
34
|
-
bitlayerTestnet,
|
|
35
|
-
neoxTestnet,
|
|
35
|
+
exports.zkLink,
|
|
36
|
+
exports.zkLinkTestnet,
|
|
37
|
+
exports.bitlayerTestnet,
|
|
38
|
+
exports.neoxTestnet,
|
|
36
39
|
];
|
|
37
|
-
|
|
40
|
+
exports.AA_SUPPORTED_EVM_CHAINS = [
|
|
38
41
|
"ETH",
|
|
39
42
|
"POLYGON",
|
|
40
43
|
"AVALANCHE",
|
|
@@ -45,7 +48,7 @@ export const AA_SUPPORTED_EVM_CHAINS = [
|
|
|
45
48
|
"FUSE",
|
|
46
49
|
"MUMBAI",
|
|
47
50
|
];
|
|
48
|
-
|
|
51
|
+
exports.ALLCHAINS = [
|
|
49
52
|
"ETH",
|
|
50
53
|
"POLYGON",
|
|
51
54
|
"AVALANCHE",
|
|
@@ -63,14 +66,14 @@ export const ALLCHAINS = [
|
|
|
63
66
|
"MANTLE",
|
|
64
67
|
"MANTLE-TESTNET",
|
|
65
68
|
"SOLANA",
|
|
66
|
-
zkLink,
|
|
67
|
-
zkLinkTestnet,
|
|
68
|
-
bitlayerTestnet,
|
|
69
|
-
neoxTestnet,
|
|
69
|
+
exports.zkLink,
|
|
70
|
+
exports.zkLinkTestnet,
|
|
71
|
+
exports.bitlayerTestnet,
|
|
72
|
+
exports.neoxTestnet,
|
|
70
73
|
];
|
|
71
74
|
const baseLogoUrl = "https://static.tria.so/chain-logo-w";
|
|
72
75
|
const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
|
|
73
|
-
|
|
76
|
+
exports.networks = [
|
|
74
77
|
{
|
|
75
78
|
chainName: "ETH",
|
|
76
79
|
logo: `${baseLogoUrl}/Ethereum.webp`,
|
|
@@ -144,23 +147,23 @@ export const networks = [
|
|
|
144
147
|
logo: `${baseLogoUrl}/Solana.webp`,
|
|
145
148
|
},
|
|
146
149
|
{
|
|
147
|
-
chainName: zkLink,
|
|
150
|
+
chainName: exports.zkLink,
|
|
148
151
|
logo: `${baseLogoUrl}/zklink.webp`,
|
|
149
152
|
},
|
|
150
153
|
{
|
|
151
|
-
chainName: zkLinkTestnet,
|
|
154
|
+
chainName: exports.zkLinkTestnet,
|
|
152
155
|
logo: `${baseLogoUrl}/zklink.webp`,
|
|
153
156
|
},
|
|
154
157
|
{
|
|
155
|
-
chainName: bitlayerTestnet,
|
|
158
|
+
chainName: exports.bitlayerTestnet,
|
|
156
159
|
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
157
160
|
},
|
|
158
161
|
{
|
|
159
|
-
chainName: neoxTestnet,
|
|
162
|
+
chainName: exports.neoxTestnet,
|
|
160
163
|
logo: `${baseLogoUrl}/neox.webp`,
|
|
161
164
|
},
|
|
162
165
|
];
|
|
163
|
-
|
|
166
|
+
exports.chainNameToLogo = {
|
|
164
167
|
ETH: `${baseLogoUrl}/Ethereum.webp`,
|
|
165
168
|
FANTOM: `${baseLogoUrl}/Fantom.webp`,
|
|
166
169
|
POLYGON: `${baseLogoUrl}/Polygon.webp`,
|
|
@@ -179,12 +182,12 @@ export const chainNameToLogo = {
|
|
|
179
182
|
MANTLE: `${baseLogoUrl}/Mantle.webp`,
|
|
180
183
|
"MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
|
|
181
184
|
SOLANA: `${baseLogoUrl}/Solana.webp`,
|
|
182
|
-
[zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
183
|
-
[zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
184
|
-
[bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
185
|
-
[neoxTestnet]: `${baseLogoUrl}/
|
|
185
|
+
[exports.zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
186
|
+
[exports.zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
187
|
+
[exports.bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
188
|
+
[exports.neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
186
189
|
};
|
|
187
|
-
|
|
190
|
+
exports.chainNameToLogoBlack = {
|
|
188
191
|
ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
189
192
|
BINANCE: `${baseLogoUrlBlack}/binance.webp`,
|
|
190
193
|
FANTOM: `${baseLogoUrlBlack}/Fantom.webp`,
|
|
@@ -203,8 +206,8 @@ export const chainNameToLogoBlack = {
|
|
|
203
206
|
MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
|
|
204
207
|
"MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
|
|
205
208
|
SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
|
|
206
|
-
[zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
207
|
-
[zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
208
|
-
[bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
209
|
-
[neoxTestnet]: `${baseLogoUrlBlack}/
|
|
209
|
+
[exports.zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
210
|
+
[exports.zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
211
|
+
[exports.bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
212
|
+
[exports.neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
210
213
|
};
|
package/dist/src/config.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isTestnetChain = exports.isChainSupported = exports.isAaSupportedChain = exports.isEvmChain = exports.prodApiUrl = void 0;
|
|
4
|
+
const chains_1 = require("./chains");
|
|
5
|
+
exports.prodApiUrl = "https://prod.tria.so";
|
|
6
|
+
const isEvmChain = (chainName) => {
|
|
7
|
+
return chains_1.SUPPORTED_EVM_CHAINS.includes(chainName);
|
|
5
8
|
};
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
exports.isEvmChain = isEvmChain;
|
|
10
|
+
const isAaSupportedChain = (chainName) => {
|
|
11
|
+
return chains_1.AA_SUPPORTED_EVM_CHAINS.includes(chainName);
|
|
8
12
|
};
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
exports.isAaSupportedChain = isAaSupportedChain;
|
|
14
|
+
const isChainSupported = (chainName) => {
|
|
15
|
+
return chains_1.ALLCHAINS.includes(chainName);
|
|
11
16
|
};
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
exports.isChainSupported = isChainSupported;
|
|
18
|
+
const isTestnetChain = (chainName) => {
|
|
19
|
+
return chains_1.TESTNET_CHAINS.includes(chainName);
|
|
14
20
|
};
|
|
21
|
+
exports.isTestnetChain = isTestnetChain;
|
package/dist/src/connect.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.triaAuthUrl = exports.storageKeys = exports.TRIA_WALLET_SELECTED_CHAIN = exports.TRIA_WALLET_STORE = exports.eventTypes = void 0;
|
|
4
|
+
exports.eventTypes = {
|
|
2
5
|
logIn: "Log in",
|
|
3
6
|
triaSignUp: "Tria Sign up",
|
|
4
7
|
emailPwSignUp: "Email Pwd Sign up",
|
|
@@ -15,12 +18,12 @@ export const eventTypes = {
|
|
|
15
18
|
saveToAuth: "Save to Auth Iframe",
|
|
16
19
|
triaStoreSet: "triaStoreSet",
|
|
17
20
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
exports.TRIA_WALLET_STORE = "tria.wallet.store";
|
|
22
|
+
exports.TRIA_WALLET_SELECTED_CHAIN = "tria.wallet.selectedChain";
|
|
23
|
+
exports.storageKeys = {
|
|
21
24
|
TRIA_WALLET_STORE: "tria.wallet.store",
|
|
22
25
|
TRIA_WALLET_SELECTED_CHAIN: "tria.wallet.selectedChain",
|
|
23
26
|
PERSIST_ROOT: "persist:root",
|
|
24
27
|
};
|
|
25
|
-
|
|
28
|
+
exports.triaAuthUrl = "https://auth.tria.so";
|
|
26
29
|
// export const PARENT_URL = document?.referrer || window?.parent?.[0]?.location?.ancestorOrigins?.[0];
|
package/dist/src/txn.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chainIdToChainName = exports.chainNameToChainId = exports.rpcUrls = exports.nativeTokenDetails = exports.txnBaseUrl = exports.explorerBaseUrls = void 0;
|
|
4
|
+
const chains_1 = require("./chains");
|
|
5
|
+
exports.explorerBaseUrls = {
|
|
3
6
|
ETH: "https://etherscan.io",
|
|
4
7
|
POLYGON: "https://polygonscan.com",
|
|
5
8
|
AVALANCHE: "https://snowtrace.io",
|
|
@@ -20,34 +23,34 @@ export const explorerBaseUrls = {
|
|
|
20
23
|
"MANTLE-TESTNET": "https://explorer.testnet.mantle.xyz",
|
|
21
24
|
MANTA: "https://pacific-explorer.manta.network",
|
|
22
25
|
"MANTA-TESTNET": "https://manta-testnet.calderaexplorer.xyz",
|
|
23
|
-
[zkLink]: "https://explorer.zklink.io",
|
|
24
|
-
[zkLinkTestnet]: "https://goerli.explorer.zklink.io",
|
|
25
|
-
[bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
|
|
26
|
-
[neoxTestnet]: "https://xt2scan.ngd.network",
|
|
26
|
+
[chains_1.zkLink]: "https://explorer.zklink.io",
|
|
27
|
+
[chains_1.zkLinkTestnet]: "https://goerli.explorer.zklink.io",
|
|
28
|
+
[chains_1.bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
|
|
29
|
+
[chains_1.neoxTestnet]: "https://xt2scan.ngd.network",
|
|
27
30
|
};
|
|
28
|
-
|
|
29
|
-
ETH: `${explorerBaseUrls.ETH}/tx`, // /txHash
|
|
30
|
-
POLYGON: `${explorerBaseUrls.POLYGON}/tx`,
|
|
31
|
-
AVALANCHE: `${explorerBaseUrls.AVALANCHE}/tx`,
|
|
32
|
-
ARBITRUM: `${explorerBaseUrls.ARBITRUM}/tx`,
|
|
33
|
-
BINANCE: `${explorerBaseUrls.BINANCE}/tx`,
|
|
34
|
-
OPTIMISM: `${explorerBaseUrls.OPTIMISM}/tx`,
|
|
35
|
-
FANTOM: `${explorerBaseUrls.FANTOM}/tx`,
|
|
36
|
-
FUSE: `${explorerBaseUrls.FUSE}/tx`,
|
|
37
|
-
FUSESPARK: `${explorerBaseUrls.FUSESPARK}/tx`,
|
|
38
|
-
MUMBAI: `${explorerBaseUrls.MUMBAI}/tx`,
|
|
39
|
-
METIS: `${explorerBaseUrls.METIS}/tx`,
|
|
40
|
-
"METIS-TESTNET": `${explorerBaseUrls["METIS-TESTNET"]}/tx`,
|
|
41
|
-
MANTLE: `${explorerBaseUrls.MANTLE}/tx`,
|
|
42
|
-
"MANTLE-TESTNET": `${explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
|
|
43
|
-
MANTA: `${explorerBaseUrls.MANTA}/tx`,
|
|
44
|
-
"MANTA-TESTNET": `${explorerBaseUrls["MANTA-TESTNET"]}/tx`,
|
|
45
|
-
[zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
|
|
46
|
-
[zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
|
|
47
|
-
[bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
|
|
48
|
-
[neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
|
|
31
|
+
exports.txnBaseUrl = {
|
|
32
|
+
ETH: `${exports.explorerBaseUrls.ETH}/tx`, // /txHash
|
|
33
|
+
POLYGON: `${exports.explorerBaseUrls.POLYGON}/tx`,
|
|
34
|
+
AVALANCHE: `${exports.explorerBaseUrls.AVALANCHE}/tx`,
|
|
35
|
+
ARBITRUM: `${exports.explorerBaseUrls.ARBITRUM}/tx`,
|
|
36
|
+
BINANCE: `${exports.explorerBaseUrls.BINANCE}/tx`,
|
|
37
|
+
OPTIMISM: `${exports.explorerBaseUrls.OPTIMISM}/tx`,
|
|
38
|
+
FANTOM: `${exports.explorerBaseUrls.FANTOM}/tx`,
|
|
39
|
+
FUSE: `${exports.explorerBaseUrls.FUSE}/tx`,
|
|
40
|
+
FUSESPARK: `${exports.explorerBaseUrls.FUSESPARK}/tx`,
|
|
41
|
+
MUMBAI: `${exports.explorerBaseUrls.MUMBAI}/tx`,
|
|
42
|
+
METIS: `${exports.explorerBaseUrls.METIS}/tx`,
|
|
43
|
+
"METIS-TESTNET": `${exports.explorerBaseUrls["METIS-TESTNET"]}/tx`,
|
|
44
|
+
MANTLE: `${exports.explorerBaseUrls.MANTLE}/tx`,
|
|
45
|
+
"MANTLE-TESTNET": `${exports.explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
|
|
46
|
+
MANTA: `${exports.explorerBaseUrls.MANTA}/tx`,
|
|
47
|
+
"MANTA-TESTNET": `${exports.explorerBaseUrls["MANTA-TESTNET"]}/tx`,
|
|
48
|
+
[chains_1.zkLink]: `${exports.explorerBaseUrls[chains_1.zkLink]}/tx`,
|
|
49
|
+
[chains_1.zkLinkTestnet]: `${exports.explorerBaseUrls[chains_1.zkLinkTestnet]}/tx`,
|
|
50
|
+
[chains_1.bitlayerTestnet]: `${exports.explorerBaseUrls[chains_1.bitlayerTestnet]}/tx`,
|
|
51
|
+
[chains_1.neoxTestnet]: `${exports.explorerBaseUrls[chains_1.neoxTestnet]}/tx`,
|
|
49
52
|
};
|
|
50
|
-
|
|
53
|
+
exports.nativeTokenDetails = {
|
|
51
54
|
ETH: {
|
|
52
55
|
name: "Ether",
|
|
53
56
|
symbol: "ETH",
|
|
@@ -133,29 +136,29 @@ export const nativeTokenDetails = {
|
|
|
133
136
|
symbol: "SOL",
|
|
134
137
|
logoUrl: "https://static.tria.so/chain-logo-w/Solana.webp",
|
|
135
138
|
},
|
|
136
|
-
[zkLink]: {
|
|
139
|
+
[chains_1.zkLink]: {
|
|
137
140
|
name: "Ether",
|
|
138
141
|
symbol: "ETH",
|
|
139
142
|
logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
|
|
140
143
|
},
|
|
141
|
-
[zkLinkTestnet]: {
|
|
144
|
+
[chains_1.zkLinkTestnet]: {
|
|
142
145
|
name: "Ether",
|
|
143
146
|
symbol: "ETH",
|
|
144
147
|
logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
|
|
145
148
|
},
|
|
146
|
-
[bitlayerTestnet]: {
|
|
149
|
+
[chains_1.bitlayerTestnet]: {
|
|
147
150
|
name: "Bitcoin",
|
|
148
151
|
symbol: "BTC",
|
|
149
152
|
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
150
153
|
},
|
|
151
|
-
[neoxTestnet]: {
|
|
154
|
+
[chains_1.neoxTestnet]: {
|
|
152
155
|
name: "Gas",
|
|
153
156
|
symbol: "GAS",
|
|
154
157
|
logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
|
|
155
158
|
},
|
|
156
159
|
};
|
|
157
160
|
const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
|
|
158
|
-
|
|
161
|
+
exports.rpcUrls = {
|
|
159
162
|
MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${alchemyKey}`, //'https://polygon-mumbai.blockpi.network/v1/rpc/public',
|
|
160
163
|
ETH: "https://eth.llamarpc.com",
|
|
161
164
|
POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
|
|
@@ -172,12 +175,12 @@ export const rpcUrls = {
|
|
|
172
175
|
"METIS-TESTNET": "https://goerli.gateway.metisdevops.link",
|
|
173
176
|
MANTLE: "https://rpc.mantle.xyz",
|
|
174
177
|
"MANTLE-TESTNET": "https://rpc.testnet.mantle.xyz",
|
|
175
|
-
[zkLink]: "https://rpc.zklink.io",
|
|
176
|
-
[zkLinkTestnet]: "https://goerli.rpc.zklink.io",
|
|
177
|
-
[bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
|
|
178
|
-
[neoxTestnet]: "https://neoxseed1.ngd.network",
|
|
178
|
+
[chains_1.zkLink]: "https://rpc.zklink.io",
|
|
179
|
+
[chains_1.zkLinkTestnet]: "https://goerli.rpc.zklink.io",
|
|
180
|
+
[chains_1.bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
|
|
181
|
+
[chains_1.neoxTestnet]: "https://neoxseed1.ngd.network",
|
|
179
182
|
};
|
|
180
|
-
|
|
183
|
+
exports.chainNameToChainId = {
|
|
181
184
|
MUMBAI: 80001,
|
|
182
185
|
POLYGON: 137,
|
|
183
186
|
ETH: 1,
|
|
@@ -194,12 +197,12 @@ export const chainNameToChainId = {
|
|
|
194
197
|
"METIS-TESTNET": 599,
|
|
195
198
|
MANTLE: 5000,
|
|
196
199
|
"MANTLE-TESTNET": 5001,
|
|
197
|
-
[zkLink]: 810180,
|
|
198
|
-
[zkLinkTestnet]: 810182,
|
|
199
|
-
[bitlayerTestnet]: 200810,
|
|
200
|
-
[neoxTestnet]: 12227330,
|
|
200
|
+
[chains_1.zkLink]: 810180,
|
|
201
|
+
[chains_1.zkLinkTestnet]: 810182,
|
|
202
|
+
[chains_1.bitlayerTestnet]: 200810,
|
|
203
|
+
[chains_1.neoxTestnet]: 12227330,
|
|
201
204
|
};
|
|
202
|
-
|
|
205
|
+
exports.chainIdToChainName = {
|
|
203
206
|
80001: "MUMBAI",
|
|
204
207
|
137: "POLYGON",
|
|
205
208
|
1: "ETH",
|
|
@@ -216,8 +219,8 @@ export const chainIdToChainName = {
|
|
|
216
219
|
599: "METIS-TESTNET",
|
|
217
220
|
169: "MANTA",
|
|
218
221
|
3441005: "MANTA-TESTNET",
|
|
219
|
-
810180: zkLink,
|
|
220
|
-
810182: zkLinkTestnet,
|
|
221
|
-
200810: bitlayerTestnet,
|
|
222
|
-
12227330: neoxTestnet,
|
|
222
|
+
810180: chains_1.zkLink,
|
|
223
|
+
810182: chains_1.zkLinkTestnet,
|
|
224
|
+
200810: chains_1.bitlayerTestnet,
|
|
225
|
+
12227330: chains_1.neoxTestnet,
|
|
223
226
|
};
|
package/package.json
CHANGED
package/src/chains.ts
CHANGED
|
@@ -194,7 +194,7 @@ export const chainNameToLogo = {
|
|
|
194
194
|
[zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
195
195
|
[zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
196
196
|
[bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
197
|
-
[neoxTestnet]: `${baseLogoUrl}/
|
|
197
|
+
[neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
198
198
|
};
|
|
199
199
|
|
|
200
200
|
export const chainNameToLogoBlack = {
|
|
@@ -219,5 +219,5 @@ export const chainNameToLogoBlack = {
|
|
|
219
219
|
[zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
220
220
|
[zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
221
221
|
[bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
222
|
-
[neoxTestnet]: `${baseLogoUrlBlack}/
|
|
222
|
+
[neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
223
223
|
};
|