@tria-sdk/constants 1.0.51 → 1.0.60

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/tsconfig.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ES6",
4
- "module": "CommonJS",
5
- "lib": ["ES2022"],
3
+ "target": "ES2022",
4
+ "module": "ES2022",
5
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
6
6
  "skipLibCheck": true,
7
7
  "strict": true,
8
8
  "esModuleInterop": true,
9
9
  "moduleResolution": "node",
10
10
  "outDir": "dist",
11
11
  "resolveJsonModule": true,
12
- // "noImplicitReturns": true,
12
+ "sourceMap": true,
13
13
  "declaration": true
14
14
  },
15
- "include": ["**/*.ts", "**/*.js"],
16
- "exclude": ["tests", "**/*.d.ts", "**/extra.ts"]
15
+
16
+ "include": ["src/**/*"],
17
+ "exclude": ["tests", "**/extra.ts"]
17
18
  }
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
+ });
@@ -1,46 +0,0 @@
1
- import { isAaSupportedChain as o, isChainSupported as n, isEvmChain as t, isGasAbsEnabled as r, isTestnetChain as i, prodApiUrl as s } from "./constants2.mjs";
2
- import { AA_SUPPORTED_EVM_CHAINS as A, ALLCHAINS as p, GAS_ABS_ENABLED_CHAINS as l, SUPPORTED_EVM_CHAINS as E, TESTNET_CHAINS as S, bitlayerMainnet as m, bitlayerTestnet as C, chainNameToLogo as _, chainNameToLogoAverageColor as h, chainNameToLogoBlack as L, ethereum as N, fuse as I, fuseSpark as k, mumbai as c, neoxTestnet as g, networks as u, polygon as x, polygonAmoy as y, sepolia as U, skaleTestnet as d, vanarTestnet as f, zkLink as H, zkLinkTestnet as b } from "./constants3.mjs";
3
- import { chainIdToChainName as B, chainNameToChainId as D, explorerBaseUrls as R, nativeTokenDetails as P, rpcUrls as M, txnBaseUrl as O } from "./constants4.mjs";
4
- import { TRIA_WALLET_SELECTED_CHAIN as G, TRIA_WALLET_STORE as V, eventTypes as W, storageKeys as w, triaAuthUrl as K } from "./constants5.mjs";
5
- export {
6
- A as AA_SUPPORTED_EVM_CHAINS,
7
- p as ALLCHAINS,
8
- l as GAS_ABS_ENABLED_CHAINS,
9
- E as SUPPORTED_EVM_CHAINS,
10
- S as TESTNET_CHAINS,
11
- G as TRIA_WALLET_SELECTED_CHAIN,
12
- V as TRIA_WALLET_STORE,
13
- m as bitlayerMainnet,
14
- C as bitlayerTestnet,
15
- B as chainIdToChainName,
16
- D as chainNameToChainId,
17
- _ as chainNameToLogo,
18
- h as chainNameToLogoAverageColor,
19
- L as chainNameToLogoBlack,
20
- N as ethereum,
21
- W as eventTypes,
22
- R as explorerBaseUrls,
23
- I as fuse,
24
- k as fuseSpark,
25
- o as isAaSupportedChain,
26
- n as isChainSupported,
27
- t as isEvmChain,
28
- r as isGasAbsEnabled,
29
- i as isTestnetChain,
30
- c as mumbai,
31
- P as nativeTokenDetails,
32
- g as neoxTestnet,
33
- u as networks,
34
- x as polygon,
35
- y as polygonAmoy,
36
- s as prodApiUrl,
37
- M as rpcUrls,
38
- U as sepolia,
39
- d as skaleTestnet,
40
- w as storageKeys,
41
- K as triaAuthUrl,
42
- O as txnBaseUrl,
43
- f as vanarTestnet,
44
- H as zkLink,
45
- b as zkLinkTestnet
46
- };
@@ -1,10 +0,0 @@
1
- import { SUPPORTED_EVM_CHAINS as s, AA_SUPPORTED_EVM_CHAINS as t, ALLCHAINS as r, TESTNET_CHAINS as i, GAS_ABS_ENABLED_CHAINS as e } from "./constants3.mjs";
2
- const A = "https://prod.tria.so", u = (n) => s.includes(n), S = (n) => t.includes(n), c = (n) => r.includes(n), d = (n) => i.includes(n), p = (n) => e.includes(n);
3
- export {
4
- S as isAaSupportedChain,
5
- c as isChainSupported,
6
- u as isEvmChain,
7
- p as isGasAbsEnabled,
8
- d as isTestnetChain,
9
- A as prodApiUrl
10
- };
@@ -1,331 +0,0 @@
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
- "MUMBAI",
4
- "FUSESPARK",
5
- "MANTA-TESTNET",
6
- "METIS-TESTNET",
7
- "MANTLE-TESTNET",
8
- t,
9
- n,
10
- N,
11
- T,
12
- E,
13
- A,
14
- o
15
- ], $ = [
16
- "ETH",
17
- "POLYGON",
18
- "AVALANCHE",
19
- "ARBITRUM",
20
- "BINANCE",
21
- "OPTIMISM",
22
- "FANTOM",
23
- "FUSE",
24
- "FUSESPARK",
25
- "MUMBAI",
26
- T,
27
- "MANTA",
28
- "MANTA-TESTNET",
29
- "METIS",
30
- "METIS-TESTNET",
31
- "MANTLE",
32
- "MANTLE-TESTNET",
33
- p,
34
- t,
35
- n,
36
- M,
37
- N,
38
- T,
39
- E,
40
- A,
41
- o
42
- ], c = [T, "POLYGON"], w = [
43
- // "ETH",
44
- "POLYGON",
45
- T,
46
- // "AVALANCHE",
47
- // "ARBITRUM",
48
- // "BINANCE",
49
- // "OPTIMISM",
50
- "FUSE",
51
- "MUMBAI",
52
- // "MANTLE",
53
- T,
54
- "OPTIMISM",
55
- "ARBITRUM",
56
- "AVALANCHE",
57
- "MANTLE"
58
- ], I = [
59
- "ETH",
60
- "POLYGON",
61
- "AVALANCHE",
62
- "ARBITRUM",
63
- "BINANCE",
64
- "OPTIMISM",
65
- "FANTOM",
66
- "FUSE",
67
- "FUSESPARK",
68
- "MUMBAI",
69
- T,
70
- "MANTA",
71
- "MANTA-TESTNET",
72
- "METIS",
73
- "METIS-TESTNET",
74
- "MANTLE",
75
- "MANTLE-TESTNET",
76
- "SOLANA",
77
- p,
78
- t,
79
- n,
80
- M,
81
- N,
82
- T,
83
- E,
84
- A,
85
- o
86
- ], e = "https://static.tria.so/chain-logo-w", a = "https://static.tria.so/chain-logo-b", m = [
87
- {
88
- chainName: "ETH",
89
- logo: `${e}/Ethereum.webp`,
90
- type: "mainnet"
91
- },
92
- {
93
- chainName: T,
94
- logo: `${e}/Ethereum.webp`,
95
- type: "testnet"
96
- },
97
- {
98
- chainName: "FANTOM",
99
- logo: `${e}/Fantom.webp`,
100
- type: "mainnet"
101
- },
102
- {
103
- chainName: "POLYGON",
104
- logo: `${e}/Polygon.svg`,
105
- type: "mainnet"
106
- },
107
- {
108
- chainName: E,
109
- logo: `${e}/Polygon.svg`,
110
- type: "testnet"
111
- },
112
- {
113
- chainName: "AVALANCHE",
114
- logo: `${e}/Avalanche.webp`,
115
- type: "mainnet"
116
- },
117
- {
118
- chainName: "OPTIMISM",
119
- logo: `${e}/Optimism.webp`,
120
- type: "mainnet"
121
- },
122
- {
123
- chainName: "ARBITRUM",
124
- logo: `${e}/Arbitrum.webp`,
125
- type: "mainnet"
126
- },
127
- {
128
- chainName: "FUSE",
129
- logo: `${e}/Fuse.webp`,
130
- type: "mainnet"
131
- },
132
- {
133
- chainName: "FUSESPARK",
134
- logo: `${e}/Fuse.webp`,
135
- type: "testnet"
136
- },
137
- {
138
- chainName: "MUMBAI",
139
- logo: `${e}/Polygon.svg`,
140
- type: "testnet"
141
- },
142
- {
143
- chainName: "BINANCE",
144
- logo: `${e}/Binance.svg`,
145
- type: "mainnet"
146
- },
147
- // {
148
- // chainName: 'LINEA',
149
- // logo: `${baseLogoUrl}/Linea.svg`,
150
- // },
151
- {
152
- chainName: "METIS",
153
- logo: `${e}/Metis.webp`,
154
- type: "mainnet"
155
- },
156
- {
157
- chainName: "METIS-TESTNET",
158
- logo: `${e}/Metis.webp`,
159
- type: "testnet"
160
- },
161
- {
162
- chainName: "MANTA",
163
- logo: `${e}/Manta.webp`,
164
- type: "mainnet"
165
- },
166
- {
167
- chainName: "MANTA-TESTNET",
168
- logo: `${e}/Manta.webp`,
169
- type: "testnet"
170
- },
171
- {
172
- chainName: "MANTLE",
173
- logo: `${e}/Mantle.webp`,
174
- type: "mainnet"
175
- },
176
- {
177
- chainName: "MANTLE-TESTNET",
178
- logo: `${e}/Mantle.webp`,
179
- type: "testnet"
180
- },
181
- {
182
- chainName: "SOLANA",
183
- logo: `${e}/Solana.webp`,
184
- type: "mainnet"
185
- },
186
- {
187
- chainName: p,
188
- logo: `${e}/zklink.webp`,
189
- type: "mainnet"
190
- },
191
- {
192
- chainName: t,
193
- logo: `${e}/zklink.webp`,
194
- type: "testnet"
195
- },
196
- {
197
- chainName: n,
198
- logo: `${e}/bitlayer.webp`,
199
- type: "testnet"
200
- },
201
- {
202
- chainName: M,
203
- logo: `${e}/bitlayer.webp`,
204
- type: "mainnet"
205
- },
206
- {
207
- chainName: N,
208
- logo: `${e}/Neo.webp`,
209
- type: "testnet"
210
- },
211
- {
212
- chainName: A,
213
- logo: "https://vanguard.vanarchain.com/assets/vanry-logo.png",
214
- //`${baseLogoUrl}/Vanguard.webp`,
215
- type: "testnet"
216
- },
217
- {
218
- chainName: o,
219
- logo: `${e}/skale.webp`,
220
- type: "testnet"
221
- }
222
- ], r = {
223
- ETH: `${e}/Ethereum.webp`,
224
- [T]: `${e}/Ethereum.webp`,
225
- FANTOM: `${e}/Fantom.webp`,
226
- POLYGON: `${e}/Polygon.webp`,
227
- [E]: `${e}/Polygon.webp`,
228
- AVALANCHE: `${e}/Avalanche.webp`,
229
- OPTIMISM: `${e}/Optimism.webp`,
230
- ARBITRUM: `${e}/Arbitrum.webp`,
231
- LINEA: `${e}/Linea.webp`,
232
- MUMBAI: `${e}/Polygon.webp`,
233
- FUSE: `${e}/Fuse.webp`,
234
- FUSESPARK: `${e}/Fuse.webp`,
235
- BINANCE: `${e}/Binance.svg`,
236
- MANTA: `${e}/Manta.webp`,
237
- "MANTA-TESTNET": `${e}/Manta.webp`,
238
- METIS: `${e}/Metis.webp`,
239
- "METIS-TESTNET": `${e}/Metis.webp`,
240
- MANTLE: `${e}/Mantle.webp`,
241
- "MANTLE-TESTNET": `${e}/Mantle.webp`,
242
- SOLANA: `${e}/Solana.webp`,
243
- [p]: `${e}/zklink.webp`,
244
- [t]: `${e}/zklink.webp`,
245
- [n]: `${e}/bitlayer.webp`,
246
- [M]: `${e}/bitlayer.webp`,
247
- [N]: `${e}/Neo.webp`,
248
- [A]: "https://vanguard.vanarchain.com/assets/vanry-logo.png",
249
- //`${baseLogoUrl}/Vanguard.webp`,
250
- [o]: `${e}/skale.webp`
251
- }, L = {
252
- ETH: "rgba(98,126,235,0.7)",
253
- POLYGON: "rgba(131,69,231,0.7)",
254
- SEPOLIA: "rgba(98,126,235,0.7)",
255
- FANTOM: "rgba(19,181,235,0.7)",
256
- AMOY: "rgba(131,69,231,0.7)",
257
- AVALANCHE: "rgba(232,65,67,0.7)",
258
- ARBITRUM: "rgba(17,170,255,0.7)",
259
- OPTIMISM: "rgba(255,5,32,0.7)",
260
- LINEA: "UNDETERMINED",
261
- MUMBAI: "rgba(131,69,231,0.7)",
262
- FUSESPARK: "rgba(180,249,185,0.7)",
263
- FUSE: "rgba(180,249,185,0.7)",
264
- MANTA: "rgba(255,0,0,0.7)",
265
- "MANTA-TESTNET": "rgba(255,0,0,0.7)",
266
- "METIS-TESTNET": "rgba(255,0,214,0.7)",
267
- METIS: "rgba(255,0,214,0.7)",
268
- SOLANA: "UNDETERMINED",
269
- "MANTLE-TESTNET": "rgba(255,0,0,0.7)",
270
- MANTLE: "rgba(255,0,0,0.7)",
271
- "BITLAYER-TESTNET": "rgba(226,110,26,0.7)",
272
- "ZKLINK-NOVA": "UNDETERMINED",
273
- "ZKLINK-NOVA-TESTNET": "UNDETERMINED",
274
- "NEOX-TESTNET": "rgba(1,229,155,0.7)",
275
- "VANGUARD-VANAR-TESTNET": "rgba(0,255,255,0.7)",
276
- BINANCE: "rgba(240,185,11,0.7)"
277
- }, O = {
278
- ETH: `${a}/Ethereum.webp`,
279
- [T]: `${a}/Ethereum.webp`,
280
- BINANCE: `${a}/binance.svg`,
281
- FANTOM: `${a}/Fantom.webp`,
282
- POLYGON: `${a}/Polygon.webp`,
283
- [E]: `${a}/Polygon.webp`,
284
- AVALANCHE: `${a}/Avalanche.webp`,
285
- OPTIMISM: `${a}/Optimism.webp`,
286
- ARBITRUM: `${a}/Arbitrum.webp`,
287
- LINEA: `${a}/Linea.webp`,
288
- MUMBAI: `${a}/Polygon.webp`,
289
- FUSE: `${a}/fuse.webp`,
290
- FUSESPARK: `${a}/fuse.webp`,
291
- MANTA: `${a}/Manta.webp`,
292
- "MANTA-TESTNET": `${a}/Manta.webp`,
293
- METIS: `${a}/Metis.webp`,
294
- "METIS-TESTNET": `${a}/Metis.webp`,
295
- MANTLE: `${a}/Mantle.webp`,
296
- "MANTLE-TESTNET": `${a}/Mantle.webp`,
297
- SOLANA: `${a}/Solana.webp`,
298
- [p]: `${a}/zklink.webp`,
299
- [t]: `${a}/zklink.webp`,
300
- [n]: `${a}/bitlayer.webp`,
301
- [M]: `${a}/bitlayer.webp`,
302
- [N]: `${a}/Neo.png`,
303
- [A]: "https://vanguard.vanarchain.com/assets/vanry-logo.png",
304
- //`${baseLogoUrlBlack}/Vanguard.png`,
305
- [o]: `${a}/skale.webp`
306
- };
307
- export {
308
- w as AA_SUPPORTED_EVM_CHAINS,
309
- I as ALLCHAINS,
310
- c as GAS_ABS_ENABLED_CHAINS,
311
- $ as SUPPORTED_EVM_CHAINS,
312
- l as TESTNET_CHAINS,
313
- M as bitlayerMainnet,
314
- n as bitlayerTestnet,
315
- r as chainNameToLogo,
316
- L as chainNameToLogoAverageColor,
317
- O as chainNameToLogoBlack,
318
- i as ethereum,
319
- s as fuse,
320
- g as fuseSpark,
321
- b as mumbai,
322
- N as neoxTestnet,
323
- m as networks,
324
- S as polygon,
325
- E as polygonAmoy,
326
- T as sepolia,
327
- o as skaleTestnet,
328
- A as vanarTestnet,
329
- p as zkLink,
330
- t as zkLinkTestnet
331
- };