@tria-sdk/constants 1.0.43 → 1.0.44
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 +70 -67
- package/dist/src/config.js +17 -10
- package/dist/src/connect.js +8 -5
- package/dist/src/txn.js +74 -71
- package/package.json +1 -1
- 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,30 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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.vanarTestnet = exports.polygonAmoy = exports.sepolia = exports.neoxTestnet = exports.bitlayerMainnet = exports.bitlayerTestnet = exports.zkLinkTestnet = exports.zkLink = exports.fuseSpark = exports.fuse = exports.ethereum = exports.polygon = exports.mumbai = void 0;
|
|
4
|
+
exports.mumbai = "MUMBAI";
|
|
5
|
+
exports.polygon = "POLYGON";
|
|
6
|
+
exports.ethereum = "ETH";
|
|
7
|
+
exports.fuse = "FUSE";
|
|
8
|
+
exports.fuseSpark = "FUSESPARK";
|
|
9
|
+
exports.zkLink = "ZKLINK-NOVA";
|
|
10
|
+
exports.zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
|
|
11
|
+
exports.bitlayerTestnet = "BITLAYER-TESTNET";
|
|
12
|
+
exports.bitlayerMainnet = "BITLAYER-MAINNET";
|
|
13
|
+
exports.neoxTestnet = "NEOX-TESTNET";
|
|
14
|
+
exports.sepolia = "SEPOLIA";
|
|
15
|
+
exports.polygonAmoy = "AMOY";
|
|
16
|
+
exports.vanarTestnet = "VANGUARD-VANAR-TESTNET";
|
|
17
|
+
exports.TESTNET_CHAINS = [
|
|
15
18
|
"MUMBAI",
|
|
16
19
|
"FUSESPARK",
|
|
17
20
|
"MANTA-TESTNET",
|
|
18
21
|
"METIS-TESTNET",
|
|
19
22
|
"MANTLE-TESTNET",
|
|
20
|
-
zkLinkTestnet,
|
|
21
|
-
bitlayerTestnet,
|
|
22
|
-
neoxTestnet,
|
|
23
|
-
sepolia,
|
|
24
|
-
polygonAmoy,
|
|
25
|
-
vanarTestnet,
|
|
23
|
+
exports.zkLinkTestnet,
|
|
24
|
+
exports.bitlayerTestnet,
|
|
25
|
+
exports.neoxTestnet,
|
|
26
|
+
exports.sepolia,
|
|
27
|
+
exports.polygonAmoy,
|
|
28
|
+
exports.vanarTestnet,
|
|
26
29
|
];
|
|
27
|
-
|
|
30
|
+
exports.SUPPORTED_EVM_CHAINS = [
|
|
28
31
|
"ETH",
|
|
29
32
|
"POLYGON",
|
|
30
33
|
"AVALANCHE",
|
|
@@ -41,16 +44,16 @@ export const SUPPORTED_EVM_CHAINS = [
|
|
|
41
44
|
"METIS-TESTNET",
|
|
42
45
|
"MANTLE",
|
|
43
46
|
"MANTLE-TESTNET",
|
|
44
|
-
zkLink,
|
|
45
|
-
zkLinkTestnet,
|
|
46
|
-
bitlayerTestnet,
|
|
47
|
-
bitlayerMainnet,
|
|
48
|
-
neoxTestnet,
|
|
49
|
-
sepolia,
|
|
50
|
-
polygonAmoy,
|
|
51
|
-
vanarTestnet,
|
|
47
|
+
exports.zkLink,
|
|
48
|
+
exports.zkLinkTestnet,
|
|
49
|
+
exports.bitlayerTestnet,
|
|
50
|
+
exports.bitlayerMainnet,
|
|
51
|
+
exports.neoxTestnet,
|
|
52
|
+
exports.sepolia,
|
|
53
|
+
exports.polygonAmoy,
|
|
54
|
+
exports.vanarTestnet,
|
|
52
55
|
];
|
|
53
|
-
|
|
56
|
+
exports.AA_SUPPORTED_EVM_CHAINS = [
|
|
54
57
|
// "ETH",
|
|
55
58
|
"POLYGON",
|
|
56
59
|
// "AVALANCHE",
|
|
@@ -60,13 +63,13 @@ export const AA_SUPPORTED_EVM_CHAINS = [
|
|
|
60
63
|
"FUSE",
|
|
61
64
|
"MUMBAI",
|
|
62
65
|
// "MANTLE",
|
|
63
|
-
sepolia,
|
|
66
|
+
exports.sepolia,
|
|
64
67
|
"OPTIMISM",
|
|
65
68
|
"ARBITRUM",
|
|
66
69
|
"AVALANCHE",
|
|
67
70
|
"MANTLE",
|
|
68
71
|
];
|
|
69
|
-
|
|
72
|
+
exports.ALLCHAINS = [
|
|
70
73
|
"ETH",
|
|
71
74
|
"POLYGON",
|
|
72
75
|
"AVALANCHE",
|
|
@@ -84,25 +87,25 @@ export const ALLCHAINS = [
|
|
|
84
87
|
"MANTLE",
|
|
85
88
|
"MANTLE-TESTNET",
|
|
86
89
|
"SOLANA",
|
|
87
|
-
zkLink,
|
|
88
|
-
zkLinkTestnet,
|
|
89
|
-
bitlayerTestnet,
|
|
90
|
-
bitlayerMainnet,
|
|
91
|
-
neoxTestnet,
|
|
92
|
-
sepolia,
|
|
93
|
-
polygonAmoy,
|
|
94
|
-
vanarTestnet,
|
|
90
|
+
exports.zkLink,
|
|
91
|
+
exports.zkLinkTestnet,
|
|
92
|
+
exports.bitlayerTestnet,
|
|
93
|
+
exports.bitlayerMainnet,
|
|
94
|
+
exports.neoxTestnet,
|
|
95
|
+
exports.sepolia,
|
|
96
|
+
exports.polygonAmoy,
|
|
97
|
+
exports.vanarTestnet,
|
|
95
98
|
];
|
|
96
99
|
const baseLogoUrl = "https://static.tria.so/chain-logo-w";
|
|
97
100
|
const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
|
|
98
|
-
|
|
101
|
+
exports.networks = [
|
|
99
102
|
{
|
|
100
103
|
chainName: "ETH",
|
|
101
104
|
logo: `${baseLogoUrl}/Ethereum.webp`,
|
|
102
105
|
type: "mainnet",
|
|
103
106
|
},
|
|
104
107
|
{
|
|
105
|
-
chainName: sepolia,
|
|
108
|
+
chainName: exports.sepolia,
|
|
106
109
|
logo: `${baseLogoUrl}/Ethereum.webp`,
|
|
107
110
|
type: "testnet",
|
|
108
111
|
},
|
|
@@ -117,7 +120,7 @@ export const networks = [
|
|
|
117
120
|
type: "mainnet",
|
|
118
121
|
},
|
|
119
122
|
{
|
|
120
|
-
chainName: polygonAmoy,
|
|
123
|
+
chainName: exports.polygonAmoy,
|
|
121
124
|
logo: `${baseLogoUrl}/Polygon.svg`,
|
|
122
125
|
type: "testnet",
|
|
123
126
|
},
|
|
@@ -196,42 +199,42 @@ export const networks = [
|
|
|
196
199
|
type: "mainnet",
|
|
197
200
|
},
|
|
198
201
|
{
|
|
199
|
-
chainName: zkLink,
|
|
202
|
+
chainName: exports.zkLink,
|
|
200
203
|
logo: `${baseLogoUrl}/zklink.webp`,
|
|
201
204
|
type: "mainnet",
|
|
202
205
|
},
|
|
203
206
|
{
|
|
204
|
-
chainName: zkLinkTestnet,
|
|
207
|
+
chainName: exports.zkLinkTestnet,
|
|
205
208
|
logo: `${baseLogoUrl}/zklink.webp`,
|
|
206
209
|
type: "testnet",
|
|
207
210
|
},
|
|
208
211
|
{
|
|
209
|
-
chainName: bitlayerTestnet,
|
|
212
|
+
chainName: exports.bitlayerTestnet,
|
|
210
213
|
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
211
214
|
type: "testnet",
|
|
212
215
|
},
|
|
213
216
|
{
|
|
214
|
-
chainName: bitlayerMainnet,
|
|
217
|
+
chainName: exports.bitlayerMainnet,
|
|
215
218
|
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
216
219
|
type: "mainnet",
|
|
217
220
|
},
|
|
218
221
|
{
|
|
219
|
-
chainName: neoxTestnet,
|
|
222
|
+
chainName: exports.neoxTestnet,
|
|
220
223
|
logo: `${baseLogoUrl}/Neo.webp`,
|
|
221
224
|
type: "testnet",
|
|
222
225
|
},
|
|
223
226
|
{
|
|
224
|
-
chainName: vanarTestnet,
|
|
227
|
+
chainName: exports.vanarTestnet,
|
|
225
228
|
logo: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
226
229
|
type: "testnet",
|
|
227
230
|
},
|
|
228
231
|
];
|
|
229
|
-
|
|
232
|
+
exports.chainNameToLogo = {
|
|
230
233
|
ETH: `${baseLogoUrl}/Ethereum.webp`,
|
|
231
|
-
[sepolia]: `${baseLogoUrl}/Ethereum.webp`,
|
|
234
|
+
[exports.sepolia]: `${baseLogoUrl}/Ethereum.webp`,
|
|
232
235
|
FANTOM: `${baseLogoUrl}/Fantom.webp`,
|
|
233
236
|
POLYGON: `${baseLogoUrl}/Polygon.webp`,
|
|
234
|
-
[polygonAmoy]: `${baseLogoUrl}/Polygon.webp`,
|
|
237
|
+
[exports.polygonAmoy]: `${baseLogoUrl}/Polygon.webp`,
|
|
235
238
|
AVALANCHE: `${baseLogoUrl}/Avalanche.webp`,
|
|
236
239
|
OPTIMISM: `${baseLogoUrl}/Optimism.webp`,
|
|
237
240
|
ARBITRUM: `${baseLogoUrl}/Arbitrum.webp`,
|
|
@@ -247,20 +250,20 @@ export const chainNameToLogo = {
|
|
|
247
250
|
MANTLE: `${baseLogoUrl}/Mantle.webp`,
|
|
248
251
|
"MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
|
|
249
252
|
SOLANA: `${baseLogoUrl}/Solana.webp`,
|
|
250
|
-
[zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
251
|
-
[zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
252
|
-
[bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
253
|
-
[bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
254
|
-
[neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
255
|
-
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
253
|
+
[exports.zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
254
|
+
[exports.zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
255
|
+
[exports.bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
256
|
+
[exports.bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
257
|
+
[exports.neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
258
|
+
[exports.vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
256
259
|
};
|
|
257
|
-
|
|
260
|
+
exports.chainNameToLogoBlack = {
|
|
258
261
|
ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
259
|
-
[sepolia]: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
262
|
+
[exports.sepolia]: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
260
263
|
BINANCE: `${baseLogoUrlBlack}/binance.webp`,
|
|
261
264
|
FANTOM: `${baseLogoUrlBlack}/Fantom.webp`,
|
|
262
265
|
POLYGON: `${baseLogoUrlBlack}/Polygon.webp`,
|
|
263
|
-
[polygonAmoy]: `${baseLogoUrlBlack}/Polygon.webp`,
|
|
266
|
+
[exports.polygonAmoy]: `${baseLogoUrlBlack}/Polygon.webp`,
|
|
264
267
|
AVALANCHE: `${baseLogoUrlBlack}/Avalanche.webp`,
|
|
265
268
|
OPTIMISM: `${baseLogoUrlBlack}/Optimism.webp`,
|
|
266
269
|
ARBITRUM: `${baseLogoUrlBlack}/Arbitrum.webp`,
|
|
@@ -275,10 +278,10 @@ export const chainNameToLogoBlack = {
|
|
|
275
278
|
MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
|
|
276
279
|
"MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
|
|
277
280
|
SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
|
|
278
|
-
[zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
279
|
-
[zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
280
|
-
[bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
281
|
-
[bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
282
|
-
[neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
283
|
-
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
|
|
281
|
+
[exports.zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
282
|
+
[exports.zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
283
|
+
[exports.bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
284
|
+
[exports.bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
285
|
+
[exports.neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
286
|
+
[exports.vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
|
|
284
287
|
};
|
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,9 +1,12 @@
|
|
|
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
|
-
[sepolia]: "https://sepolia.etherscan.io",
|
|
7
|
+
[chains_1.sepolia]: "https://sepolia.etherscan.io",
|
|
5
8
|
POLYGON: "https://polygonscan.com",
|
|
6
|
-
[polygonAmoy]: "https://www.oklink.com/amoy",
|
|
9
|
+
[chains_1.polygonAmoy]: "https://www.oklink.com/amoy",
|
|
7
10
|
AVALANCHE: "https://snowtrace.io",
|
|
8
11
|
ARBITRUM: "https://arbiscan.io",
|
|
9
12
|
BINANCE: "https://bscscan.com",
|
|
@@ -22,46 +25,46 @@ export const explorerBaseUrls = {
|
|
|
22
25
|
"MANTLE-TESTNET": "https://explorer.testnet.mantle.xyz",
|
|
23
26
|
MANTA: "https://pacific-explorer.manta.network",
|
|
24
27
|
"MANTA-TESTNET": "https://manta-testnet.calderaexplorer.xyz",
|
|
25
|
-
[zkLink]: "https://explorer.zklink.io",
|
|
26
|
-
[zkLinkTestnet]: "https://goerli.explorer.zklink.io",
|
|
27
|
-
[bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
|
|
28
|
-
[bitlayerMainnet]: "https://www.btrscan.com",
|
|
29
|
-
[neoxTestnet]: "https://xt2scan.ngd.network",
|
|
30
|
-
[vanarTestnet]: "https://explorer-vanguard.vanarchain.com",
|
|
28
|
+
[chains_1.zkLink]: "https://explorer.zklink.io",
|
|
29
|
+
[chains_1.zkLinkTestnet]: "https://goerli.explorer.zklink.io",
|
|
30
|
+
[chains_1.bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
|
|
31
|
+
[chains_1.bitlayerMainnet]: "https://www.btrscan.com",
|
|
32
|
+
[chains_1.neoxTestnet]: "https://xt2scan.ngd.network",
|
|
33
|
+
[chains_1.vanarTestnet]: "https://explorer-vanguard.vanarchain.com",
|
|
31
34
|
};
|
|
32
|
-
|
|
33
|
-
ETH: `${explorerBaseUrls.ETH}/tx`, // /txHash
|
|
34
|
-
[sepolia]: `${explorerBaseUrls[sepolia]}/tx`,
|
|
35
|
-
POLYGON: `${explorerBaseUrls.POLYGON}/tx`,
|
|
36
|
-
[polygonAmoy]: `${explorerBaseUrls[polygonAmoy]}/tx`,
|
|
37
|
-
AVALANCHE: `${explorerBaseUrls.AVALANCHE}/tx`,
|
|
38
|
-
ARBITRUM: `${explorerBaseUrls.ARBITRUM}/tx`,
|
|
39
|
-
BINANCE: `${explorerBaseUrls.BINANCE}/tx`,
|
|
40
|
-
OPTIMISM: `${explorerBaseUrls.OPTIMISM}/tx`,
|
|
41
|
-
FANTOM: `${explorerBaseUrls.FANTOM}/tx`,
|
|
42
|
-
FUSE: `${explorerBaseUrls.FUSE}/tx`,
|
|
43
|
-
FUSESPARK: `${explorerBaseUrls.FUSESPARK}/tx`,
|
|
44
|
-
MUMBAI: `${explorerBaseUrls.MUMBAI}/tx`,
|
|
45
|
-
METIS: `${explorerBaseUrls.METIS}/tx`,
|
|
46
|
-
"METIS-TESTNET": `${explorerBaseUrls["METIS-TESTNET"]}/tx`,
|
|
47
|
-
MANTLE: `${explorerBaseUrls.MANTLE}/tx`,
|
|
48
|
-
"MANTLE-TESTNET": `${explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
|
|
49
|
-
MANTA: `${explorerBaseUrls.MANTA}/tx`,
|
|
50
|
-
"MANTA-TESTNET": `${explorerBaseUrls["MANTA-TESTNET"]}/tx`,
|
|
51
|
-
[zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
|
|
52
|
-
[zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
|
|
53
|
-
[bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
|
|
54
|
-
[bitlayerMainnet]: `${explorerBaseUrls[bitlayerMainnet]}/tx`,
|
|
55
|
-
[neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
|
|
56
|
-
[vanarTestnet]: `${explorerBaseUrls[vanarTestnet]}/tx`,
|
|
35
|
+
exports.txnBaseUrl = {
|
|
36
|
+
ETH: `${exports.explorerBaseUrls.ETH}/tx`, // /txHash
|
|
37
|
+
[chains_1.sepolia]: `${exports.explorerBaseUrls[chains_1.sepolia]}/tx`,
|
|
38
|
+
POLYGON: `${exports.explorerBaseUrls.POLYGON}/tx`,
|
|
39
|
+
[chains_1.polygonAmoy]: `${exports.explorerBaseUrls[chains_1.polygonAmoy]}/tx`,
|
|
40
|
+
AVALANCHE: `${exports.explorerBaseUrls.AVALANCHE}/tx`,
|
|
41
|
+
ARBITRUM: `${exports.explorerBaseUrls.ARBITRUM}/tx`,
|
|
42
|
+
BINANCE: `${exports.explorerBaseUrls.BINANCE}/tx`,
|
|
43
|
+
OPTIMISM: `${exports.explorerBaseUrls.OPTIMISM}/tx`,
|
|
44
|
+
FANTOM: `${exports.explorerBaseUrls.FANTOM}/tx`,
|
|
45
|
+
FUSE: `${exports.explorerBaseUrls.FUSE}/tx`,
|
|
46
|
+
FUSESPARK: `${exports.explorerBaseUrls.FUSESPARK}/tx`,
|
|
47
|
+
MUMBAI: `${exports.explorerBaseUrls.MUMBAI}/tx`,
|
|
48
|
+
METIS: `${exports.explorerBaseUrls.METIS}/tx`,
|
|
49
|
+
"METIS-TESTNET": `${exports.explorerBaseUrls["METIS-TESTNET"]}/tx`,
|
|
50
|
+
MANTLE: `${exports.explorerBaseUrls.MANTLE}/tx`,
|
|
51
|
+
"MANTLE-TESTNET": `${exports.explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
|
|
52
|
+
MANTA: `${exports.explorerBaseUrls.MANTA}/tx`,
|
|
53
|
+
"MANTA-TESTNET": `${exports.explorerBaseUrls["MANTA-TESTNET"]}/tx`,
|
|
54
|
+
[chains_1.zkLink]: `${exports.explorerBaseUrls[chains_1.zkLink]}/tx`,
|
|
55
|
+
[chains_1.zkLinkTestnet]: `${exports.explorerBaseUrls[chains_1.zkLinkTestnet]}/tx`,
|
|
56
|
+
[chains_1.bitlayerTestnet]: `${exports.explorerBaseUrls[chains_1.bitlayerTestnet]}/tx`,
|
|
57
|
+
[chains_1.bitlayerMainnet]: `${exports.explorerBaseUrls[chains_1.bitlayerMainnet]}/tx`,
|
|
58
|
+
[chains_1.neoxTestnet]: `${exports.explorerBaseUrls[chains_1.neoxTestnet]}/tx`,
|
|
59
|
+
[chains_1.vanarTestnet]: `${exports.explorerBaseUrls[chains_1.vanarTestnet]}/tx`,
|
|
57
60
|
};
|
|
58
|
-
|
|
61
|
+
exports.nativeTokenDetails = {
|
|
59
62
|
ETH: {
|
|
60
63
|
name: "Ether",
|
|
61
64
|
symbol: "ETH",
|
|
62
65
|
logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png",
|
|
63
66
|
},
|
|
64
|
-
[sepolia]: {
|
|
67
|
+
[chains_1.sepolia]: {
|
|
65
68
|
name: "Ether",
|
|
66
69
|
symbol: "ETH",
|
|
67
70
|
logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png",
|
|
@@ -71,7 +74,7 @@ export const nativeTokenDetails = {
|
|
|
71
74
|
symbol: "MATIC",
|
|
72
75
|
logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png",
|
|
73
76
|
},
|
|
74
|
-
[polygonAmoy]: {
|
|
77
|
+
[chains_1.polygonAmoy]: {
|
|
75
78
|
name: "Matic Token",
|
|
76
79
|
symbol: "MATIC",
|
|
77
80
|
logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png",
|
|
@@ -151,42 +154,42 @@ export const nativeTokenDetails = {
|
|
|
151
154
|
symbol: "SOL",
|
|
152
155
|
logoUrl: "https://static.tria.so/chain-logo-w/Solana.webp",
|
|
153
156
|
},
|
|
154
|
-
[zkLink]: {
|
|
157
|
+
[chains_1.zkLink]: {
|
|
155
158
|
name: "Ether",
|
|
156
159
|
symbol: "ETH",
|
|
157
160
|
logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
|
|
158
161
|
},
|
|
159
|
-
[zkLinkTestnet]: {
|
|
162
|
+
[chains_1.zkLinkTestnet]: {
|
|
160
163
|
name: "Ether",
|
|
161
164
|
symbol: "ETH",
|
|
162
165
|
logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
|
|
163
166
|
},
|
|
164
|
-
[bitlayerTestnet]: {
|
|
167
|
+
[chains_1.bitlayerTestnet]: {
|
|
165
168
|
name: "Bitcoin",
|
|
166
169
|
symbol: "BTC",
|
|
167
170
|
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
168
171
|
},
|
|
169
|
-
[bitlayerMainnet]: {
|
|
172
|
+
[chains_1.bitlayerMainnet]: {
|
|
170
173
|
name: "Bitcoin",
|
|
171
174
|
symbol: "BTC",
|
|
172
175
|
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
173
176
|
},
|
|
174
|
-
[neoxTestnet]: {
|
|
177
|
+
[chains_1.neoxTestnet]: {
|
|
175
178
|
name: "Gas",
|
|
176
179
|
symbol: "GAS",
|
|
177
180
|
logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
|
|
178
181
|
},
|
|
179
|
-
[vanarTestnet]: {
|
|
182
|
+
[chains_1.vanarTestnet]: {
|
|
180
183
|
name: "Vanry",
|
|
181
184
|
symbol: "VG",
|
|
182
185
|
logoUrl: "https://explorer-vanguard.vanarchain.com/assets/network_icon_dark.svg",
|
|
183
186
|
},
|
|
184
187
|
};
|
|
185
188
|
const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
|
|
186
|
-
|
|
189
|
+
exports.rpcUrls = {
|
|
187
190
|
MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${alchemyKey}`, //'https://polygon-mumbai.blockpi.network/v1/rpc/public',
|
|
188
|
-
[polygonAmoy]: `https://polygon-amoy.g.alchemy.com/v2/${alchemyKey}`,
|
|
189
|
-
[sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
|
|
191
|
+
[chains_1.polygonAmoy]: `https://polygon-amoy.g.alchemy.com/v2/${alchemyKey}`,
|
|
192
|
+
[chains_1.sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
|
|
190
193
|
ETH: "https://eth.llamarpc.com",
|
|
191
194
|
POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
|
|
192
195
|
AVALANCHE: "https://avalanche-c-chain.publicnode.com",
|
|
@@ -202,17 +205,17 @@ export const rpcUrls = {
|
|
|
202
205
|
"METIS-TESTNET": "https://goerli.gateway.metisdevops.link",
|
|
203
206
|
MANTLE: "https://rpc.mantle.xyz",
|
|
204
207
|
"MANTLE-TESTNET": "https://rpc.testnet.mantle.xyz",
|
|
205
|
-
[zkLink]: "https://rpc.zklink.io",
|
|
206
|
-
[zkLinkTestnet]: "https://goerli.rpc.zklink.io",
|
|
207
|
-
[bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
|
|
208
|
-
[bitlayerMainnet]: "https://rpc.bitlayer.org",
|
|
209
|
-
[neoxTestnet]: "https://neoxseed1.ngd.network",
|
|
210
|
-
[vanarTestnet]: "https://rpc-partners-vanguard.vanarchain.com", // "https://rpc-vanguard.vanarchain.com",
|
|
208
|
+
[chains_1.zkLink]: "https://rpc.zklink.io",
|
|
209
|
+
[chains_1.zkLinkTestnet]: "https://goerli.rpc.zklink.io",
|
|
210
|
+
[chains_1.bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
|
|
211
|
+
[chains_1.bitlayerMainnet]: "https://rpc.bitlayer.org",
|
|
212
|
+
[chains_1.neoxTestnet]: "https://neoxseed1.ngd.network",
|
|
213
|
+
[chains_1.vanarTestnet]: "https://rpc-partners-vanguard.vanarchain.com", // "https://rpc-vanguard.vanarchain.com",
|
|
211
214
|
};
|
|
212
|
-
|
|
215
|
+
exports.chainNameToChainId = {
|
|
213
216
|
MUMBAI: 80001,
|
|
214
|
-
[polygonAmoy]: 80002,
|
|
215
|
-
[sepolia]: 11155111,
|
|
217
|
+
[chains_1.polygonAmoy]: 80002,
|
|
218
|
+
[chains_1.sepolia]: 11155111,
|
|
216
219
|
POLYGON: 137,
|
|
217
220
|
ETH: 1,
|
|
218
221
|
AVALANCHE: 43114,
|
|
@@ -228,17 +231,17 @@ export const chainNameToChainId = {
|
|
|
228
231
|
"METIS-TESTNET": 599,
|
|
229
232
|
MANTLE: 5000,
|
|
230
233
|
"MANTLE-TESTNET": 5001,
|
|
231
|
-
[zkLink]: 810180,
|
|
232
|
-
[zkLinkTestnet]: 810182,
|
|
233
|
-
[bitlayerTestnet]: 200810,
|
|
234
|
-
[bitlayerMainnet]: 200901,
|
|
235
|
-
[neoxTestnet]: 12227330,
|
|
236
|
-
[vanarTestnet]: 78600,
|
|
234
|
+
[chains_1.zkLink]: 810180,
|
|
235
|
+
[chains_1.zkLinkTestnet]: 810182,
|
|
236
|
+
[chains_1.bitlayerTestnet]: 200810,
|
|
237
|
+
[chains_1.bitlayerMainnet]: 200901,
|
|
238
|
+
[chains_1.neoxTestnet]: 12227330,
|
|
239
|
+
[chains_1.vanarTestnet]: 78600,
|
|
237
240
|
};
|
|
238
|
-
|
|
241
|
+
exports.chainIdToChainName = {
|
|
239
242
|
80001: "MUMBAI",
|
|
240
|
-
80002: polygonAmoy,
|
|
241
|
-
11155111: sepolia,
|
|
243
|
+
80002: chains_1.polygonAmoy,
|
|
244
|
+
11155111: chains_1.sepolia,
|
|
242
245
|
137: "POLYGON",
|
|
243
246
|
1: "ETH",
|
|
244
247
|
43114: "AVALANCHE",
|
|
@@ -254,10 +257,10 @@ export const chainIdToChainName = {
|
|
|
254
257
|
599: "METIS-TESTNET",
|
|
255
258
|
169: "MANTA",
|
|
256
259
|
3441005: "MANTA-TESTNET",
|
|
257
|
-
810180: zkLink,
|
|
258
|
-
810182: zkLinkTestnet,
|
|
259
|
-
200810: bitlayerTestnet,
|
|
260
|
-
200901: bitlayerMainnet,
|
|
261
|
-
12227330: neoxTestnet,
|
|
262
|
-
78600: vanarTestnet,
|
|
260
|
+
810180: chains_1.zkLink,
|
|
261
|
+
810182: chains_1.zkLinkTestnet,
|
|
262
|
+
200810: chains_1.bitlayerTestnet,
|
|
263
|
+
200901: chains_1.bitlayerMainnet,
|
|
264
|
+
12227330: chains_1.neoxTestnet,
|
|
265
|
+
78600: chains_1.vanarTestnet,
|
|
263
266
|
};
|
package/package.json
CHANGED