@tria-sdk/constants 1.0.39 → 1.0.41

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,23 +1,26 @@
1
- export const zkLink = "ZKLINK-NOVA";
2
- export const zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
3
- export const bitlayerTestnet = "BITLAYER-TESTNET";
4
- export const bitlayerMainnet = "BITLAYER-MAINNET";
5
- export const neoxTestnet = "NEOX-TESTNET";
6
- export const sepolia = "SEPOLIA";
7
- export const polygonAmoy = "AMOY";
8
- 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.polygonAmoy = exports.sepolia = exports.neoxTestnet = exports.bitlayerMainnet = 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.bitlayerMainnet = "BITLAYER-MAINNET";
8
+ exports.neoxTestnet = "NEOX-TESTNET";
9
+ exports.sepolia = "SEPOLIA";
10
+ exports.polygonAmoy = "AMOY";
11
+ exports.TESTNET_CHAINS = [
9
12
  "MUMBAI",
10
13
  "FUSESPARK",
11
14
  "MANTA-TESTNET",
12
15
  "METIS-TESTNET",
13
16
  "MANTLE-TESTNET",
14
- zkLinkTestnet,
15
- bitlayerTestnet,
16
- neoxTestnet,
17
- sepolia,
18
- polygonAmoy,
17
+ exports.zkLinkTestnet,
18
+ exports.bitlayerTestnet,
19
+ exports.neoxTestnet,
20
+ exports.sepolia,
21
+ exports.polygonAmoy,
19
22
  ];
20
- export const SUPPORTED_EVM_CHAINS = [
23
+ exports.SUPPORTED_EVM_CHAINS = [
21
24
  "ETH",
22
25
  "POLYGON",
23
26
  "AVALANCHE",
@@ -34,15 +37,15 @@ export const SUPPORTED_EVM_CHAINS = [
34
37
  "METIS-TESTNET",
35
38
  "MANTLE",
36
39
  "MANTLE-TESTNET",
37
- zkLink,
38
- zkLinkTestnet,
39
- bitlayerTestnet,
40
- bitlayerMainnet,
41
- neoxTestnet,
42
- sepolia,
43
- polygonAmoy,
40
+ exports.zkLink,
41
+ exports.zkLinkTestnet,
42
+ exports.bitlayerTestnet,
43
+ exports.bitlayerMainnet,
44
+ exports.neoxTestnet,
45
+ exports.sepolia,
46
+ exports.polygonAmoy,
44
47
  ];
45
- export const AA_SUPPORTED_EVM_CHAINS = [
48
+ exports.AA_SUPPORTED_EVM_CHAINS = [
46
49
  // "ETH",
47
50
  "POLYGON",
48
51
  // "AVALANCHE",
@@ -52,13 +55,13 @@ export const AA_SUPPORTED_EVM_CHAINS = [
52
55
  "FUSE",
53
56
  "MUMBAI",
54
57
  // "MANTLE",
55
- sepolia,
58
+ exports.sepolia,
56
59
  "OPTIMISM",
57
60
  "ARBITRUM",
58
61
  "AVALANCHE",
59
62
  "MANTLE",
60
63
  ];
61
- export const ALLCHAINS = [
64
+ exports.ALLCHAINS = [
62
65
  "ETH",
63
66
  "POLYGON",
64
67
  "AVALANCHE",
@@ -76,24 +79,24 @@ export const ALLCHAINS = [
76
79
  "MANTLE",
77
80
  "MANTLE-TESTNET",
78
81
  "SOLANA",
79
- zkLink,
80
- zkLinkTestnet,
81
- bitlayerTestnet,
82
- bitlayerMainnet,
83
- neoxTestnet,
84
- sepolia,
85
- polygonAmoy,
82
+ exports.zkLink,
83
+ exports.zkLinkTestnet,
84
+ exports.bitlayerTestnet,
85
+ exports.bitlayerMainnet,
86
+ exports.neoxTestnet,
87
+ exports.sepolia,
88
+ exports.polygonAmoy,
86
89
  ];
87
90
  const baseLogoUrl = "https://static.tria.so/chain-logo-w";
88
91
  const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
89
- export const networks = [
92
+ exports.networks = [
90
93
  {
91
94
  chainName: "ETH",
92
95
  logo: `${baseLogoUrl}/Ethereum.webp`,
93
96
  type: "mainnet",
94
97
  },
95
98
  {
96
- chainName: sepolia,
99
+ chainName: exports.sepolia,
97
100
  logo: `${baseLogoUrl}/Ethereum.webp`,
98
101
  type: "testnet",
99
102
  },
@@ -108,7 +111,7 @@ export const networks = [
108
111
  type: "mainnet",
109
112
  },
110
113
  {
111
- chainName: polygonAmoy,
114
+ chainName: exports.polygonAmoy,
112
115
  logo: `${baseLogoUrl}/Polygon.svg`,
113
116
  type: "testnet",
114
117
  },
@@ -187,37 +190,37 @@ export const networks = [
187
190
  type: "mainnet",
188
191
  },
189
192
  {
190
- chainName: zkLink,
193
+ chainName: exports.zkLink,
191
194
  logo: `${baseLogoUrl}/zklink.webp`,
192
195
  type: "mainnet",
193
196
  },
194
197
  {
195
- chainName: zkLinkTestnet,
198
+ chainName: exports.zkLinkTestnet,
196
199
  logo: `${baseLogoUrl}/zklink.webp`,
197
200
  type: "testnet",
198
201
  },
199
202
  {
200
- chainName: bitlayerTestnet,
203
+ chainName: exports.bitlayerTestnet,
201
204
  logo: `${baseLogoUrl}/bitlayer.webp`,
202
205
  type: "testnet",
203
206
  },
204
207
  {
205
- chainName: bitlayerMainnet,
208
+ chainName: exports.bitlayerMainnet,
206
209
  logo: `${baseLogoUrl}/bitlayer.webp`,
207
210
  type: "mainnet",
208
211
  },
209
212
  {
210
- chainName: neoxTestnet,
213
+ chainName: exports.neoxTestnet,
211
214
  logo: `${baseLogoUrl}/Neo.webp`,
212
215
  type: "testnet",
213
216
  },
214
217
  ];
215
- export const chainNameToLogo = {
218
+ exports.chainNameToLogo = {
216
219
  ETH: `${baseLogoUrl}/Ethereum.webp`,
217
- [sepolia]: `${baseLogoUrl}/Ethereum.webp`,
220
+ [exports.sepolia]: `${baseLogoUrl}/Ethereum.webp`,
218
221
  FANTOM: `${baseLogoUrl}/Fantom.webp`,
219
222
  POLYGON: `${baseLogoUrl}/Polygon.webp`,
220
- [polygonAmoy]: `${baseLogoUrl}/Polygon.webp`,
223
+ [exports.polygonAmoy]: `${baseLogoUrl}/Polygon.webp`,
221
224
  AVALANCHE: `${baseLogoUrl}/Avalanche.webp`,
222
225
  OPTIMISM: `${baseLogoUrl}/Optimism.webp`,
223
226
  ARBITRUM: `${baseLogoUrl}/Arbitrum.webp`,
@@ -233,19 +236,19 @@ export const chainNameToLogo = {
233
236
  MANTLE: `${baseLogoUrl}/Mantle.webp`,
234
237
  "MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
235
238
  SOLANA: `${baseLogoUrl}/Solana.webp`,
236
- [zkLink]: `${baseLogoUrl}/zklink.webp`,
237
- [zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
238
- [bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
239
- [bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
240
- [neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
239
+ [exports.zkLink]: `${baseLogoUrl}/zklink.webp`,
240
+ [exports.zkLinkTestnet]: `${baseLogoUrl}/zklink.webp`,
241
+ [exports.bitlayerTestnet]: `${baseLogoUrl}/bitlayer.webp`,
242
+ [exports.bitlayerMainnet]: `${baseLogoUrl}/bitlayer.webp`,
243
+ [exports.neoxTestnet]: `${baseLogoUrl}/Neo.webp`,
241
244
  };
242
- export const chainNameToLogoBlack = {
245
+ exports.chainNameToLogoBlack = {
243
246
  ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
244
- [sepolia]: `${baseLogoUrlBlack}/Ethereum.webp`,
247
+ [exports.sepolia]: `${baseLogoUrlBlack}/Ethereum.webp`,
245
248
  BINANCE: `${baseLogoUrlBlack}/binance.webp`,
246
249
  FANTOM: `${baseLogoUrlBlack}/Fantom.webp`,
247
250
  POLYGON: `${baseLogoUrlBlack}/Polygon.webp`,
248
- [polygonAmoy]: `${baseLogoUrlBlack}/Polygon.webp`,
251
+ [exports.polygonAmoy]: `${baseLogoUrlBlack}/Polygon.webp`,
249
252
  AVALANCHE: `${baseLogoUrlBlack}/Avalanche.webp`,
250
253
  OPTIMISM: `${baseLogoUrlBlack}/Optimism.webp`,
251
254
  ARBITRUM: `${baseLogoUrlBlack}/Arbitrum.webp`,
@@ -260,9 +263,9 @@ export const chainNameToLogoBlack = {
260
263
  MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
261
264
  "MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
262
265
  SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
263
- [zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
264
- [zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
265
- [bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
266
- [bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
267
- [neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
266
+ [exports.zkLink]: `${baseLogoUrlBlack}/zklink.webp`,
267
+ [exports.zkLinkTestnet]: `${baseLogoUrlBlack}/zklink.webp`,
268
+ [exports.bitlayerTestnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
269
+ [exports.bitlayerMainnet]: `${baseLogoUrlBlack}/bitlayer.webp`,
270
+ [exports.neoxTestnet]: `${baseLogoUrlBlack}/Neo.png`,
268
271
  };
@@ -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.js CHANGED
@@ -1,9 +1,12 @@
1
- import { bitlayerTestnet, bitlayerMainnet, neoxTestnet, polygonAmoy, sepolia, 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
- [sepolia]: "https://sepolia.etherscan.io",
7
+ [chains_1.sepolia]: "https://sepolia.etherscan.io",
5
8
  POLYGON: "https://polygonscan.com",
6
- [polygonAmoy]: "https://www.oklink.com/amoy",
9
+ [chains_1.polygonAmoy]: "https://www.oklink.com/amoy",
7
10
  AVALANCHE: "https://snowtrace.io",
8
11
  ARBITRUM: "https://arbiscan.io",
9
12
  BINANCE: "https://bscscan.com",
@@ -22,44 +25,44 @@ export const explorerBaseUrls = {
22
25
  "MANTLE-TESTNET": "https://explorer.testnet.mantle.xyz",
23
26
  MANTA: "https://pacific-explorer.manta.network",
24
27
  "MANTA-TESTNET": "https://manta-testnet.calderaexplorer.xyz",
25
- [zkLink]: "https://explorer.zklink.io",
26
- [zkLinkTestnet]: "https://goerli.explorer.zklink.io",
27
- [bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
28
- [bitlayerMainnet]: "https://www.btrscan.com",
29
- [neoxTestnet]: "https://xt2scan.ngd.network",
28
+ [chains_1.zkLink]: "https://explorer.zklink.io",
29
+ [chains_1.zkLinkTestnet]: "https://goerli.explorer.zklink.io",
30
+ [chains_1.bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
31
+ [chains_1.bitlayerMainnet]: "https://www.btrscan.com",
32
+ [chains_1.neoxTestnet]: "https://xt2scan.ngd.network",
30
33
  };
31
- export const txnBaseUrl = {
32
- ETH: `${explorerBaseUrls.ETH}/tx`, // /txHash
33
- [sepolia]: `${explorerBaseUrls[sepolia]}/tx`,
34
- POLYGON: `${explorerBaseUrls.POLYGON}/tx`,
35
- [polygonAmoy]: `${explorerBaseUrls[polygonAmoy]}/tx`,
36
- AVALANCHE: `${explorerBaseUrls.AVALANCHE}/tx`,
37
- ARBITRUM: `${explorerBaseUrls.ARBITRUM}/tx`,
38
- BINANCE: `${explorerBaseUrls.BINANCE}/tx`,
39
- OPTIMISM: `${explorerBaseUrls.OPTIMISM}/tx`,
40
- FANTOM: `${explorerBaseUrls.FANTOM}/tx`,
41
- FUSE: `${explorerBaseUrls.FUSE}/tx`,
42
- FUSESPARK: `${explorerBaseUrls.FUSESPARK}/tx`,
43
- MUMBAI: `${explorerBaseUrls.MUMBAI}/tx`,
44
- METIS: `${explorerBaseUrls.METIS}/tx`,
45
- "METIS-TESTNET": `${explorerBaseUrls["METIS-TESTNET"]}/tx`,
46
- MANTLE: `${explorerBaseUrls.MANTLE}/tx`,
47
- "MANTLE-TESTNET": `${explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
48
- MANTA: `${explorerBaseUrls.MANTA}/tx`,
49
- "MANTA-TESTNET": `${explorerBaseUrls["MANTA-TESTNET"]}/tx`,
50
- [zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
51
- [zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
52
- [bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
53
- [bitlayerMainnet]: `${explorerBaseUrls[bitlayerMainnet]}/tx`,
54
- [neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
34
+ exports.txnBaseUrl = {
35
+ ETH: `${exports.explorerBaseUrls.ETH}/tx`, // /txHash
36
+ [chains_1.sepolia]: `${exports.explorerBaseUrls[chains_1.sepolia]}/tx`,
37
+ POLYGON: `${exports.explorerBaseUrls.POLYGON}/tx`,
38
+ [chains_1.polygonAmoy]: `${exports.explorerBaseUrls[chains_1.polygonAmoy]}/tx`,
39
+ AVALANCHE: `${exports.explorerBaseUrls.AVALANCHE}/tx`,
40
+ ARBITRUM: `${exports.explorerBaseUrls.ARBITRUM}/tx`,
41
+ BINANCE: `${exports.explorerBaseUrls.BINANCE}/tx`,
42
+ OPTIMISM: `${exports.explorerBaseUrls.OPTIMISM}/tx`,
43
+ FANTOM: `${exports.explorerBaseUrls.FANTOM}/tx`,
44
+ FUSE: `${exports.explorerBaseUrls.FUSE}/tx`,
45
+ FUSESPARK: `${exports.explorerBaseUrls.FUSESPARK}/tx`,
46
+ MUMBAI: `${exports.explorerBaseUrls.MUMBAI}/tx`,
47
+ METIS: `${exports.explorerBaseUrls.METIS}/tx`,
48
+ "METIS-TESTNET": `${exports.explorerBaseUrls["METIS-TESTNET"]}/tx`,
49
+ MANTLE: `${exports.explorerBaseUrls.MANTLE}/tx`,
50
+ "MANTLE-TESTNET": `${exports.explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
51
+ MANTA: `${exports.explorerBaseUrls.MANTA}/tx`,
52
+ "MANTA-TESTNET": `${exports.explorerBaseUrls["MANTA-TESTNET"]}/tx`,
53
+ [chains_1.zkLink]: `${exports.explorerBaseUrls[chains_1.zkLink]}/tx`,
54
+ [chains_1.zkLinkTestnet]: `${exports.explorerBaseUrls[chains_1.zkLinkTestnet]}/tx`,
55
+ [chains_1.bitlayerTestnet]: `${exports.explorerBaseUrls[chains_1.bitlayerTestnet]}/tx`,
56
+ [chains_1.bitlayerMainnet]: `${exports.explorerBaseUrls[chains_1.bitlayerMainnet]}/tx`,
57
+ [chains_1.neoxTestnet]: `${exports.explorerBaseUrls[chains_1.neoxTestnet]}/tx`,
55
58
  };
56
- export const nativeTokenDetails = {
59
+ exports.nativeTokenDetails = {
57
60
  ETH: {
58
61
  name: "Ether",
59
62
  symbol: "ETH",
60
63
  logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png",
61
64
  },
62
- [sepolia]: {
65
+ [chains_1.sepolia]: {
63
66
  name: "Ether",
64
67
  symbol: "ETH",
65
68
  logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png",
@@ -69,7 +72,7 @@ export const nativeTokenDetails = {
69
72
  symbol: "MATIC",
70
73
  logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png",
71
74
  },
72
- [polygonAmoy]: {
75
+ [chains_1.polygonAmoy]: {
73
76
  name: "Matic Token",
74
77
  symbol: "MATIC",
75
78
  logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png",
@@ -149,37 +152,37 @@ export const nativeTokenDetails = {
149
152
  symbol: "SOL",
150
153
  logoUrl: "https://static.tria.so/chain-logo-w/Solana.webp",
151
154
  },
152
- [zkLink]: {
155
+ [chains_1.zkLink]: {
153
156
  name: "Ether",
154
157
  symbol: "ETH",
155
158
  logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
156
159
  },
157
- [zkLinkTestnet]: {
160
+ [chains_1.zkLinkTestnet]: {
158
161
  name: "Ether",
159
162
  symbol: "ETH",
160
163
  logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
161
164
  },
162
- [bitlayerTestnet]: {
165
+ [chains_1.bitlayerTestnet]: {
163
166
  name: "Bitcoin",
164
167
  symbol: "BTC",
165
168
  logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
166
169
  },
167
- [bitlayerMainnet]: {
170
+ [chains_1.bitlayerMainnet]: {
168
171
  name: "Bitcoin",
169
172
  symbol: "BTC",
170
173
  logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
171
174
  },
172
- [neoxTestnet]: {
175
+ [chains_1.neoxTestnet]: {
173
176
  name: "Gas",
174
177
  symbol: "GAS",
175
178
  logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
176
179
  },
177
180
  };
178
181
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
179
- export const rpcUrls = {
182
+ exports.rpcUrls = {
180
183
  MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${alchemyKey}`, //'https://polygon-mumbai.blockpi.network/v1/rpc/public',
181
- [polygonAmoy]: `https://polygon-amoy.g.alchemy.com/v2/${alchemyKey}`,
182
- [sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
184
+ [chains_1.polygonAmoy]: `https://polygon-amoy.g.alchemy.com/v2/${alchemyKey}`,
185
+ [chains_1.sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
183
186
  ETH: "https://eth.llamarpc.com",
184
187
  POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
185
188
  AVALANCHE: "https://avalanche-c-chain.publicnode.com",
@@ -195,16 +198,16 @@ export const rpcUrls = {
195
198
  "METIS-TESTNET": "https://goerli.gateway.metisdevops.link",
196
199
  MANTLE: "https://rpc.mantle.xyz",
197
200
  "MANTLE-TESTNET": "https://rpc.testnet.mantle.xyz",
198
- [zkLink]: "https://rpc.zklink.io",
199
- [zkLinkTestnet]: "https://goerli.rpc.zklink.io",
200
- [bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
201
- [bitlayerTestnet]: "https://rpc.bitlayer.org",
202
- [neoxTestnet]: "https://neoxseed1.ngd.network",
201
+ [chains_1.zkLink]: "https://rpc.zklink.io",
202
+ [chains_1.zkLinkTestnet]: "https://goerli.rpc.zklink.io",
203
+ [chains_1.bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
204
+ [chains_1.bitlayerMainnet]: "https://rpc.bitlayer.org",
205
+ [chains_1.neoxTestnet]: "https://neoxseed1.ngd.network",
203
206
  };
204
- export const chainNameToChainId = {
207
+ exports.chainNameToChainId = {
205
208
  MUMBAI: 80001,
206
- [polygonAmoy]: 80002,
207
- [sepolia]: 11155111,
209
+ [chains_1.polygonAmoy]: 80002,
210
+ [chains_1.sepolia]: 11155111,
208
211
  POLYGON: 137,
209
212
  ETH: 1,
210
213
  AVALANCHE: 43114,
@@ -220,16 +223,16 @@ export const chainNameToChainId = {
220
223
  "METIS-TESTNET": 599,
221
224
  MANTLE: 5000,
222
225
  "MANTLE-TESTNET": 5001,
223
- [zkLink]: 810180,
224
- [zkLinkTestnet]: 810182,
225
- [bitlayerTestnet]: 200810,
226
- [bitlayerMainnet]: 200901,
227
- [neoxTestnet]: 12227330,
226
+ [chains_1.zkLink]: 810180,
227
+ [chains_1.zkLinkTestnet]: 810182,
228
+ [chains_1.bitlayerTestnet]: 200810,
229
+ [chains_1.bitlayerMainnet]: 200901,
230
+ [chains_1.neoxTestnet]: 12227330,
228
231
  };
229
- export const chainIdToChainName = {
232
+ exports.chainIdToChainName = {
230
233
  80001: "MUMBAI",
231
- 80002: polygonAmoy,
232
- 11155111: sepolia,
234
+ 80002: chains_1.polygonAmoy,
235
+ 11155111: chains_1.sepolia,
233
236
  137: "POLYGON",
234
237
  1: "ETH",
235
238
  43114: "AVALANCHE",
@@ -245,9 +248,9 @@ export const chainIdToChainName = {
245
248
  599: "METIS-TESTNET",
246
249
  169: "MANTA",
247
250
  3441005: "MANTA-TESTNET",
248
- 810180: zkLink,
249
- 810182: zkLinkTestnet,
250
- 200810: bitlayerTestnet,
251
- 200901: bitlayerMainnet,
252
- 12227330: neoxTestnet,
251
+ 810180: chains_1.zkLink,
252
+ 810182: chains_1.zkLinkTestnet,
253
+ 200810: chains_1.bitlayerTestnet,
254
+ 200901: chains_1.bitlayerMainnet,
255
+ 12227330: chains_1.neoxTestnet,
253
256
  };
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@tria-sdk/constants",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "build": "tsc --project tsconfig.json"
10
+ },
7
11
  "devDependencies": {
8
12
  "typescript": "^5.3.3",
9
13
  "typescript-tools": "^0.3.1"
10
14
  },
11
15
  "keywords": [],
12
16
  "author": "",
13
- "license": "ISC",
14
- "scripts": {
15
- "test": "echo \"Error: no test specified\" && exit 1",
16
- "build": "tsc --project tsconfig.json"
17
- }
18
- }
17
+ "license": "ISC"
18
+ }
package/src/txn.ts CHANGED
@@ -220,7 +220,7 @@ export const rpcUrls = {
220
220
  [zkLink]: "https://rpc.zklink.io",
221
221
  [zkLinkTestnet]: "https://goerli.rpc.zklink.io",
222
222
  [bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
223
- [bitlayerTestnet]: "https://rpc.bitlayer.org",
223
+ [bitlayerMainnet]: "https://rpc.bitlayer.org",
224
224
  [neoxTestnet]: "https://neoxseed1.ngd.network",
225
225
  };
226
226
 
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,
@@ -1,5 +0,0 @@
1
-
2
- 
3
- > @tria-sdk/constants@1.0.23 build /Users/dawn/Projects/Tria/tria-monorepo/packages/constants
4
- > tsc --project tsconfig.json
5
-