@tria-sdk/constants 1.0.12 → 1.0.14

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/index.js CHANGED
@@ -1,20 +1,4 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/config"), exports);
18
- __exportStar(require("./src/chains"), exports);
19
- __exportStar(require("./src/txn"), exports);
20
- __exportStar(require("./src/connect"), exports);
1
+ export * from "./src/config";
2
+ export * from "./src/chains";
3
+ export * from "./src/txn";
4
+ export * from "./src/connect";
@@ -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,19 +1,18 @@
1
- "use strict";
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;
4
- exports.zkLink = "ZKLINK-NOVA";
5
- exports.zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
6
- exports.bitlayerTestnet = "BITLAYER-TESTNET";
7
- exports.TESTNET_CHAINS = [
1
+ export const zkLink = "ZKLINK-NOVA";
2
+ export const zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
3
+ export const bitlayerTestnet = "BITLAYER-TESTNET";
4
+ export const neoxTestnet = "NEOX-TESTNET";
5
+ export const TESTNET_CHAINS = [
8
6
  "MUMBAI",
9
7
  "FUSESPARK",
10
8
  "MANTA-TESTNET",
11
9
  "METIS-TESTNET",
12
10
  "MANTLE-TESTNET",
13
- exports.zkLinkTestnet,
14
- exports.bitlayerTestnet,
11
+ zkLinkTestnet,
12
+ bitlayerTestnet,
13
+ neoxTestnet,
15
14
  ];
16
- exports.SUPPORTED_EVM_CHAINS = [
15
+ export const SUPPORTED_EVM_CHAINS = [
17
16
  "ETH",
18
17
  "POLYGON",
19
18
  "AVALANCHE",
@@ -30,11 +29,12 @@ exports.SUPPORTED_EVM_CHAINS = [
30
29
  "METIS-TESTNET",
31
30
  "MANTLE",
32
31
  "MANTLE-TESTNET",
33
- exports.zkLink,
34
- exports.zkLinkTestnet,
35
- exports.bitlayerTestnet,
32
+ zkLink,
33
+ zkLinkTestnet,
34
+ bitlayerTestnet,
35
+ neoxTestnet,
36
36
  ];
37
- exports.AA_SUPPORTED_EVM_CHAINS = [
37
+ export const AA_SUPPORTED_EVM_CHAINS = [
38
38
  "ETH",
39
39
  "POLYGON",
40
40
  "AVALANCHE",
@@ -45,7 +45,7 @@ exports.AA_SUPPORTED_EVM_CHAINS = [
45
45
  "FUSE",
46
46
  "MUMBAI",
47
47
  ];
48
- exports.ALLCHAINS = [
48
+ export const ALLCHAINS = [
49
49
  "ETH",
50
50
  "POLYGON",
51
51
  "AVALANCHE",
@@ -63,13 +63,14 @@ exports.ALLCHAINS = [
63
63
  "MANTLE",
64
64
  "MANTLE-TESTNET",
65
65
  "SOLANA",
66
- exports.zkLink,
67
- exports.zkLinkTestnet,
68
- exports.bitlayerTestnet,
66
+ zkLink,
67
+ zkLinkTestnet,
68
+ bitlayerTestnet,
69
+ neoxTestnet,
69
70
  ];
70
71
  const baseLogoUrl = "https://static.tria.so/chain-logo-w";
71
72
  const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
72
- exports.networks = [
73
+ export const networks = [
73
74
  {
74
75
  chainName: "ETH",
75
76
  logo: `${baseLogoUrl}/Ethereum.webp`,
@@ -143,19 +144,23 @@ exports.networks = [
143
144
  logo: `${baseLogoUrl}/Solana.webp`,
144
145
  },
145
146
  {
146
- chainName: exports.zkLink,
147
+ chainName: zkLink,
147
148
  logo: `${baseLogoUrl}/zklink.webp`,
148
149
  },
149
150
  {
150
- chainName: exports.zkLinkTestnet,
151
+ chainName: zkLinkTestnet,
151
152
  logo: `${baseLogoUrl}/zklink.webp`,
152
153
  },
153
154
  {
154
- chainName: exports.bitlayerTestnet,
155
+ chainName: bitlayerTestnet,
155
156
  logo: `${baseLogoUrl}/bitlayer.webp`,
156
157
  },
158
+ {
159
+ chainName: neoxTestnet,
160
+ logo: `${baseLogoUrl}/neox.webp`,
161
+ },
157
162
  ];
158
- exports.chainNameToLogo = {
163
+ export const chainNameToLogo = {
159
164
  ETH: `${baseLogoUrl}/Ethereum.webp`,
160
165
  FANTOM: `${baseLogoUrl}/Fantom.webp`,
161
166
  POLYGON: `${baseLogoUrl}/Polygon.webp`,
@@ -174,11 +179,12 @@ exports.chainNameToLogo = {
174
179
  MANTLE: `${baseLogoUrl}/Mantle.webp`,
175
180
  "MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
176
181
  SOLANA: `${baseLogoUrl}/Solana.webp`,
177
- [exports.zkLink]: `${baseLogoUrl}/zklink.webp`,
178
- [exports.zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
179
- [exports.bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
182
+ [zkLink]: `${baseLogoUrl}/zklink.webp`,
183
+ [zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
184
+ [bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
185
+ [neoxTestnet]: `${baseLogoUrl}/neox.webp`,
180
186
  };
181
- exports.chainNameToLogoBlack = {
187
+ export const chainNameToLogoBlack = {
182
188
  ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
183
189
  BINANCE: `${baseLogoUrlBlack}/binance.webp`,
184
190
  FANTOM: `${baseLogoUrlBlack}/Fantom.webp`,
@@ -197,7 +203,8 @@ exports.chainNameToLogoBlack = {
197
203
  MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
198
204
  "MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
199
205
  SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
200
- [exports.zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
201
- [exports.zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
202
- [exports.bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
206
+ [zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
207
+ [zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
208
+ [bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
209
+ [neoxTestnet]: `${baseLogoUrlBlack}/neox.png`,
203
210
  };
@@ -1,21 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isTestnetChain = exports.isChainSupported = exports.isAaSupportedChain = exports.isEvmChain = exports.prodApiUrl = void 0;
4
- const chains_1 = require("./chains");
5
- exports.prodApiUrl = "https://prod.tria.so";
6
- const isEvmChain = (chainName) => {
7
- return chains_1.SUPPORTED_EVM_CHAINS.includes(chainName);
1
+ import { AA_SUPPORTED_EVM_CHAINS, ALLCHAINS, SUPPORTED_EVM_CHAINS, TESTNET_CHAINS, } from "./chains";
2
+ export const prodApiUrl = "https://prod.tria.so";
3
+ export const isEvmChain = (chainName) => {
4
+ return SUPPORTED_EVM_CHAINS.includes(chainName);
8
5
  };
9
- exports.isEvmChain = isEvmChain;
10
- const isAaSupportedChain = (chainName) => {
11
- return chains_1.AA_SUPPORTED_EVM_CHAINS.includes(chainName);
6
+ export const isAaSupportedChain = (chainName) => {
7
+ return AA_SUPPORTED_EVM_CHAINS.includes(chainName);
12
8
  };
13
- exports.isAaSupportedChain = isAaSupportedChain;
14
- const isChainSupported = (chainName) => {
15
- return chains_1.ALLCHAINS.includes(chainName);
9
+ export const isChainSupported = (chainName) => {
10
+ return ALLCHAINS.includes(chainName);
16
11
  };
17
- exports.isChainSupported = isChainSupported;
18
- const isTestnetChain = (chainName) => {
19
- return chains_1.TESTNET_CHAINS.includes(chainName);
12
+ export const isTestnetChain = (chainName) => {
13
+ return TESTNET_CHAINS.includes(chainName);
20
14
  };
21
- exports.isTestnetChain = isTestnetChain;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.triaAuthUrl = exports.storageKeys = exports.TRIA_WALLET_SELECTED_CHAIN = exports.TRIA_WALLET_STORE = exports.eventTypes = void 0;
4
- exports.eventTypes = {
1
+ export const eventTypes = {
5
2
  logIn: "Log in",
6
3
  triaSignUp: "Tria Sign up",
7
4
  emailPwSignUp: "Email Pwd Sign up",
@@ -18,12 +15,12 @@ exports.eventTypes = {
18
15
  saveToAuth: "Save to Auth Iframe",
19
16
  triaStoreSet: "triaStoreSet",
20
17
  };
21
- exports.TRIA_WALLET_STORE = "tria.wallet.store";
22
- exports.TRIA_WALLET_SELECTED_CHAIN = "tria.wallet.selectedChain";
23
- exports.storageKeys = {
18
+ export const TRIA_WALLET_STORE = "tria.wallet.store";
19
+ export const TRIA_WALLET_SELECTED_CHAIN = "tria.wallet.selectedChain";
20
+ export const storageKeys = {
24
21
  TRIA_WALLET_STORE: "tria.wallet.store",
25
22
  TRIA_WALLET_SELECTED_CHAIN: "tria.wallet.selectedChain",
26
23
  PERSIST_ROOT: "persist:root",
27
24
  };
28
- exports.triaAuthUrl = "https://auth.tria.so";
25
+ export const triaAuthUrl = "https://auth.tria.so";
29
26
  // export const PARENT_URL = document?.referrer || window?.parent?.[0]?.location?.ancestorOrigins?.[0];
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
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.chainIdToChainName = exports.chainNameToChainId = exports.rpcUrls = exports.nativeTokenDetails = exports.txnBaseUrl = exports.explorerBaseUrls = void 0;
4
- const chains_1 = require("./chains");
5
- exports.explorerBaseUrls = {
1
+ import { bitlayerTestnet, neoxTestnet, zkLink, zkLinkTestnet } from "./chains";
2
+ export const explorerBaseUrls = {
6
3
  ETH: "https://etherscan.io",
7
4
  POLYGON: "https://polygonscan.com",
8
5
  AVALANCHE: "https://snowtrace.io",
@@ -23,32 +20,34 @@ exports.explorerBaseUrls = {
23
20
  "MANTLE-TESTNET": "https://explorer.testnet.mantle.xyz",
24
21
  MANTA: "https://pacific-explorer.manta.network",
25
22
  "MANTA-TESTNET": "https://manta-testnet.calderaexplorer.xyz",
26
- [chains_1.zkLink]: "https://explorer.zklink.io",
27
- [chains_1.zkLinkTestnet]: "https://goerli.explorer.zklink.io",
28
- [chains_1.bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
23
+ [zkLink]: "https://explorer.zklink.io",
24
+ [zkLinkTestnet]: "https://goerli.explorer.zklink.io",
25
+ [bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
26
+ [neoxTestnet]: "https://xt2scan.ngd.network",
29
27
  };
30
- exports.txnBaseUrl = {
31
- ETH: `${exports.explorerBaseUrls.ETH}/tx`, // /txHash
32
- POLYGON: `${exports.explorerBaseUrls.POLYGON}/tx`,
33
- AVALANCHE: `${exports.explorerBaseUrls.AVALANCHE}/tx`,
34
- ARBITRUM: `${exports.explorerBaseUrls.ARBITRUM}/tx`,
35
- BINANCE: `${exports.explorerBaseUrls.BINANCE}/tx`,
36
- OPTIMISM: `${exports.explorerBaseUrls.OPTIMISM}/tx`,
37
- FANTOM: `${exports.explorerBaseUrls.FANTOM}/tx`,
38
- FUSE: `${exports.explorerBaseUrls.FUSE}/tx`,
39
- FUSESPARK: `${exports.explorerBaseUrls.FUSESPARK}/tx`,
40
- MUMBAI: `${exports.explorerBaseUrls.MUMBAI}/tx`,
41
- METIS: `${exports.explorerBaseUrls.METIS}/tx`,
42
- "METIS-TESTNET": `${exports.explorerBaseUrls["METIS-TESTNET"]}/tx`,
43
- MANTLE: `${exports.explorerBaseUrls.MANTLE}/tx`,
44
- "MANTLE-TESTNET": `${exports.explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
45
- MANTA: `${exports.explorerBaseUrls.MANTA}/tx`,
46
- "MANTA-TESTNET": `${exports.explorerBaseUrls["MANTA-TESTNET"]}/tx`,
47
- [chains_1.zkLink]: `${exports.explorerBaseUrls[chains_1.zkLink]}/tx`,
48
- [chains_1.zkLinkTestnet]: `${exports.explorerBaseUrls[chains_1.zkLinkTestnet]}/tx`,
49
- [chains_1.bitlayerTestnet]: `${exports.explorerBaseUrls[chains_1.bitlayerTestnet]}/tx`,
28
+ export const txnBaseUrl = {
29
+ ETH: `${explorerBaseUrls.ETH}/tx`, // /txHash
30
+ POLYGON: `${explorerBaseUrls.POLYGON}/tx`,
31
+ AVALANCHE: `${explorerBaseUrls.AVALANCHE}/tx`,
32
+ ARBITRUM: `${explorerBaseUrls.ARBITRUM}/tx`,
33
+ BINANCE: `${explorerBaseUrls.BINANCE}/tx`,
34
+ OPTIMISM: `${explorerBaseUrls.OPTIMISM}/tx`,
35
+ FANTOM: `${explorerBaseUrls.FANTOM}/tx`,
36
+ FUSE: `${explorerBaseUrls.FUSE}/tx`,
37
+ FUSESPARK: `${explorerBaseUrls.FUSESPARK}/tx`,
38
+ MUMBAI: `${explorerBaseUrls.MUMBAI}/tx`,
39
+ METIS: `${explorerBaseUrls.METIS}/tx`,
40
+ "METIS-TESTNET": `${explorerBaseUrls["METIS-TESTNET"]}/tx`,
41
+ MANTLE: `${explorerBaseUrls.MANTLE}/tx`,
42
+ "MANTLE-TESTNET": `${explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
43
+ MANTA: `${explorerBaseUrls.MANTA}/tx`,
44
+ "MANTA-TESTNET": `${explorerBaseUrls["MANTA-TESTNET"]}/tx`,
45
+ [zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
46
+ [zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
47
+ [bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
48
+ [neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
50
49
  };
51
- exports.nativeTokenDetails = {
50
+ export const nativeTokenDetails = {
52
51
  ETH: {
53
52
  name: "Ether",
54
53
  symbol: "ETH",
@@ -134,24 +133,29 @@ exports.nativeTokenDetails = {
134
133
  symbol: "SOL",
135
134
  logoUrl: "https://static.tria.so/chain-logo-w/Solana.webp",
136
135
  },
137
- [chains_1.zkLink]: {
136
+ [zkLink]: {
138
137
  name: "Ether",
139
138
  symbol: "ETH",
140
139
  logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
141
140
  },
142
- [chains_1.zkLinkTestnet]: {
141
+ [zkLinkTestnet]: {
143
142
  name: "Ether",
144
143
  symbol: "ETH",
145
144
  logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
146
145
  },
147
- [chains_1.bitlayerTestnet]: {
146
+ [bitlayerTestnet]: {
148
147
  name: "Bitcoin",
149
148
  symbol: "BTC",
150
149
  logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
151
150
  },
151
+ [neoxTestnet]: {
152
+ name: "Gas",
153
+ symbol: "GAS",
154
+ logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
155
+ },
152
156
  };
153
157
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
154
- exports.rpcUrls = {
158
+ export const rpcUrls = {
155
159
  MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${alchemyKey}`, //'https://polygon-mumbai.blockpi.network/v1/rpc/public',
156
160
  ETH: "https://eth.llamarpc.com",
157
161
  POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
@@ -168,11 +172,12 @@ exports.rpcUrls = {
168
172
  "METIS-TESTNET": "https://goerli.gateway.metisdevops.link",
169
173
  MANTLE: "https://rpc.mantle.xyz",
170
174
  "MANTLE-TESTNET": "https://rpc.testnet.mantle.xyz",
171
- [chains_1.zkLink]: "https://rpc.zklink.io",
172
- [chains_1.zkLinkTestnet]: "https://goerli.rpc.zklink.io",
173
- [chains_1.bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
175
+ [zkLink]: "https://rpc.zklink.io",
176
+ [zkLinkTestnet]: "https://goerli.rpc.zklink.io",
177
+ [bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
178
+ [neoxTestnet]: "https://neoxseed1.ngd.network",
174
179
  };
175
- exports.chainNameToChainId = {
180
+ export const chainNameToChainId = {
176
181
  MUMBAI: 80001,
177
182
  POLYGON: 137,
178
183
  ETH: 1,
@@ -189,11 +194,12 @@ exports.chainNameToChainId = {
189
194
  "METIS-TESTNET": 599,
190
195
  MANTLE: 5000,
191
196
  "MANTLE-TESTNET": 5001,
192
- [chains_1.zkLink]: 810180,
193
- [chains_1.zkLinkTestnet]: 810182,
194
- [chains_1.bitlayerTestnet]: 200810,
197
+ [zkLink]: 810180,
198
+ [zkLinkTestnet]: 810182,
199
+ [bitlayerTestnet]: 200810,
200
+ [neoxTestnet]: 12227330,
195
201
  };
196
- exports.chainIdToChainName = {
202
+ export const chainIdToChainName = {
197
203
  80001: "MUMBAI",
198
204
  137: "POLYGON",
199
205
  1: "ETH",
@@ -210,7 +216,8 @@ exports.chainIdToChainName = {
210
216
  599: "METIS-TESTNET",
211
217
  169: "MANTA",
212
218
  3441005: "MANTA-TESTNET",
213
- 810180: chains_1.zkLink,
214
- 810182: chains_1.zkLinkTestnet,
215
- 200810: chains_1.bitlayerTestnet,
219
+ 810180: zkLink,
220
+ 810182: zkLinkTestnet,
221
+ 200810: bitlayerTestnet,
222
+ 12227330: neoxTestnet,
216
223
  };
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.14",
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
  };
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ES6",
4
- "module": "CommonJS", // "CommonJS",
4
+ "module": "ES6", // "CommonJS",
5
5
  "lib": ["ES2022"],
6
6
  "skipLibCheck": true,
7
7
  "strict": true,