@tria-sdk/constants 1.0.25 → 1.0.27

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