@tria-sdk/constants 1.0.12 → 1.0.13

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.
@@ -1,9 +1,11 @@
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 neoxTestnet = "NEOX-TESTNET";
4
5
  export type ZKLINK = "ZKLINK-NOVA";
5
6
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
6
7
  export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
8
+ export type NEOX_TESTNET = "NEOX-TESTNET";
7
9
  export declare const TESTNET_CHAINS: string[];
8
10
  export declare const SUPPORTED_EVM_CHAINS: string[];
9
11
  export declare const AA_SUPPORTED_EVM_CHAINS: string[];
@@ -32,6 +34,7 @@ export declare const chainNameToLogo: {
32
34
  MANTLE: string;
33
35
  "MANTLE-TESTNET": string;
34
36
  SOLANA: string;
37
+ "NEOX-TESTNET": string;
35
38
  };
36
39
  export declare const chainNameToLogoBlack: {
37
40
  [x: string]: string;
@@ -53,4 +56,5 @@ export declare const chainNameToLogoBlack: {
53
56
  MANTLE: string;
54
57
  "MANTLE-TESTNET": string;
55
58
  SOLANA: string;
59
+ "NEOX-TESTNET": string;
56
60
  };
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.chainNameToLogoBlack = exports.chainNameToLogo = exports.networks = exports.ALLCHAINS = exports.AA_SUPPORTED_EVM_CHAINS = exports.SUPPORTED_EVM_CHAINS = exports.TESTNET_CHAINS = exports.bitlayerTestnet = exports.zkLinkTestnet = exports.zkLink = void 0;
3
+ exports.chainNameToLogoBlack = exports.chainNameToLogo = exports.networks = exports.ALLCHAINS = exports.AA_SUPPORTED_EVM_CHAINS = exports.SUPPORTED_EVM_CHAINS = exports.TESTNET_CHAINS = exports.neoxTestnet = exports.bitlayerTestnet = exports.zkLinkTestnet = exports.zkLink = void 0;
4
4
  exports.zkLink = "ZKLINK-NOVA";
5
5
  exports.zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
6
6
  exports.bitlayerTestnet = "BITLAYER-TESTNET";
7
+ exports.neoxTestnet = "NEOX-TESTNET";
7
8
  exports.TESTNET_CHAINS = [
8
9
  "MUMBAI",
9
10
  "FUSESPARK",
@@ -12,6 +13,7 @@ exports.TESTNET_CHAINS = [
12
13
  "MANTLE-TESTNET",
13
14
  exports.zkLinkTestnet,
14
15
  exports.bitlayerTestnet,
16
+ exports.neoxTestnet,
15
17
  ];
16
18
  exports.SUPPORTED_EVM_CHAINS = [
17
19
  "ETH",
@@ -33,6 +35,7 @@ exports.SUPPORTED_EVM_CHAINS = [
33
35
  exports.zkLink,
34
36
  exports.zkLinkTestnet,
35
37
  exports.bitlayerTestnet,
38
+ exports.neoxTestnet,
36
39
  ];
37
40
  exports.AA_SUPPORTED_EVM_CHAINS = [
38
41
  "ETH",
@@ -66,6 +69,7 @@ exports.ALLCHAINS = [
66
69
  exports.zkLink,
67
70
  exports.zkLinkTestnet,
68
71
  exports.bitlayerTestnet,
72
+ exports.neoxTestnet,
69
73
  ];
70
74
  const baseLogoUrl = "https://static.tria.so/chain-logo-w";
71
75
  const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
@@ -154,6 +158,10 @@ exports.networks = [
154
158
  chainName: exports.bitlayerTestnet,
155
159
  logo: `${baseLogoUrl}/bitlayer.webp`,
156
160
  },
161
+ {
162
+ chainName: exports.neoxTestnet,
163
+ logo: `${baseLogoUrl}/neox.webp`,
164
+ },
157
165
  ];
158
166
  exports.chainNameToLogo = {
159
167
  ETH: `${baseLogoUrl}/Ethereum.webp`,
@@ -177,6 +185,7 @@ exports.chainNameToLogo = {
177
185
  [exports.zkLink]: `${baseLogoUrl}/zklink.webp`,
178
186
  [exports.zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
179
187
  [exports.bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
188
+ [exports.neoxTestnet]: `${baseLogoUrl}/neox.webp`,
180
189
  };
181
190
  exports.chainNameToLogoBlack = {
182
191
  ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
@@ -200,4 +209,5 @@ exports.chainNameToLogoBlack = {
200
209
  [exports.zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
201
210
  [exports.zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
202
211
  [exports.bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
212
+ [exports.neoxTestnet]: `${baseLogoUrlBlack}/neox.png`,
203
213
  };
package/dist/src/txn.d.ts CHANGED
@@ -20,6 +20,7 @@ export declare const explorerBaseUrls: {
20
20
  "MANTLE-TESTNET": string;
21
21
  MANTA: string;
22
22
  "MANTA-TESTNET": string;
23
+ "NEOX-TESTNET": string;
23
24
  };
24
25
  export declare const txnBaseUrl: {
25
26
  [x: string]: string;
@@ -39,6 +40,7 @@ export declare const txnBaseUrl: {
39
40
  "MANTLE-TESTNET": string;
40
41
  MANTA: string;
41
42
  "MANTA-TESTNET": string;
43
+ "NEOX-TESTNET": string;
42
44
  };
43
45
  export declare const nativeTokenDetails: {
44
46
  [x: string]: {
@@ -131,6 +133,11 @@ export declare const nativeTokenDetails: {
131
133
  symbol: string;
132
134
  logoUrl: string;
133
135
  };
136
+ "NEOX-TESTNET": {
137
+ name: string;
138
+ symbol: string;
139
+ logoUrl: string;
140
+ };
134
141
  };
135
142
  export declare const rpcUrls: {
136
143
  [x: string]: string;
@@ -150,6 +157,7 @@ export declare const rpcUrls: {
150
157
  "METIS-TESTNET": string;
151
158
  MANTLE: string;
152
159
  "MANTLE-TESTNET": string;
160
+ "NEOX-TESTNET": string;
153
161
  };
154
162
  export declare const chainNameToChainId: {
155
163
  [x: string]: number;
@@ -169,6 +177,7 @@ export declare const chainNameToChainId: {
169
177
  "METIS-TESTNET": number;
170
178
  MANTLE: number;
171
179
  "MANTLE-TESTNET": number;
180
+ "NEOX-TESTNET": number;
172
181
  };
173
182
  export declare const chainIdToChainName: {
174
183
  80001: string;
@@ -190,4 +199,5 @@ export declare const chainIdToChainName: {
190
199
  810180: string;
191
200
  810182: string;
192
201
  200810: string;
202
+ 12227330: string;
193
203
  };
package/dist/src/txn.js CHANGED
@@ -26,6 +26,7 @@ exports.explorerBaseUrls = {
26
26
  [chains_1.zkLink]: "https://explorer.zklink.io",
27
27
  [chains_1.zkLinkTestnet]: "https://goerli.explorer.zklink.io",
28
28
  [chains_1.bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
29
+ [chains_1.neoxTestnet]: "https://xt2scan.ngd.network",
29
30
  };
30
31
  exports.txnBaseUrl = {
31
32
  ETH: `${exports.explorerBaseUrls.ETH}/tx`, // /txHash
@@ -47,6 +48,7 @@ exports.txnBaseUrl = {
47
48
  [chains_1.zkLink]: `${exports.explorerBaseUrls[chains_1.zkLink]}/tx`,
48
49
  [chains_1.zkLinkTestnet]: `${exports.explorerBaseUrls[chains_1.zkLinkTestnet]}/tx`,
49
50
  [chains_1.bitlayerTestnet]: `${exports.explorerBaseUrls[chains_1.bitlayerTestnet]}/tx`,
51
+ [chains_1.neoxTestnet]: `${exports.explorerBaseUrls[chains_1.neoxTestnet]}/tx`,
50
52
  };
51
53
  exports.nativeTokenDetails = {
52
54
  ETH: {
@@ -149,6 +151,11 @@ exports.nativeTokenDetails = {
149
151
  symbol: "BTC",
150
152
  logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
151
153
  },
154
+ [chains_1.neoxTestnet]: {
155
+ name: "Gas",
156
+ symbol: "GAS",
157
+ logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
158
+ },
152
159
  };
153
160
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
154
161
  exports.rpcUrls = {
@@ -171,6 +178,7 @@ exports.rpcUrls = {
171
178
  [chains_1.zkLink]: "https://rpc.zklink.io",
172
179
  [chains_1.zkLinkTestnet]: "https://goerli.rpc.zklink.io",
173
180
  [chains_1.bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
181
+ [chains_1.neoxTestnet]: "https://neoxseed1.ngd.network",
174
182
  };
175
183
  exports.chainNameToChainId = {
176
184
  MUMBAI: 80001,
@@ -192,6 +200,7 @@ exports.chainNameToChainId = {
192
200
  [chains_1.zkLink]: 810180,
193
201
  [chains_1.zkLinkTestnet]: 810182,
194
202
  [chains_1.bitlayerTestnet]: 200810,
203
+ [chains_1.neoxTestnet]: 12227330,
195
204
  };
196
205
  exports.chainIdToChainName = {
197
206
  80001: "MUMBAI",
@@ -213,4 +222,5 @@ exports.chainIdToChainName = {
213
222
  810180: chains_1.zkLink,
214
223
  810182: chains_1.zkLinkTestnet,
215
224
  200810: chains_1.bitlayerTestnet,
225
+ 12227330: chains_1.neoxTestnet,
216
226
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tria-sdk/constants",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/chains.ts CHANGED
@@ -1,10 +1,12 @@
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 neoxTestnet = "NEOX-TESTNET";
4
5
 
5
6
  export type ZKLINK = "ZKLINK-NOVA";
6
7
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
7
8
  export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
9
+ export type NEOX_TESTNET = "NEOX-TESTNET";
8
10
 
9
11
  export const TESTNET_CHAINS = [
10
12
  "MUMBAI",
@@ -14,6 +16,7 @@ export const TESTNET_CHAINS = [
14
16
  "MANTLE-TESTNET",
15
17
  zkLinkTestnet,
16
18
  bitlayerTestnet,
19
+ neoxTestnet,
17
20
  ];
18
21
 
19
22
  export const SUPPORTED_EVM_CHAINS = [
@@ -36,6 +39,7 @@ export const SUPPORTED_EVM_CHAINS = [
36
39
  zkLink,
37
40
  zkLinkTestnet,
38
41
  bitlayerTestnet,
42
+ neoxTestnet,
39
43
  ];
40
44
 
41
45
  export const AA_SUPPORTED_EVM_CHAINS = [
@@ -71,6 +75,7 @@ export const ALLCHAINS = [
71
75
  zkLink,
72
76
  zkLinkTestnet,
73
77
  bitlayerTestnet,
78
+ neoxTestnet,
74
79
  ];
75
80
 
76
81
  const baseLogoUrl = "https://static.tria.so/chain-logo-w";
@@ -161,6 +166,10 @@ export const networks = [
161
166
  chainName: bitlayerTestnet,
162
167
  logo: `${baseLogoUrl}/bitlayer.webp`,
163
168
  },
169
+ {
170
+ chainName: neoxTestnet,
171
+ logo: `${baseLogoUrl}/neox.webp`,
172
+ },
164
173
  ];
165
174
 
166
175
  export const chainNameToLogo = {
@@ -185,6 +194,7 @@ export const chainNameToLogo = {
185
194
  [zkLink]: `${baseLogoUrl}/zklink.webp`,
186
195
  [zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
187
196
  [bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
197
+ [neoxTestnet]: `${baseLogoUrl}/neox.webp`,
188
198
  };
189
199
 
190
200
  export const chainNameToLogoBlack = {
@@ -209,4 +219,5 @@ export const chainNameToLogoBlack = {
209
219
  [zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
210
220
  [zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
211
221
  [bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
222
+ [neoxTestnet]: `${baseLogoUrlBlack}/neox.png`,
212
223
  };
package/src/txn.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { bitlayerTestnet, zkLink, zkLinkTestnet } from "./chains";
1
+ import { bitlayerTestnet, neoxTestnet, zkLink, zkLinkTestnet } from "./chains";
2
2
 
3
3
  export const explorerBaseUrls = {
4
4
  ETH: "https://etherscan.io",
@@ -24,6 +24,7 @@ export const explorerBaseUrls = {
24
24
  [zkLink]: "https://explorer.zklink.io",
25
25
  [zkLinkTestnet]: "https://goerli.explorer.zklink.io",
26
26
  [bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
27
+ [neoxTestnet]: "https://xt2scan.ngd.network",
27
28
  };
28
29
 
29
30
  export const txnBaseUrl = {
@@ -46,6 +47,7 @@ export const txnBaseUrl = {
46
47
  [zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
47
48
  [zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
48
49
  [bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
50
+ [neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
49
51
  };
50
52
 
51
53
  export const nativeTokenDetails = {
@@ -156,6 +158,12 @@ export const nativeTokenDetails = {
156
158
  symbol: "BTC",
157
159
  logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
158
160
  },
161
+ [neoxTestnet]: {
162
+ name: "Gas",
163
+ symbol: "GAS",
164
+ logoUrl:
165
+ "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
166
+ },
159
167
  };
160
168
 
161
169
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
@@ -180,6 +188,7 @@ export const rpcUrls = {
180
188
  [zkLink]: "https://rpc.zklink.io",
181
189
  [zkLinkTestnet]: "https://goerli.rpc.zklink.io",
182
190
  [bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
191
+ [neoxTestnet]: "https://neoxseed1.ngd.network",
183
192
  };
184
193
 
185
194
  export const chainNameToChainId = {
@@ -202,6 +211,7 @@ export const chainNameToChainId = {
202
211
  [zkLink]: 810180,
203
212
  [zkLinkTestnet]: 810182,
204
213
  [bitlayerTestnet]: 200810,
214
+ [neoxTestnet]: 12227330,
205
215
  };
206
216
 
207
217
  export const chainIdToChainName = {
@@ -224,4 +234,5 @@ export const chainIdToChainName = {
224
234
  810180: zkLink,
225
235
  810182: zkLinkTestnet,
226
236
  200810: bitlayerTestnet,
237
+ 12227330: neoxTestnet,
227
238
  };