@tria-sdk/constants 1.0.51 → 1.0.52
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.d.ts +4 -4
- package/dist/vite.config.d.ts +2 -0
- package/package.json +7 -4
- package/tsconfig.json +2 -2
- package/vite.config.ts +22 -22
- package/dist/index.js +0 -21
- package/dist/src/chains.js +0 -330
- package/dist/src/config.js +0 -25
- package/dist/src/connect.js +0 -29
- package/dist/src/gasToken.js +0 -13
- package/dist/src/txn.js +0 -277
- package/dist/vite.config.js +0 -23
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from './src/config';
|
|
2
|
+
export * from './src/chains';
|
|
3
|
+
export * from './src/txn';
|
|
4
|
+
export * from './src/connect';
|
package/dist/vite.config.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tria-sdk/constants",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"description": "",
|
|
5
|
-
"
|
|
5
|
+
"module": "dist/constants.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"typescript": "^5.3.3",
|
|
9
|
-
"typescript-tools": "^0.3.1"
|
|
9
|
+
"typescript-tools": "^0.3.1",
|
|
10
|
+
"vite": "^5.1.4",
|
|
11
|
+
"vite-plugin-dts": "^3.7.3"
|
|
10
12
|
},
|
|
11
13
|
"keywords": [],
|
|
12
14
|
"author": "",
|
|
13
15
|
"license": "ISC",
|
|
14
16
|
"scripts": {
|
|
15
17
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
16
|
-
"
|
|
18
|
+
"rollup": "rollup -c",
|
|
19
|
+
"build": "tsc && vite build"
|
|
17
20
|
}
|
|
18
21
|
}
|
package/tsconfig.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import dts from "vite-plugin-dts";
|
|
3
|
+
// import visualizer from "rollup-plugin-visualizer";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
build: {
|
|
7
|
+
// Specify the entry point for your library
|
|
8
|
+
lib: {
|
|
9
|
+
entry: "index.ts", // Change this to your library's entry point
|
|
10
|
+
formats: ["es"], // Specify the format as ES module
|
|
11
|
+
},
|
|
12
|
+
// Optionally, specify external dependencies that should not be bundled
|
|
13
|
+
rollupOptions: {
|
|
14
|
+
output: {
|
|
15
|
+
preserveModules: true,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
plugins: [
|
|
20
|
+
dts(),
|
|
21
|
+
// visualizer({ open: true, filename: "bundle-analysis.html" }),
|
|
22
|
+
],
|
|
23
|
+
});
|
package/dist/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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);
|
|
21
|
-
// export * from "./src/gasToken";
|
package/dist/src/chains.js
DELETED
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.chainNameToLogoBlack = exports.chainNameToLogoAverageColor = exports.chainNameToLogo = exports.networks = exports.ALLCHAINS = exports.AA_SUPPORTED_EVM_CHAINS = exports.GAS_ABS_ENABLED_CHAINS = exports.SUPPORTED_EVM_CHAINS = exports.TESTNET_CHAINS = exports.skaleTestnet = 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.skaleTestnet = "SKALE-TESTNET";
|
|
18
|
-
exports.TESTNET_CHAINS = [
|
|
19
|
-
exports.sepolia,
|
|
20
|
-
"MUMBAI",
|
|
21
|
-
"FUSESPARK",
|
|
22
|
-
"MANTA-TESTNET",
|
|
23
|
-
"METIS-TESTNET",
|
|
24
|
-
"MANTLE-TESTNET",
|
|
25
|
-
exports.zkLinkTestnet,
|
|
26
|
-
exports.bitlayerTestnet,
|
|
27
|
-
exports.neoxTestnet,
|
|
28
|
-
exports.sepolia,
|
|
29
|
-
exports.polygonAmoy,
|
|
30
|
-
exports.vanarTestnet,
|
|
31
|
-
exports.skaleTestnet,
|
|
32
|
-
];
|
|
33
|
-
exports.SUPPORTED_EVM_CHAINS = [
|
|
34
|
-
"ETH",
|
|
35
|
-
"POLYGON",
|
|
36
|
-
"AVALANCHE",
|
|
37
|
-
"ARBITRUM",
|
|
38
|
-
"BINANCE",
|
|
39
|
-
"OPTIMISM",
|
|
40
|
-
"FANTOM",
|
|
41
|
-
"FUSE",
|
|
42
|
-
"FUSESPARK",
|
|
43
|
-
"MUMBAI",
|
|
44
|
-
exports.sepolia,
|
|
45
|
-
"MANTA",
|
|
46
|
-
"MANTA-TESTNET",
|
|
47
|
-
"METIS",
|
|
48
|
-
"METIS-TESTNET",
|
|
49
|
-
"MANTLE",
|
|
50
|
-
"MANTLE-TESTNET",
|
|
51
|
-
exports.zkLink,
|
|
52
|
-
exports.zkLinkTestnet,
|
|
53
|
-
exports.bitlayerTestnet,
|
|
54
|
-
exports.bitlayerMainnet,
|
|
55
|
-
exports.neoxTestnet,
|
|
56
|
-
exports.sepolia,
|
|
57
|
-
exports.polygonAmoy,
|
|
58
|
-
exports.vanarTestnet,
|
|
59
|
-
exports.skaleTestnet,
|
|
60
|
-
];
|
|
61
|
-
exports.GAS_ABS_ENABLED_CHAINS = [exports.sepolia, "POLYGON"];
|
|
62
|
-
exports.AA_SUPPORTED_EVM_CHAINS = [
|
|
63
|
-
// "ETH",
|
|
64
|
-
"POLYGON",
|
|
65
|
-
exports.sepolia,
|
|
66
|
-
// "AVALANCHE",
|
|
67
|
-
// "ARBITRUM",
|
|
68
|
-
// "BINANCE",
|
|
69
|
-
// "OPTIMISM",
|
|
70
|
-
"FUSE",
|
|
71
|
-
"MUMBAI",
|
|
72
|
-
// "MANTLE",
|
|
73
|
-
exports.sepolia,
|
|
74
|
-
"OPTIMISM",
|
|
75
|
-
"ARBITRUM",
|
|
76
|
-
"AVALANCHE",
|
|
77
|
-
"MANTLE",
|
|
78
|
-
];
|
|
79
|
-
exports.ALLCHAINS = [
|
|
80
|
-
"ETH",
|
|
81
|
-
"POLYGON",
|
|
82
|
-
"AVALANCHE",
|
|
83
|
-
"ARBITRUM",
|
|
84
|
-
"BINANCE",
|
|
85
|
-
"OPTIMISM",
|
|
86
|
-
"FANTOM",
|
|
87
|
-
"FUSE",
|
|
88
|
-
"FUSESPARK",
|
|
89
|
-
"MUMBAI",
|
|
90
|
-
exports.sepolia,
|
|
91
|
-
"MANTA",
|
|
92
|
-
"MANTA-TESTNET",
|
|
93
|
-
"METIS",
|
|
94
|
-
"METIS-TESTNET",
|
|
95
|
-
"MANTLE",
|
|
96
|
-
"MANTLE-TESTNET",
|
|
97
|
-
"SOLANA",
|
|
98
|
-
exports.zkLink,
|
|
99
|
-
exports.zkLinkTestnet,
|
|
100
|
-
exports.bitlayerTestnet,
|
|
101
|
-
exports.bitlayerMainnet,
|
|
102
|
-
exports.neoxTestnet,
|
|
103
|
-
exports.sepolia,
|
|
104
|
-
exports.polygonAmoy,
|
|
105
|
-
exports.vanarTestnet,
|
|
106
|
-
exports.skaleTestnet,
|
|
107
|
-
];
|
|
108
|
-
const baseLogoUrl = "https://static.tria.so/chain-logo-w";
|
|
109
|
-
const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
|
|
110
|
-
exports.networks = [
|
|
111
|
-
{
|
|
112
|
-
chainName: "ETH",
|
|
113
|
-
logo: `${baseLogoUrl}/Ethereum.webp`,
|
|
114
|
-
type: "mainnet",
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
chainName: exports.sepolia,
|
|
118
|
-
logo: `${baseLogoUrl}/Ethereum.webp`,
|
|
119
|
-
type: "testnet",
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
chainName: "FANTOM",
|
|
123
|
-
logo: `${baseLogoUrl}/Fantom.webp`,
|
|
124
|
-
type: "mainnet",
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
chainName: "POLYGON",
|
|
128
|
-
logo: `${baseLogoUrl}/Polygon.svg`,
|
|
129
|
-
type: "mainnet",
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
chainName: exports.polygonAmoy,
|
|
133
|
-
logo: `${baseLogoUrl}/Polygon.svg`,
|
|
134
|
-
type: "testnet",
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
chainName: "AVALANCHE",
|
|
138
|
-
logo: `${baseLogoUrl}/Avalanche.webp`,
|
|
139
|
-
type: "mainnet",
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
chainName: "OPTIMISM",
|
|
143
|
-
logo: `${baseLogoUrl}/Optimism.webp`,
|
|
144
|
-
type: "mainnet",
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
chainName: "ARBITRUM",
|
|
148
|
-
logo: `${baseLogoUrl}/Arbitrum.webp`,
|
|
149
|
-
type: "mainnet",
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
chainName: "FUSE",
|
|
153
|
-
logo: `${baseLogoUrl}/Fuse.webp`,
|
|
154
|
-
type: "mainnet",
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
chainName: "FUSESPARK",
|
|
158
|
-
logo: `${baseLogoUrl}/Fuse.webp`,
|
|
159
|
-
type: "testnet",
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
chainName: "MUMBAI",
|
|
163
|
-
logo: `${baseLogoUrl}/Polygon.svg`,
|
|
164
|
-
type: "testnet",
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
chainName: "BINANCE",
|
|
168
|
-
logo: `${baseLogoUrl}/Binance.svg`,
|
|
169
|
-
type: "mainnet",
|
|
170
|
-
},
|
|
171
|
-
// {
|
|
172
|
-
// chainName: 'LINEA',
|
|
173
|
-
// logo: `${baseLogoUrl}/Linea.svg`,
|
|
174
|
-
// },
|
|
175
|
-
{
|
|
176
|
-
chainName: "METIS",
|
|
177
|
-
logo: `${baseLogoUrl}/Metis.webp`,
|
|
178
|
-
type: "mainnet",
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
chainName: "METIS-TESTNET",
|
|
182
|
-
logo: `${baseLogoUrl}/Metis.webp`,
|
|
183
|
-
type: "testnet",
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
chainName: "MANTA",
|
|
187
|
-
logo: `${baseLogoUrl}/Manta.webp`,
|
|
188
|
-
type: "mainnet",
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
chainName: "MANTA-TESTNET",
|
|
192
|
-
logo: `${baseLogoUrl}/Manta.webp`,
|
|
193
|
-
type: "testnet",
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
chainName: "MANTLE",
|
|
197
|
-
logo: `${baseLogoUrl}/Mantle.webp`,
|
|
198
|
-
type: "mainnet",
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
chainName: "MANTLE-TESTNET",
|
|
202
|
-
logo: `${baseLogoUrl}/Mantle.webp`,
|
|
203
|
-
type: "testnet",
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
chainName: "SOLANA",
|
|
207
|
-
logo: `${baseLogoUrl}/Solana.webp`,
|
|
208
|
-
type: "mainnet",
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
chainName: exports.zkLink,
|
|
212
|
-
logo: `${baseLogoUrl}/zklink.webp`,
|
|
213
|
-
type: "mainnet",
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
chainName: exports.zkLinkTestnet,
|
|
217
|
-
logo: `${baseLogoUrl}/zklink.webp`,
|
|
218
|
-
type: "testnet",
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
chainName: exports.bitlayerTestnet,
|
|
222
|
-
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
223
|
-
type: "testnet",
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
chainName: exports.bitlayerMainnet,
|
|
227
|
-
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
228
|
-
type: "mainnet",
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
chainName: exports.neoxTestnet,
|
|
232
|
-
logo: `${baseLogoUrl}/Neo.webp`,
|
|
233
|
-
type: "testnet",
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
chainName: exports.vanarTestnet,
|
|
237
|
-
logo: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
238
|
-
type: "testnet",
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
chainName: exports.skaleTestnet,
|
|
242
|
-
logo: `${baseLogoUrl}/skale.webp`,
|
|
243
|
-
type: "testnet",
|
|
244
|
-
},
|
|
245
|
-
];
|
|
246
|
-
exports.chainNameToLogo = {
|
|
247
|
-
ETH: `${baseLogoUrl}/Ethereum.webp`,
|
|
248
|
-
[exports.sepolia]: `${baseLogoUrl}/Ethereum.webp`,
|
|
249
|
-
FANTOM: `${baseLogoUrl}/Fantom.webp`,
|
|
250
|
-
POLYGON: `${baseLogoUrl}/Polygon.webp`,
|
|
251
|
-
[exports.polygonAmoy]: `${baseLogoUrl}/Polygon.webp`,
|
|
252
|
-
AVALANCHE: `${baseLogoUrl}/Avalanche.webp`,
|
|
253
|
-
OPTIMISM: `${baseLogoUrl}/Optimism.webp`,
|
|
254
|
-
ARBITRUM: `${baseLogoUrl}/Arbitrum.webp`,
|
|
255
|
-
LINEA: `${baseLogoUrl}/Linea.webp`,
|
|
256
|
-
MUMBAI: `${baseLogoUrl}/Polygon.webp`,
|
|
257
|
-
FUSE: `${baseLogoUrl}/Fuse.webp`,
|
|
258
|
-
FUSESPARK: `${baseLogoUrl}/Fuse.webp`,
|
|
259
|
-
BINANCE: `${baseLogoUrl}/Binance.svg`,
|
|
260
|
-
MANTA: `${baseLogoUrl}/Manta.webp`,
|
|
261
|
-
"MANTA-TESTNET": `${baseLogoUrl}/Manta.webp`,
|
|
262
|
-
METIS: `${baseLogoUrl}/Metis.webp`,
|
|
263
|
-
"METIS-TESTNET": `${baseLogoUrl}/Metis.webp`,
|
|
264
|
-
MANTLE: `${baseLogoUrl}/Mantle.webp`,
|
|
265
|
-
"MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
|
|
266
|
-
SOLANA: `${baseLogoUrl}/Solana.webp`,
|
|
267
|
-
[exports.zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
268
|
-
[exports.zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
269
|
-
[exports.bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
270
|
-
[exports.bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
271
|
-
[exports.neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
272
|
-
[exports.vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
273
|
-
[exports.skaleTestnet]: `${baseLogoUrl}/skale.webp`,
|
|
274
|
-
};
|
|
275
|
-
exports.chainNameToLogoAverageColor = {
|
|
276
|
-
ETH: "rgba(98,126,235,0.7)",
|
|
277
|
-
POLYGON: "rgba(131,69,231,0.7)",
|
|
278
|
-
SEPOLIA: "rgba(98,126,235,0.7)",
|
|
279
|
-
FANTOM: "rgba(19,181,235,0.7)",
|
|
280
|
-
AMOY: "rgba(131,69,231,0.7)",
|
|
281
|
-
AVALANCHE: "rgba(232,65,67,0.7)",
|
|
282
|
-
ARBITRUM: "rgba(17,170,255,0.7)",
|
|
283
|
-
OPTIMISM: "rgba(255,5,32,0.7)",
|
|
284
|
-
LINEA: "UNDETERMINED",
|
|
285
|
-
MUMBAI: "rgba(131,69,231,0.7)",
|
|
286
|
-
FUSESPARK: "rgba(180,249,185,0.7)",
|
|
287
|
-
FUSE: "rgba(180,249,185,0.7)",
|
|
288
|
-
MANTA: "rgba(255,0,0,0.7)",
|
|
289
|
-
"MANTA-TESTNET": "rgba(255,0,0,0.7)",
|
|
290
|
-
"METIS-TESTNET": "rgba(255,0,214,0.7)",
|
|
291
|
-
METIS: "rgba(255,0,214,0.7)",
|
|
292
|
-
SOLANA: "UNDETERMINED",
|
|
293
|
-
"MANTLE-TESTNET": "rgba(255,0,0,0.7)",
|
|
294
|
-
MANTLE: "rgba(255,0,0,0.7)",
|
|
295
|
-
"BITLAYER-TESTNET": "rgba(226,110,26,0.7)",
|
|
296
|
-
"ZKLINK-NOVA": "UNDETERMINED",
|
|
297
|
-
"ZKLINK-NOVA-TESTNET": "UNDETERMINED",
|
|
298
|
-
"NEOX-TESTNET": "rgba(1,229,155,0.7)",
|
|
299
|
-
"VANGUARD-VANAR-TESTNET": "rgba(0,255,255,0.7)",
|
|
300
|
-
BINANCE: "rgba(240,185,11,0.7)",
|
|
301
|
-
};
|
|
302
|
-
exports.chainNameToLogoBlack = {
|
|
303
|
-
ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
304
|
-
[exports.sepolia]: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
305
|
-
BINANCE: `${baseLogoUrlBlack}/binance.svg`,
|
|
306
|
-
FANTOM: `${baseLogoUrlBlack}/Fantom.webp`,
|
|
307
|
-
POLYGON: `${baseLogoUrlBlack}/Polygon.webp`,
|
|
308
|
-
[exports.polygonAmoy]: `${baseLogoUrlBlack}/Polygon.webp`,
|
|
309
|
-
AVALANCHE: `${baseLogoUrlBlack}/Avalanche.webp`,
|
|
310
|
-
OPTIMISM: `${baseLogoUrlBlack}/Optimism.webp`,
|
|
311
|
-
ARBITRUM: `${baseLogoUrlBlack}/Arbitrum.webp`,
|
|
312
|
-
LINEA: `${baseLogoUrlBlack}/Linea.webp`,
|
|
313
|
-
MUMBAI: `${baseLogoUrlBlack}/Polygon.webp`,
|
|
314
|
-
FUSE: `${baseLogoUrlBlack}/fuse.webp`,
|
|
315
|
-
FUSESPARK: `${baseLogoUrlBlack}/fuse.webp`,
|
|
316
|
-
MANTA: `${baseLogoUrlBlack}/Manta.webp`,
|
|
317
|
-
"MANTA-TESTNET": `${baseLogoUrlBlack}/Manta.webp`,
|
|
318
|
-
METIS: `${baseLogoUrlBlack}/Metis.webp`,
|
|
319
|
-
"METIS-TESTNET": `${baseLogoUrlBlack}/Metis.webp`,
|
|
320
|
-
MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
|
|
321
|
-
"MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
|
|
322
|
-
SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
|
|
323
|
-
[exports.zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
324
|
-
[exports.zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
325
|
-
[exports.bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
326
|
-
[exports.bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
327
|
-
[exports.neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
328
|
-
[exports.vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
|
|
329
|
-
[exports.skaleTestnet]: `${baseLogoUrlBlack}/skale.webp`,
|
|
330
|
-
};
|
package/dist/src/config.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isGasAbsEnabled = 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);
|
|
8
|
-
};
|
|
9
|
-
exports.isEvmChain = isEvmChain;
|
|
10
|
-
const isAaSupportedChain = (chainName) => {
|
|
11
|
-
return chains_1.AA_SUPPORTED_EVM_CHAINS.includes(chainName);
|
|
12
|
-
};
|
|
13
|
-
exports.isAaSupportedChain = isAaSupportedChain;
|
|
14
|
-
const isChainSupported = (chainName) => {
|
|
15
|
-
return chains_1.ALLCHAINS.includes(chainName);
|
|
16
|
-
};
|
|
17
|
-
exports.isChainSupported = isChainSupported;
|
|
18
|
-
const isTestnetChain = (chainName) => {
|
|
19
|
-
return chains_1.TESTNET_CHAINS.includes(chainName);
|
|
20
|
-
};
|
|
21
|
-
exports.isTestnetChain = isTestnetChain;
|
|
22
|
-
const isGasAbsEnabled = (chainName) => {
|
|
23
|
-
return chains_1.GAS_ABS_ENABLED_CHAINS.includes(chainName);
|
|
24
|
-
};
|
|
25
|
-
exports.isGasAbsEnabled = isGasAbsEnabled;
|
package/dist/src/connect.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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 = {
|
|
5
|
-
logIn: "Log in",
|
|
6
|
-
triaSignUp: "Tria Sign up",
|
|
7
|
-
emailPwSignUp: "Email Pwd Sign up",
|
|
8
|
-
socialSignUp: "Social Sign up",
|
|
9
|
-
signMessage: "Sign Message",
|
|
10
|
-
send: "Send",
|
|
11
|
-
disconnect: "Disconnect",
|
|
12
|
-
switchChain: "Switch chain",
|
|
13
|
-
detected: "Detected Logged in Tria account",
|
|
14
|
-
logout: "Logout",
|
|
15
|
-
passMessage: "Pass Message",
|
|
16
|
-
accessToken: "Access Token Pass",
|
|
17
|
-
idTokenPass: "Id Token Pass",
|
|
18
|
-
saveToAuth: "Save to Auth Iframe",
|
|
19
|
-
triaStoreSet: "triaStoreSet",
|
|
20
|
-
};
|
|
21
|
-
exports.TRIA_WALLET_STORE = "tria.wallet.store";
|
|
22
|
-
exports.TRIA_WALLET_SELECTED_CHAIN = "tria.wallet.selectedChain";
|
|
23
|
-
exports.storageKeys = {
|
|
24
|
-
TRIA_WALLET_STORE: "tria.wallet.store",
|
|
25
|
-
TRIA_WALLET_SELECTED_CHAIN: "tria.wallet.selectedChain",
|
|
26
|
-
PERSIST_ROOT: "persist:root",
|
|
27
|
-
};
|
|
28
|
-
exports.triaAuthUrl = "https://auth.tria.so";
|
|
29
|
-
// export const PARENT_URL = document?.referrer || window?.parent?.[0]?.location?.ancestorOrigins?.[0];
|
package/dist/src/gasToken.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { polygonAmoy, sepolia } from "./chains";
|
|
3
|
-
// export const gasTokenAddresses = {
|
|
4
|
-
// [sepolia]: {
|
|
5
|
-
// USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
|
6
|
-
// USDT: "",
|
|
7
|
-
// TST: "0xe2fDF4b113552A7bFaD5492D7E68F7479D7DFaCF",
|
|
8
|
-
// },
|
|
9
|
-
// [polygonAmoy]: {
|
|
10
|
-
// USDC: "",
|
|
11
|
-
// USDT: "",
|
|
12
|
-
// },
|
|
13
|
-
// };
|
package/dist/src/txn.js
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
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 = {
|
|
6
|
-
ETH: "https://etherscan.io",
|
|
7
|
-
[chains_1.sepolia]: "https://sepolia.etherscan.io",
|
|
8
|
-
POLYGON: "https://polygonscan.com",
|
|
9
|
-
[chains_1.polygonAmoy]: "https://www.oklink.com/amoy",
|
|
10
|
-
AVALANCHE: "https://snowtrace.io",
|
|
11
|
-
ARBITRUM: "https://arbiscan.io",
|
|
12
|
-
BINANCE: "https://bscscan.com",
|
|
13
|
-
OPTIMISM: "https://optimistic.etherscan.io",
|
|
14
|
-
FANTOM: "https://ftmscan.com",
|
|
15
|
-
SOLANA: "https://solscan.io",
|
|
16
|
-
APTOS: "https://explorer.aptoslabs.com",
|
|
17
|
-
NEO: "https://neo3.neotube.io",
|
|
18
|
-
SUI: "https://suiexplorer.com/?network=mainnet",
|
|
19
|
-
FUSE: "https://explorer.fuse.io",
|
|
20
|
-
FUSESPARK: "https://explorer.fusespark.io",
|
|
21
|
-
MUMBAI: "https://mumbai.polygonscan.com",
|
|
22
|
-
METIS: "https://andromeda-explorer.metis.io",
|
|
23
|
-
"METIS-TESTNET": "https://sepolia.explorer.metisdevops.link",
|
|
24
|
-
MANTLE: "https://explorer.mantle.xyz",
|
|
25
|
-
"MANTLE-TESTNET": "https://explorer.testnet.mantle.xyz",
|
|
26
|
-
MANTA: "https://pacific-explorer.manta.network",
|
|
27
|
-
"MANTA-TESTNET": "https://manta-testnet.calderaexplorer.xyz",
|
|
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",
|
|
34
|
-
[chains_1.skaleTestnet]: "https://giant-half-dual-testnet.explorer.testnet.skalenodes.com",
|
|
35
|
-
};
|
|
36
|
-
exports.txnBaseUrl = {
|
|
37
|
-
ETH: `${exports.explorerBaseUrls.ETH}/tx`, // /txHash
|
|
38
|
-
[chains_1.sepolia]: `${exports.explorerBaseUrls[chains_1.sepolia]}/tx`,
|
|
39
|
-
POLYGON: `${exports.explorerBaseUrls.POLYGON}/tx`,
|
|
40
|
-
[chains_1.polygonAmoy]: `${exports.explorerBaseUrls[chains_1.polygonAmoy]}/tx`,
|
|
41
|
-
AVALANCHE: `${exports.explorerBaseUrls.AVALANCHE}/tx`,
|
|
42
|
-
ARBITRUM: `${exports.explorerBaseUrls.ARBITRUM}/tx`,
|
|
43
|
-
BINANCE: `${exports.explorerBaseUrls.BINANCE}/tx`,
|
|
44
|
-
OPTIMISM: `${exports.explorerBaseUrls.OPTIMISM}/tx`,
|
|
45
|
-
FANTOM: `${exports.explorerBaseUrls.FANTOM}/tx`,
|
|
46
|
-
FUSE: `${exports.explorerBaseUrls.FUSE}/tx`,
|
|
47
|
-
FUSESPARK: `${exports.explorerBaseUrls.FUSESPARK}/tx`,
|
|
48
|
-
MUMBAI: `${exports.explorerBaseUrls.MUMBAI}/tx`,
|
|
49
|
-
METIS: `${exports.explorerBaseUrls.METIS}/tx`,
|
|
50
|
-
"METIS-TESTNET": `${exports.explorerBaseUrls["METIS-TESTNET"]}/tx`,
|
|
51
|
-
MANTLE: `${exports.explorerBaseUrls.MANTLE}/tx`,
|
|
52
|
-
"MANTLE-TESTNET": `${exports.explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
|
|
53
|
-
MANTA: `${exports.explorerBaseUrls.MANTA}/tx`,
|
|
54
|
-
"MANTA-TESTNET": `${exports.explorerBaseUrls["MANTA-TESTNET"]}/tx`,
|
|
55
|
-
[chains_1.zkLink]: `${exports.explorerBaseUrls[chains_1.zkLink]}/tx`,
|
|
56
|
-
[chains_1.zkLinkTestnet]: `${exports.explorerBaseUrls[chains_1.zkLinkTestnet]}/tx`,
|
|
57
|
-
[chains_1.bitlayerTestnet]: `${exports.explorerBaseUrls[chains_1.bitlayerTestnet]}/tx`,
|
|
58
|
-
[chains_1.bitlayerMainnet]: `${exports.explorerBaseUrls[chains_1.bitlayerMainnet]}/tx`,
|
|
59
|
-
[chains_1.neoxTestnet]: `${exports.explorerBaseUrls[chains_1.neoxTestnet]}/tx`,
|
|
60
|
-
[chains_1.vanarTestnet]: `${exports.explorerBaseUrls[chains_1.vanarTestnet]}/tx`,
|
|
61
|
-
[chains_1.skaleTestnet]: `${exports.explorerBaseUrls[chains_1.skaleTestnet]}/tx`,
|
|
62
|
-
};
|
|
63
|
-
exports.nativeTokenDetails = {
|
|
64
|
-
ETH: {
|
|
65
|
-
name: "Ether",
|
|
66
|
-
symbol: "ETH",
|
|
67
|
-
logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png",
|
|
68
|
-
},
|
|
69
|
-
[chains_1.sepolia]: {
|
|
70
|
-
name: "Ether",
|
|
71
|
-
symbol: "ETH",
|
|
72
|
-
logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png",
|
|
73
|
-
},
|
|
74
|
-
POLYGON: {
|
|
75
|
-
name: "Matic Token",
|
|
76
|
-
symbol: "MATIC",
|
|
77
|
-
logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png",
|
|
78
|
-
},
|
|
79
|
-
[chains_1.polygonAmoy]: {
|
|
80
|
-
name: "Matic Token",
|
|
81
|
-
symbol: "MATIC",
|
|
82
|
-
logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png",
|
|
83
|
-
},
|
|
84
|
-
AVALANCHE: {
|
|
85
|
-
name: "Avalanche Coin",
|
|
86
|
-
symbol: "AVAX",
|
|
87
|
-
logoUrl: "https://www.datocms-assets.com/86369/1686152997-avalanche-colour.png",
|
|
88
|
-
},
|
|
89
|
-
ARBITRUM: {
|
|
90
|
-
name: "Arbitrum Mainnet Ether",
|
|
91
|
-
symbol: "ETH",
|
|
92
|
-
logoUrl: "https://www.datocms-assets.com/86369/1669925028-arbitrum.png",
|
|
93
|
-
},
|
|
94
|
-
BINANCE: {
|
|
95
|
-
name: "Binance Coin",
|
|
96
|
-
symbol: "BNB",
|
|
97
|
-
logoUrl: "https://www.datocms-assets.com/86369/1670003837-biance-smart-chain-colour.png",
|
|
98
|
-
},
|
|
99
|
-
OPTIMISM: {
|
|
100
|
-
name: "Ether",
|
|
101
|
-
symbol: "ETH",
|
|
102
|
-
logoUrl: "https://www.datocms-assets.com/86369/1670347461-optimisim-colour.png",
|
|
103
|
-
},
|
|
104
|
-
FANTOM: {
|
|
105
|
-
name: "Fantom",
|
|
106
|
-
symbol: "FTM",
|
|
107
|
-
logoUrl: "https://www.datocms-assets.com/86369/1669925359-fantom-1.png",
|
|
108
|
-
},
|
|
109
|
-
FUSE: {
|
|
110
|
-
name: "Fuse",
|
|
111
|
-
symbol: "FUSE",
|
|
112
|
-
logoUrl: "https://assets.coingecko.com/coins/images/10347/standard/fuse.png",
|
|
113
|
-
},
|
|
114
|
-
FUSESPARK: {
|
|
115
|
-
name: "Spark",
|
|
116
|
-
symbol: "SPARK",
|
|
117
|
-
logoUrl: "https://assets.coingecko.com/coins/images/10347/standard/fuse.png",
|
|
118
|
-
},
|
|
119
|
-
MUMBAI: {
|
|
120
|
-
name: "Matic Token",
|
|
121
|
-
symbol: "MATIC",
|
|
122
|
-
logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png",
|
|
123
|
-
},
|
|
124
|
-
METIS: {
|
|
125
|
-
name: "Metis Token",
|
|
126
|
-
symbol: "METIS",
|
|
127
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Metis.webp",
|
|
128
|
-
},
|
|
129
|
-
"METIS-TESTNET": {
|
|
130
|
-
name: "Metis Token",
|
|
131
|
-
symbol: "METIS",
|
|
132
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Metis.webp",
|
|
133
|
-
},
|
|
134
|
-
MANTLE: {
|
|
135
|
-
name: "Mantle",
|
|
136
|
-
symbol: "MNT",
|
|
137
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Mantle.webp",
|
|
138
|
-
},
|
|
139
|
-
"MANTLE-TESTNET": {
|
|
140
|
-
name: "Mantle",
|
|
141
|
-
symbol: "MNT",
|
|
142
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Mantle.webp",
|
|
143
|
-
},
|
|
144
|
-
MANTA: {
|
|
145
|
-
name: "Ether",
|
|
146
|
-
symbol: "ETH",
|
|
147
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Manta.webp",
|
|
148
|
-
},
|
|
149
|
-
"MANTA-TESTNET": {
|
|
150
|
-
name: "Ether",
|
|
151
|
-
symbol: "ETH",
|
|
152
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Manta.webp",
|
|
153
|
-
},
|
|
154
|
-
SOLANA: {
|
|
155
|
-
name: "Solana",
|
|
156
|
-
symbol: "SOL",
|
|
157
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Solana.webp",
|
|
158
|
-
},
|
|
159
|
-
[chains_1.zkLink]: {
|
|
160
|
-
name: "Ether",
|
|
161
|
-
symbol: "ETH",
|
|
162
|
-
logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
|
|
163
|
-
},
|
|
164
|
-
[chains_1.zkLinkTestnet]: {
|
|
165
|
-
name: "Ether",
|
|
166
|
-
symbol: "ETH",
|
|
167
|
-
logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
|
|
168
|
-
},
|
|
169
|
-
[chains_1.bitlayerTestnet]: {
|
|
170
|
-
name: "Bitcoin",
|
|
171
|
-
symbol: "BTC",
|
|
172
|
-
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
173
|
-
},
|
|
174
|
-
[chains_1.bitlayerMainnet]: {
|
|
175
|
-
name: "Bitcoin",
|
|
176
|
-
symbol: "BTC",
|
|
177
|
-
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
178
|
-
},
|
|
179
|
-
[chains_1.neoxTestnet]: {
|
|
180
|
-
name: "Gas",
|
|
181
|
-
symbol: "GAS",
|
|
182
|
-
logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
|
|
183
|
-
},
|
|
184
|
-
[chains_1.vanarTestnet]: {
|
|
185
|
-
name: "Vanry",
|
|
186
|
-
symbol: "VG",
|
|
187
|
-
logoUrl: "https://explorer-vanguard.vanarchain.com/assets/network_icon_dark.svg",
|
|
188
|
-
},
|
|
189
|
-
[chains_1.skaleTestnet]: {
|
|
190
|
-
name: "sFUEL",
|
|
191
|
-
symbol: "sFUEL",
|
|
192
|
-
logoUrl: "https://assets.coingecko.com/coins/images/13564/standard/SFUEL.png?1696513318",
|
|
193
|
-
},
|
|
194
|
-
};
|
|
195
|
-
const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
|
|
196
|
-
exports.rpcUrls = {
|
|
197
|
-
MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${alchemyKey}`, //'https://polygon-mumbai.blockpi.network/v1/rpc/public',
|
|
198
|
-
[chains_1.polygonAmoy]: `https://polygon-amoy.g.alchemy.com/v2/${alchemyKey}`,
|
|
199
|
-
[chains_1.sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
|
|
200
|
-
ETH: "https://eth.llamarpc.com",
|
|
201
|
-
[chains_1.sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
|
|
202
|
-
POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
|
|
203
|
-
AVALANCHE: "https://avalanche-c-chain.publicnode.com",
|
|
204
|
-
ARBITRUM: "https://arbitrum-one.publicnode.com",
|
|
205
|
-
BINANCE: "https://bsc.publicnode.com",
|
|
206
|
-
OPTIMISM: "https://optimism.meowrpc.com",
|
|
207
|
-
FANTOM: "https://fantom.publicnode.com",
|
|
208
|
-
FUSE: "https://rpc.fuse.io",
|
|
209
|
-
FUSESPARK: "https://rpc.fusespark.io",
|
|
210
|
-
MANTA: "https://1rpc.io/manta",
|
|
211
|
-
"MANTA-TESTNET": "https://manta-testnet.calderachain.xyz/http",
|
|
212
|
-
METIS: "https://metis-pokt.nodies.app",
|
|
213
|
-
"METIS-TESTNET": "https://goerli.gateway.metisdevops.link",
|
|
214
|
-
MANTLE: "https://rpc.mantle.xyz",
|
|
215
|
-
"MANTLE-TESTNET": "https://rpc.testnet.mantle.xyz",
|
|
216
|
-
[chains_1.zkLink]: "https://rpc.zklink.io",
|
|
217
|
-
[chains_1.zkLinkTestnet]: "https://goerli.rpc.zklink.io",
|
|
218
|
-
[chains_1.bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
|
|
219
|
-
[chains_1.bitlayerMainnet]: "https://rpc.bitlayer.org",
|
|
220
|
-
[chains_1.neoxTestnet]: "https://neoxseed1.ngd.network",
|
|
221
|
-
[chains_1.vanarTestnet]: "http://rpc-partners-vanguard.vanarchain.com", // "https://rpc-vanguard.vanarchain.com",
|
|
222
|
-
[chains_1.skaleTestnet]: "https://testnet.skalenodes.com/v1/giant-half-dual-testnet",
|
|
223
|
-
};
|
|
224
|
-
exports.chainNameToChainId = {
|
|
225
|
-
MUMBAI: 80001,
|
|
226
|
-
[chains_1.polygonAmoy]: 80002,
|
|
227
|
-
[chains_1.sepolia]: 11155111,
|
|
228
|
-
POLYGON: 137,
|
|
229
|
-
ETH: 1,
|
|
230
|
-
AVALANCHE: 43114,
|
|
231
|
-
ARBITRUM: 42161,
|
|
232
|
-
BINANCE: 56,
|
|
233
|
-
OPTIMISM: 10,
|
|
234
|
-
FANTOM: 250,
|
|
235
|
-
FUSE: 122,
|
|
236
|
-
FUSESPARK: 123,
|
|
237
|
-
MANTA: 169,
|
|
238
|
-
"MANTA-TESTNET": 3441005,
|
|
239
|
-
METIS: 1088,
|
|
240
|
-
"METIS-TESTNET": 599,
|
|
241
|
-
MANTLE: 5000,
|
|
242
|
-
"MANTLE-TESTNET": 5001,
|
|
243
|
-
[chains_1.zkLink]: 810180,
|
|
244
|
-
[chains_1.zkLinkTestnet]: 810182,
|
|
245
|
-
[chains_1.bitlayerTestnet]: 200810,
|
|
246
|
-
[chains_1.bitlayerMainnet]: 200901,
|
|
247
|
-
[chains_1.neoxTestnet]: 12227330,
|
|
248
|
-
[chains_1.vanarTestnet]: 78600,
|
|
249
|
-
[chains_1.skaleTestnet]: 974399131,
|
|
250
|
-
};
|
|
251
|
-
exports.chainIdToChainName = {
|
|
252
|
-
11155111: chains_1.sepolia,
|
|
253
|
-
80001: "MUMBAI",
|
|
254
|
-
80002: chains_1.polygonAmoy,
|
|
255
|
-
137: "POLYGON",
|
|
256
|
-
1: "ETH",
|
|
257
|
-
43114: "AVALANCHE",
|
|
258
|
-
42161: "ARBITRUM",
|
|
259
|
-
56: "BINANCE",
|
|
260
|
-
10: "OPTIMISM",
|
|
261
|
-
250: "FANTOM",
|
|
262
|
-
122: "FUSE",
|
|
263
|
-
123: "FUSESPARK",
|
|
264
|
-
5000: "MANTLE",
|
|
265
|
-
5001: "MANTLE-TESTNET",
|
|
266
|
-
1088: "METIS",
|
|
267
|
-
599: "METIS-TESTNET",
|
|
268
|
-
169: "MANTA",
|
|
269
|
-
3441005: "MANTA-TESTNET",
|
|
270
|
-
810180: chains_1.zkLink,
|
|
271
|
-
810182: chains_1.zkLinkTestnet,
|
|
272
|
-
200810: chains_1.bitlayerTestnet,
|
|
273
|
-
200901: chains_1.bitlayerMainnet,
|
|
274
|
-
12227330: chains_1.neoxTestnet,
|
|
275
|
-
78600: chains_1.vanarTestnet,
|
|
276
|
-
974399131: chains_1.skaleTestnet,
|
|
277
|
-
};
|
package/dist/vite.config.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { defineConfig } from "vite";
|
|
3
|
-
// import dts from "vite-plugin-dts";
|
|
4
|
-
// // import visualizer from "rollup-plugin-visualizer";
|
|
5
|
-
// export default defineConfig({
|
|
6
|
-
// build: {
|
|
7
|
-
// // Specify the entry point for your library
|
|
8
|
-
// lib: {
|
|
9
|
-
// entry: "index.ts", // Change this to your library's entry point
|
|
10
|
-
// formats: ["es"], // Specify the format as ES module
|
|
11
|
-
// },
|
|
12
|
-
// // Optionally, specify external dependencies that should not be bundled
|
|
13
|
-
// rollupOptions: {
|
|
14
|
-
// output: {
|
|
15
|
-
// preserveModules: true,
|
|
16
|
-
// },
|
|
17
|
-
// },
|
|
18
|
-
// },
|
|
19
|
-
// plugins: [
|
|
20
|
-
// dts(),
|
|
21
|
-
// // visualizer({ open: true, filename: "bundle-analysis.html" }),
|
|
22
|
-
// ],
|
|
23
|
-
// });
|