@tria-sdk/constants 1.0.34 → 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 +5 -0
- package/dist/index.js +0 -1
- package/dist/src/chains.d.ts +1 -8
- package/dist/src/chains.js +10 -21
- package/dist/src/config.d.ts +0 -1
- package/dist/src/config.js +1 -4
- package/dist/src/txn.d.ts +2 -2
- package/dist/src/txn.js +12 -13
- package/index.ts +0 -1
- package/package.json +7 -7
- package/src/chains.ts +10 -24
- package/src/config.ts +0 -5
- package/src/txn.ts +12 -14
- package/src/gasToken.ts +0 -13
package/dist/index.js
CHANGED
package/dist/src/chains.d.ts
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
export declare const mumbai = "MUMBAI";
|
|
2
|
-
export declare const polygon = "POLYGON";
|
|
3
|
-
export declare const ethereum = "ETH";
|
|
4
|
-
export declare const fuse = "FUSE";
|
|
5
|
-
export declare const fuseSpark = "FUSESPARK";
|
|
6
1
|
export declare const zkLink: string;
|
|
7
2
|
export declare const zkLinkTestnet: string;
|
|
8
3
|
export declare const bitlayerTestnet: string;
|
|
4
|
+
export declare const bitlayerMainnet: string;
|
|
9
5
|
export declare const neoxTestnet: string;
|
|
10
6
|
export declare const sepolia: string;
|
|
11
7
|
export declare const polygonAmoy: string;
|
|
12
|
-
export declare const vanarTestnet: string;
|
|
13
8
|
export type ZKLINK = "ZKLINK-NOVA";
|
|
14
9
|
export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
|
|
15
10
|
export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
|
|
16
11
|
export type NEOX_TESTNET = "NEOX-TESTNET";
|
|
17
12
|
export type SEPOLIA = "SEPOLIA";
|
|
18
13
|
export type AMOY = "AMOY";
|
|
19
|
-
export type VANGUARD_VANAR_TESTNET = "VANGUARD-VANAR-TESTNET";
|
|
20
14
|
export declare const TESTNET_CHAINS: string[];
|
|
21
15
|
export declare const SUPPORTED_EVM_CHAINS: string[];
|
|
22
|
-
export declare const GAS_ABS_ENABLED_CHAINS: string[];
|
|
23
16
|
export declare const AA_SUPPORTED_EVM_CHAINS: string[];
|
|
24
17
|
export declare const ALLCHAINS: string[];
|
|
25
18
|
export declare const networks: {
|
package/dist/src/chains.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
export const mumbai = "MUMBAI";
|
|
2
|
-
export const polygon = "POLYGON";
|
|
3
|
-
export const ethereum = "ETH";
|
|
4
|
-
export const fuse = "FUSE";
|
|
5
|
-
export const fuseSpark = "FUSESPARK";
|
|
6
1
|
export const zkLink = "ZKLINK-NOVA";
|
|
7
2
|
export const zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
|
|
8
3
|
export const bitlayerTestnet = "BITLAYER-TESTNET";
|
|
4
|
+
export const bitlayerMainnet = "BITLAYER-MAINNET";
|
|
9
5
|
export const neoxTestnet = "NEOX-TESTNET";
|
|
10
6
|
export const sepolia = "SEPOLIA";
|
|
11
7
|
export const polygonAmoy = "AMOY";
|
|
12
|
-
export const vanarTestnet = "VANGUARD-VANAR-TESTNET";
|
|
13
8
|
export const TESTNET_CHAINS = [
|
|
14
|
-
sepolia,
|
|
15
9
|
"MUMBAI",
|
|
16
10
|
"FUSESPARK",
|
|
17
11
|
"MANTA-TESTNET",
|
|
@@ -22,7 +16,6 @@ export const TESTNET_CHAINS = [
|
|
|
22
16
|
neoxTestnet,
|
|
23
17
|
sepolia,
|
|
24
18
|
polygonAmoy,
|
|
25
|
-
vanarTestnet,
|
|
26
19
|
];
|
|
27
20
|
export const SUPPORTED_EVM_CHAINS = [
|
|
28
21
|
"ETH",
|
|
@@ -35,7 +28,6 @@ export const SUPPORTED_EVM_CHAINS = [
|
|
|
35
28
|
"FUSE",
|
|
36
29
|
"FUSESPARK",
|
|
37
30
|
"MUMBAI",
|
|
38
|
-
sepolia,
|
|
39
31
|
"MANTA",
|
|
40
32
|
"MANTA-TESTNET",
|
|
41
33
|
"METIS",
|
|
@@ -45,16 +37,14 @@ export const SUPPORTED_EVM_CHAINS = [
|
|
|
45
37
|
zkLink,
|
|
46
38
|
zkLinkTestnet,
|
|
47
39
|
bitlayerTestnet,
|
|
40
|
+
bitlayerMainnet,
|
|
48
41
|
neoxTestnet,
|
|
49
42
|
sepolia,
|
|
50
43
|
polygonAmoy,
|
|
51
|
-
vanarTestnet,
|
|
52
44
|
];
|
|
53
|
-
export const GAS_ABS_ENABLED_CHAINS = [sepolia, "POLYGON"];
|
|
54
45
|
export const AA_SUPPORTED_EVM_CHAINS = [
|
|
55
46
|
// "ETH",
|
|
56
47
|
"POLYGON",
|
|
57
|
-
sepolia,
|
|
58
48
|
// "AVALANCHE",
|
|
59
49
|
// "ARBITRUM",
|
|
60
50
|
// "BINANCE",
|
|
@@ -79,7 +69,6 @@ export const ALLCHAINS = [
|
|
|
79
69
|
"FUSE",
|
|
80
70
|
"FUSESPARK",
|
|
81
71
|
"MUMBAI",
|
|
82
|
-
sepolia,
|
|
83
72
|
"MANTA",
|
|
84
73
|
"MANTA-TESTNET",
|
|
85
74
|
"METIS",
|
|
@@ -90,10 +79,10 @@ export const ALLCHAINS = [
|
|
|
90
79
|
zkLink,
|
|
91
80
|
zkLinkTestnet,
|
|
92
81
|
bitlayerTestnet,
|
|
82
|
+
bitlayerMainnet,
|
|
93
83
|
neoxTestnet,
|
|
94
84
|
sepolia,
|
|
95
85
|
polygonAmoy,
|
|
96
|
-
vanarTestnet,
|
|
97
86
|
];
|
|
98
87
|
const baseLogoUrl = "https://static.tria.so/chain-logo-w";
|
|
99
88
|
const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
|
|
@@ -213,13 +202,13 @@ export const networks = [
|
|
|
213
202
|
type: "testnet",
|
|
214
203
|
},
|
|
215
204
|
{
|
|
216
|
-
chainName:
|
|
217
|
-
logo: `${baseLogoUrl}/
|
|
218
|
-
type: "
|
|
205
|
+
chainName: bitlayerMainnet,
|
|
206
|
+
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
207
|
+
type: "mainnet",
|
|
219
208
|
},
|
|
220
209
|
{
|
|
221
|
-
chainName:
|
|
222
|
-
logo:
|
|
210
|
+
chainName: neoxTestnet,
|
|
211
|
+
logo: `${baseLogoUrl}/Neo.webp`,
|
|
223
212
|
type: "testnet",
|
|
224
213
|
},
|
|
225
214
|
];
|
|
@@ -247,8 +236,8 @@ export const chainNameToLogo = {
|
|
|
247
236
|
[zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
248
237
|
[zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
249
238
|
[bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
239
|
+
[bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
250
240
|
[neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
251
|
-
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
252
241
|
};
|
|
253
242
|
export const chainNameToLogoBlack = {
|
|
254
243
|
ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
@@ -274,6 +263,6 @@ export const chainNameToLogoBlack = {
|
|
|
274
263
|
[zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
275
264
|
[zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
276
265
|
[bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
266
|
+
[bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
277
267
|
[neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
278
|
-
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
|
|
279
268
|
};
|
package/dist/src/config.d.ts
CHANGED
|
@@ -3,4 +3,3 @@ export declare const isEvmChain: (chainName: string) => boolean;
|
|
|
3
3
|
export declare const isAaSupportedChain: (chainName: string) => boolean;
|
|
4
4
|
export declare const isChainSupported: (chainName: string) => boolean;
|
|
5
5
|
export declare const isTestnetChain: (chainName: string) => boolean;
|
|
6
|
-
export declare const isGasAbsEnabled: (chainName: string) => boolean;
|
package/dist/src/config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AA_SUPPORTED_EVM_CHAINS, ALLCHAINS,
|
|
1
|
+
import { AA_SUPPORTED_EVM_CHAINS, ALLCHAINS, SUPPORTED_EVM_CHAINS, TESTNET_CHAINS, } from "./chains";
|
|
2
2
|
export const prodApiUrl = "https://prod.tria.so";
|
|
3
3
|
export const isEvmChain = (chainName) => {
|
|
4
4
|
return SUPPORTED_EVM_CHAINS.includes(chainName);
|
|
@@ -12,6 +12,3 @@ export const isChainSupported = (chainName) => {
|
|
|
12
12
|
export const isTestnetChain = (chainName) => {
|
|
13
13
|
return TESTNET_CHAINS.includes(chainName);
|
|
14
14
|
};
|
|
15
|
-
export const isGasAbsEnabled = (chainName) => {
|
|
16
|
-
return GAS_ABS_ENABLED_CHAINS.includes(chainName);
|
|
17
|
-
};
|
package/dist/src/txn.d.ts
CHANGED
|
@@ -171,9 +171,9 @@ export declare const chainNameToChainId: {
|
|
|
171
171
|
"MANTLE-TESTNET": number;
|
|
172
172
|
};
|
|
173
173
|
export declare const chainIdToChainName: {
|
|
174
|
-
11155111: string;
|
|
175
174
|
80001: string;
|
|
176
175
|
80002: string;
|
|
176
|
+
11155111: string;
|
|
177
177
|
137: string;
|
|
178
178
|
1: string;
|
|
179
179
|
43114: string;
|
|
@@ -192,6 +192,6 @@ export declare const chainIdToChainName: {
|
|
|
192
192
|
810180: string;
|
|
193
193
|
810182: string;
|
|
194
194
|
200810: string;
|
|
195
|
+
200901: string;
|
|
195
196
|
12227330: string;
|
|
196
|
-
78600: string;
|
|
197
197
|
};
|
package/dist/src/txn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bitlayerTestnet, neoxTestnet, polygonAmoy, sepolia, zkLink, zkLinkTestnet,
|
|
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,8 +25,8 @@ 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
|
-
[vanarTestnet]: "https://explorer-vanguard.vanarchain.com",
|
|
30
30
|
};
|
|
31
31
|
export const txnBaseUrl = {
|
|
32
32
|
ETH: `${explorerBaseUrls.ETH}/tx`, // /txHash
|
|
@@ -50,8 +50,8 @@ export const txnBaseUrl = {
|
|
|
50
50
|
[zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
|
|
51
51
|
[zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
|
|
52
52
|
[bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
|
|
53
|
+
[bitlayerMainnet]: `${explorerBaseUrls[bitlayerMainnet]}/tx`,
|
|
53
54
|
[neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
|
|
54
|
-
[vanarTestnet]: `${explorerBaseUrls[vanarTestnet]}/tx`,
|
|
55
55
|
};
|
|
56
56
|
export const nativeTokenDetails = {
|
|
57
57
|
ETH: {
|
|
@@ -164,16 +164,16 @@ export const nativeTokenDetails = {
|
|
|
164
164
|
symbol: "BTC",
|
|
165
165
|
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
166
166
|
},
|
|
167
|
+
[bitlayerMainnet]: {
|
|
168
|
+
name: "Bitcoin",
|
|
169
|
+
symbol: "BTC",
|
|
170
|
+
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
171
|
+
},
|
|
167
172
|
[neoxTestnet]: {
|
|
168
173
|
name: "Gas",
|
|
169
174
|
symbol: "GAS",
|
|
170
175
|
logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
|
|
171
176
|
},
|
|
172
|
-
[vanarTestnet]: {
|
|
173
|
-
name: "Vanry",
|
|
174
|
-
symbol: "VG",
|
|
175
|
-
logoUrl: "https://explorer-vanguard.vanarchain.com/assets/network_icon_dark.svg",
|
|
176
|
-
},
|
|
177
177
|
};
|
|
178
178
|
const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
|
|
179
179
|
export const rpcUrls = {
|
|
@@ -181,7 +181,6 @@ export const rpcUrls = {
|
|
|
181
181
|
[polygonAmoy]: `https://polygon-amoy.g.alchemy.com/v2/${alchemyKey}`,
|
|
182
182
|
[sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
|
|
183
183
|
ETH: "https://eth.llamarpc.com",
|
|
184
|
-
[sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
|
|
185
184
|
POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
|
|
186
185
|
AVALANCHE: "https://avalanche-c-chain.publicnode.com",
|
|
187
186
|
ARBITRUM: "https://arbitrum-one.publicnode.com",
|
|
@@ -199,8 +198,8 @@ export const rpcUrls = {
|
|
|
199
198
|
[zkLink]: "https://rpc.zklink.io",
|
|
200
199
|
[zkLinkTestnet]: "https://goerli.rpc.zklink.io",
|
|
201
200
|
[bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
|
|
201
|
+
[bitlayerTestnet]: "https://rpc.bitlayer.org",
|
|
202
202
|
[neoxTestnet]: "https://neoxseed1.ngd.network",
|
|
203
|
-
[vanarTestnet]: "http://rpc-partners-vanguard.vanarchain.com", // "https://rpc-vanguard.vanarchain.com",
|
|
204
203
|
};
|
|
205
204
|
export const chainNameToChainId = {
|
|
206
205
|
MUMBAI: 80001,
|
|
@@ -224,13 +223,13 @@ export const chainNameToChainId = {
|
|
|
224
223
|
[zkLink]: 810180,
|
|
225
224
|
[zkLinkTestnet]: 810182,
|
|
226
225
|
[bitlayerTestnet]: 200810,
|
|
226
|
+
[bitlayerMainnet]: 200901,
|
|
227
227
|
[neoxTestnet]: 12227330,
|
|
228
|
-
[vanarTestnet]: 78600,
|
|
229
228
|
};
|
|
230
229
|
export const chainIdToChainName = {
|
|
231
|
-
11155111: sepolia,
|
|
232
230
|
80001: "MUMBAI",
|
|
233
231
|
80002: polygonAmoy,
|
|
232
|
+
11155111: sepolia,
|
|
234
233
|
137: "POLYGON",
|
|
235
234
|
1: "ETH",
|
|
236
235
|
43114: "AVALANCHE",
|
|
@@ -249,6 +248,6 @@ export const chainIdToChainName = {
|
|
|
249
248
|
810180: zkLink,
|
|
250
249
|
810182: zkLinkTestnet,
|
|
251
250
|
200810: bitlayerTestnet,
|
|
251
|
+
200901: bitlayerMainnet,
|
|
252
252
|
12227330: neoxTestnet,
|
|
253
|
-
78600: vanarTestnet,
|
|
254
253
|
};
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tria-sdk/constants",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
-
"build": "tsc --project tsconfig.json"
|
|
10
|
-
},
|
|
11
7
|
"devDependencies": {
|
|
12
8
|
"typescript": "^5.3.3",
|
|
13
9
|
"typescript-tools": "^0.3.1"
|
|
14
10
|
},
|
|
15
11
|
"keywords": [],
|
|
16
12
|
"author": "",
|
|
17
|
-
"license": "ISC"
|
|
18
|
-
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
16
|
+
"build": "tsc --project tsconfig.json"
|
|
17
|
+
}
|
|
18
|
+
}
|
package/src/chains.ts
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
export const mumbai = "MUMBAI";
|
|
2
|
-
export const polygon = "POLYGON";
|
|
3
|
-
export const ethereum = "ETH";
|
|
4
|
-
export const fuse = "FUSE";
|
|
5
|
-
export const fuseSpark = "FUSESPARK";
|
|
6
|
-
|
|
7
1
|
export const zkLink: string = "ZKLINK-NOVA";
|
|
8
2
|
export const zkLinkTestnet: string = "ZKLINK-NOVA-TESTNET";
|
|
9
3
|
export const bitlayerTestnet: string = "BITLAYER-TESTNET";
|
|
4
|
+
export const bitlayerMainnet: string = "BITLAYER-MAINNET";
|
|
10
5
|
export const neoxTestnet: string = "NEOX-TESTNET";
|
|
11
6
|
export const sepolia: string = "SEPOLIA";
|
|
12
7
|
export const polygonAmoy: string = "AMOY";
|
|
13
|
-
export const vanarTestnet: string = "VANGUARD-VANAR-TESTNET";
|
|
14
8
|
|
|
15
9
|
export type ZKLINK = "ZKLINK-NOVA";
|
|
16
10
|
export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
|
|
@@ -18,10 +12,8 @@ export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
|
|
|
18
12
|
export type NEOX_TESTNET = "NEOX-TESTNET";
|
|
19
13
|
export type SEPOLIA = "SEPOLIA";
|
|
20
14
|
export type AMOY = "AMOY";
|
|
21
|
-
export type VANGUARD_VANAR_TESTNET = "VANGUARD-VANAR-TESTNET";
|
|
22
15
|
|
|
23
16
|
export const TESTNET_CHAINS = [
|
|
24
|
-
sepolia,
|
|
25
17
|
"MUMBAI",
|
|
26
18
|
"FUSESPARK",
|
|
27
19
|
"MANTA-TESTNET",
|
|
@@ -32,7 +24,6 @@ export const TESTNET_CHAINS = [
|
|
|
32
24
|
neoxTestnet,
|
|
33
25
|
sepolia,
|
|
34
26
|
polygonAmoy,
|
|
35
|
-
vanarTestnet,
|
|
36
27
|
];
|
|
37
28
|
|
|
38
29
|
export const SUPPORTED_EVM_CHAINS = [
|
|
@@ -46,7 +37,6 @@ export const SUPPORTED_EVM_CHAINS = [
|
|
|
46
37
|
"FUSE",
|
|
47
38
|
"FUSESPARK",
|
|
48
39
|
"MUMBAI",
|
|
49
|
-
sepolia,
|
|
50
40
|
"MANTA",
|
|
51
41
|
"MANTA-TESTNET",
|
|
52
42
|
"METIS",
|
|
@@ -56,18 +46,15 @@ export const SUPPORTED_EVM_CHAINS = [
|
|
|
56
46
|
zkLink,
|
|
57
47
|
zkLinkTestnet,
|
|
58
48
|
bitlayerTestnet,
|
|
49
|
+
bitlayerMainnet,
|
|
59
50
|
neoxTestnet,
|
|
60
51
|
sepolia,
|
|
61
52
|
polygonAmoy,
|
|
62
|
-
vanarTestnet,
|
|
63
53
|
];
|
|
64
54
|
|
|
65
|
-
export const GAS_ABS_ENABLED_CHAINS = [sepolia, "POLYGON"];
|
|
66
|
-
|
|
67
55
|
export const AA_SUPPORTED_EVM_CHAINS = [
|
|
68
56
|
// "ETH",
|
|
69
57
|
"POLYGON",
|
|
70
|
-
sepolia,
|
|
71
58
|
// "AVALANCHE",
|
|
72
59
|
// "ARBITRUM",
|
|
73
60
|
// "BINANCE",
|
|
@@ -93,7 +80,6 @@ export const ALLCHAINS = [
|
|
|
93
80
|
"FUSE",
|
|
94
81
|
"FUSESPARK",
|
|
95
82
|
"MUMBAI",
|
|
96
|
-
sepolia,
|
|
97
83
|
"MANTA",
|
|
98
84
|
"MANTA-TESTNET",
|
|
99
85
|
"METIS",
|
|
@@ -104,10 +90,10 @@ export const ALLCHAINS = [
|
|
|
104
90
|
zkLink,
|
|
105
91
|
zkLinkTestnet,
|
|
106
92
|
bitlayerTestnet,
|
|
93
|
+
bitlayerMainnet,
|
|
107
94
|
neoxTestnet,
|
|
108
95
|
sepolia,
|
|
109
96
|
polygonAmoy,
|
|
110
|
-
vanarTestnet,
|
|
111
97
|
];
|
|
112
98
|
|
|
113
99
|
const baseLogoUrl = "https://static.tria.so/chain-logo-w";
|
|
@@ -229,13 +215,13 @@ export const networks = [
|
|
|
229
215
|
type: "testnet",
|
|
230
216
|
},
|
|
231
217
|
{
|
|
232
|
-
chainName:
|
|
233
|
-
logo: `${baseLogoUrl}/
|
|
234
|
-
type: "
|
|
218
|
+
chainName: bitlayerMainnet,
|
|
219
|
+
logo: `${baseLogoUrl}/bitlayer.webp`,
|
|
220
|
+
type: "mainnet",
|
|
235
221
|
},
|
|
236
222
|
{
|
|
237
|
-
chainName:
|
|
238
|
-
logo:
|
|
223
|
+
chainName: neoxTestnet,
|
|
224
|
+
logo: `${baseLogoUrl}/Neo.webp`,
|
|
239
225
|
type: "testnet",
|
|
240
226
|
},
|
|
241
227
|
];
|
|
@@ -264,8 +250,8 @@ export const chainNameToLogo = {
|
|
|
264
250
|
[zkLink]: `${baseLogoUrl}/zklink.webp`,
|
|
265
251
|
[zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
|
|
266
252
|
[bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
253
|
+
[bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
|
|
267
254
|
[neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
|
|
268
|
-
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
|
|
269
255
|
};
|
|
270
256
|
|
|
271
257
|
export const chainNameToLogoBlack = {
|
|
@@ -292,6 +278,6 @@ export const chainNameToLogoBlack = {
|
|
|
292
278
|
[zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
293
279
|
[zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
|
|
294
280
|
[bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
281
|
+
[bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
|
|
295
282
|
[neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
|
|
296
|
-
[vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
|
|
297
283
|
};
|
package/src/config.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AA_SUPPORTED_EVM_CHAINS,
|
|
3
3
|
ALLCHAINS,
|
|
4
|
-
GAS_ABS_ENABLED_CHAINS,
|
|
5
4
|
SUPPORTED_EVM_CHAINS,
|
|
6
5
|
TESTNET_CHAINS,
|
|
7
6
|
} from "./chains";
|
|
@@ -23,7 +22,3 @@ export const isChainSupported = (chainName: string) => {
|
|
|
23
22
|
export const isTestnetChain = (chainName: string) => {
|
|
24
23
|
return TESTNET_CHAINS.includes(chainName);
|
|
25
24
|
};
|
|
26
|
-
|
|
27
|
-
export const isGasAbsEnabled = (chainName: string) => {
|
|
28
|
-
return GAS_ABS_ENABLED_CHAINS.includes(chainName);
|
|
29
|
-
};
|
package/src/txn.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bitlayerTestnet,
|
|
3
|
+
bitlayerMainnet,
|
|
3
4
|
neoxTestnet,
|
|
4
5
|
polygonAmoy,
|
|
5
6
|
sepolia,
|
|
6
7
|
zkLink,
|
|
7
8
|
zkLinkTestnet,
|
|
8
|
-
vanarTestnet,
|
|
9
9
|
} from "./chains";
|
|
10
10
|
|
|
11
11
|
export const explorerBaseUrls = {
|
|
@@ -34,8 +34,8 @@ export const explorerBaseUrls = {
|
|
|
34
34
|
[zkLink]: "https://explorer.zklink.io",
|
|
35
35
|
[zkLinkTestnet]: "https://goerli.explorer.zklink.io",
|
|
36
36
|
[bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
|
|
37
|
+
[bitlayerMainnet]: "https://www.btrscan.com",
|
|
37
38
|
[neoxTestnet]: "https://xt2scan.ngd.network",
|
|
38
|
-
[vanarTestnet]: "https://explorer-vanguard.vanarchain.com",
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export const txnBaseUrl = {
|
|
@@ -60,8 +60,8 @@ export const txnBaseUrl = {
|
|
|
60
60
|
[zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
|
|
61
61
|
[zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
|
|
62
62
|
[bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
|
|
63
|
+
[bitlayerMainnet]: `${explorerBaseUrls[bitlayerMainnet]}/tx`,
|
|
63
64
|
[neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
|
|
64
|
-
[vanarTestnet]: `${explorerBaseUrls[vanarTestnet]}/tx`,
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
export const nativeTokenDetails = {
|
|
@@ -183,18 +183,17 @@ export const nativeTokenDetails = {
|
|
|
183
183
|
symbol: "BTC",
|
|
184
184
|
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
185
185
|
},
|
|
186
|
+
[bitlayerMainnet]: {
|
|
187
|
+
name: "Bitcoin",
|
|
188
|
+
symbol: "BTC",
|
|
189
|
+
logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
|
|
190
|
+
},
|
|
186
191
|
[neoxTestnet]: {
|
|
187
192
|
name: "Gas",
|
|
188
193
|
symbol: "GAS",
|
|
189
194
|
logoUrl:
|
|
190
195
|
"https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
|
|
191
196
|
},
|
|
192
|
-
[vanarTestnet]: {
|
|
193
|
-
name: "Vanry",
|
|
194
|
-
symbol: "VG",
|
|
195
|
-
logoUrl:
|
|
196
|
-
"https://explorer-vanguard.vanarchain.com/assets/network_icon_dark.svg",
|
|
197
|
-
},
|
|
198
197
|
};
|
|
199
198
|
|
|
200
199
|
const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
|
|
@@ -204,7 +203,6 @@ export const rpcUrls = {
|
|
|
204
203
|
[polygonAmoy]: `https://polygon-amoy.g.alchemy.com/v2/${alchemyKey}`,
|
|
205
204
|
[sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
|
|
206
205
|
ETH: "https://eth.llamarpc.com",
|
|
207
|
-
[sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
|
|
208
206
|
POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
|
|
209
207
|
AVALANCHE: "https://avalanche-c-chain.publicnode.com",
|
|
210
208
|
ARBITRUM: "https://arbitrum-one.publicnode.com",
|
|
@@ -222,8 +220,8 @@ export const rpcUrls = {
|
|
|
222
220
|
[zkLink]: "https://rpc.zklink.io",
|
|
223
221
|
[zkLinkTestnet]: "https://goerli.rpc.zklink.io",
|
|
224
222
|
[bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
|
|
223
|
+
[bitlayerTestnet]: "https://rpc.bitlayer.org",
|
|
225
224
|
[neoxTestnet]: "https://neoxseed1.ngd.network",
|
|
226
|
-
[vanarTestnet]: "http://rpc-partners-vanguard.vanarchain.com", // "https://rpc-vanguard.vanarchain.com",
|
|
227
225
|
};
|
|
228
226
|
|
|
229
227
|
export const chainNameToChainId = {
|
|
@@ -248,14 +246,14 @@ export const chainNameToChainId = {
|
|
|
248
246
|
[zkLink]: 810180,
|
|
249
247
|
[zkLinkTestnet]: 810182,
|
|
250
248
|
[bitlayerTestnet]: 200810,
|
|
249
|
+
[bitlayerMainnet]: 200901,
|
|
251
250
|
[neoxTestnet]: 12227330,
|
|
252
|
-
[vanarTestnet]: 78600,
|
|
253
251
|
};
|
|
254
252
|
|
|
255
253
|
export const chainIdToChainName = {
|
|
256
|
-
11155111: sepolia,
|
|
257
254
|
80001: "MUMBAI",
|
|
258
255
|
80002: polygonAmoy,
|
|
256
|
+
11155111: sepolia,
|
|
259
257
|
137: "POLYGON",
|
|
260
258
|
1: "ETH",
|
|
261
259
|
43114: "AVALANCHE",
|
|
@@ -274,6 +272,6 @@ export const chainIdToChainName = {
|
|
|
274
272
|
810180: zkLink,
|
|
275
273
|
810182: zkLinkTestnet,
|
|
276
274
|
200810: bitlayerTestnet,
|
|
275
|
+
200901: bitlayerMainnet,
|
|
277
276
|
12227330: neoxTestnet,
|
|
278
|
-
78600: vanarTestnet,
|
|
279
277
|
};
|
package/src/gasToken.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// import { polygonAmoy, sepolia } from "./chains";
|
|
2
|
-
|
|
3
|
-
// export const gasTokenAddresses = {
|
|
4
|
-
// [sepolia]: {
|
|
5
|
-
// USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
|
6
|
-
// USDT: "",
|
|
7
|
-
// TST: "0xe2fDF4b113552A7bFaD5492D7E68F7479D7DFaCF",
|
|
8
|
-
// },
|
|
9
|
-
// [polygonAmoy]: {
|
|
10
|
-
// USDC: "",
|
|
11
|
-
// USDT: "",
|
|
12
|
-
// },
|
|
13
|
-
// };
|