@tria-sdk/constants 1.0.50 → 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/.turbo/turbo-build.log +7 -7
- package/dist/constants3.mjs +47 -47
- package/dist/constants4.mjs +15 -15
- package/package.json +1 -1
- package/src/chains.ts +3 -3
- package/src/txn.ts +2 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @tria-sdk/constants@1.0.
|
|
3
|
+
> @tria-sdk/constants@1.0.50 build /Users/dawn/Projects/Tria/tria-monorepo/packages/constants
|
|
4
4
|
> tsc && vite build
|
|
5
5
|
|
|
6
6
|
[33mThe CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.[39m
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[2K[1Gtransforming (1) [2mindex.ts[22m[2K[1G[32m✓[39m 5 modules transformed.
|
|
9
9
|
[2K[1Grendering chunks (1)...[2K[1Grendering chunks (2)...[2K[1Grendering chunks (3)...[2K[1Grendering chunks (4)...[2K[1Grendering chunks (5)...[2K[1G[32m
|
|
10
10
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
11
|
-
[2K[1Gcomputing gzip size (0)...[2K[1Gcomputing gzip size (1)...[2K[1Gcomputing gzip size (2)...[2K[1Gcomputing gzip size (3)...[2K[1Gcomputing gzip size (4)...[2K[1Gcomputing gzip size (5)...[2K[1G[2mdist/[22m[36mconstants2.mjs [39m[1m[2m 0.
|
|
11
|
+
[2K[1Gcomputing gzip size (0)...[2K[1Gcomputing gzip size (1)...[2K[1Gcomputing gzip size (2)...[2K[1Gcomputing gzip size (3)...[2K[1Gcomputing gzip size (4)...[2K[1Gcomputing gzip size (5)...[2K[1G[2mdist/[22m[36mconstants2.mjs [39m[1m[2m 0.47 kB[22m[1m[22m[2m │ gzip: 0.27 kB[22m
|
|
12
12
|
[2mdist/[22m[36mconstants5.mjs [39m[1m[2m 0.83 kB[22m[1m[22m[2m │ gzip: 0.42 kB[22m
|
|
13
|
-
[2mdist/[22m[36mconstants.mjs [39m[1m[2m 1.
|
|
14
|
-
[2mdist/[22m[36mconstants4.mjs [39m[1m[2m
|
|
15
|
-
[2mdist/[22m[36mconstants3.mjs [39m[1m[
|
|
16
|
-
[32m[36m[vite:dts][32m Declaration files built in
|
|
13
|
+
[2mdist/[22m[36mconstants.mjs [39m[1m[2m 1.95 kB[22m[1m[22m[2m │ gzip: 0.75 kB[22m
|
|
14
|
+
[2mdist/[22m[36mconstants4.mjs [39m[1m[2m 8.14 kB[22m[1m[22m[2m │ gzip: 2.16 kB[22m
|
|
15
|
+
[2mdist/[22m[36mconstants3.mjs [39m[1m[2m13.37 kB[22m[1m[22m[2m │ gzip: 2.27 kB[22m
|
|
16
|
+
[32m[36m[vite:dts][32m Declaration files built in 448ms.
|
|
17
17
|
[39m
|
|
18
|
-
[32m✓ built in
|
|
18
|
+
[32m✓ built in 491ms[39m
|
package/dist/constants3.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const b = "MUMBAI", S = "POLYGON",
|
|
2
|
-
|
|
1
|
+
const b = "MUMBAI", S = "POLYGON", i = "ETH", s = "FUSE", g = "FUSESPARK", p = "ZKLINK-NOVA", t = "ZKLINK-NOVA-TESTNET", n = "BITLAYER-TESTNET", M = "BITLAYER-MAINNET", N = "NEOX-TESTNET", T = "SEPOLIA", E = "AMOY", A = "VANGUARD-VANAR-TESTNET", o = "SKALE-TESTNET", l = [
|
|
2
|
+
T,
|
|
3
3
|
"MUMBAI",
|
|
4
4
|
"FUSESPARK",
|
|
5
5
|
"MANTA-TESTNET",
|
|
6
6
|
"METIS-TESTNET",
|
|
7
7
|
"MANTLE-TESTNET",
|
|
8
|
-
|
|
8
|
+
t,
|
|
9
9
|
n,
|
|
10
10
|
N,
|
|
11
|
-
|
|
11
|
+
T,
|
|
12
12
|
E,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
],
|
|
13
|
+
A,
|
|
14
|
+
o
|
|
15
|
+
], $ = [
|
|
16
16
|
"ETH",
|
|
17
17
|
"POLYGON",
|
|
18
18
|
"AVALANCHE",
|
|
@@ -23,7 +23,7 @@ const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "
|
|
|
23
23
|
"FUSE",
|
|
24
24
|
"FUSESPARK",
|
|
25
25
|
"MUMBAI",
|
|
26
|
-
|
|
26
|
+
T,
|
|
27
27
|
"MANTA",
|
|
28
28
|
"MANTA-TESTNET",
|
|
29
29
|
"METIS",
|
|
@@ -31,18 +31,18 @@ const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "
|
|
|
31
31
|
"MANTLE",
|
|
32
32
|
"MANTLE-TESTNET",
|
|
33
33
|
p,
|
|
34
|
-
|
|
34
|
+
t,
|
|
35
35
|
n,
|
|
36
36
|
M,
|
|
37
37
|
N,
|
|
38
|
-
|
|
38
|
+
T,
|
|
39
39
|
E,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
],
|
|
40
|
+
A,
|
|
41
|
+
o
|
|
42
|
+
], c = [T, "POLYGON"], w = [
|
|
43
43
|
// "ETH",
|
|
44
44
|
"POLYGON",
|
|
45
|
-
|
|
45
|
+
T,
|
|
46
46
|
// "AVALANCHE",
|
|
47
47
|
// "ARBITRUM",
|
|
48
48
|
// "BINANCE",
|
|
@@ -50,12 +50,12 @@ const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "
|
|
|
50
50
|
"FUSE",
|
|
51
51
|
"MUMBAI",
|
|
52
52
|
// "MANTLE",
|
|
53
|
-
|
|
53
|
+
T,
|
|
54
54
|
"OPTIMISM",
|
|
55
55
|
"ARBITRUM",
|
|
56
56
|
"AVALANCHE",
|
|
57
57
|
"MANTLE"
|
|
58
|
-
],
|
|
58
|
+
], I = [
|
|
59
59
|
"ETH",
|
|
60
60
|
"POLYGON",
|
|
61
61
|
"AVALANCHE",
|
|
@@ -66,7 +66,7 @@ const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "
|
|
|
66
66
|
"FUSE",
|
|
67
67
|
"FUSESPARK",
|
|
68
68
|
"MUMBAI",
|
|
69
|
-
|
|
69
|
+
T,
|
|
70
70
|
"MANTA",
|
|
71
71
|
"MANTA-TESTNET",
|
|
72
72
|
"METIS",
|
|
@@ -75,22 +75,22 @@ const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "
|
|
|
75
75
|
"MANTLE-TESTNET",
|
|
76
76
|
"SOLANA",
|
|
77
77
|
p,
|
|
78
|
-
|
|
78
|
+
t,
|
|
79
79
|
n,
|
|
80
80
|
M,
|
|
81
81
|
N,
|
|
82
|
-
|
|
82
|
+
T,
|
|
83
83
|
E,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
], e = "https://static.tria.so/chain-logo-w", a = "https://static.tria.so/chain-logo-b",
|
|
84
|
+
A,
|
|
85
|
+
o
|
|
86
|
+
], e = "https://static.tria.so/chain-logo-w", a = "https://static.tria.so/chain-logo-b", m = [
|
|
87
87
|
{
|
|
88
88
|
chainName: "ETH",
|
|
89
89
|
logo: `${e}/Ethereum.webp`,
|
|
90
90
|
type: "mainnet"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
chainName:
|
|
93
|
+
chainName: T,
|
|
94
94
|
logo: `${e}/Ethereum.webp`,
|
|
95
95
|
type: "testnet"
|
|
96
96
|
},
|
|
@@ -189,7 +189,7 @@ const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "
|
|
|
189
189
|
type: "mainnet"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
chainName:
|
|
192
|
+
chainName: t,
|
|
193
193
|
logo: `${e}/zklink.webp`,
|
|
194
194
|
type: "testnet"
|
|
195
195
|
},
|
|
@@ -209,19 +209,19 @@ const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "
|
|
|
209
209
|
type: "testnet"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
|
-
chainName:
|
|
212
|
+
chainName: A,
|
|
213
213
|
logo: "https://vanguard.vanarchain.com/assets/vanry-logo.png",
|
|
214
214
|
//`${baseLogoUrl}/Vanguard.webp`,
|
|
215
215
|
type: "testnet"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
chainName:
|
|
219
|
-
logo:
|
|
218
|
+
chainName: o,
|
|
219
|
+
logo: `${e}/skale.webp`,
|
|
220
220
|
type: "testnet"
|
|
221
221
|
}
|
|
222
222
|
], r = {
|
|
223
223
|
ETH: `${e}/Ethereum.webp`,
|
|
224
|
-
[
|
|
224
|
+
[T]: `${e}/Ethereum.webp`,
|
|
225
225
|
FANTOM: `${e}/Fantom.webp`,
|
|
226
226
|
POLYGON: `${e}/Polygon.webp`,
|
|
227
227
|
[E]: `${e}/Polygon.webp`,
|
|
@@ -241,13 +241,13 @@ const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "
|
|
|
241
241
|
"MANTLE-TESTNET": `${e}/Mantle.webp`,
|
|
242
242
|
SOLANA: `${e}/Solana.webp`,
|
|
243
243
|
[p]: `${e}/zklink.webp`,
|
|
244
|
-
[
|
|
244
|
+
[t]: `${e}/zklink.webp`,
|
|
245
245
|
[n]: `${e}/bitlayer.webp`,
|
|
246
246
|
[M]: `${e}/bitlayer.webp`,
|
|
247
247
|
[N]: `${e}/Neo.webp`,
|
|
248
|
-
[
|
|
248
|
+
[A]: "https://vanguard.vanarchain.com/assets/vanry-logo.png",
|
|
249
249
|
//`${baseLogoUrl}/Vanguard.webp`,
|
|
250
|
-
[
|
|
250
|
+
[o]: `${e}/skale.webp`
|
|
251
251
|
}, L = {
|
|
252
252
|
ETH: "rgba(98,126,235,0.7)",
|
|
253
253
|
POLYGON: "rgba(131,69,231,0.7)",
|
|
@@ -274,9 +274,9 @@ const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "
|
|
|
274
274
|
"NEOX-TESTNET": "rgba(1,229,155,0.7)",
|
|
275
275
|
"VANGUARD-VANAR-TESTNET": "rgba(0,255,255,0.7)",
|
|
276
276
|
BINANCE: "rgba(240,185,11,0.7)"
|
|
277
|
-
},
|
|
277
|
+
}, O = {
|
|
278
278
|
ETH: `${a}/Ethereum.webp`,
|
|
279
|
-
[
|
|
279
|
+
[T]: `${a}/Ethereum.webp`,
|
|
280
280
|
BINANCE: `${a}/binance.svg`,
|
|
281
281
|
FANTOM: `${a}/Fantom.webp`,
|
|
282
282
|
POLYGON: `${a}/Polygon.webp`,
|
|
@@ -296,36 +296,36 @@ const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "
|
|
|
296
296
|
"MANTLE-TESTNET": `${a}/Mantle.webp`,
|
|
297
297
|
SOLANA: `${a}/Solana.webp`,
|
|
298
298
|
[p]: `${a}/zklink.webp`,
|
|
299
|
-
[
|
|
299
|
+
[t]: `${a}/zklink.webp`,
|
|
300
300
|
[n]: `${a}/bitlayer.webp`,
|
|
301
301
|
[M]: `${a}/bitlayer.webp`,
|
|
302
302
|
[N]: `${a}/Neo.png`,
|
|
303
|
-
[
|
|
303
|
+
[A]: "https://vanguard.vanarchain.com/assets/vanry-logo.png",
|
|
304
304
|
//`${baseLogoUrlBlack}/Vanguard.png`,
|
|
305
|
-
[
|
|
305
|
+
[o]: `${a}/skale.webp`
|
|
306
306
|
};
|
|
307
307
|
export {
|
|
308
308
|
w as AA_SUPPORTED_EVM_CHAINS,
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
I as ALLCHAINS,
|
|
310
|
+
c as GAS_ABS_ENABLED_CHAINS,
|
|
311
|
+
$ as SUPPORTED_EVM_CHAINS,
|
|
312
312
|
l as TESTNET_CHAINS,
|
|
313
313
|
M as bitlayerMainnet,
|
|
314
314
|
n as bitlayerTestnet,
|
|
315
315
|
r as chainNameToLogo,
|
|
316
316
|
L as chainNameToLogoAverageColor,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
317
|
+
O as chainNameToLogoBlack,
|
|
318
|
+
i as ethereum,
|
|
319
|
+
s as fuse,
|
|
320
320
|
g as fuseSpark,
|
|
321
321
|
b as mumbai,
|
|
322
322
|
N as neoxTestnet,
|
|
323
|
-
|
|
323
|
+
m as networks,
|
|
324
324
|
S as polygon,
|
|
325
325
|
E as polygonAmoy,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
T as sepolia,
|
|
327
|
+
o as skaleTestnet,
|
|
328
|
+
A as vanarTestnet,
|
|
329
329
|
p as zkLink,
|
|
330
|
-
|
|
330
|
+
t as zkLinkTestnet
|
|
331
331
|
};
|
package/dist/constants4.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sepolia as o, polygonAmoy as s, zkLink as a, zkLinkTestnet as e, bitlayerTestnet as n, bitlayerMainnet as l, neoxTestnet as
|
|
1
|
+
import { sepolia as o, polygonAmoy as s, zkLink as a, zkLinkTestnet as e, bitlayerTestnet as n, bitlayerMainnet as l, neoxTestnet as c, vanarTestnet as p, skaleTestnet as T } from "./constants3.mjs";
|
|
2
2
|
const t = {
|
|
3
3
|
ETH: "https://etherscan.io",
|
|
4
4
|
[o]: "https://sepolia.etherscan.io",
|
|
@@ -26,10 +26,10 @@ const t = {
|
|
|
26
26
|
[e]: "https://goerli.explorer.zklink.io",
|
|
27
27
|
[n]: "https://testnet-scan.bitlayer.org/en-us",
|
|
28
28
|
[l]: "https://www.btrscan.com",
|
|
29
|
-
[
|
|
30
|
-
[
|
|
29
|
+
[c]: "https://xt2scan.ngd.network",
|
|
30
|
+
[p]: "https://explorer-vanguard.vanarchain.com",
|
|
31
31
|
[T]: "https://giant-half-dual-testnet.explorer.testnet.skalenodes.com"
|
|
32
|
-
},
|
|
32
|
+
}, m = {
|
|
33
33
|
ETH: `${t.ETH}/tx`,
|
|
34
34
|
// /txHash
|
|
35
35
|
[o]: `${t[o]}/tx`,
|
|
@@ -53,8 +53,8 @@ const t = {
|
|
|
53
53
|
[e]: `${t[e]}/tx`,
|
|
54
54
|
[n]: `${t[n]}/tx`,
|
|
55
55
|
[l]: `${t[l]}/tx`,
|
|
56
|
-
[p]: `${t[p]}/tx`,
|
|
57
56
|
[c]: `${t[c]}/tx`,
|
|
57
|
+
[p]: `${t[p]}/tx`,
|
|
58
58
|
[T]: `${t[T]}/tx`
|
|
59
59
|
}, h = {
|
|
60
60
|
ETH: {
|
|
@@ -172,12 +172,12 @@ const t = {
|
|
|
172
172
|
symbol: "BTC",
|
|
173
173
|
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp"
|
|
174
174
|
},
|
|
175
|
-
[
|
|
175
|
+
[c]: {
|
|
176
176
|
name: "Gas",
|
|
177
177
|
symbol: "GAS",
|
|
178
178
|
logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992"
|
|
179
179
|
},
|
|
180
|
-
[
|
|
180
|
+
[p]: {
|
|
181
181
|
name: "Vanry",
|
|
182
182
|
symbol: "VG",
|
|
183
183
|
logoUrl: "https://explorer-vanguard.vanarchain.com/assets/network_icon_dark.svg"
|
|
@@ -185,7 +185,7 @@ const t = {
|
|
|
185
185
|
[T]: {
|
|
186
186
|
name: "sFUEL",
|
|
187
187
|
symbol: "sFUEL",
|
|
188
|
-
logoUrl: "https://
|
|
188
|
+
logoUrl: "https://assets.coingecko.com/coins/images/13564/standard/SFUEL.png?1696513318"
|
|
189
189
|
}
|
|
190
190
|
}, r = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z", E = {
|
|
191
191
|
MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${r}`,
|
|
@@ -213,8 +213,8 @@ const t = {
|
|
|
213
213
|
[e]: "https://goerli.rpc.zklink.io",
|
|
214
214
|
[n]: "https://testnet-rpc.bitlayer.org",
|
|
215
215
|
[l]: "https://rpc.bitlayer.org",
|
|
216
|
-
[
|
|
217
|
-
[
|
|
216
|
+
[c]: "https://neoxseed1.ngd.network",
|
|
217
|
+
[p]: "http://rpc-partners-vanguard.vanarchain.com",
|
|
218
218
|
// "https://rpc-vanguard.vanarchain.com",
|
|
219
219
|
[T]: "https://testnet.skalenodes.com/v1/giant-half-dual-testnet"
|
|
220
220
|
}, A = {
|
|
@@ -240,8 +240,8 @@ const t = {
|
|
|
240
240
|
[e]: 810182,
|
|
241
241
|
[n]: 200810,
|
|
242
242
|
[l]: 200901,
|
|
243
|
-
[
|
|
244
|
-
[
|
|
243
|
+
[c]: 12227330,
|
|
244
|
+
[p]: 78600,
|
|
245
245
|
[T]: 974399131
|
|
246
246
|
}, M = {
|
|
247
247
|
11155111: o,
|
|
@@ -266,8 +266,8 @@ const t = {
|
|
|
266
266
|
810182: e,
|
|
267
267
|
200810: n,
|
|
268
268
|
200901: l,
|
|
269
|
-
12227330:
|
|
270
|
-
78600:
|
|
269
|
+
12227330: c,
|
|
270
|
+
78600: p,
|
|
271
271
|
974399131: T
|
|
272
272
|
};
|
|
273
273
|
export {
|
|
@@ -276,5 +276,5 @@ export {
|
|
|
276
276
|
t as explorerBaseUrls,
|
|
277
277
|
h as nativeTokenDetails,
|
|
278
278
|
E as rpcUrls,
|
|
279
|
-
|
|
279
|
+
m as txnBaseUrl
|
|
280
280
|
};
|
package/package.json
CHANGED
package/src/chains.ts
CHANGED
|
@@ -254,7 +254,7 @@ export const networks = [
|
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
chainName: skaleTestnet,
|
|
257
|
-
logo:
|
|
257
|
+
logo: `${baseLogoUrl}/skale.webp`,
|
|
258
258
|
type: "testnet",
|
|
259
259
|
},
|
|
260
260
|
];
|
|
@@ -286,7 +286,7 @@ export const chainNameToLogo = {
|
|
|
286
286
|
[bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
287
287
|
[neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
288
288
|
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
289
|
-
[skaleTestnet]:
|
|
289
|
+
[skaleTestnet]: `${baseLogoUrl}/skale.webp`,
|
|
290
290
|
};
|
|
291
291
|
export const chainNameToLogoAverageColor = {
|
|
292
292
|
ETH: "rgba(98,126,235,0.7)",
|
|
@@ -343,5 +343,5 @@ export const chainNameToLogoBlack = {
|
|
|
343
343
|
[bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
344
344
|
[neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
345
345
|
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
|
|
346
|
-
[skaleTestnet]:
|
|
346
|
+
[skaleTestnet]: `${baseLogoUrlBlack}/skale.webp`,
|
|
347
347
|
};
|
package/src/txn.ts
CHANGED
|
@@ -210,7 +210,8 @@ export const nativeTokenDetails = {
|
|
|
210
210
|
[skaleTestnet]: {
|
|
211
211
|
name: "sFUEL",
|
|
212
212
|
symbol: "sFUEL",
|
|
213
|
-
logoUrl:
|
|
213
|
+
logoUrl:
|
|
214
|
+
"https://assets.coingecko.com/coins/images/13564/standard/SFUEL.png?1696513318",
|
|
214
215
|
},
|
|
215
216
|
};
|
|
216
217
|
|