@tria-sdk/constants 1.0.14 → 1.0.17

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,7 +1,7 @@
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
+ export declare const neoxTestnet: string;
5
5
  export type ZKLINK = "ZKLINK-NOVA";
6
6
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
7
7
  export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
@@ -13,6 +13,7 @@ export declare const ALLCHAINS: string[];
13
13
  export declare const networks: {
14
14
  chainName: string;
15
15
  logo: string;
16
+ type: string;
16
17
  }[];
17
18
  export declare const chainNameToLogo: {
18
19
  [x: string]: string;
@@ -34,7 +35,6 @@ export declare const chainNameToLogo: {
34
35
  MANTLE: string;
35
36
  "MANTLE-TESTNET": string;
36
37
  SOLANA: string;
37
- "NEOX-TESTNET": string;
38
38
  };
39
39
  export declare const chainNameToLogoBlack: {
40
40
  [x: string]: string;
@@ -56,5 +56,4 @@ export declare const chainNameToLogoBlack: {
56
56
  MANTLE: string;
57
57
  "MANTLE-TESTNET": string;
58
58
  SOLANA: string;
59
- "NEOX-TESTNET": string;
60
59
  };
@@ -1,18 +1,21 @@
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 = [
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 = [
6
9
  "MUMBAI",
7
10
  "FUSESPARK",
8
11
  "MANTA-TESTNET",
9
12
  "METIS-TESTNET",
10
13
  "MANTLE-TESTNET",
11
- zkLinkTestnet,
12
- bitlayerTestnet,
13
- neoxTestnet,
14
+ exports.zkLinkTestnet,
15
+ exports.bitlayerTestnet,
16
+ exports.neoxTestnet,
14
17
  ];
15
- export const SUPPORTED_EVM_CHAINS = [
18
+ exports.SUPPORTED_EVM_CHAINS = [
16
19
  "ETH",
17
20
  "POLYGON",
18
21
  "AVALANCHE",
@@ -29,23 +32,23 @@ export const SUPPORTED_EVM_CHAINS = [
29
32
  "METIS-TESTNET",
30
33
  "MANTLE",
31
34
  "MANTLE-TESTNET",
32
- zkLink,
33
- zkLinkTestnet,
34
- bitlayerTestnet,
35
- neoxTestnet,
35
+ exports.zkLink,
36
+ exports.zkLinkTestnet,
37
+ exports.bitlayerTestnet,
38
+ exports.neoxTestnet,
36
39
  ];
37
- export const AA_SUPPORTED_EVM_CHAINS = [
38
- "ETH",
40
+ exports.AA_SUPPORTED_EVM_CHAINS = [
41
+ // "ETH",
39
42
  "POLYGON",
40
- "AVALANCHE",
41
- "ARBITRUM",
42
- "BINANCE",
43
- "OPTIMISM",
44
- "FANTOM",
43
+ // "AVALANCHE",
44
+ // "ARBITRUM",
45
+ // "BINANCE",
46
+ // "OPTIMISM",
45
47
  "FUSE",
46
48
  "MUMBAI",
49
+ // "MANTLE",
47
50
  ];
48
- export const ALLCHAINS = [
51
+ exports.ALLCHAINS = [
49
52
  "ETH",
50
53
  "POLYGON",
51
54
  "AVALANCHE",
@@ -63,53 +66,63 @@ export const ALLCHAINS = [
63
66
  "MANTLE",
64
67
  "MANTLE-TESTNET",
65
68
  "SOLANA",
66
- zkLink,
67
- zkLinkTestnet,
68
- bitlayerTestnet,
69
- neoxTestnet,
69
+ exports.zkLink,
70
+ exports.zkLinkTestnet,
71
+ exports.bitlayerTestnet,
72
+ exports.neoxTestnet,
70
73
  ];
71
74
  const baseLogoUrl = "https://static.tria.so/chain-logo-w";
72
75
  const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
73
- export const networks = [
76
+ exports.networks = [
74
77
  {
75
78
  chainName: "ETH",
76
79
  logo: `${baseLogoUrl}/Ethereum.webp`,
80
+ type: "mainnet",
77
81
  },
78
82
  {
79
83
  chainName: "FANTOM",
80
84
  logo: `${baseLogoUrl}/Fantom.webp`,
85
+ type: "mainnet",
81
86
  },
82
87
  {
83
88
  chainName: "POLYGON",
84
89
  logo: `${baseLogoUrl}/Polygon.svg`,
90
+ type: "mainnet",
85
91
  },
86
92
  {
87
93
  chainName: "AVALANCHE",
88
94
  logo: `${baseLogoUrl}/Avalanche.webp`,
95
+ type: "mainnet",
89
96
  },
90
97
  {
91
98
  chainName: "OPTIMISM",
92
99
  logo: `${baseLogoUrl}/Optimism.webp`,
100
+ type: "mainnet",
93
101
  },
94
102
  {
95
103
  chainName: "ARBITRUM",
96
104
  logo: `${baseLogoUrl}/Arbitrum.webp`,
105
+ type: "mainnet",
97
106
  },
98
107
  {
99
108
  chainName: "FUSE",
100
109
  logo: `${baseLogoUrl}/Fuse.webp`,
110
+ type: "mainnet",
101
111
  },
102
112
  {
103
113
  chainName: "FUSESPARK",
104
114
  logo: `${baseLogoUrl}/Fuse.webp`,
115
+ type: "testnet",
105
116
  },
106
117
  {
107
118
  chainName: "MUMBAI",
108
119
  logo: `${baseLogoUrl}/Polygon.svg`,
120
+ type: "testnet",
109
121
  },
110
122
  {
111
123
  chainName: "BINANCE",
112
124
  logo: `${baseLogoUrl}/Binance.svg`,
125
+ type: "mainnet",
113
126
  },
114
127
  // {
115
128
  // chainName: 'LINEA',
@@ -118,49 +131,60 @@ export const networks = [
118
131
  {
119
132
  chainName: "METIS",
120
133
  logo: `${baseLogoUrl}/Metis.webp`,
134
+ type: "mainnet",
121
135
  },
122
136
  {
123
137
  chainName: "METIS-TESTNET",
124
138
  logo: `${baseLogoUrl}/Metis.webp`,
139
+ type: "testnet",
125
140
  },
126
141
  {
127
142
  chainName: "MANTA",
128
143
  logo: `${baseLogoUrl}/Manta.webp`,
144
+ type: "mainnet",
129
145
  },
130
146
  {
131
147
  chainName: "MANTA-TESTNET",
132
148
  logo: `${baseLogoUrl}/Manta.webp`,
149
+ type: "testnet",
133
150
  },
134
151
  {
135
152
  chainName: "MANTLE",
136
153
  logo: `${baseLogoUrl}/Mantle.webp`,
154
+ type: "mainnet",
137
155
  },
138
156
  {
139
157
  chainName: "MANTLE-TESTNET",
140
158
  logo: `${baseLogoUrl}/Mantle.webp`,
159
+ type: "testnet",
141
160
  },
142
161
  {
143
162
  chainName: "SOLANA",
144
163
  logo: `${baseLogoUrl}/Solana.webp`,
164
+ type: "mainnet",
145
165
  },
146
166
  {
147
- chainName: zkLink,
167
+ chainName: exports.zkLink,
148
168
  logo: `${baseLogoUrl}/zklink.webp`,
169
+ type: "mainnet",
149
170
  },
150
171
  {
151
- chainName: zkLinkTestnet,
172
+ chainName: exports.zkLinkTestnet,
152
173
  logo: `${baseLogoUrl}/zklink.webp`,
174
+ type: "testnet",
153
175
  },
154
176
  {
155
- chainName: bitlayerTestnet,
177
+ chainName: exports.bitlayerTestnet,
156
178
  logo: `${baseLogoUrl}/bitlayer.webp`,
179
+ type: "testnet",
157
180
  },
158
181
  {
159
- chainName: neoxTestnet,
182
+ chainName: exports.neoxTestnet,
160
183
  logo: `${baseLogoUrl}/neox.webp`,
184
+ type: "testnet",
161
185
  },
162
186
  ];
163
- export const chainNameToLogo = {
187
+ exports.chainNameToLogo = {
164
188
  ETH: `${baseLogoUrl}/Ethereum.webp`,
165
189
  FANTOM: `${baseLogoUrl}/Fantom.webp`,
166
190
  POLYGON: `${baseLogoUrl}/Polygon.webp`,
@@ -179,12 +203,12 @@ export const chainNameToLogo = {
179
203
  MANTLE: `${baseLogoUrl}/Mantle.webp`,
180
204
  "MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
181
205
  SOLANA: `${baseLogoUrl}/Solana.webp`,
182
- [zkLink]: `${baseLogoUrl}/zklink.webp`,
183
- [zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
184
- [bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
185
- [neoxTestnet]: `${baseLogoUrl}/neox.webp`,
206
+ [exports.zkLink]: `${baseLogoUrl}/zklink.webp`,
207
+ [exports.zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
208
+ [exports.bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
209
+ [exports.neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
186
210
  };
187
- export const chainNameToLogoBlack = {
211
+ exports.chainNameToLogoBlack = {
188
212
  ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
189
213
  BINANCE: `${baseLogoUrlBlack}/binance.webp`,
190
214
  FANTOM: `${baseLogoUrlBlack}/Fantom.webp`,
@@ -203,8 +227,8 @@ export const chainNameToLogoBlack = {
203
227
  MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
204
228
  "MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
205
229
  SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
206
- [zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
207
- [zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
208
- [bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
209
- [neoxTestnet]: `${baseLogoUrlBlack}/neox.png`,
230
+ [exports.zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
231
+ [exports.zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
232
+ [exports.bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
233
+ [exports.neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
210
234
  };
@@ -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,7 +20,6 @@ export declare const explorerBaseUrls: {
20
20
  "MANTLE-TESTNET": string;
21
21
  MANTA: string;
22
22
  "MANTA-TESTNET": string;
23
- "NEOX-TESTNET": string;
24
23
  };
25
24
  export declare const txnBaseUrl: {
26
25
  [x: string]: string;
@@ -40,7 +39,6 @@ export declare const txnBaseUrl: {
40
39
  "MANTLE-TESTNET": string;
41
40
  MANTA: string;
42
41
  "MANTA-TESTNET": string;
43
- "NEOX-TESTNET": string;
44
42
  };
45
43
  export declare const nativeTokenDetails: {
46
44
  [x: string]: {
@@ -133,11 +131,6 @@ export declare const nativeTokenDetails: {
133
131
  symbol: string;
134
132
  logoUrl: string;
135
133
  };
136
- "NEOX-TESTNET": {
137
- name: string;
138
- symbol: string;
139
- logoUrl: string;
140
- };
141
134
  };
142
135
  export declare const rpcUrls: {
143
136
  [x: string]: string;
@@ -157,7 +150,6 @@ export declare const rpcUrls: {
157
150
  "METIS-TESTNET": string;
158
151
  MANTLE: string;
159
152
  "MANTLE-TESTNET": string;
160
- "NEOX-TESTNET": string;
161
153
  };
162
154
  export declare const chainNameToChainId: {
163
155
  [x: string]: number;
@@ -177,7 +169,6 @@ export declare const chainNameToChainId: {
177
169
  "METIS-TESTNET": number;
178
170
  MANTLE: number;
179
171
  "MANTLE-TESTNET": number;
180
- "NEOX-TESTNET": number;
181
172
  };
182
173
  export declare const chainIdToChainName: {
183
174
  80001: string;
package/dist/src/txn.js CHANGED
@@ -1,5 +1,8 @@
1
- import { bitlayerTestnet, neoxTestnet, 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,34 +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
- [neoxTestnet]: "https://xt2scan.ngd.network",
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",
27
30
  };
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`,
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`,
49
52
  };
50
- export const nativeTokenDetails = {
53
+ exports.nativeTokenDetails = {
51
54
  ETH: {
52
55
  name: "Ether",
53
56
  symbol: "ETH",
@@ -133,29 +136,29 @@ export const nativeTokenDetails = {
133
136
  symbol: "SOL",
134
137
  logoUrl: "https://static.tria.so/chain-logo-w/Solana.webp",
135
138
  },
136
- [zkLink]: {
139
+ [chains_1.zkLink]: {
137
140
  name: "Ether",
138
141
  symbol: "ETH",
139
142
  logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
140
143
  },
141
- [zkLinkTestnet]: {
144
+ [chains_1.zkLinkTestnet]: {
142
145
  name: "Ether",
143
146
  symbol: "ETH",
144
147
  logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
145
148
  },
146
- [bitlayerTestnet]: {
149
+ [chains_1.bitlayerTestnet]: {
147
150
  name: "Bitcoin",
148
151
  symbol: "BTC",
149
152
  logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
150
153
  },
151
- [neoxTestnet]: {
154
+ [chains_1.neoxTestnet]: {
152
155
  name: "Gas",
153
156
  symbol: "GAS",
154
157
  logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
155
158
  },
156
159
  };
157
160
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
158
- export const rpcUrls = {
161
+ exports.rpcUrls = {
159
162
  MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${alchemyKey}`, //'https://polygon-mumbai.blockpi.network/v1/rpc/public',
160
163
  ETH: "https://eth.llamarpc.com",
161
164
  POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
@@ -172,12 +175,12 @@ export const rpcUrls = {
172
175
  "METIS-TESTNET": "https://goerli.gateway.metisdevops.link",
173
176
  MANTLE: "https://rpc.mantle.xyz",
174
177
  "MANTLE-TESTNET": "https://rpc.testnet.mantle.xyz",
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",
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",
179
182
  };
180
- export const chainNameToChainId = {
183
+ exports.chainNameToChainId = {
181
184
  MUMBAI: 80001,
182
185
  POLYGON: 137,
183
186
  ETH: 1,
@@ -194,12 +197,12 @@ export const chainNameToChainId = {
194
197
  "METIS-TESTNET": 599,
195
198
  MANTLE: 5000,
196
199
  "MANTLE-TESTNET": 5001,
197
- [zkLink]: 810180,
198
- [zkLinkTestnet]: 810182,
199
- [bitlayerTestnet]: 200810,
200
- [neoxTestnet]: 12227330,
200
+ [chains_1.zkLink]: 810180,
201
+ [chains_1.zkLinkTestnet]: 810182,
202
+ [chains_1.bitlayerTestnet]: 200810,
203
+ [chains_1.neoxTestnet]: 12227330,
201
204
  };
202
- export const chainIdToChainName = {
205
+ exports.chainIdToChainName = {
203
206
  80001: "MUMBAI",
204
207
  137: "POLYGON",
205
208
  1: "ETH",
@@ -216,8 +219,8 @@ export const chainIdToChainName = {
216
219
  599: "METIS-TESTNET",
217
220
  169: "MANTA",
218
221
  3441005: "MANTA-TESTNET",
219
- 810180: zkLink,
220
- 810182: zkLinkTestnet,
221
- 200810: bitlayerTestnet,
222
- 12227330: neoxTestnet,
222
+ 810180: chains_1.zkLink,
223
+ 810182: chains_1.zkLinkTestnet,
224
+ 200810: chains_1.bitlayerTestnet,
225
+ 12227330: chains_1.neoxTestnet,
223
226
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tria-sdk/constants",
3
- "version": "1.0.14",
3
+ "version": "1.0.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/chains.ts CHANGED
@@ -1,7 +1,7 @@
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
+ export const neoxTestnet: string = "NEOX-TESTNET";
5
5
 
6
6
  export type ZKLINK = "ZKLINK-NOVA";
7
7
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
@@ -43,15 +43,15 @@ export const SUPPORTED_EVM_CHAINS = [
43
43
  ];
44
44
 
45
45
  export const AA_SUPPORTED_EVM_CHAINS = [
46
- "ETH",
46
+ // "ETH",
47
47
  "POLYGON",
48
- "AVALANCHE",
49
- "ARBITRUM",
50
- "BINANCE",
51
- "OPTIMISM",
52
- "FANTOM",
48
+ // "AVALANCHE",
49
+ // "ARBITRUM",
50
+ // "BINANCE",
51
+ // "OPTIMISM",
53
52
  "FUSE",
54
53
  "MUMBAI",
54
+ // "MANTLE",
55
55
  ];
56
56
 
57
57
  export const ALLCHAINS = [
@@ -85,42 +85,52 @@ export const networks = [
85
85
  {
86
86
  chainName: "ETH",
87
87
  logo: `${baseLogoUrl}/Ethereum.webp`,
88
+ type: "mainnet",
88
89
  },
89
90
  {
90
91
  chainName: "FANTOM",
91
92
  logo: `${baseLogoUrl}/Fantom.webp`,
93
+ type: "mainnet",
92
94
  },
93
95
  {
94
96
  chainName: "POLYGON",
95
97
  logo: `${baseLogoUrl}/Polygon.svg`,
98
+ type: "mainnet",
96
99
  },
97
100
  {
98
101
  chainName: "AVALANCHE",
99
102
  logo: `${baseLogoUrl}/Avalanche.webp`,
103
+ type: "mainnet",
100
104
  },
101
105
  {
102
106
  chainName: "OPTIMISM",
103
107
  logo: `${baseLogoUrl}/Optimism.webp`,
108
+ type: "mainnet",
104
109
  },
105
110
  {
106
111
  chainName: "ARBITRUM",
107
112
  logo: `${baseLogoUrl}/Arbitrum.webp`,
113
+ type: "mainnet",
108
114
  },
109
115
  {
110
116
  chainName: "FUSE",
111
117
  logo: `${baseLogoUrl}/Fuse.webp`,
118
+ type: "mainnet",
112
119
  },
113
120
  {
114
121
  chainName: "FUSESPARK",
115
122
  logo: `${baseLogoUrl}/Fuse.webp`,
123
+ type: "testnet",
116
124
  },
117
125
  {
118
126
  chainName: "MUMBAI",
119
127
  logo: `${baseLogoUrl}/Polygon.svg`,
128
+ type: "testnet",
120
129
  },
121
130
  {
122
131
  chainName: "BINANCE",
123
132
  logo: `${baseLogoUrl}/Binance.svg`,
133
+ type: "mainnet",
124
134
  },
125
135
  // {
126
136
  // chainName: 'LINEA',
@@ -129,46 +139,57 @@ export const networks = [
129
139
  {
130
140
  chainName: "METIS",
131
141
  logo: `${baseLogoUrl}/Metis.webp`,
142
+ type: "mainnet",
132
143
  },
133
144
  {
134
145
  chainName: "METIS-TESTNET",
135
146
  logo: `${baseLogoUrl}/Metis.webp`,
147
+ type: "testnet",
136
148
  },
137
149
  {
138
150
  chainName: "MANTA",
139
151
  logo: `${baseLogoUrl}/Manta.webp`,
152
+ type: "mainnet",
140
153
  },
141
154
  {
142
155
  chainName: "MANTA-TESTNET",
143
156
  logo: `${baseLogoUrl}/Manta.webp`,
157
+ type: "testnet",
144
158
  },
145
159
  {
146
160
  chainName: "MANTLE",
147
161
  logo: `${baseLogoUrl}/Mantle.webp`,
162
+ type: "mainnet",
148
163
  },
149
164
  {
150
165
  chainName: "MANTLE-TESTNET",
151
166
  logo: `${baseLogoUrl}/Mantle.webp`,
167
+ type: "testnet",
152
168
  },
153
169
  {
154
170
  chainName: "SOLANA",
155
171
  logo: `${baseLogoUrl}/Solana.webp`,
172
+ type: "mainnet",
156
173
  },
157
174
  {
158
175
  chainName: zkLink,
159
176
  logo: `${baseLogoUrl}/zklink.webp`,
177
+ type: "mainnet",
160
178
  },
161
179
  {
162
180
  chainName: zkLinkTestnet,
163
181
  logo: `${baseLogoUrl}/zklink.webp`,
182
+ type: "testnet",
164
183
  },
165
184
  {
166
185
  chainName: bitlayerTestnet,
167
186
  logo: `${baseLogoUrl}/bitlayer.webp`,
187
+ type: "testnet",
168
188
  },
169
189
  {
170
190
  chainName: neoxTestnet,
171
191
  logo: `${baseLogoUrl}/neox.webp`,
192
+ type: "testnet",
172
193
  },
173
194
  ];
174
195
 
@@ -194,7 +215,7 @@ export const chainNameToLogo = {
194
215
  [zkLink]: `${baseLogoUrl}/zklink.webp`,
195
216
  [zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
196
217
  [bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
197
- [neoxTestnet]: `${baseLogoUrl}/neox.webp`,
218
+ [neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
198
219
  };
199
220
 
200
221
  export const chainNameToLogoBlack = {
@@ -219,5 +240,5 @@ export const chainNameToLogoBlack = {
219
240
  [zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
220
241
  [zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
221
242
  [bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
222
- [neoxTestnet]: `${baseLogoUrlBlack}/neox.png`,
243
+ [neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
223
244
  };
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,