@tria-sdk/constants 1.0.15 → 1.0.18

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