@tria-sdk/constants 1.0.42 → 1.0.43

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.
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @tria-sdk/constants@1.0.42 build /Users/dawn/Projects/Tria/tria-monorepo/packages/constants
4
+ > tsc --project tsconfig.json
5
+
@@ -1,3 +1,8 @@
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";
1
6
  export declare const zkLink: string;
2
7
  export declare const zkLinkTestnet: string;
3
8
  export declare const bitlayerTestnet: string;
@@ -5,12 +10,14 @@ export declare const bitlayerMainnet: string;
5
10
  export declare const neoxTestnet: string;
6
11
  export declare const sepolia: string;
7
12
  export declare const polygonAmoy: string;
13
+ export declare const vanarTestnet: string;
8
14
  export type ZKLINK = "ZKLINK-NOVA";
9
15
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
10
16
  export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
11
17
  export type NEOX_TESTNET = "NEOX-TESTNET";
12
18
  export type SEPOLIA = "SEPOLIA";
13
19
  export type AMOY = "AMOY";
20
+ export type VANGUARD_VANAR_TESTNET = "VANGUARD-VANAR-TESTNET";
14
21
  export declare const TESTNET_CHAINS: string[];
15
22
  export declare const SUPPORTED_EVM_CHAINS: string[];
16
23
  export declare const AA_SUPPORTED_EVM_CHAINS: string[];
@@ -1,3 +1,8 @@
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";
1
6
  export const zkLink = "ZKLINK-NOVA";
2
7
  export const zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
3
8
  export const bitlayerTestnet = "BITLAYER-TESTNET";
@@ -5,6 +10,7 @@ export const bitlayerMainnet = "BITLAYER-MAINNET";
5
10
  export const neoxTestnet = "NEOX-TESTNET";
6
11
  export const sepolia = "SEPOLIA";
7
12
  export const polygonAmoy = "AMOY";
13
+ export const vanarTestnet = "VANGUARD-VANAR-TESTNET";
8
14
  export const TESTNET_CHAINS = [
9
15
  "MUMBAI",
10
16
  "FUSESPARK",
@@ -16,6 +22,7 @@ export const TESTNET_CHAINS = [
16
22
  neoxTestnet,
17
23
  sepolia,
18
24
  polygonAmoy,
25
+ vanarTestnet,
19
26
  ];
20
27
  export const SUPPORTED_EVM_CHAINS = [
21
28
  "ETH",
@@ -41,6 +48,7 @@ export const SUPPORTED_EVM_CHAINS = [
41
48
  neoxTestnet,
42
49
  sepolia,
43
50
  polygonAmoy,
51
+ vanarTestnet,
44
52
  ];
45
53
  export const AA_SUPPORTED_EVM_CHAINS = [
46
54
  // "ETH",
@@ -83,6 +91,7 @@ export const ALLCHAINS = [
83
91
  neoxTestnet,
84
92
  sepolia,
85
93
  polygonAmoy,
94
+ vanarTestnet,
86
95
  ];
87
96
  const baseLogoUrl = "https://static.tria.so/chain-logo-w";
88
97
  const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
@@ -211,6 +220,11 @@ export const networks = [
211
220
  logo: `${baseLogoUrl}/Neo.webp`,
212
221
  type: "testnet",
213
222
  },
223
+ {
224
+ chainName: vanarTestnet,
225
+ logo: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
226
+ type: "testnet",
227
+ },
214
228
  ];
215
229
  export const chainNameToLogo = {
216
230
  ETH: `${baseLogoUrl}/Ethereum.webp`,
@@ -238,6 +252,7 @@ export const chainNameToLogo = {
238
252
  [bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
239
253
  [bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
240
254
  [neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
255
+ [vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
241
256
  };
242
257
  export const chainNameToLogoBlack = {
243
258
  ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
@@ -265,4 +280,5 @@ export const chainNameToLogoBlack = {
265
280
  [bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
266
281
  [bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
267
282
  [neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
283
+ [vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
268
284
  };
package/dist/src/txn.d.ts CHANGED
@@ -194,4 +194,5 @@ export declare const chainIdToChainName: {
194
194
  200810: string;
195
195
  200901: string;
196
196
  12227330: string;
197
+ 78600: string;
197
198
  };
package/dist/src/txn.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bitlayerTestnet, bitlayerMainnet, neoxTestnet, polygonAmoy, sepolia, zkLink, zkLinkTestnet, } from "./chains";
1
+ import { bitlayerTestnet, bitlayerMainnet, neoxTestnet, polygonAmoy, sepolia, zkLink, zkLinkTestnet, vanarTestnet, } from "./chains";
2
2
  export const explorerBaseUrls = {
3
3
  ETH: "https://etherscan.io",
4
4
  [sepolia]: "https://sepolia.etherscan.io",
@@ -27,6 +27,7 @@ export const explorerBaseUrls = {
27
27
  [bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
28
28
  [bitlayerMainnet]: "https://www.btrscan.com",
29
29
  [neoxTestnet]: "https://xt2scan.ngd.network",
30
+ [vanarTestnet]: "https://explorer-vanguard.vanarchain.com",
30
31
  };
31
32
  export const txnBaseUrl = {
32
33
  ETH: `${explorerBaseUrls.ETH}/tx`, // /txHash
@@ -52,6 +53,7 @@ export const txnBaseUrl = {
52
53
  [bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
53
54
  [bitlayerMainnet]: `${explorerBaseUrls[bitlayerMainnet]}/tx`,
54
55
  [neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
56
+ [vanarTestnet]: `${explorerBaseUrls[vanarTestnet]}/tx`,
55
57
  };
56
58
  export const nativeTokenDetails = {
57
59
  ETH: {
@@ -174,6 +176,11 @@ export const nativeTokenDetails = {
174
176
  symbol: "GAS",
175
177
  logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
176
178
  },
179
+ [vanarTestnet]: {
180
+ name: "Vanry",
181
+ symbol: "VG",
182
+ logoUrl: "https://explorer-vanguard.vanarchain.com/assets/network_icon_dark.svg",
183
+ },
177
184
  };
178
185
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
179
186
  export const rpcUrls = {
@@ -200,6 +207,7 @@ export const rpcUrls = {
200
207
  [bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
201
208
  [bitlayerMainnet]: "https://rpc.bitlayer.org",
202
209
  [neoxTestnet]: "https://neoxseed1.ngd.network",
210
+ [vanarTestnet]: "https://rpc-partners-vanguard.vanarchain.com", // "https://rpc-vanguard.vanarchain.com",
203
211
  };
204
212
  export const chainNameToChainId = {
205
213
  MUMBAI: 80001,
@@ -225,6 +233,7 @@ export const chainNameToChainId = {
225
233
  [bitlayerTestnet]: 200810,
226
234
  [bitlayerMainnet]: 200901,
227
235
  [neoxTestnet]: 12227330,
236
+ [vanarTestnet]: 78600,
228
237
  };
229
238
  export const chainIdToChainName = {
230
239
  80001: "MUMBAI",
@@ -250,4 +259,5 @@ export const chainIdToChainName = {
250
259
  200810: bitlayerTestnet,
251
260
  200901: bitlayerMainnet,
252
261
  12227330: neoxTestnet,
262
+ 78600: vanarTestnet,
253
263
  };
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@tria-sdk/constants",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
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,3 +1,9 @@
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
7
  export const zkLink: string = "ZKLINK-NOVA";
2
8
  export const zkLinkTestnet: string = "ZKLINK-NOVA-TESTNET";
3
9
  export const bitlayerTestnet: string = "BITLAYER-TESTNET";
@@ -5,6 +11,7 @@ export const bitlayerMainnet: string = "BITLAYER-MAINNET";
5
11
  export const neoxTestnet: string = "NEOX-TESTNET";
6
12
  export const sepolia: string = "SEPOLIA";
7
13
  export const polygonAmoy: string = "AMOY";
14
+ export const vanarTestnet: string = "VANGUARD-VANAR-TESTNET";
8
15
 
9
16
  export type ZKLINK = "ZKLINK-NOVA";
10
17
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
@@ -12,6 +19,7 @@ export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
12
19
  export type NEOX_TESTNET = "NEOX-TESTNET";
13
20
  export type SEPOLIA = "SEPOLIA";
14
21
  export type AMOY = "AMOY";
22
+ export type VANGUARD_VANAR_TESTNET = "VANGUARD-VANAR-TESTNET";
15
23
 
16
24
  export const TESTNET_CHAINS = [
17
25
  "MUMBAI",
@@ -24,6 +32,7 @@ export const TESTNET_CHAINS = [
24
32
  neoxTestnet,
25
33
  sepolia,
26
34
  polygonAmoy,
35
+ vanarTestnet,
27
36
  ];
28
37
 
29
38
  export const SUPPORTED_EVM_CHAINS = [
@@ -50,6 +59,7 @@ export const SUPPORTED_EVM_CHAINS = [
50
59
  neoxTestnet,
51
60
  sepolia,
52
61
  polygonAmoy,
62
+ vanarTestnet,
53
63
  ];
54
64
 
55
65
  export const AA_SUPPORTED_EVM_CHAINS = [
@@ -94,6 +104,7 @@ export const ALLCHAINS = [
94
104
  neoxTestnet,
95
105
  sepolia,
96
106
  polygonAmoy,
107
+ vanarTestnet,
97
108
  ];
98
109
 
99
110
  const baseLogoUrl = "https://static.tria.so/chain-logo-w";
@@ -224,6 +235,11 @@ export const networks = [
224
235
  logo: `${baseLogoUrl}/Neo.webp`,
225
236
  type: "testnet",
226
237
  },
238
+ {
239
+ chainName: vanarTestnet,
240
+ logo: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
241
+ type: "testnet",
242
+ },
227
243
  ];
228
244
 
229
245
  export const chainNameToLogo = {
@@ -252,6 +268,7 @@ export const chainNameToLogo = {
252
268
  [bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
253
269
  [bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
254
270
  [neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
271
+ [vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrl}/Vanguard.webp`,
255
272
  };
256
273
 
257
274
  export const chainNameToLogoBlack = {
@@ -280,4 +297,5 @@ export const chainNameToLogoBlack = {
280
297
  [bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
281
298
  [bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
282
299
  [neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
300
+ [vanarTestnet]: "https://vanguard.vanarchain.com/assets/vanry-logo.png", //`${baseLogoUrlBlack}/Vanguard.png`,
283
301
  };
package/src/txn.ts CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  sepolia,
7
7
  zkLink,
8
8
  zkLinkTestnet,
9
+ vanarTestnet,
9
10
  } from "./chains";
10
11
 
11
12
  export const explorerBaseUrls = {
@@ -36,6 +37,7 @@ export const explorerBaseUrls = {
36
37
  [bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
37
38
  [bitlayerMainnet]: "https://www.btrscan.com",
38
39
  [neoxTestnet]: "https://xt2scan.ngd.network",
40
+ [vanarTestnet]: "https://explorer-vanguard.vanarchain.com",
39
41
  };
40
42
 
41
43
  export const txnBaseUrl = {
@@ -62,6 +64,7 @@ export const txnBaseUrl = {
62
64
  [bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
63
65
  [bitlayerMainnet]: `${explorerBaseUrls[bitlayerMainnet]}/tx`,
64
66
  [neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
67
+ [vanarTestnet]: `${explorerBaseUrls[vanarTestnet]}/tx`,
65
68
  };
66
69
 
67
70
  export const nativeTokenDetails = {
@@ -194,6 +197,12 @@ export const nativeTokenDetails = {
194
197
  logoUrl:
195
198
  "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
196
199
  },
200
+ [vanarTestnet]: {
201
+ name: "Vanry",
202
+ symbol: "VG",
203
+ logoUrl:
204
+ "https://explorer-vanguard.vanarchain.com/assets/network_icon_dark.svg",
205
+ },
197
206
  };
198
207
 
199
208
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
@@ -222,6 +231,7 @@ export const rpcUrls = {
222
231
  [bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
223
232
  [bitlayerMainnet]: "https://rpc.bitlayer.org",
224
233
  [neoxTestnet]: "https://neoxseed1.ngd.network",
234
+ [vanarTestnet]: "https://rpc-partners-vanguard.vanarchain.com", // "https://rpc-vanguard.vanarchain.com",
225
235
  };
226
236
 
227
237
  export const chainNameToChainId = {
@@ -248,6 +258,7 @@ export const chainNameToChainId = {
248
258
  [bitlayerTestnet]: 200810,
249
259
  [bitlayerMainnet]: 200901,
250
260
  [neoxTestnet]: 12227330,
261
+ [vanarTestnet]: 78600,
251
262
  };
252
263
 
253
264
  export const chainIdToChainName = {
@@ -274,4 +285,5 @@ export const chainIdToChainName = {
274
285
  200810: bitlayerTestnet,
275
286
  200901: bitlayerMainnet,
276
287
  12227330: neoxTestnet,
288
+ 78600: vanarTestnet,
277
289
  };
File without changes
@@ -1,13 +0,0 @@
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
- // };