@tria-sdk/constants 1.0.31 → 1.0.39
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 +1 -1
- package/dist/src/chains.d.ts +1 -0
- package/dist/src/chains.js +10 -0
- package/dist/src/gasToken.d.ts +0 -0
- package/dist/src/gasToken.js +13 -0
- package/dist/src/txn.d.ts +1 -0
- package/dist/src/txn.js +11 -1
- package/package.json +1 -1
- package/src/chains.ts +10 -0
- package/src/txn.ts +11 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/src/chains.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const zkLink: string;
|
|
2
2
|
export declare const zkLinkTestnet: string;
|
|
3
3
|
export declare const bitlayerTestnet: string;
|
|
4
|
+
export declare const bitlayerMainnet: string;
|
|
4
5
|
export declare const neoxTestnet: string;
|
|
5
6
|
export declare const sepolia: string;
|
|
6
7
|
export declare const polygonAmoy: string;
|
package/dist/src/chains.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const zkLink = "ZKLINK-NOVA";
|
|
2
2
|
export const zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
|
|
3
3
|
export const bitlayerTestnet = "BITLAYER-TESTNET";
|
|
4
|
+
export const bitlayerMainnet = "BITLAYER-MAINNET";
|
|
4
5
|
export const neoxTestnet = "NEOX-TESTNET";
|
|
5
6
|
export const sepolia = "SEPOLIA";
|
|
6
7
|
export const polygonAmoy = "AMOY";
|
|
@@ -36,6 +37,7 @@ export const SUPPORTED_EVM_CHAINS = [
|
|
|
36
37
|
zkLink,
|
|
37
38
|
zkLinkTestnet,
|
|
38
39
|
bitlayerTestnet,
|
|
40
|
+
bitlayerMainnet,
|
|
39
41
|
neoxTestnet,
|
|
40
42
|
sepolia,
|
|
41
43
|
polygonAmoy,
|
|
@@ -77,6 +79,7 @@ export const ALLCHAINS = [
|
|
|
77
79
|
zkLink,
|
|
78
80
|
zkLinkTestnet,
|
|
79
81
|
bitlayerTestnet,
|
|
82
|
+
bitlayerMainnet,
|
|
80
83
|
neoxTestnet,
|
|
81
84
|
sepolia,
|
|
82
85
|
polygonAmoy,
|
|
@@ -198,6 +201,11 @@ export const networks = [
|
|
|
198
201
|
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
199
202
|
type: "testnet",
|
|
200
203
|
},
|
|
204
|
+
{
|
|
205
|
+
chainName: bitlayerMainnet,
|
|
206
|
+
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
207
|
+
type: "mainnet",
|
|
208
|
+
},
|
|
201
209
|
{
|
|
202
210
|
chainName: neoxTestnet,
|
|
203
211
|
logo: `${baseLogoUrl}/Neo.webp`,
|
|
@@ -228,6 +236,7 @@ export const chainNameToLogo = {
|
|
|
228
236
|
[zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
229
237
|
[zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
230
238
|
[bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
239
|
+
[bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
231
240
|
[neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
232
241
|
};
|
|
233
242
|
export const chainNameToLogoBlack = {
|
|
@@ -254,5 +263,6 @@ export const chainNameToLogoBlack = {
|
|
|
254
263
|
[zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
255
264
|
[zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
256
265
|
[bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
266
|
+
[bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
257
267
|
[neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
258
268
|
};
|
|
File without changes
|
|
@@ -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
|
+
// };
|
package/dist/src/txn.d.ts
CHANGED
package/dist/src/txn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bitlayerTestnet, neoxTestnet, polygonAmoy, sepolia, zkLink, zkLinkTestnet, } from "./chains";
|
|
1
|
+
import { bitlayerTestnet, bitlayerMainnet, neoxTestnet, polygonAmoy, sepolia, zkLink, zkLinkTestnet, } from "./chains";
|
|
2
2
|
export const explorerBaseUrls = {
|
|
3
3
|
ETH: "https://etherscan.io",
|
|
4
4
|
[sepolia]: "https://sepolia.etherscan.io",
|
|
@@ -25,6 +25,7 @@ export const explorerBaseUrls = {
|
|
|
25
25
|
[zkLink]: "https://explorer.zklink.io",
|
|
26
26
|
[zkLinkTestnet]: "https://goerli.explorer.zklink.io",
|
|
27
27
|
[bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
|
|
28
|
+
[bitlayerMainnet]: "https://www.btrscan.com",
|
|
28
29
|
[neoxTestnet]: "https://xt2scan.ngd.network",
|
|
29
30
|
};
|
|
30
31
|
export const txnBaseUrl = {
|
|
@@ -49,6 +50,7 @@ export const txnBaseUrl = {
|
|
|
49
50
|
[zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
|
|
50
51
|
[zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
|
|
51
52
|
[bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
|
|
53
|
+
[bitlayerMainnet]: `${explorerBaseUrls[bitlayerMainnet]}/tx`,
|
|
52
54
|
[neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
|
|
53
55
|
};
|
|
54
56
|
export const nativeTokenDetails = {
|
|
@@ -162,6 +164,11 @@ export const nativeTokenDetails = {
|
|
|
162
164
|
symbol: "BTC",
|
|
163
165
|
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
164
166
|
},
|
|
167
|
+
[bitlayerMainnet]: {
|
|
168
|
+
name: "Bitcoin",
|
|
169
|
+
symbol: "BTC",
|
|
170
|
+
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
171
|
+
},
|
|
165
172
|
[neoxTestnet]: {
|
|
166
173
|
name: "Gas",
|
|
167
174
|
symbol: "GAS",
|
|
@@ -191,6 +198,7 @@ export const rpcUrls = {
|
|
|
191
198
|
[zkLink]: "https://rpc.zklink.io",
|
|
192
199
|
[zkLinkTestnet]: "https://goerli.rpc.zklink.io",
|
|
193
200
|
[bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
|
|
201
|
+
[bitlayerTestnet]: "https://rpc.bitlayer.org",
|
|
194
202
|
[neoxTestnet]: "https://neoxseed1.ngd.network",
|
|
195
203
|
};
|
|
196
204
|
export const chainNameToChainId = {
|
|
@@ -215,6 +223,7 @@ export const chainNameToChainId = {
|
|
|
215
223
|
[zkLink]: 810180,
|
|
216
224
|
[zkLinkTestnet]: 810182,
|
|
217
225
|
[bitlayerTestnet]: 200810,
|
|
226
|
+
[bitlayerMainnet]: 200901,
|
|
218
227
|
[neoxTestnet]: 12227330,
|
|
219
228
|
};
|
|
220
229
|
export const chainIdToChainName = {
|
|
@@ -239,5 +248,6 @@ export const chainIdToChainName = {
|
|
|
239
248
|
810180: zkLink,
|
|
240
249
|
810182: zkLinkTestnet,
|
|
241
250
|
200810: bitlayerTestnet,
|
|
251
|
+
200901: bitlayerMainnet,
|
|
242
252
|
12227330: neoxTestnet,
|
|
243
253
|
};
|
package/package.json
CHANGED
package/src/chains.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const zkLink: string = "ZKLINK-NOVA";
|
|
2
2
|
export const zkLinkTestnet: string = "ZKLINK-NOVA-TESTNET";
|
|
3
3
|
export const bitlayerTestnet: string = "BITLAYER-TESTNET";
|
|
4
|
+
export const bitlayerMainnet: string = "BITLAYER-MAINNET";
|
|
4
5
|
export const neoxTestnet: string = "NEOX-TESTNET";
|
|
5
6
|
export const sepolia: string = "SEPOLIA";
|
|
6
7
|
export const polygonAmoy: string = "AMOY";
|
|
@@ -45,6 +46,7 @@ export const SUPPORTED_EVM_CHAINS = [
|
|
|
45
46
|
zkLink,
|
|
46
47
|
zkLinkTestnet,
|
|
47
48
|
bitlayerTestnet,
|
|
49
|
+
bitlayerMainnet,
|
|
48
50
|
neoxTestnet,
|
|
49
51
|
sepolia,
|
|
50
52
|
polygonAmoy,
|
|
@@ -88,6 +90,7 @@ export const ALLCHAINS = [
|
|
|
88
90
|
zkLink,
|
|
89
91
|
zkLinkTestnet,
|
|
90
92
|
bitlayerTestnet,
|
|
93
|
+
bitlayerMainnet,
|
|
91
94
|
neoxTestnet,
|
|
92
95
|
sepolia,
|
|
93
96
|
polygonAmoy,
|
|
@@ -211,6 +214,11 @@ export const networks = [
|
|
|
211
214
|
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
212
215
|
type: "testnet",
|
|
213
216
|
},
|
|
217
|
+
{
|
|
218
|
+
chainName: bitlayerMainnet,
|
|
219
|
+
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
220
|
+
type: "mainnet",
|
|
221
|
+
},
|
|
214
222
|
{
|
|
215
223
|
chainName: neoxTestnet,
|
|
216
224
|
logo: `${baseLogoUrl}/Neo.webp`,
|
|
@@ -242,6 +250,7 @@ export const chainNameToLogo = {
|
|
|
242
250
|
[zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
243
251
|
[zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
244
252
|
[bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
253
|
+
[bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
245
254
|
[neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
246
255
|
};
|
|
247
256
|
|
|
@@ -269,5 +278,6 @@ export const chainNameToLogoBlack = {
|
|
|
269
278
|
[zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
270
279
|
[zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
271
280
|
[bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
281
|
+
[bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
272
282
|
[neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
273
283
|
};
|
package/src/txn.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bitlayerTestnet,
|
|
3
|
+
bitlayerMainnet,
|
|
3
4
|
neoxTestnet,
|
|
4
5
|
polygonAmoy,
|
|
5
6
|
sepolia,
|
|
@@ -33,6 +34,7 @@ export const explorerBaseUrls = {
|
|
|
33
34
|
[zkLink]: "https://explorer.zklink.io",
|
|
34
35
|
[zkLinkTestnet]: "https://goerli.explorer.zklink.io",
|
|
35
36
|
[bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
|
|
37
|
+
[bitlayerMainnet]: "https://www.btrscan.com",
|
|
36
38
|
[neoxTestnet]: "https://xt2scan.ngd.network",
|
|
37
39
|
};
|
|
38
40
|
|
|
@@ -58,6 +60,7 @@ export const txnBaseUrl = {
|
|
|
58
60
|
[zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
|
|
59
61
|
[zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
|
|
60
62
|
[bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
|
|
63
|
+
[bitlayerMainnet]: `${explorerBaseUrls[bitlayerMainnet]}/tx`,
|
|
61
64
|
[neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
|
|
62
65
|
};
|
|
63
66
|
|
|
@@ -180,6 +183,11 @@ export const nativeTokenDetails = {
|
|
|
180
183
|
symbol: "BTC",
|
|
181
184
|
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
182
185
|
},
|
|
186
|
+
[bitlayerMainnet]: {
|
|
187
|
+
name: "Bitcoin",
|
|
188
|
+
symbol: "BTC",
|
|
189
|
+
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
190
|
+
},
|
|
183
191
|
[neoxTestnet]: {
|
|
184
192
|
name: "Gas",
|
|
185
193
|
symbol: "GAS",
|
|
@@ -212,6 +220,7 @@ export const rpcUrls = {
|
|
|
212
220
|
[zkLink]: "https://rpc.zklink.io",
|
|
213
221
|
[zkLinkTestnet]: "https://goerli.rpc.zklink.io",
|
|
214
222
|
[bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
|
|
223
|
+
[bitlayerTestnet]: "https://rpc.bitlayer.org",
|
|
215
224
|
[neoxTestnet]: "https://neoxseed1.ngd.network",
|
|
216
225
|
};
|
|
217
226
|
|
|
@@ -237,6 +246,7 @@ export const chainNameToChainId = {
|
|
|
237
246
|
[zkLink]: 810180,
|
|
238
247
|
[zkLinkTestnet]: 810182,
|
|
239
248
|
[bitlayerTestnet]: 200810,
|
|
249
|
+
[bitlayerMainnet]: 200901,
|
|
240
250
|
[neoxTestnet]: 12227330,
|
|
241
251
|
};
|
|
242
252
|
|
|
@@ -262,5 +272,6 @@ export const chainIdToChainName = {
|
|
|
262
272
|
810180: zkLink,
|
|
263
273
|
810182: zkLinkTestnet,
|
|
264
274
|
200810: bitlayerTestnet,
|
|
275
|
+
200901: bitlayerMainnet,
|
|
265
276
|
12227330: neoxTestnet,
|
|
266
277
|
};
|