@tria-sdk/constants 2.1.0 → 2.1.3
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 +14 -2
- package/dist/cjs/chains.js +547 -0
- package/dist/cjs/config.js +25 -0
- package/dist/cjs/connect.js +29 -0
- package/dist/cjs/errors.js +23 -0
- package/dist/cjs/gasToken.js +13 -0
- package/dist/cjs/index.js +25 -0
- package/dist/cjs/socialPlatforms.js +20 -0
- package/dist/cjs/txn.js +318 -0
- package/dist/{chains.d.ts → esm/chains.d.ts} +4 -0
- package/dist/{chains.js → esm/chains.js} +21 -7
- package/dist/esm/chains.js.map +1 -0
- package/dist/{config.d.ts → esm/config.d.ts} +1 -1
- package/dist/{config.js → esm/config.js} +1 -1
- package/dist/esm/config.js.map +1 -0
- package/dist/esm/connect.js.map +1 -0
- package/dist/esm/errors.js.map +1 -0
- package/dist/esm/gasToken.js.map +1 -0
- package/dist/{index.d.ts → esm/index.d.ts} +2 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/socialPlatforms.d.ts +9 -0
- package/dist/esm/socialPlatforms.js +18 -0
- package/dist/esm/socialPlatforms.js.map +1 -0
- package/dist/{txn.d.ts → esm/txn.d.ts} +2 -0
- package/dist/{txn.js → esm/txn.js} +21 -1
- package/dist/esm/txn.js.map +1 -0
- package/dist/types/chains.d.ts +193 -0
- package/dist/types/config.d.ts +6 -0
- package/dist/types/connect.d.ts +25 -0
- package/dist/types/errors.d.ts +20 -0
- package/dist/types/gasToken.d.ts +0 -0
- package/dist/{index.js → types/index.d.ts} +2 -2
- package/dist/types/socialPlatforms.d.ts +9 -0
- package/dist/types/txn.d.ts +223 -0
- package/package.json +15 -5
- package/src/chains.ts +23 -7
- package/src/config.ts +1 -1
- package/src/index.ts +3 -0
- package/src/socialPlatforms.ts +17 -0
- package/src/txn.ts +22 -0
- package/tsconfig.cjs.json +17 -0
- package/tsconfig.json +1 -1
- package/dist/chains.js.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/connect.js.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/gasToken.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/txn.js.map +0 -1
- /package/dist/{connect.d.ts → esm/connect.d.ts} +0 -0
- /package/dist/{connect.js → esm/connect.js} +0 -0
- /package/dist/{errors.d.ts → esm/errors.d.ts} +0 -0
- /package/dist/{errors.js → esm/errors.js} +0 -0
- /package/dist/{gasToken.d.ts → esm/gasToken.d.ts} +0 -0
- /package/dist/{gasToken.js → esm/gasToken.js} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @tria-sdk/constants@2.1.
|
|
4
|
-
> rimraf dist &&
|
|
3
|
+
> @tria-sdk/constants@2.1.2 build /Users/rohitsingh/Documents/tria/tria-monorepo/packages/constants
|
|
4
|
+
> rimraf dist && npm run build:cjs && npm run build:esm && npm run build:types
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
> @tria-sdk/constants@2.1.2 build:cjs
|
|
8
|
+
> tsc -p tsconfig.cjs.json
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
> @tria-sdk/constants@2.1.2 build:esm
|
|
12
|
+
> tsc -p tsconfig.json
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
> @tria-sdk/constants@2.1.2 build:types
|
|
16
|
+
> tsc -p tsconfig.json --emitDeclarationOnly --declarationDir dist/types
|
|
5
17
|
|
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chainNameToLogoBlackAverageColor = 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.injectiveTestnet = exports.injective = exports.solanaDevnet = exports.skaleTestnet = exports.vanarTestnet = exports.polygonAmoy = exports.sepolia = exports.neoxTestnet = exports.bitlayerMainnet = exports.bitlayerTestnet = exports.zkLinkTestnet = exports.zkLink = exports.matChainTestnet = exports.matChain = 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.matChain = "MATCHAIN";
|
|
10
|
+
exports.matChainTestnet = "MATCHAIN-TESTNET";
|
|
11
|
+
exports.zkLink = "ZKLINK-NOVA";
|
|
12
|
+
exports.zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
|
|
13
|
+
exports.bitlayerTestnet = "BITLAYER-TESTNET";
|
|
14
|
+
exports.bitlayerMainnet = "BITLAYER-MAINNET";
|
|
15
|
+
exports.neoxTestnet = "NEOX-TESTNET";
|
|
16
|
+
exports.sepolia = "SEPOLIA";
|
|
17
|
+
exports.polygonAmoy = "AMOY";
|
|
18
|
+
exports.vanarTestnet = "VANGUARD-VANAR-TESTNET";
|
|
19
|
+
exports.skaleTestnet = "SKALE-TESTNET";
|
|
20
|
+
exports.solanaDevnet = "SOLANA-DEVNET";
|
|
21
|
+
exports.injective = "INJECTIVE";
|
|
22
|
+
exports.injectiveTestnet = "INJECTIVE-TESTNET";
|
|
23
|
+
exports.TESTNET_CHAINS = [
|
|
24
|
+
exports.sepolia,
|
|
25
|
+
"MUMBAI",
|
|
26
|
+
"FUSESPARK",
|
|
27
|
+
"MANTA-TESTNET",
|
|
28
|
+
"METIS-TESTNET",
|
|
29
|
+
"MANTLE-TESTNET",
|
|
30
|
+
exports.zkLinkTestnet,
|
|
31
|
+
exports.bitlayerTestnet,
|
|
32
|
+
exports.neoxTestnet,
|
|
33
|
+
exports.polygonAmoy,
|
|
34
|
+
exports.vanarTestnet,
|
|
35
|
+
exports.skaleTestnet,
|
|
36
|
+
exports.solanaDevnet,
|
|
37
|
+
exports.injectiveTestnet,
|
|
38
|
+
exports.matChainTestnet,
|
|
39
|
+
];
|
|
40
|
+
exports.SUPPORTED_EVM_CHAINS = [
|
|
41
|
+
"ETH",
|
|
42
|
+
"POLYGON",
|
|
43
|
+
"AVALANCHE",
|
|
44
|
+
"ARBITRUM",
|
|
45
|
+
"BINANCE",
|
|
46
|
+
"OPTIMISM",
|
|
47
|
+
"FANTOM",
|
|
48
|
+
"FUSE",
|
|
49
|
+
"FUSESPARK",
|
|
50
|
+
"MUMBAI",
|
|
51
|
+
"MANTA",
|
|
52
|
+
"MANTA-TESTNET",
|
|
53
|
+
"METIS",
|
|
54
|
+
"METIS-TESTNET",
|
|
55
|
+
"MANTLE",
|
|
56
|
+
"MANTLE-TESTNET",
|
|
57
|
+
exports.zkLink,
|
|
58
|
+
exports.zkLinkTestnet,
|
|
59
|
+
exports.bitlayerTestnet,
|
|
60
|
+
exports.bitlayerMainnet,
|
|
61
|
+
exports.neoxTestnet,
|
|
62
|
+
exports.sepolia,
|
|
63
|
+
exports.polygonAmoy,
|
|
64
|
+
exports.vanarTestnet,
|
|
65
|
+
exports.skaleTestnet,
|
|
66
|
+
exports.matChain,
|
|
67
|
+
exports.matChainTestnet,
|
|
68
|
+
];
|
|
69
|
+
exports.GAS_ABS_ENABLED_CHAINS = [exports.sepolia, "POLYGON"];
|
|
70
|
+
exports.AA_SUPPORTED_EVM_CHAINS = [
|
|
71
|
+
"POLYGON",
|
|
72
|
+
"BINANCE",
|
|
73
|
+
"FUSE",
|
|
74
|
+
"MUMBAI",
|
|
75
|
+
exports.sepolia,
|
|
76
|
+
"OPTIMISM",
|
|
77
|
+
"AVALANCHE",
|
|
78
|
+
"MANTLE",
|
|
79
|
+
];
|
|
80
|
+
exports.ALLCHAINS = [
|
|
81
|
+
"ETH",
|
|
82
|
+
"POLYGON",
|
|
83
|
+
"AVALANCHE",
|
|
84
|
+
"ARBITRUM",
|
|
85
|
+
"BINANCE",
|
|
86
|
+
"OPTIMISM",
|
|
87
|
+
"FANTOM",
|
|
88
|
+
"FUSE",
|
|
89
|
+
"FUSESPARK",
|
|
90
|
+
"MUMBAI",
|
|
91
|
+
exports.sepolia,
|
|
92
|
+
"MANTA",
|
|
93
|
+
"MANTA-TESTNET",
|
|
94
|
+
"METIS",
|
|
95
|
+
"METIS-TESTNET",
|
|
96
|
+
"MANTLE",
|
|
97
|
+
"MANTLE-TESTNET",
|
|
98
|
+
"SOLANA",
|
|
99
|
+
exports.solanaDevnet,
|
|
100
|
+
exports.zkLink,
|
|
101
|
+
exports.zkLinkTestnet,
|
|
102
|
+
exports.bitlayerTestnet,
|
|
103
|
+
exports.bitlayerMainnet,
|
|
104
|
+
exports.neoxTestnet,
|
|
105
|
+
exports.polygonAmoy,
|
|
106
|
+
exports.vanarTestnet,
|
|
107
|
+
exports.skaleTestnet,
|
|
108
|
+
exports.injective,
|
|
109
|
+
exports.injectiveTestnet,
|
|
110
|
+
exports.matChain,
|
|
111
|
+
exports.matChainTestnet,
|
|
112
|
+
];
|
|
113
|
+
const baseLogoUrl = "https://static.tria.so/chain-logo-w";
|
|
114
|
+
const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
|
|
115
|
+
exports.networks = [
|
|
116
|
+
{
|
|
117
|
+
chainName: "ETH",
|
|
118
|
+
logo: `${baseLogoUrl}/Ethereum.webp`,
|
|
119
|
+
type: "mainnet",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
chainName: exports.sepolia,
|
|
123
|
+
logo: `${baseLogoUrl}/Ethereum.webp`,
|
|
124
|
+
type: "testnet",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
chainName: "FANTOM",
|
|
128
|
+
logo: `${baseLogoUrl}/Fantom.webp`,
|
|
129
|
+
type: "mainnet",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
chainName: "POLYGON",
|
|
133
|
+
logo: `${baseLogoUrl}/Polygon.svg`,
|
|
134
|
+
type: "mainnet",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
chainName: exports.polygonAmoy,
|
|
138
|
+
logo: `${baseLogoUrl}/Polygon.svg`,
|
|
139
|
+
type: "testnet",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
chainName: "AVALANCHE",
|
|
143
|
+
logo: `${baseLogoUrl}/Avalanche.webp`,
|
|
144
|
+
type: "mainnet",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
chainName: "OPTIMISM",
|
|
148
|
+
logo: `${baseLogoUrl}/Optimism.webp`,
|
|
149
|
+
type: "mainnet",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
chainName: "ARBITRUM",
|
|
153
|
+
logo: `${baseLogoUrl}/Arbitrum.webp`,
|
|
154
|
+
type: "mainnet",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
chainName: "FUSE",
|
|
158
|
+
logo: `${baseLogoUrl}/Fuse.webp`,
|
|
159
|
+
type: "mainnet",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
chainName: "FUSESPARK",
|
|
163
|
+
logo: `${baseLogoUrl}/Fuse.webp`,
|
|
164
|
+
type: "testnet",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
chainName: "MUMBAI",
|
|
168
|
+
logo: `${baseLogoUrl}/Polygon.svg`,
|
|
169
|
+
type: "testnet",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
chainName: "BINANCE",
|
|
173
|
+
logo: `${baseLogoUrl}/Binance.svg`,
|
|
174
|
+
type: "mainnet",
|
|
175
|
+
},
|
|
176
|
+
// {
|
|
177
|
+
// chainName: 'LINEA',
|
|
178
|
+
// logo: `${baseLogoUrl}/Linea.svg`,
|
|
179
|
+
// },
|
|
180
|
+
{
|
|
181
|
+
chainName: "METIS",
|
|
182
|
+
logo: `${baseLogoUrl}/Metis.webp`,
|
|
183
|
+
type: "mainnet",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
chainName: "METIS-TESTNET",
|
|
187
|
+
logo: `${baseLogoUrl}/Metis.webp`,
|
|
188
|
+
type: "testnet",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
chainName: "MANTA",
|
|
192
|
+
logo: `${baseLogoUrl}/Manta.webp`,
|
|
193
|
+
type: "mainnet",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
chainName: "MANTA-TESTNET",
|
|
197
|
+
logo: `${baseLogoUrl}/Manta.webp`,
|
|
198
|
+
type: "testnet",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
chainName: "MANTLE",
|
|
202
|
+
logo: `${baseLogoUrl}/Mantle.webp`,
|
|
203
|
+
type: "mainnet",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
chainName: "MANTLE-TESTNET",
|
|
207
|
+
logo: `${baseLogoUrl}/Mantle.webp`,
|
|
208
|
+
type: "testnet",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
chainName: "SOLANA",
|
|
212
|
+
logo: `${baseLogoUrl}/Solana.webp`,
|
|
213
|
+
type: "mainnet",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
chainName: exports.solanaDevnet,
|
|
217
|
+
logo: `${baseLogoUrl}/Solana.webp`,
|
|
218
|
+
type: "testnet",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
chainName: exports.zkLink,
|
|
222
|
+
logo: `${baseLogoUrl}/zklink.webp`,
|
|
223
|
+
type: "mainnet",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
chainName: exports.zkLinkTestnet,
|
|
227
|
+
logo: `${baseLogoUrl}/zklink.webp`,
|
|
228
|
+
type: "testnet",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
chainName: exports.bitlayerTestnet,
|
|
232
|
+
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
233
|
+
type: "testnet",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
chainName: exports.bitlayerMainnet,
|
|
237
|
+
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
238
|
+
type: "mainnet",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
chainName: exports.neoxTestnet,
|
|
242
|
+
logo: `${baseLogoUrl}/Neo.webp`,
|
|
243
|
+
type: "testnet",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
chainName: exports.vanarTestnet,
|
|
247
|
+
logo: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
248
|
+
type: "testnet",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
chainName: exports.skaleTestnet,
|
|
252
|
+
logo: `${baseLogoUrl}/skale.webp`,
|
|
253
|
+
type: "testnet",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
chainName: exports.injective,
|
|
257
|
+
logo: `${baseLogoUrl}/Injective.webp`,
|
|
258
|
+
type: "mainnet",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
chainName: exports.injectiveTestnet,
|
|
262
|
+
logo: `${baseLogoUrl}/Injective.webp`,
|
|
263
|
+
type: "testnet",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
chainName: exports.matChain,
|
|
267
|
+
logo: `${baseLogoUrl}/Matchain.webp`,
|
|
268
|
+
type: "mainnet",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
chainName: exports.matChainTestnet,
|
|
272
|
+
logo: `${baseLogoUrl}/MatchainTestnet.webp`,
|
|
273
|
+
type: "testnet",
|
|
274
|
+
},
|
|
275
|
+
];
|
|
276
|
+
exports.chainNameToLogo = {
|
|
277
|
+
ETH: `${baseLogoUrl}/Ethereum.webp`,
|
|
278
|
+
[exports.sepolia]: `${baseLogoUrl}/Ethereum.webp`,
|
|
279
|
+
FANTOM: `${baseLogoUrl}/Fantom.webp`,
|
|
280
|
+
POLYGON: `${baseLogoUrl}/Polygon.webp`,
|
|
281
|
+
[exports.polygonAmoy]: `${baseLogoUrl}/Polygon.webp`,
|
|
282
|
+
AVALANCHE: `${baseLogoUrl}/Avalanche.webp`,
|
|
283
|
+
OPTIMISM: `${baseLogoUrl}/Optimism.webp`,
|
|
284
|
+
ARBITRUM: `${baseLogoUrl}/Arbitrum.webp`,
|
|
285
|
+
LINEA: `${baseLogoUrl}/Linea.webp`,
|
|
286
|
+
MUMBAI: `${baseLogoUrl}/Polygon.webp`,
|
|
287
|
+
FUSE: `${baseLogoUrl}/Fuse.webp`,
|
|
288
|
+
FUSESPARK: `${baseLogoUrl}/Fuse.webp`,
|
|
289
|
+
BINANCE: `${baseLogoUrl}/Binance.svg`,
|
|
290
|
+
MANTA: `${baseLogoUrl}/Manta.webp`,
|
|
291
|
+
"MANTA-TESTNET": `${baseLogoUrl}/Manta.webp`,
|
|
292
|
+
METIS: `${baseLogoUrl}/Metis.webp`,
|
|
293
|
+
"METIS-TESTNET": `${baseLogoUrl}/Metis.webp`,
|
|
294
|
+
MANTLE: `${baseLogoUrl}/Mantle.webp`,
|
|
295
|
+
"MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
|
|
296
|
+
SOLANA: `${baseLogoUrl}/Solana.webp`,
|
|
297
|
+
[exports.solanaDevnet]: `${baseLogoUrl}/Solana.webp`,
|
|
298
|
+
[exports.zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
299
|
+
[exports.zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
300
|
+
[exports.bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
301
|
+
[exports.bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
302
|
+
[exports.neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
303
|
+
[exports.vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
304
|
+
[exports.skaleTestnet]: `${baseLogoUrl}/skale.webp`,
|
|
305
|
+
[exports.injective]: `${baseLogoUrl}/Injective.webp`,
|
|
306
|
+
[exports.injectiveTestnet]: `${baseLogoUrl}/Injective.webp`,
|
|
307
|
+
[exports.matChain]: `${baseLogoUrl}/Matchain.webp`,
|
|
308
|
+
[exports.matChainTestnet]: `${baseLogoUrl}/MatchainTestnet.webp`,
|
|
309
|
+
};
|
|
310
|
+
exports.chainNameToLogoAverageColor = {
|
|
311
|
+
ETH: "rgba(98,126,235,0.7)",
|
|
312
|
+
POLYGON: "rgba(131,69,231,0.7)",
|
|
313
|
+
SEPOLIA: "rgba(98,126,235,0.7)",
|
|
314
|
+
FANTOM: "rgba(19,181,235,0.7)",
|
|
315
|
+
AMOY: "rgba(131,69,231,0.7)",
|
|
316
|
+
AVALANCHE: "rgba(232,65,67,0.7)",
|
|
317
|
+
ARBITRUM: "rgba(17,170,255,0.7)",
|
|
318
|
+
OPTIMISM: "rgba(255,5,32,0.7)",
|
|
319
|
+
LINEA: "UNDETERMINED",
|
|
320
|
+
MUMBAI: "rgba(131,69,231,0.7)",
|
|
321
|
+
FUSESPARK: "rgba(180,249,185,0.7)",
|
|
322
|
+
FUSE: "rgba(180,249,185,0.7)",
|
|
323
|
+
MANTA: "rgba(98,126,235,0.7)",
|
|
324
|
+
"MANTA-TESTNET": "rgba(98,126,235,0.7)",
|
|
325
|
+
"METIS-TESTNET": "rgba(18,171,225,0.7)",
|
|
326
|
+
METIS: "rgba(18,171,225,0.7)",
|
|
327
|
+
SOLANA: "UNDETERMINED",
|
|
328
|
+
"MANTLE-TESTNET": "UNDETERMINED",
|
|
329
|
+
MANTLE: "UNDETERMINED",
|
|
330
|
+
"BITLAYER-TESTNET": "rgba(226,110,26,0.7)",
|
|
331
|
+
"ZKLINK-NOVA": "UNDETERMINED",
|
|
332
|
+
"ZKLINK-NOVA-TESTNET": "UNDETERMINED",
|
|
333
|
+
"NEOX-TESTNET": "rgba(1,229,155,0.7)",
|
|
334
|
+
"VANGUARD-VANAR-TESTNET": "rgba(71, 51, 147,0.7)",
|
|
335
|
+
BINANCE: "rgba(240,185,11,0.7)",
|
|
336
|
+
};
|
|
337
|
+
exports.chainNameToLogoBlack = {
|
|
338
|
+
ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
339
|
+
[exports.sepolia]: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
340
|
+
BINANCE: `${baseLogoUrlBlack}/binance.svg`,
|
|
341
|
+
FANTOM: `${baseLogoUrlBlack}/Fantom.webp`,
|
|
342
|
+
POLYGON: `${baseLogoUrlBlack}/Polygon.webp`,
|
|
343
|
+
[exports.polygonAmoy]: `${baseLogoUrlBlack}/Polygon.webp`,
|
|
344
|
+
AVALANCHE: `${baseLogoUrlBlack}/Avalanche.webp`,
|
|
345
|
+
OPTIMISM: `${baseLogoUrlBlack}/Optimism.webp`,
|
|
346
|
+
ARBITRUM: `${baseLogoUrlBlack}/Arbitrum.webp`,
|
|
347
|
+
LINEA: `${baseLogoUrlBlack}/Linea.webp`,
|
|
348
|
+
MUMBAI: `${baseLogoUrlBlack}/Polygon.webp`,
|
|
349
|
+
FUSE: `${baseLogoUrlBlack}/fuse.webp`,
|
|
350
|
+
FUSESPARK: `${baseLogoUrlBlack}/fuse.webp`,
|
|
351
|
+
MANTA: `${baseLogoUrlBlack}/Manta.webp`,
|
|
352
|
+
"MANTA-TESTNET": `${baseLogoUrlBlack}/Manta.webp`,
|
|
353
|
+
METIS: `${baseLogoUrlBlack}/Metis.webp`,
|
|
354
|
+
"METIS-TESTNET": `${baseLogoUrlBlack}/Metis.webp`,
|
|
355
|
+
MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
|
|
356
|
+
"MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
|
|
357
|
+
SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
|
|
358
|
+
[exports.solanaDevnet]: `${baseLogoUrlBlack}/Solana.webp`,
|
|
359
|
+
[exports.zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
360
|
+
[exports.zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
361
|
+
[exports.bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
362
|
+
[exports.bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
363
|
+
[exports.neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
364
|
+
[exports.vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
|
|
365
|
+
[exports.skaleTestnet]: `${baseLogoUrlBlack}/skale.webp`,
|
|
366
|
+
[exports.injective]: `${baseLogoUrlBlack}/Injective.webp`,
|
|
367
|
+
[exports.injectiveTestnet]: `${baseLogoUrlBlack}/Injective.webp`,
|
|
368
|
+
[exports.matChain]: `${baseLogoUrl}/Matchain.webp`,
|
|
369
|
+
[exports.matChainTestnet]: `${baseLogoUrlBlack}/MatchainTestnet.webp`,
|
|
370
|
+
};
|
|
371
|
+
exports.chainNameToLogoBlackAverageColor = {
|
|
372
|
+
FANTOM: [
|
|
373
|
+
{ color: "rgb(255,255,255)", count: 25004 },
|
|
374
|
+
{ color: "rgb(132,132,132)", count: 3219 },
|
|
375
|
+
{ color: "rgb(143,143,143)", count: 2392 },
|
|
376
|
+
{ color: "rgb(114,114,114)", count: 2283 },
|
|
377
|
+
{ color: "rgb(254,254,254)", count: 2250 },
|
|
378
|
+
],
|
|
379
|
+
POLYGON: [
|
|
380
|
+
{ color: "rgb(255,255,255)", count: 26414 },
|
|
381
|
+
{ color: "rgb(132,132,132)", count: 3390 },
|
|
382
|
+
{ color: "rgb(128,128,128)", count: 2783 },
|
|
383
|
+
{ color: "rgb(125,125,125)", count: 2448 },
|
|
384
|
+
{ color: "rgb(118,118,118)", count: 2387 },
|
|
385
|
+
],
|
|
386
|
+
ETH: [
|
|
387
|
+
{ color: "rgb(255,255,255)", count: 23340 },
|
|
388
|
+
{ color: "rgb(132,132,132)", count: 2559 },
|
|
389
|
+
{ color: "rgb(111,111,111)", count: 2372 },
|
|
390
|
+
{ color: "rgb(143,143,143)", count: 2341 },
|
|
391
|
+
{ color: "rgb(210,210,210)", count: 2325 },
|
|
392
|
+
],
|
|
393
|
+
SEPOLIA: [
|
|
394
|
+
{ color: "rgb(255,255,255)", count: 23340 },
|
|
395
|
+
{ color: "rgb(132,132,132)", count: 2559 },
|
|
396
|
+
{ color: "rgb(111,111,111)", count: 2372 },
|
|
397
|
+
{ color: "rgb(143,143,143)", count: 2341 },
|
|
398
|
+
{ color: "rgb(210,210,210)", count: 2325 },
|
|
399
|
+
],
|
|
400
|
+
AMOY: [
|
|
401
|
+
{ color: "rgb(255,255,255)", count: 26414 },
|
|
402
|
+
{ color: "rgb(132,132,132)", count: 3390 },
|
|
403
|
+
{ color: "rgb(128,128,128)", count: 2783 },
|
|
404
|
+
{ color: "rgb(125,125,125)", count: 2448 },
|
|
405
|
+
{ color: "rgb(118,118,118)", count: 2387 },
|
|
406
|
+
],
|
|
407
|
+
ARBITRUM: [
|
|
408
|
+
{ color: "rgb(255,255,255)", count: 37899 },
|
|
409
|
+
{ color: "rgb(143,143,143)", count: 2422 },
|
|
410
|
+
{ color: "rgb(111,111,111)", count: 2106 },
|
|
411
|
+
{ color: "rgb(105,105,105)", count: 1930 },
|
|
412
|
+
{ color: "rgb(254,254,254)", count: 1913 },
|
|
413
|
+
],
|
|
414
|
+
OPTIMISM: [
|
|
415
|
+
{ color: "rgb(255,255,255)", count: 27023 },
|
|
416
|
+
{ color: "rgb(132,132,132)", count: 3031 },
|
|
417
|
+
{ color: "rgb(111,111,111)", count: 2578 },
|
|
418
|
+
{ color: "rgb(125,125,125)", count: 2530 },
|
|
419
|
+
{ color: "rgb(118,118,118)", count: 2349 },
|
|
420
|
+
],
|
|
421
|
+
LINEA: [
|
|
422
|
+
{ color: "rgb(255,255,255)", count: 28540 },
|
|
423
|
+
{ color: "rgb(132,132,132)", count: 3517 },
|
|
424
|
+
{ color: "rgb(128,128,128)", count: 3200 },
|
|
425
|
+
{ color: "rgb(118,118,118)", count: 2815 },
|
|
426
|
+
{ color: "rgb(143,143,143)", count: 2740 },
|
|
427
|
+
],
|
|
428
|
+
AVALANCHE: [
|
|
429
|
+
{ color: "rgb(255,255,255)", count: 28225 },
|
|
430
|
+
{ color: "rgb(132,132,132)", count: 3609 },
|
|
431
|
+
{ color: "rgb(111,111,111)", count: 2934 },
|
|
432
|
+
{ color: "rgb(143,143,143)", count: 2876 },
|
|
433
|
+
{ color: "rgb(128,128,128)", count: 2668 },
|
|
434
|
+
],
|
|
435
|
+
MUMBAI: [
|
|
436
|
+
{ color: "rgb(255,255,255)", count: 26414 },
|
|
437
|
+
{ color: "rgb(132,132,132)", count: 3390 },
|
|
438
|
+
{ color: "rgb(128,128,128)", count: 2783 },
|
|
439
|
+
{ color: "rgb(125,125,125)", count: 2448 },
|
|
440
|
+
{ color: "rgb(118,118,118)", count: 2387 },
|
|
441
|
+
],
|
|
442
|
+
FUSE: [
|
|
443
|
+
{ color: "rgb(255,255,255)", count: 34461 },
|
|
444
|
+
{ color: "rgb(125,125,125)", count: 2518 },
|
|
445
|
+
{ color: "rgb(128,128,128)", count: 2480 },
|
|
446
|
+
{ color: "rgb(143,143,143)", count: 2141 },
|
|
447
|
+
{ color: "rgb(254,254,254)", count: 2017 },
|
|
448
|
+
],
|
|
449
|
+
FUSESPARK: [
|
|
450
|
+
{ color: "rgb(255,255,255)", count: 34461 },
|
|
451
|
+
{ color: "rgb(125,125,125)", count: 2518 },
|
|
452
|
+
{ color: "rgb(128,128,128)", count: 2480 },
|
|
453
|
+
{ color: "rgb(143,143,143)", count: 2141 },
|
|
454
|
+
{ color: "rgb(254,254,254)", count: 2017 },
|
|
455
|
+
],
|
|
456
|
+
MANTA: [
|
|
457
|
+
{ color: "rgb(0,0,0)", count: 35607 },
|
|
458
|
+
{ color: "rgb(16,16,16)", count: 27650 },
|
|
459
|
+
{ color: "rgb(17,17,17)", count: 5711 },
|
|
460
|
+
{ color: "rgb(128,16,16)", count: 898 },
|
|
461
|
+
{ color: "rgb(16,128,16)", count: 864 },
|
|
462
|
+
],
|
|
463
|
+
"MANTA-TESTNET": [
|
|
464
|
+
{ color: "rgb(0,0,0)", count: 35607 },
|
|
465
|
+
{ color: "rgb(16,16,16)", count: 27650 },
|
|
466
|
+
{ color: "rgb(17,17,17)", count: 5711 },
|
|
467
|
+
{ color: "rgb(128,16,16)", count: 898 },
|
|
468
|
+
{ color: "rgb(16,128,16)", count: 864 },
|
|
469
|
+
],
|
|
470
|
+
METIS: [
|
|
471
|
+
{ color: "rgb(0,0,0)", count: 35638 },
|
|
472
|
+
{ color: "rgb(16,16,16)", count: 24682 },
|
|
473
|
+
{ color: "rgb(17,17,17)", count: 4693 },
|
|
474
|
+
{ color: "rgb(124,16,16)", count: 764 },
|
|
475
|
+
{ color: "rgb(16,16,157)", count: 758 },
|
|
476
|
+
],
|
|
477
|
+
"METIS-TESTNET": [
|
|
478
|
+
{ color: "rgb(0,0,0)", count: 35638 },
|
|
479
|
+
{ color: "rgb(16,16,16)", count: 24682 },
|
|
480
|
+
{ color: "rgb(17,17,17)", count: 4693 },
|
|
481
|
+
{ color: "rgb(124,16,16)", count: 764 },
|
|
482
|
+
{ color: "rgb(16,16,157)", count: 758 },
|
|
483
|
+
],
|
|
484
|
+
SOLANA: [
|
|
485
|
+
{ color: "rgb(255,255,255)", count: 32241 },
|
|
486
|
+
{ color: "rgb(132,132,132)", count: 3455 },
|
|
487
|
+
{ color: "rgb(254,254,254)", count: 2440 },
|
|
488
|
+
{ color: "rgb(143,143,143)", count: 2295 },
|
|
489
|
+
{ color: "rgb(114,114,114)", count: 2228 },
|
|
490
|
+
],
|
|
491
|
+
"MANTLE-TESTNET": [
|
|
492
|
+
{ color: "rgb(0,0,0)", count: 35380 },
|
|
493
|
+
{ color: "rgb(16,16,16)", count: 21481 },
|
|
494
|
+
{ color: "rgb(17,17,17)", count: 6742 },
|
|
495
|
+
{ color: "rgb(242,242,242)", count: 1969 },
|
|
496
|
+
{ color: "rgb(15,15,15)", count: 1408 },
|
|
497
|
+
],
|
|
498
|
+
MANTLE: [
|
|
499
|
+
{ color: "rgb(0,0,0)", count: 35380 },
|
|
500
|
+
{ color: "rgb(16,16,16)", count: 21481 },
|
|
501
|
+
{ color: "rgb(17,17,17)", count: 6742 },
|
|
502
|
+
{ color: "rgb(242,242,242)", count: 1969 },
|
|
503
|
+
{ color: "rgb(15,15,15)", count: 1408 },
|
|
504
|
+
],
|
|
505
|
+
"ZKLINK-NOVA-TESTNET": [
|
|
506
|
+
{ color: "rgb(255,255,255)", count: 22586 },
|
|
507
|
+
{ color: "rgb(132,132,132)", count: 3447 },
|
|
508
|
+
{ color: "rgb(118,118,118)", count: 3122 },
|
|
509
|
+
{ color: "rgb(111,111,111)", count: 2516 },
|
|
510
|
+
{ color: "rgb(125,125,125)", count: 2497 },
|
|
511
|
+
],
|
|
512
|
+
"ZKLINK-NOVA": [
|
|
513
|
+
{ color: "rgb(255,255,255)", count: 22586 },
|
|
514
|
+
{ color: "rgb(132,132,132)", count: 3447 },
|
|
515
|
+
{ color: "rgb(118,118,118)", count: 3122 },
|
|
516
|
+
{ color: "rgb(111,111,111)", count: 2516 },
|
|
517
|
+
{ color: "rgb(125,125,125)", count: 2497 },
|
|
518
|
+
],
|
|
519
|
+
"BITLAYER-TESTNET": [
|
|
520
|
+
{ color: "rgb(255,255,255)", count: 32861 },
|
|
521
|
+
{ color: "rgb(111,111,111)", count: 2685 },
|
|
522
|
+
{ color: "rgb(132,132,132)", count: 2623 },
|
|
523
|
+
{ color: "rgb(143,143,143)", count: 2323 },
|
|
524
|
+
{ color: "rgb(115,115,115)", count: 1953 },
|
|
525
|
+
],
|
|
526
|
+
"NEOX-TESTNET": [
|
|
527
|
+
{ color: "rgb(255,255,255)", count: 39661 },
|
|
528
|
+
{ color: "rgb(132,132,132)", count: 2785 },
|
|
529
|
+
{ color: "rgb(143,143,143)", count: 2494 },
|
|
530
|
+
{ color: "rgb(111,111,111)", count: 1972 },
|
|
531
|
+
{ color: "rgb(140,140,140)", count: 1966 },
|
|
532
|
+
],
|
|
533
|
+
"VANGUARD-VANAR-TESTNET": [
|
|
534
|
+
{ color: "rgb(0,0,0)", count: 127157 },
|
|
535
|
+
{ color: "rgb(255,255,255)", count: 3071 },
|
|
536
|
+
{ color: "rgb(255,255,0)", count: 3057 },
|
|
537
|
+
{ color: "rgb(0,255,255)", count: 2993 },
|
|
538
|
+
{ color: "rgb(255,0,255)", count: 2892 },
|
|
539
|
+
],
|
|
540
|
+
BINANCE: [
|
|
541
|
+
{ color: "rgb(0,0,0)", count: 2614 },
|
|
542
|
+
{ color: "rgb(255,255,255)", count: 1676 },
|
|
543
|
+
{ color: "rgb(15,15,15)", count: 974 },
|
|
544
|
+
{ color: "rgb(16,16,16)", count: 855 },
|
|
545
|
+
{ color: "rgb(17,17,17)", count: 56 },
|
|
546
|
+
],
|
|
547
|
+
};
|
|
@@ -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://production.tria.so";
|
|
6
|
+
const isEvmChain = (chainName) => {
|
|
7
|
+
return chains_1.SUPPORTED_EVM_CHAINS.includes(chainName) || chainName == "EVM";
|
|
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) || chainName == "EVM";
|
|
16
|
+
};
|
|
17
|
+
exports.isChainSupported = isChainSupported;
|
|
18
|
+
const isTestnetChain = (chainName) => {
|
|
19
|
+
return chains_1.TESTNET_CHAINS.includes(chainName) || chainName == "EVM";
|
|
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,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DATA_VALIDATION = exports.CHAIN_ERROR = void 0;
|
|
4
|
+
exports.CHAIN_ERROR = {
|
|
5
|
+
FEE_ESTIMATION: "Error estimating fee.",
|
|
6
|
+
SEND_TOKEN: "Error creating send token txn.",
|
|
7
|
+
CHECK_ALLOWANCE: "Error in checking token allowance.",
|
|
8
|
+
BROADCAST_TXN: "Error in broadcasting transaction.",
|
|
9
|
+
APPROVE_TXN: "Error in approving token.",
|
|
10
|
+
GET_CONTRACT: "Error making contract instance.",
|
|
11
|
+
READ_CONTRACT: "Error in reading contract data.",
|
|
12
|
+
CALL_CONTRACT: "Error in creating contract transaction.",
|
|
13
|
+
SEND_NFT: "Error in creating send NFT txn.",
|
|
14
|
+
ENCRYPT: "Error in encryption.",
|
|
15
|
+
DECRYPT: "Error in decryption.",
|
|
16
|
+
SIGN_MESSAGE: "Error in signing message.",
|
|
17
|
+
};
|
|
18
|
+
exports.DATA_VALIDATION = {
|
|
19
|
+
INVALID_AMOUNT: "Invalid amount.",
|
|
20
|
+
INVALID_TOKEN_ADDRESS: "Invalid tokenAddress.",
|
|
21
|
+
NFT_TYPE: "Invalid NFT type.",
|
|
22
|
+
CHAIN_NOT_SUPPORTED: "Chain not supported.",
|
|
23
|
+
};
|
|
@@ -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,25 @@
|
|
|
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
|
+
exports.lifiUrl = void 0;
|
|
18
|
+
__exportStar(require("./config"), exports);
|
|
19
|
+
__exportStar(require("./chains"), exports);
|
|
20
|
+
__exportStar(require("./txn"), exports);
|
|
21
|
+
__exportStar(require("./connect"), exports);
|
|
22
|
+
__exportStar(require("./errors"), exports);
|
|
23
|
+
__exportStar(require("./socialPlatforms"), exports);
|
|
24
|
+
// export * from "./src/gasToken";
|
|
25
|
+
exports.lifiUrl = "https://li.quest/v1";
|