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