@tria-sdk/constants 1.0.49 → 1.0.51

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @tria-sdk/constants@1.0.46 build /Users/dawn/Projects/Tria/tria-monorepo/packages/constants
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
  The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
@@ -8,11 +8,11 @@
8
8
  transforming (1) index.ts✓ 5 modules transformed.
9
9
  rendering chunks (1)...rendering chunks (2)...rendering chunks (3)...rendering chunks (4)...rendering chunks (5)...
10
10
  [vite:dts] Start generate declaration files...
11
- computing gzip size (0)...computing gzip size (1)...computing gzip size (2)...computing gzip size (3)...computing gzip size (4)...computing gzip size (5)...dist/constants2.mjs  0.39 kB │ gzip: 0.24 kB
11
+ computing gzip size (0)...computing gzip size (1)...computing gzip size (2)...computing gzip size (3)...computing gzip size (4)...computing gzip size (5)...dist/constants2.mjs  0.47 kB │ gzip: 0.27 kB
12
12
  dist/constants5.mjs  0.83 kB │ gzip: 0.42 kB
13
- dist/constants.mjs  1.80 kB │ gzip: 0.69 kB
14
- dist/constants4.mjs  7.75 kB │ gzip: 2.06 kB
15
- dist/constants3.mjs 18.43 kB │ gzip: 2.68 kB
16
- [vite:dts] Declaration files built in 771ms.
13
+ dist/constants.mjs  1.95 kB │ gzip: 0.75 kB
14
+ dist/constants4.mjs  8.14 kB │ gzip: 2.16 kB
15
+ dist/constants3.mjs 13.37 kB │ gzip: 2.27 kB
16
+ [vite:dts] Declaration files built in 448ms.
17
17
  
18
- ✓ built in 842ms
18
+ ✓ built in 491ms
@@ -1,18 +1,18 @@
1
- const b = "MUMBAI", S = "POLYGON", s = "ETH", i = "FUSE", g = "FUSESPARK", p = "ZKLINK-NOVA", T = "ZKLINK-NOVA-TESTNET", n = "BITLAYER-TESTNET", M = "BITLAYER-MAINNET", N = "NEOX-TESTNET", t = "SEPOLIA", E = "AMOY", o = "VANGUARD-VANAR-TESTNET", A = "SKALE-TESTNET", l = [
2
- t,
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
- T,
8
+ t,
9
9
  n,
10
10
  N,
11
- t,
11
+ T,
12
12
  E,
13
- o,
14
- A
15
- ], c = [
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
- t,
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
- T,
34
+ t,
35
35
  n,
36
36
  M,
37
37
  N,
38
- t,
38
+ T,
39
39
  E,
40
- o,
41
- A
42
- ], $ = [t, "POLYGON"], w = [
40
+ A,
41
+ o
42
+ ], c = [T, "POLYGON"], w = [
43
43
  // "ETH",
44
44
  "POLYGON",
45
- t,
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
- t,
53
+ T,
54
54
  "OPTIMISM",
55
55
  "ARBITRUM",
56
56
  "AVALANCHE",
57
57
  "MANTLE"
58
- ], m = [
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
- t,
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
- T,
78
+ t,
79
79
  n,
80
80
  M,
81
81
  N,
82
- t,
82
+ T,
83
83
  E,
84
- o,
85
- A
86
- ], e = "https://static.tria.so/chain-logo-w", a = "https://static.tria.so/chain-logo-b", I = [
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: t,
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: T,
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: o,
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: A,
219
- logo: "https://docs.skale.network/_/img/Skale_Logo_Black.png",
218
+ chainName: o,
219
+ logo: `${e}/skale.webp`,
220
220
  type: "testnet"
221
221
  }
222
222
  ], r = {
223
223
  ETH: `${e}/Ethereum.webp`,
224
- [t]: `${e}/Ethereum.webp`,
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
- [T]: `${e}/zklink.webp`,
244
+ [t]: `${e}/zklink.webp`,
245
245
  [n]: `${e}/bitlayer.webp`,
246
246
  [M]: `${e}/bitlayer.webp`,
247
247
  [N]: `${e}/Neo.webp`,
248
- [o]: "https://vanguard.vanarchain.com/assets/vanry-logo.png",
248
+ [A]: "https://vanguard.vanarchain.com/assets/vanry-logo.png",
249
249
  //`${baseLogoUrl}/Vanguard.webp`,
250
- [A]: "https://docs.skale.network/_/img/Skale_Logo_Black.png"
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
- }, h = {
277
+ }, O = {
278
278
  ETH: `${a}/Ethereum.webp`,
279
- [t]: `${a}/Ethereum.webp`,
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
- [T]: `${a}/zklink.webp`,
299
+ [t]: `${a}/zklink.webp`,
300
300
  [n]: `${a}/bitlayer.webp`,
301
301
  [M]: `${a}/bitlayer.webp`,
302
302
  [N]: `${a}/Neo.png`,
303
- [o]: "https://vanguard.vanarchain.com/assets/vanry-logo.png",
303
+ [A]: "https://vanguard.vanarchain.com/assets/vanry-logo.png",
304
304
  //`${baseLogoUrlBlack}/Vanguard.png`,
305
- [A]: "https://docs.skale.network/_/img/Skale_Logo_Black.png"
305
+ [o]: `${a}/skale.webp`
306
306
  };
307
307
  export {
308
308
  w as AA_SUPPORTED_EVM_CHAINS,
309
- m as ALLCHAINS,
310
- $ as GAS_ABS_ENABLED_CHAINS,
311
- c as SUPPORTED_EVM_CHAINS,
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
- h as chainNameToLogoBlack,
318
- s as ethereum,
319
- i as fuse,
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
- I as networks,
323
+ m as networks,
324
324
  S as polygon,
325
325
  E as polygonAmoy,
326
- t as sepolia,
327
- A as skaleTestnet,
328
- o as vanarTestnet,
326
+ T as sepolia,
327
+ o as skaleTestnet,
328
+ A as vanarTestnet,
329
329
  p as zkLink,
330
- T as zkLinkTestnet
330
+ t as zkLinkTestnet
331
331
  };
@@ -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 p, vanarTestnet as c, skaleTestnet as T } from "./constants3.mjs";
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
- [p]: "https://xt2scan.ngd.network",
30
- [c]: "https://explorer-vanguard.vanarchain.com",
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
- }, i = {
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
- [p]: {
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
- [c]: {
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://docs.skale.network/_/img/Skale_Logo_Black.png"
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
- [p]: "https://neoxseed1.ngd.network",
217
- [c]: "http://rpc-partners-vanguard.vanarchain.com",
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
- [p]: 12227330,
244
- [c]: 78600,
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: p,
270
- 78600: c,
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
- i as txnBaseUrl
279
+ m as txnBaseUrl
280
280
  };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './src/config';
2
- export * from './src/chains';
3
- export * from './src/txn';
4
- export * from './src/connect';
1
+ export * from "./src/config";
2
+ export * from "./src/chains";
3
+ export * from "./src/txn";
4
+ export * from "./src/connect";
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
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";
@@ -15,6 +15,7 @@ export declare const skaleTestnet: string;
15
15
  export type ZKLINK = "ZKLINK-NOVA";
16
16
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
17
17
  export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
18
+ export type BITLAYER_MAINNET = "BITLAYER-MAINNET";
18
19
  export type NEOX_TESTNET = "NEOX-TESTNET";
19
20
  export type SEPOLIA = "SEPOLIA";
20
21
  export type AMOY = "AMOY";
@@ -0,0 +1,330 @@
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
+ };
@@ -0,0 +1,25 @@
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;
@@ -0,0 +1,29 @@
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];
@@ -0,0 +1,13 @@
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
+ // };
@@ -0,0 +1,277 @@
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
+ };
@@ -1,2 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;
@@ -0,0 +1,23 @@
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
+ // });
package/package.json CHANGED
@@ -1,21 +1,18 @@
1
1
  {
2
2
  "name": "@tria-sdk/constants",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "",
5
- "module": "dist/constants.mjs",
5
+ "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "devDependencies": {
8
8
  "typescript": "^5.3.3",
9
- "typescript-tools": "^0.3.1",
10
- "vite": "^5.1.4",
11
- "vite-plugin-dts": "^3.7.3"
9
+ "typescript-tools": "^0.3.1"
12
10
  },
13
11
  "keywords": [],
14
12
  "author": "",
15
13
  "license": "ISC",
16
14
  "scripts": {
17
15
  "test": "echo \"Error: no test specified\" && exit 1",
18
- "rollup": "rollup -c",
19
- "build": "tsc && vite build"
16
+ "build": "tsc --project tsconfig.json"
20
17
  }
21
18
  }
package/src/chains.ts CHANGED
@@ -17,6 +17,7 @@ export const skaleTestnet: string = "SKALE-TESTNET";
17
17
  export type ZKLINK = "ZKLINK-NOVA";
18
18
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
19
19
  export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
20
+ export type BITLAYER_MAINNET = "BITLAYER-MAINNET";
20
21
  export type NEOX_TESTNET = "NEOX-TESTNET";
21
22
  export type SEPOLIA = "SEPOLIA";
22
23
  export type AMOY = "AMOY";
@@ -253,7 +254,7 @@ export const networks = [
253
254
  },
254
255
  {
255
256
  chainName: skaleTestnet,
256
- logo: "https://docs.skale.network/_/img/Skale_Logo_Black.png",
257
+ logo: `${baseLogoUrl}/skale.webp`,
257
258
  type: "testnet",
258
259
  },
259
260
  ];
@@ -285,7 +286,7 @@ export const chainNameToLogo = {
285
286
  [bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
286
287
  [neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
287
288
  [vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
288
- [skaleTestnet]: "https://docs.skale.network/_/img/Skale_Logo_Black.png",
289
+ [skaleTestnet]: `${baseLogoUrl}/skale.webp`,
289
290
  };
290
291
  export const chainNameToLogoAverageColor = {
291
292
  ETH: "rgba(98,126,235,0.7)",
@@ -342,5 +343,5 @@ export const chainNameToLogoBlack = {
342
343
  [bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
343
344
  [neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
344
345
  [vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
345
- [skaleTestnet]: "https://docs.skale.network/_/img/Skale_Logo_Black.png",
346
+ [skaleTestnet]: `${baseLogoUrlBlack}/skale.webp`,
346
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: "https://docs.skale.network/_/img/Skale_Logo_Black.png",
213
+ logoUrl:
214
+ "https://assets.coingecko.com/coins/images/13564/standard/SFUEL.png?1696513318",
214
215
  },
215
216
  };
216
217
 
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ES2022",
3
+ "target": "ES6",
4
4
  "module": "CommonJS",
5
5
  "lib": ["ES2022"],
6
6
  "skipLibCheck": true,
package/vite.config.ts CHANGED
@@ -1,23 +1,23 @@
1
- import { defineConfig } from "vite";
2
- import dts from "vite-plugin-dts";
3
- // import visualizer from "rollup-plugin-visualizer";
1
+ // import { defineConfig } from "vite";
2
+ // import dts from "vite-plugin-dts";
3
+ // // import visualizer from "rollup-plugin-visualizer";
4
4
 
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
- });
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
+ // });