@tria-sdk/constants 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/chains.js +3 -3
- package/dist/src/txn.js +1 -1
- package/package.json +1 -1
- package/src/chains.ts +3 -3
- package/src/txn.ts +1 -1
- package/dist/index.mjs +0 -35
- package/dist/src/chains.d.ts.map +0 -1
- package/dist/src/chains.mjs +0 -255
- package/dist/src/config.d.ts.map +0 -1
- package/dist/src/config.mjs +0 -9
- package/dist/src/connect.d.ts.map +0 -1
- package/dist/src/connect.mjs +0 -28
- package/dist/src/txn.d.ts.map +0 -1
- package/dist/src/txn.mjs +0 -248
package/dist/src/chains.js
CHANGED
|
@@ -210,7 +210,7 @@ export const networks = [
|
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
chainName: vanarTestnet,
|
|
213
|
-
logo:
|
|
213
|
+
logo: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
214
214
|
type: "testnet",
|
|
215
215
|
},
|
|
216
216
|
];
|
|
@@ -239,7 +239,7 @@ export const chainNameToLogo = {
|
|
|
239
239
|
[zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
240
240
|
[bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
241
241
|
[neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
242
|
-
[vanarTestnet]:
|
|
242
|
+
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
243
243
|
};
|
|
244
244
|
export const chainNameToLogoBlack = {
|
|
245
245
|
ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
@@ -266,5 +266,5 @@ export const chainNameToLogoBlack = {
|
|
|
266
266
|
[zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
267
267
|
[bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
268
268
|
[neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
269
|
-
[vanarTestnet]:
|
|
269
|
+
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
|
|
270
270
|
};
|
package/dist/src/txn.js
CHANGED
package/package.json
CHANGED
package/src/chains.ts
CHANGED
|
@@ -225,7 +225,7 @@ export const networks = [
|
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
chainName: vanarTestnet,
|
|
228
|
-
logo:
|
|
228
|
+
logo: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
229
229
|
type: "testnet",
|
|
230
230
|
},
|
|
231
231
|
];
|
|
@@ -255,7 +255,7 @@ export const chainNameToLogo = {
|
|
|
255
255
|
[zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
256
256
|
[bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
257
257
|
[neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
258
|
-
[vanarTestnet]:
|
|
258
|
+
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
259
259
|
};
|
|
260
260
|
|
|
261
261
|
export const chainNameToLogoBlack = {
|
|
@@ -283,5 +283,5 @@ export const chainNameToLogoBlack = {
|
|
|
283
283
|
[zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
284
284
|
[bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
285
285
|
[neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
286
|
-
[vanarTestnet]:
|
|
286
|
+
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
|
|
287
287
|
};
|
package/src/txn.ts
CHANGED
package/dist/index.mjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { isAaSupportedChain as a, isChainSupported as n, isEvmChain as r, isTestnetChain as t, prodApiUrl as i } from "./src/config.mjs";
|
|
2
|
-
import { AA_SUPPORTED_EVM_CHAINS as s, ALLCHAINS as A, SUPPORTED_EVM_CHAINS as p, TESTNET_CHAINS as E, bitlayerTestnet as C, chainNameToLogo as h, chainNameToLogoBlack as l, neoxTestnet as L, networks as S, polygonAmoy as _, sepolia as m, zkLink as N, zkLinkTestnet as I } from "./src/chains.mjs";
|
|
3
|
-
import { chainIdToChainName as x, chainNameToChainId as U, explorerBaseUrls as c, nativeTokenDetails as d, rpcUrls as y, txnBaseUrl as H } from "./src/txn.mjs";
|
|
4
|
-
import { TRIA_WALLET_SELECTED_CHAIN as f, TRIA_WALLET_STORE as g, eventTypes as D, storageKeys as P, triaAuthUrl as u } from "./src/connect.mjs";
|
|
5
|
-
export {
|
|
6
|
-
s as AA_SUPPORTED_EVM_CHAINS,
|
|
7
|
-
A as ALLCHAINS,
|
|
8
|
-
p as SUPPORTED_EVM_CHAINS,
|
|
9
|
-
E as TESTNET_CHAINS,
|
|
10
|
-
f as TRIA_WALLET_SELECTED_CHAIN,
|
|
11
|
-
g as TRIA_WALLET_STORE,
|
|
12
|
-
C as bitlayerTestnet,
|
|
13
|
-
x as chainIdToChainName,
|
|
14
|
-
U as chainNameToChainId,
|
|
15
|
-
h as chainNameToLogo,
|
|
16
|
-
l as chainNameToLogoBlack,
|
|
17
|
-
D as eventTypes,
|
|
18
|
-
c as explorerBaseUrls,
|
|
19
|
-
a as isAaSupportedChain,
|
|
20
|
-
n as isChainSupported,
|
|
21
|
-
r as isEvmChain,
|
|
22
|
-
t as isTestnetChain,
|
|
23
|
-
d as nativeTokenDetails,
|
|
24
|
-
L as neoxTestnet,
|
|
25
|
-
S as networks,
|
|
26
|
-
_ as polygonAmoy,
|
|
27
|
-
i as prodApiUrl,
|
|
28
|
-
y as rpcUrls,
|
|
29
|
-
m as sepolia,
|
|
30
|
-
P as storageKeys,
|
|
31
|
-
u as triaAuthUrl,
|
|
32
|
-
H as txnBaseUrl,
|
|
33
|
-
N as zkLink,
|
|
34
|
-
I as zkLinkTestnet
|
|
35
|
-
};
|
package/dist/src/chains.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../src/chains.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,EAAE,MAAsB,CAAC;AAC5C,eAAO,MAAM,aAAa,EAAE,MAA8B,CAAC;AAC3D,eAAO,MAAM,eAAe,EAAE,MAA2B,CAAC;AAC1D,eAAO,MAAM,WAAW,EAAE,MAAuB,CAAC;AAClD,eAAO,MAAM,OAAO,EAAE,MAAkB,CAAC;AACzC,eAAO,MAAM,WAAW,EAAE,MAAe,CAAC;AAE1C,MAAM,MAAM,MAAM,GAAG,aAAa,CAAC;AACnC,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACnD,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAClD,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC;AAC1C,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC;AAChC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAE1B,eAAO,MAAM,cAAc,UAW1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAuBhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAWnC,CAAC;AAEF,eAAO,MAAM,SAAS,UAwBrB,CAAC;AAKF,eAAO,MAAM,QAAQ;;;;GAwHpB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAyB3B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;CAyBhC,CAAC"}
|
package/dist/src/chains.mjs
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
const E = "ZKLINK-NOVA", T = "ZKLINK-NOVA-TESTNET", a = "BITLAYER-TESTNET", N = "NEOX-TESTNET", n = "SEPOLIA", o = "AMOY", A = [
|
|
2
|
-
"MUMBAI",
|
|
3
|
-
"FUSESPARK",
|
|
4
|
-
"MANTA-TESTNET",
|
|
5
|
-
"METIS-TESTNET",
|
|
6
|
-
"MANTLE-TESTNET",
|
|
7
|
-
T,
|
|
8
|
-
a,
|
|
9
|
-
N,
|
|
10
|
-
n,
|
|
11
|
-
o
|
|
12
|
-
], p = [
|
|
13
|
-
"ETH",
|
|
14
|
-
"POLYGON",
|
|
15
|
-
"AVALANCHE",
|
|
16
|
-
"ARBITRUM",
|
|
17
|
-
"BINANCE",
|
|
18
|
-
"OPTIMISM",
|
|
19
|
-
"FANTOM",
|
|
20
|
-
"FUSE",
|
|
21
|
-
"FUSESPARK",
|
|
22
|
-
"MUMBAI",
|
|
23
|
-
"MANTA",
|
|
24
|
-
"MANTA-TESTNET",
|
|
25
|
-
"METIS",
|
|
26
|
-
"METIS-TESTNET",
|
|
27
|
-
"MANTLE",
|
|
28
|
-
"MANTLE-TESTNET",
|
|
29
|
-
E,
|
|
30
|
-
T,
|
|
31
|
-
a,
|
|
32
|
-
N,
|
|
33
|
-
n,
|
|
34
|
-
o
|
|
35
|
-
], M = [
|
|
36
|
-
// "ETH",
|
|
37
|
-
"POLYGON",
|
|
38
|
-
// "AVALANCHE",
|
|
39
|
-
// "ARBITRUM",
|
|
40
|
-
// "BINANCE",
|
|
41
|
-
// "OPTIMISM",
|
|
42
|
-
"FUSE",
|
|
43
|
-
"MUMBAI",
|
|
44
|
-
// "MANTLE",
|
|
45
|
-
n
|
|
46
|
-
], i = [
|
|
47
|
-
"ETH",
|
|
48
|
-
"POLYGON",
|
|
49
|
-
"AVALANCHE",
|
|
50
|
-
"ARBITRUM",
|
|
51
|
-
"BINANCE",
|
|
52
|
-
"OPTIMISM",
|
|
53
|
-
"FANTOM",
|
|
54
|
-
"FUSE",
|
|
55
|
-
"FUSESPARK",
|
|
56
|
-
"MUMBAI",
|
|
57
|
-
"MANTA",
|
|
58
|
-
"MANTA-TESTNET",
|
|
59
|
-
"METIS",
|
|
60
|
-
"METIS-TESTNET",
|
|
61
|
-
"MANTLE",
|
|
62
|
-
"MANTLE-TESTNET",
|
|
63
|
-
"SOLANA",
|
|
64
|
-
E,
|
|
65
|
-
T,
|
|
66
|
-
a,
|
|
67
|
-
N,
|
|
68
|
-
n,
|
|
69
|
-
o
|
|
70
|
-
], e = "https://static.tria.so/chain-logo-w", t = "https://static.tria.so/chain-logo-b", b = [
|
|
71
|
-
{
|
|
72
|
-
chainName: "ETH",
|
|
73
|
-
logo: `${e}/Ethereum.webp`,
|
|
74
|
-
type: "mainnet"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
chainName: n,
|
|
78
|
-
logo: `${e}/Ethereum.webp`,
|
|
79
|
-
type: "testnet"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
chainName: "FANTOM",
|
|
83
|
-
logo: `${e}/Fantom.webp`,
|
|
84
|
-
type: "mainnet"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
chainName: "POLYGON",
|
|
88
|
-
logo: `${e}/Polygon.svg`,
|
|
89
|
-
type: "mainnet"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
chainName: o,
|
|
93
|
-
logo: `${e}/Polygon.svg`,
|
|
94
|
-
type: "testnet"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
chainName: "AVALANCHE",
|
|
98
|
-
logo: `${e}/Avalanche.webp`,
|
|
99
|
-
type: "mainnet"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
chainName: "OPTIMISM",
|
|
103
|
-
logo: `${e}/Optimism.webp`,
|
|
104
|
-
type: "mainnet"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
chainName: "ARBITRUM",
|
|
108
|
-
logo: `${e}/Arbitrum.webp`,
|
|
109
|
-
type: "mainnet"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
chainName: "FUSE",
|
|
113
|
-
logo: `${e}/Fuse.webp`,
|
|
114
|
-
type: "mainnet"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
chainName: "FUSESPARK",
|
|
118
|
-
logo: `${e}/Fuse.webp`,
|
|
119
|
-
type: "testnet"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
chainName: "MUMBAI",
|
|
123
|
-
logo: `${e}/Polygon.svg`,
|
|
124
|
-
type: "testnet"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
chainName: "BINANCE",
|
|
128
|
-
logo: `${e}/Binance.svg`,
|
|
129
|
-
type: "mainnet"
|
|
130
|
-
},
|
|
131
|
-
// {
|
|
132
|
-
// chainName: 'LINEA',
|
|
133
|
-
// logo: `${baseLogoUrl}/Linea.svg`,
|
|
134
|
-
// },
|
|
135
|
-
{
|
|
136
|
-
chainName: "METIS",
|
|
137
|
-
logo: `${e}/Metis.webp`,
|
|
138
|
-
type: "mainnet"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
chainName: "METIS-TESTNET",
|
|
142
|
-
logo: `${e}/Metis.webp`,
|
|
143
|
-
type: "testnet"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
chainName: "MANTA",
|
|
147
|
-
logo: `${e}/Manta.webp`,
|
|
148
|
-
type: "mainnet"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
chainName: "MANTA-TESTNET",
|
|
152
|
-
logo: `${e}/Manta.webp`,
|
|
153
|
-
type: "testnet"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
chainName: "MANTLE",
|
|
157
|
-
logo: `${e}/Mantle.webp`,
|
|
158
|
-
type: "mainnet"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
chainName: "MANTLE-TESTNET",
|
|
162
|
-
logo: `${e}/Mantle.webp`,
|
|
163
|
-
type: "testnet"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
chainName: "SOLANA",
|
|
167
|
-
logo: `${e}/Solana.webp`,
|
|
168
|
-
type: "mainnet"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
chainName: E,
|
|
172
|
-
logo: `${e}/zklink.webp`,
|
|
173
|
-
type: "mainnet"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
chainName: T,
|
|
177
|
-
logo: `${e}/zklink.webp`,
|
|
178
|
-
type: "testnet"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
chainName: a,
|
|
182
|
-
logo: `${e}/bitlayer.webp`,
|
|
183
|
-
type: "testnet"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
chainName: N,
|
|
187
|
-
logo: `${e}/Neo.webp`,
|
|
188
|
-
type: "testnet"
|
|
189
|
-
}
|
|
190
|
-
], $ = {
|
|
191
|
-
ETH: `${e}/Ethereum.webp`,
|
|
192
|
-
[n]: `${e}/Ethereum.webp`,
|
|
193
|
-
FANTOM: `${e}/Fantom.webp`,
|
|
194
|
-
POLYGON: `${e}/Polygon.webp`,
|
|
195
|
-
[o]: `${e}/Polygon.webp`,
|
|
196
|
-
AVALANCHE: `${e}/Avalanche.webp`,
|
|
197
|
-
OPTIMISM: `${e}/Optimism.webp`,
|
|
198
|
-
ARBITRUM: `${e}/Arbitrum.webp`,
|
|
199
|
-
LINEA: `${e}/Linea.webp`,
|
|
200
|
-
MUMBAI: `${e}/Polygon.webp`,
|
|
201
|
-
FUSE: `${e}/Fuse.webp`,
|
|
202
|
-
FUSESPARK: `${e}/Fuse.webp`,
|
|
203
|
-
BINANCE: `${e}/Binance.svg`,
|
|
204
|
-
MANTA: `${e}/Manta.webp`,
|
|
205
|
-
"MANTA-TESTNET": `${e}/Manta.webp`,
|
|
206
|
-
METIS: `${e}/Metis.webp`,
|
|
207
|
-
"METIS-TESTNET": `${e}/Metis.webp`,
|
|
208
|
-
MANTLE: `${e}/Mantle.webp`,
|
|
209
|
-
"MANTLE-TESTNET": `${e}/Mantle.webp`,
|
|
210
|
-
SOLANA: `${e}/Solana.webp`,
|
|
211
|
-
[E]: `${e}/zklink.webp`,
|
|
212
|
-
[T]: `${e}/zklink.webp`,
|
|
213
|
-
[a]: `${e}/bitlayer.webp`,
|
|
214
|
-
[N]: `${e}/Neo.webp`
|
|
215
|
-
}, S = {
|
|
216
|
-
ETH: `${t}/Ethereum.webp`,
|
|
217
|
-
[n]: `${t}/Ethereum.webp`,
|
|
218
|
-
BINANCE: `${t}/binance.webp`,
|
|
219
|
-
FANTOM: `${t}/Fantom.webp`,
|
|
220
|
-
POLYGON: `${t}/Polygon.webp`,
|
|
221
|
-
[o]: `${t}/Polygon.webp`,
|
|
222
|
-
AVALANCHE: `${t}/Avalanche.webp`,
|
|
223
|
-
OPTIMISM: `${t}/Optimism.webp`,
|
|
224
|
-
ARBITRUM: `${t}/Arbitrum.webp`,
|
|
225
|
-
LINEA: `${t}/Linea.webp`,
|
|
226
|
-
MUMBAI: `${t}/Polygon.webp`,
|
|
227
|
-
FUSE: `${t}/fuse.webp`,
|
|
228
|
-
FUSESPARK: `${t}/fuse.webp`,
|
|
229
|
-
MANTA: `${t}/Manta.webp`,
|
|
230
|
-
"MANTA-TESTNET": `${t}/Manta.webp`,
|
|
231
|
-
METIS: `${t}/Metis.webp`,
|
|
232
|
-
"METIS-TESTNET": `${t}/Metis.webp`,
|
|
233
|
-
MANTLE: `${t}/Mantle.webp`,
|
|
234
|
-
"MANTLE-TESTNET": `${t}/Mantle.webp`,
|
|
235
|
-
SOLANA: `${t}/Solana.webp`,
|
|
236
|
-
[E]: `${t}/zklink.webp`,
|
|
237
|
-
[T]: `${t}/zklink.webp`,
|
|
238
|
-
[a]: `${t}/bitlayer.webp`,
|
|
239
|
-
[N]: `${t}/Neo.png`
|
|
240
|
-
};
|
|
241
|
-
export {
|
|
242
|
-
M as AA_SUPPORTED_EVM_CHAINS,
|
|
243
|
-
i as ALLCHAINS,
|
|
244
|
-
p as SUPPORTED_EVM_CHAINS,
|
|
245
|
-
A as TESTNET_CHAINS,
|
|
246
|
-
a as bitlayerTestnet,
|
|
247
|
-
$ as chainNameToLogo,
|
|
248
|
-
S as chainNameToLogoBlack,
|
|
249
|
-
N as neoxTestnet,
|
|
250
|
-
b as networks,
|
|
251
|
-
o as polygonAmoy,
|
|
252
|
-
n as sepolia,
|
|
253
|
-
E as zkLink,
|
|
254
|
-
T as zkLinkTestnet
|
|
255
|
-
};
|
package/dist/src/config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU,yBAAyB,CAAC;AAEjD,eAAO,MAAM,UAAU,cAAe,MAAM,YAE3C,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,YAEnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,cAAe,MAAM,YAEjD,CAAC;AAEF,eAAO,MAAM,cAAc,cAAe,MAAM,YAE/C,CAAC"}
|
package/dist/src/config.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SUPPORTED_EVM_CHAINS as t, AA_SUPPORTED_EVM_CHAINS as r, ALLCHAINS as s, TESTNET_CHAINS as i } from "./chains.mjs";
|
|
2
|
-
const o = "https://prod.tria.so", p = (n) => t.includes(n), u = (n) => r.includes(n), c = (n) => s.includes(n), A = (n) => i.includes(n);
|
|
3
|
-
export {
|
|
4
|
-
u as isAaSupportedChain,
|
|
5
|
-
c as isChainSupported,
|
|
6
|
-
p as isEvmChain,
|
|
7
|
-
A as isTestnetChain,
|
|
8
|
-
o as prodApiUrl
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/connect.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAgBtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AACtE,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AACF,eAAO,MAAM,WAAW,yBAAyB,CAAC"}
|
package/dist/src/connect.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
logIn: "Log in",
|
|
3
|
-
triaSignUp: "Tria Sign up",
|
|
4
|
-
emailPwSignUp: "Email Pwd Sign up",
|
|
5
|
-
socialSignUp: "Social Sign up",
|
|
6
|
-
signMessage: "Sign Message",
|
|
7
|
-
send: "Send",
|
|
8
|
-
disconnect: "Disconnect",
|
|
9
|
-
switchChain: "Switch chain",
|
|
10
|
-
detected: "Detected Logged in Tria account",
|
|
11
|
-
logout: "Logout",
|
|
12
|
-
passMessage: "Pass Message",
|
|
13
|
-
accessToken: "Access Token Pass",
|
|
14
|
-
idTokenPass: "Id Token Pass",
|
|
15
|
-
saveToAuth: "Save to Auth Iframe",
|
|
16
|
-
triaStoreSet: "triaStoreSet"
|
|
17
|
-
}, t = "tria.wallet.store", s = "tria.wallet.selectedChain", a = {
|
|
18
|
-
TRIA_WALLET_STORE: "tria.wallet.store",
|
|
19
|
-
TRIA_WALLET_SELECTED_CHAIN: "tria.wallet.selectedChain",
|
|
20
|
-
PERSIST_ROOT: "persist:root"
|
|
21
|
-
}, i = "https://auth.tria.so";
|
|
22
|
-
export {
|
|
23
|
-
s as TRIA_WALLET_SELECTED_CHAIN,
|
|
24
|
-
t as TRIA_WALLET_STORE,
|
|
25
|
-
e as eventTypes,
|
|
26
|
-
a as storageKeys,
|
|
27
|
-
i as triaAuthUrl
|
|
28
|
-
};
|
package/dist/src/txn.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"txn.d.ts","sourceRoot":"","sources":["../../src/txn.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;CA2B5B,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;CAuBtB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6H9B,CAAC;AAIF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAuBnB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;CAuB9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;CAuB9B,CAAC"}
|
package/dist/src/txn.mjs
DELETED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import { sepolia as o, polygonAmoy as s, zkLink as e, zkLinkTestnet as a, bitlayerTestnet as n, neoxTestnet as T } from "./chains.mjs";
|
|
2
|
-
const t = {
|
|
3
|
-
ETH: "https://etherscan.io",
|
|
4
|
-
[o]: "https://sepolia.etherscan.io",
|
|
5
|
-
POLYGON: "https://polygonscan.com",
|
|
6
|
-
[s]: "https://www.oklink.com/amoy",
|
|
7
|
-
AVALANCHE: "https://snowtrace.io",
|
|
8
|
-
ARBITRUM: "https://arbiscan.io",
|
|
9
|
-
BINANCE: "https://bscscan.com",
|
|
10
|
-
OPTIMISM: "https://optimistic.etherscan.io",
|
|
11
|
-
FANTOM: "https://ftmscan.com",
|
|
12
|
-
SOLANA: "https://solscan.io",
|
|
13
|
-
APTOS: "https://explorer.aptoslabs.com",
|
|
14
|
-
NEO: "https://neo3.neotube.io",
|
|
15
|
-
SUI: "https://suiexplorer.com/?network=mainnet",
|
|
16
|
-
FUSE: "https://explorer.fuse.io",
|
|
17
|
-
FUSESPARK: "https://explorer.fusespark.io",
|
|
18
|
-
MUMBAI: "https://mumbai.polygonscan.com",
|
|
19
|
-
METIS: "https://andromeda-explorer.metis.io",
|
|
20
|
-
"METIS-TESTNET": "https://sepolia.explorer.metisdevops.link",
|
|
21
|
-
MANTLE: "https://explorer.mantle.xyz",
|
|
22
|
-
"MANTLE-TESTNET": "https://explorer.testnet.mantle.xyz",
|
|
23
|
-
MANTA: "https://pacific-explorer.manta.network",
|
|
24
|
-
"MANTA-TESTNET": "https://manta-testnet.calderaexplorer.xyz",
|
|
25
|
-
[e]: "https://explorer.zklink.io",
|
|
26
|
-
[a]: "https://goerli.explorer.zklink.io",
|
|
27
|
-
[n]: "https://testnet-scan.bitlayer.org/en-us",
|
|
28
|
-
[T]: "https://xt2scan.ngd.network"
|
|
29
|
-
}, c = {
|
|
30
|
-
ETH: `${t.ETH}/tx`,
|
|
31
|
-
// /txHash
|
|
32
|
-
[o]: `${t[o]}/tx`,
|
|
33
|
-
POLYGON: `${t.POLYGON}/tx`,
|
|
34
|
-
[s]: `${t[s]}/tx`,
|
|
35
|
-
AVALANCHE: `${t.AVALANCHE}/tx`,
|
|
36
|
-
ARBITRUM: `${t.ARBITRUM}/tx`,
|
|
37
|
-
BINANCE: `${t.BINANCE}/tx`,
|
|
38
|
-
OPTIMISM: `${t.OPTIMISM}/tx`,
|
|
39
|
-
FANTOM: `${t.FANTOM}/tx`,
|
|
40
|
-
FUSE: `${t.FUSE}/tx`,
|
|
41
|
-
FUSESPARK: `${t.FUSESPARK}/tx`,
|
|
42
|
-
MUMBAI: `${t.MUMBAI}/tx`,
|
|
43
|
-
METIS: `${t.METIS}/tx`,
|
|
44
|
-
"METIS-TESTNET": `${t["METIS-TESTNET"]}/tx`,
|
|
45
|
-
MANTLE: `${t.MANTLE}/tx`,
|
|
46
|
-
"MANTLE-TESTNET": `${t["MANTLE-TESTNET"]}/tx`,
|
|
47
|
-
MANTA: `${t.MANTA}/tx`,
|
|
48
|
-
"MANTA-TESTNET": `${t["MANTA-TESTNET"]}/tx`,
|
|
49
|
-
[e]: `${t[e]}/tx`,
|
|
50
|
-
[a]: `${t[a]}/tx`,
|
|
51
|
-
[n]: `${t[n]}/tx`,
|
|
52
|
-
[T]: `${t[T]}/tx`
|
|
53
|
-
}, m = {
|
|
54
|
-
ETH: {
|
|
55
|
-
name: "Ether",
|
|
56
|
-
symbol: "ETH",
|
|
57
|
-
logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png"
|
|
58
|
-
},
|
|
59
|
-
[o]: {
|
|
60
|
-
name: "Ether",
|
|
61
|
-
symbol: "ETH",
|
|
62
|
-
logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png"
|
|
63
|
-
},
|
|
64
|
-
POLYGON: {
|
|
65
|
-
name: "Matic Token",
|
|
66
|
-
symbol: "MATIC",
|
|
67
|
-
logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png"
|
|
68
|
-
},
|
|
69
|
-
[s]: {
|
|
70
|
-
name: "Matic Token",
|
|
71
|
-
symbol: "MATIC",
|
|
72
|
-
logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png"
|
|
73
|
-
},
|
|
74
|
-
AVALANCHE: {
|
|
75
|
-
name: "Avalanche Coin",
|
|
76
|
-
symbol: "AVAX",
|
|
77
|
-
logoUrl: "https://www.datocms-assets.com/86369/1686152997-avalanche-colour.png"
|
|
78
|
-
},
|
|
79
|
-
ARBITRUM: {
|
|
80
|
-
name: "Arbitrum Mainnet Ether",
|
|
81
|
-
symbol: "ETH",
|
|
82
|
-
logoUrl: "https://www.datocms-assets.com/86369/1669925028-arbitrum.png"
|
|
83
|
-
},
|
|
84
|
-
BINANCE: {
|
|
85
|
-
name: "Binance Coin",
|
|
86
|
-
symbol: "BNB",
|
|
87
|
-
logoUrl: "https://www.datocms-assets.com/86369/1670003837-biance-smart-chain-colour.png"
|
|
88
|
-
},
|
|
89
|
-
OPTIMISM: {
|
|
90
|
-
name: "Ether",
|
|
91
|
-
symbol: "ETH",
|
|
92
|
-
logoUrl: "https://www.datocms-assets.com/86369/1670347461-optimisim-colour.png"
|
|
93
|
-
},
|
|
94
|
-
FANTOM: {
|
|
95
|
-
name: "Fantom",
|
|
96
|
-
symbol: "FTM",
|
|
97
|
-
logoUrl: "https://www.datocms-assets.com/86369/1669925359-fantom-1.png"
|
|
98
|
-
},
|
|
99
|
-
FUSE: {
|
|
100
|
-
name: "Fuse",
|
|
101
|
-
symbol: "FUSE",
|
|
102
|
-
logoUrl: "https://assets.coingecko.com/coins/images/10347/standard/fuse.png"
|
|
103
|
-
},
|
|
104
|
-
FUSESPARK: {
|
|
105
|
-
name: "Spark",
|
|
106
|
-
symbol: "SPARK",
|
|
107
|
-
logoUrl: "https://assets.coingecko.com/coins/images/10347/standard/fuse.png"
|
|
108
|
-
},
|
|
109
|
-
MUMBAI: {
|
|
110
|
-
name: "Matic Token",
|
|
111
|
-
symbol: "MATIC",
|
|
112
|
-
logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png"
|
|
113
|
-
},
|
|
114
|
-
METIS: {
|
|
115
|
-
name: "Metis Token",
|
|
116
|
-
symbol: "METIS",
|
|
117
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Metis.webp"
|
|
118
|
-
},
|
|
119
|
-
"METIS-TESTNET": {
|
|
120
|
-
name: "Metis Token",
|
|
121
|
-
symbol: "METIS",
|
|
122
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Metis.webp"
|
|
123
|
-
},
|
|
124
|
-
MANTLE: {
|
|
125
|
-
name: "Mantle",
|
|
126
|
-
symbol: "MNT",
|
|
127
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Mantle.webp"
|
|
128
|
-
},
|
|
129
|
-
"MANTLE-TESTNET": {
|
|
130
|
-
name: "Mantle",
|
|
131
|
-
symbol: "MNT",
|
|
132
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Mantle.webp"
|
|
133
|
-
},
|
|
134
|
-
MANTA: {
|
|
135
|
-
name: "Ether",
|
|
136
|
-
symbol: "ETH",
|
|
137
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Manta.webp"
|
|
138
|
-
},
|
|
139
|
-
"MANTA-TESTNET": {
|
|
140
|
-
name: "Ether",
|
|
141
|
-
symbol: "ETH",
|
|
142
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Manta.webp"
|
|
143
|
-
},
|
|
144
|
-
SOLANA: {
|
|
145
|
-
name: "Solana",
|
|
146
|
-
symbol: "SOL",
|
|
147
|
-
logoUrl: "https://static.tria.so/chain-logo-w/Solana.webp"
|
|
148
|
-
},
|
|
149
|
-
[e]: {
|
|
150
|
-
name: "Ether",
|
|
151
|
-
symbol: "ETH",
|
|
152
|
-
logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp"
|
|
153
|
-
},
|
|
154
|
-
[a]: {
|
|
155
|
-
name: "Ether",
|
|
156
|
-
symbol: "ETH",
|
|
157
|
-
logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp"
|
|
158
|
-
},
|
|
159
|
-
[n]: {
|
|
160
|
-
name: "Bitcoin",
|
|
161
|
-
symbol: "BTC",
|
|
162
|
-
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp"
|
|
163
|
-
},
|
|
164
|
-
[T]: {
|
|
165
|
-
name: "Gas",
|
|
166
|
-
symbol: "GAS",
|
|
167
|
-
logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992"
|
|
168
|
-
}
|
|
169
|
-
}, l = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z", i = {
|
|
170
|
-
MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${l}`,
|
|
171
|
-
//'https://polygon-mumbai.blockpi.network/v1/rpc/public',
|
|
172
|
-
[s]: `https://polygon-amoy.g.alchemy.com/v2/${l}`,
|
|
173
|
-
[o]: `https://eth-sepolia.g.alchemy.com/v2/${l}`,
|
|
174
|
-
ETH: "https://eth.llamarpc.com",
|
|
175
|
-
POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${l}`,
|
|
176
|
-
// 'https://polygon.llamarpc.com',
|
|
177
|
-
AVALANCHE: "https://avalanche-c-chain.publicnode.com",
|
|
178
|
-
ARBITRUM: "https://arbitrum-one.publicnode.com",
|
|
179
|
-
BINANCE: "https://bsc.publicnode.com",
|
|
180
|
-
OPTIMISM: "https://optimism.meowrpc.com",
|
|
181
|
-
FANTOM: "https://fantom.publicnode.com",
|
|
182
|
-
FUSE: "https://rpc.fuse.io",
|
|
183
|
-
FUSESPARK: "https://rpc.fusespark.io",
|
|
184
|
-
MANTA: "https://1rpc.io/manta",
|
|
185
|
-
"MANTA-TESTNET": "https://manta-testnet.calderachain.xyz/http",
|
|
186
|
-
METIS: "https://metis-pokt.nodies.app",
|
|
187
|
-
"METIS-TESTNET": "https://goerli.gateway.metisdevops.link",
|
|
188
|
-
MANTLE: "https://rpc.mantle.xyz",
|
|
189
|
-
"MANTLE-TESTNET": "https://rpc.testnet.mantle.xyz",
|
|
190
|
-
[e]: "https://rpc.zklink.io",
|
|
191
|
-
[a]: "https://goerli.rpc.zklink.io",
|
|
192
|
-
[n]: "https://testnet-rpc.bitlayer.org",
|
|
193
|
-
[T]: "https://neoxseed1.ngd.network"
|
|
194
|
-
}, E = {
|
|
195
|
-
MUMBAI: 80001,
|
|
196
|
-
[s]: 80002,
|
|
197
|
-
[o]: 11155111,
|
|
198
|
-
POLYGON: 137,
|
|
199
|
-
ETH: 1,
|
|
200
|
-
AVALANCHE: 43114,
|
|
201
|
-
ARBITRUM: 42161,
|
|
202
|
-
BINANCE: 56,
|
|
203
|
-
OPTIMISM: 10,
|
|
204
|
-
FANTOM: 250,
|
|
205
|
-
FUSE: 122,
|
|
206
|
-
FUSESPARK: 123,
|
|
207
|
-
MANTA: 169,
|
|
208
|
-
"MANTA-TESTNET": 3441005,
|
|
209
|
-
METIS: 1088,
|
|
210
|
-
"METIS-TESTNET": 599,
|
|
211
|
-
MANTLE: 5e3,
|
|
212
|
-
"MANTLE-TESTNET": 5001,
|
|
213
|
-
[e]: 810180,
|
|
214
|
-
[a]: 810182,
|
|
215
|
-
[n]: 200810,
|
|
216
|
-
[T]: 12227330
|
|
217
|
-
}, r = {
|
|
218
|
-
80001: "MUMBAI",
|
|
219
|
-
80002: s,
|
|
220
|
-
11155111: o,
|
|
221
|
-
137: "POLYGON",
|
|
222
|
-
1: "ETH",
|
|
223
|
-
43114: "AVALANCHE",
|
|
224
|
-
42161: "ARBITRUM",
|
|
225
|
-
56: "BINANCE",
|
|
226
|
-
10: "OPTIMISM",
|
|
227
|
-
250: "FANTOM",
|
|
228
|
-
122: "FUSE",
|
|
229
|
-
123: "FUSESPARK",
|
|
230
|
-
5e3: "MANTLE",
|
|
231
|
-
5001: "MANTLE-TESTNET",
|
|
232
|
-
1088: "METIS",
|
|
233
|
-
599: "METIS-TESTNET",
|
|
234
|
-
169: "MANTA",
|
|
235
|
-
3441005: "MANTA-TESTNET",
|
|
236
|
-
810180: e,
|
|
237
|
-
810182: a,
|
|
238
|
-
200810: n,
|
|
239
|
-
12227330: T
|
|
240
|
-
};
|
|
241
|
-
export {
|
|
242
|
-
r as chainIdToChainName,
|
|
243
|
-
E as chainNameToChainId,
|
|
244
|
-
t as explorerBaseUrls,
|
|
245
|
-
m as nativeTokenDetails,
|
|
246
|
-
i as rpcUrls,
|
|
247
|
-
c as txnBaseUrl
|
|
248
|
-
};
|