@tria-sdk/constants 1.0.8 → 1.0.9

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,6 +1,6 @@
1
- export declare const zkLink = "ZKLINK-NOVA";
2
- export declare const zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
3
- export declare const bitlayerTestnet = "BITLAYER-TESTNET";
1
+ export declare const zkLink: string;
2
+ export declare const zkLinkTestnet: string;
3
+ export declare const bitlayerTestnet: string;
4
4
  export type ZKLINK = "ZKLINK-NOVA";
5
5
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
6
6
  export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
@@ -13,6 +13,7 @@ export declare const networks: {
13
13
  logo: string;
14
14
  }[];
15
15
  export declare const chainNameToLogo: {
16
+ [x: string]: string;
16
17
  ETH: string;
17
18
  FANTOM: string;
18
19
  POLYGON: string;
@@ -31,11 +32,9 @@ export declare const chainNameToLogo: {
31
32
  MANTLE: string;
32
33
  "MANTLE-TESTNET": string;
33
34
  SOLANA: string;
34
- "ZKLINK-NOVA": string;
35
- "ZKLINK-NOVA-TESTNET": string;
36
- "BITLAYER-TESTNET": string;
37
35
  };
38
36
  export declare const chainNameToLogoBlack: {
37
+ [x: string]: string;
39
38
  ETH: string;
40
39
  BINANCE: string;
41
40
  FANTOM: string;
@@ -54,7 +53,4 @@ export declare const chainNameToLogoBlack: {
54
53
  MANTLE: string;
55
54
  "MANTLE-TESTNET": string;
56
55
  SOLANA: string;
57
- "ZKLINK-NOVA": string;
58
- "ZKLINK-NOVA-TESTNET": string;
59
- "BITLAYER-TESTNET": string;
60
56
  };
@@ -1,16 +1,19 @@
1
- export const zkLink = "ZKLINK-NOVA";
2
- export const zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
3
- export const bitlayerTestnet = "BITLAYER-TESTNET";
4
- export const TESTNET_CHAINS = [
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chainNameToLogoBlack = exports.chainNameToLogo = exports.networks = exports.ALLCHAINS = exports.AA_SUPPORTED_EVM_CHAINS = exports.SUPPORTED_EVM_CHAINS = exports.TESTNET_CHAINS = exports.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.TESTNET_CHAINS = [
5
8
  "MUMBAI",
6
9
  "FUSESPARK",
7
10
  "MANTA-TESTNET",
8
11
  "METIS-TESTNET",
9
12
  "MANTLE-TESTNET",
10
- zkLinkTestnet,
11
- bitlayerTestnet,
13
+ exports.zkLinkTestnet,
14
+ exports.bitlayerTestnet,
12
15
  ];
13
- export const SUPPORTED_EVM_CHAINS = [
16
+ exports.SUPPORTED_EVM_CHAINS = [
14
17
  "ETH",
15
18
  "POLYGON",
16
19
  "AVALANCHE",
@@ -27,11 +30,11 @@ export const SUPPORTED_EVM_CHAINS = [
27
30
  "METIS-TESTNET",
28
31
  "MANTLE",
29
32
  "MANTLE-TESTNET",
30
- zkLink,
31
- zkLinkTestnet,
32
- bitlayerTestnet,
33
+ exports.zkLink,
34
+ exports.zkLinkTestnet,
35
+ exports.bitlayerTestnet,
33
36
  ];
34
- export const AA_SUPPORTED_EVM_CHAINS = [
37
+ exports.AA_SUPPORTED_EVM_CHAINS = [
35
38
  "ETH",
36
39
  "POLYGON",
37
40
  "AVALANCHE",
@@ -42,7 +45,7 @@ export const AA_SUPPORTED_EVM_CHAINS = [
42
45
  "FUSE",
43
46
  "MUMBAI",
44
47
  ];
45
- export const ALLCHAINS = [
48
+ exports.ALLCHAINS = [
46
49
  "ETH",
47
50
  "POLYGON",
48
51
  "AVALANCHE",
@@ -60,13 +63,13 @@ export const ALLCHAINS = [
60
63
  "MANTLE",
61
64
  "MANTLE-TESTNET",
62
65
  "SOLANA",
63
- zkLink,
64
- zkLinkTestnet,
65
- bitlayerTestnet,
66
+ exports.zkLink,
67
+ exports.zkLinkTestnet,
68
+ exports.bitlayerTestnet,
66
69
  ];
67
70
  const baseLogoUrl = "https://static.tria.so/chain-logo-w";
68
71
  const baseLogoUrlBlack = "https://static.tria.so/chain-logo-b";
69
- export const networks = [
72
+ exports.networks = [
70
73
  {
71
74
  chainName: "ETH",
72
75
  logo: `${baseLogoUrl}/Ethereum.webp`,
@@ -140,19 +143,19 @@ export const networks = [
140
143
  logo: `${baseLogoUrl}/Solana.webp`,
141
144
  },
142
145
  {
143
- chainName: zkLink,
144
- logo: ``,
146
+ chainName: exports.zkLink,
147
+ logo: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
145
148
  },
146
149
  {
147
- chainName: zkLinkTestnet,
148
- logo: ``,
150
+ chainName: exports.zkLinkTestnet,
151
+ logo: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
149
152
  },
150
153
  {
151
- chainName: bitlayerTestnet,
152
- logo: ``,
154
+ chainName: exports.bitlayerTestnet,
155
+ logo: `https://docs.bitlayer.org/images/bitlayer-logo.jpg`,
153
156
  },
154
157
  ];
155
- export const chainNameToLogo = {
158
+ exports.chainNameToLogo = {
156
159
  ETH: `${baseLogoUrl}/Ethereum.webp`,
157
160
  FANTOM: `${baseLogoUrl}/Fantom.webp`,
158
161
  POLYGON: `${baseLogoUrl}/Polygon.webp`,
@@ -171,11 +174,11 @@ export const chainNameToLogo = {
171
174
  MANTLE: `${baseLogoUrl}/Mantle.webp`,
172
175
  "MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
173
176
  SOLANA: `${baseLogoUrl}/Solana.webp`,
174
- [zkLink]: `${baseLogoUrl}/Ethereum.webp`,
175
- [zkLinkTestnet]: `${baseLogoUrl}/Ethereum.webp`,
176
- [bitlayerTestnet]: `${baseLogoUrl}/Ethereum.webp`,
177
+ [exports.zkLink]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
178
+ [exports.zkLinkTestnet]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
179
+ [exports.bitlayerTestnet]: `https://docs.bitlayer.org/images/bitlayer-logo.jpg`,
177
180
  };
178
- export const chainNameToLogoBlack = {
181
+ exports.chainNameToLogoBlack = {
179
182
  ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
180
183
  BINANCE: `${baseLogoUrlBlack}/binance.webp`,
181
184
  FANTOM: `${baseLogoUrlBlack}/Fantom.webp`,
@@ -194,7 +197,7 @@ export const chainNameToLogoBlack = {
194
197
  MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
195
198
  "MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
196
199
  SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
197
- [zkLink]: `${baseLogoUrlBlack}/Ethereum.webp`,
198
- [zkLinkTestnet]: `${baseLogoUrlBlack}/Ethereum.webp`,
199
- [bitlayerTestnet]: `${baseLogoUrlBlack}/Ethereum.webp`,
200
+ [exports.zkLink]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
201
+ [exports.zkLinkTestnet]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
202
+ [exports.bitlayerTestnet]: `https://docs.bitlayer.org/images/bitlayer-logo.jpg`,
200
203
  };
@@ -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,6 +1,7 @@
1
1
  export declare const eventTypes: {
2
2
  logIn: string;
3
3
  triaSignUp: string;
4
+ emailPwSignUp: string;
4
5
  socialSignUp: string;
5
6
  signMessage: string;
6
7
  send: string;
@@ -12,6 +13,7 @@ export declare const eventTypes: {
12
13
  accessToken: string;
13
14
  idTokenPass: string;
14
15
  saveToAuth: string;
16
+ triaStoreSet: string;
15
17
  };
16
18
  export declare const TRIA_WALLET_STORE = "tria.wallet.store";
17
19
  export declare const TRIA_WALLET_SELECTED_CHAIN = "tria.wallet.selectedChain";
@@ -1,6 +1,10 @@
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",
7
+ emailPwSignUp: "Email Pwd Sign up",
4
8
  socialSignUp: "Social Sign up",
5
9
  signMessage: "Sign Message",
6
10
  send: "Send",
@@ -12,13 +16,14 @@ export const eventTypes = {
12
16
  accessToken: "Access Token Pass",
13
17
  idTokenPass: "Id Token Pass",
14
18
  saveToAuth: "Save to Auth Iframe",
19
+ triaStoreSet: "triaStoreSet",
15
20
  };
16
- export const TRIA_WALLET_STORE = "tria.wallet.store";
17
- export const TRIA_WALLET_SELECTED_CHAIN = "tria.wallet.selectedChain";
18
- export const storageKeys = {
21
+ exports.TRIA_WALLET_STORE = "tria.wallet.store";
22
+ exports.TRIA_WALLET_SELECTED_CHAIN = "tria.wallet.selectedChain";
23
+ exports.storageKeys = {
19
24
  TRIA_WALLET_STORE: "tria.wallet.store",
20
25
  TRIA_WALLET_SELECTED_CHAIN: "tria.wallet.selectedChain",
21
26
  PERSIST_ROOT: "persist:root",
22
27
  };
23
- export const triaAuthUrl = "https://auth.tria.so";
28
+ exports.triaAuthUrl = "https://auth.tria.so";
24
29
  // export const PARENT_URL = document?.referrer || window?.parent?.[0]?.location?.ancestorOrigins?.[0];
package/dist/src/txn.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export declare const explorerBaseUrls: {
2
+ [x: string]: string;
2
3
  ETH: string;
3
4
  POLYGON: string;
4
5
  AVALANCHE: string;
@@ -19,11 +20,9 @@ export declare const explorerBaseUrls: {
19
20
  "MANTLE-TESTNET": string;
20
21
  MANTA: string;
21
22
  "MANTA-TESTNET": string;
22
- "ZKLINK-NOVA": string;
23
- "ZKLINK-NOVA-TESTNET": string;
24
- "BITLAYER-TESTNET": string;
25
23
  };
26
24
  export declare const txnBaseUrl: {
25
+ [x: string]: string;
27
26
  ETH: string;
28
27
  POLYGON: string;
29
28
  AVALANCHE: string;
@@ -40,11 +39,13 @@ export declare const txnBaseUrl: {
40
39
  "MANTLE-TESTNET": string;
41
40
  MANTA: string;
42
41
  "MANTA-TESTNET": string;
43
- "ZKLINK-NOVA": string;
44
- "ZKLINK-NOVA-TESTNET": string;
45
- "BITLAYER-TESTNET": string;
46
42
  };
47
43
  export declare const nativeTokenDetails: {
44
+ [x: string]: {
45
+ name: string;
46
+ symbol: string;
47
+ logoUrl: string;
48
+ };
48
49
  ETH: {
49
50
  name: string;
50
51
  symbol: string;
@@ -130,23 +131,9 @@ export declare const nativeTokenDetails: {
130
131
  symbol: string;
131
132
  logoUrl: string;
132
133
  };
133
- "ZKLINK-NOVA": {
134
- name: string;
135
- symbol: string;
136
- logoUrl: string;
137
- };
138
- "ZKLINK-NOVA-TESTNET": {
139
- name: string;
140
- symbol: string;
141
- logoUrl: string;
142
- };
143
- "BITLAYER-TESTNET": {
144
- name: string;
145
- symbol: string;
146
- logoUrl: string;
147
- };
148
134
  };
149
135
  export declare const rpcUrls: {
136
+ [x: string]: string;
150
137
  MUMBAI: string;
151
138
  ETH: string;
152
139
  POLYGON: string;
@@ -163,11 +150,9 @@ export declare const rpcUrls: {
163
150
  "METIS-TESTNET": string;
164
151
  MANTLE: string;
165
152
  "MANTLE-TESTNET": string;
166
- "ZKLINK-NOVA": string;
167
- "ZKLINK-NOVA-TESTNET": string;
168
- "BITLAYER-TESTNET": string;
169
153
  };
170
154
  export declare const chainNameToChainId: {
155
+ [x: string]: number;
171
156
  MUMBAI: number;
172
157
  POLYGON: number;
173
158
  ETH: number;
@@ -184,9 +169,6 @@ export declare const chainNameToChainId: {
184
169
  "METIS-TESTNET": number;
185
170
  MANTLE: number;
186
171
  "MANTLE-TESTNET": number;
187
- "ZKLINK-NOVA": number;
188
- "ZKLINK-NOVA-TESTNET": number;
189
- "BITLAYER-TESTNET": number;
190
172
  };
191
173
  export declare const chainIdToChainName: {
192
174
  80001: string;
package/dist/src/txn.js CHANGED
@@ -1,5 +1,8 @@
1
- import { bitlayerTestnet, zkLink, zkLinkTestnet } from "./chains";
2
- export const explorerBaseUrls = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chainIdToChainName = exports.chainNameToChainId = exports.rpcUrls = exports.nativeTokenDetails = exports.txnBaseUrl = exports.explorerBaseUrls = void 0;
4
+ const chains_1 = require("./chains");
5
+ exports.explorerBaseUrls = {
3
6
  ETH: "https://etherscan.io",
4
7
  POLYGON: "https://polygonscan.com",
5
8
  AVALANCHE: "https://snowtrace.io",
@@ -20,32 +23,32 @@ export const explorerBaseUrls = {
20
23
  "MANTLE-TESTNET": "https://explorer.testnet.mantle.xyz",
21
24
  MANTA: "https://pacific-explorer.manta.network",
22
25
  "MANTA-TESTNET": "https://manta-testnet.calderaexplorer.xyz",
23
- [zkLink]: "https://explorer.zklink.io",
24
- [zkLinkTestnet]: "https://goerli.explorer.zklink.io",
25
- [bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
26
+ [chains_1.zkLink]: "https://explorer.zklink.io",
27
+ [chains_1.zkLinkTestnet]: "https://goerli.explorer.zklink.io",
28
+ [chains_1.bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
26
29
  };
27
- export const txnBaseUrl = {
28
- ETH: `${explorerBaseUrls.ETH}/tx`, // /txHash
29
- POLYGON: `${explorerBaseUrls.POLYGON}/tx`,
30
- AVALANCHE: `${explorerBaseUrls.AVALANCHE}/tx`,
31
- ARBITRUM: `${explorerBaseUrls.ARBITRUM}/tx`,
32
- BINANCE: `${explorerBaseUrls.BINANCE}/tx`,
33
- OPTIMISM: `${explorerBaseUrls.OPTIMISM}/tx`,
34
- FANTOM: `${explorerBaseUrls.FANTOM}/tx`,
35
- FUSE: `${explorerBaseUrls.FUSE}/tx`,
36
- FUSESPARK: `${explorerBaseUrls.FUSESPARK}/tx`,
37
- MUMBAI: `${explorerBaseUrls.MUMBAI}/tx`,
38
- METIS: `${explorerBaseUrls.METIS}/tx`,
39
- "METIS-TESTNET": `${explorerBaseUrls["METIS-TESTNET"]}/tx`,
40
- MANTLE: `${explorerBaseUrls.MANTLE}/tx`,
41
- "MANTLE-TESTNET": `${explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
42
- MANTA: `${explorerBaseUrls.MANTA}/tx`,
43
- "MANTA-TESTNET": `${explorerBaseUrls["MANTA-TESTNET"]}/tx`,
44
- [zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
45
- [zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
46
- [bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
30
+ exports.txnBaseUrl = {
31
+ ETH: `${exports.explorerBaseUrls.ETH}/tx`, // /txHash
32
+ POLYGON: `${exports.explorerBaseUrls.POLYGON}/tx`,
33
+ AVALANCHE: `${exports.explorerBaseUrls.AVALANCHE}/tx`,
34
+ ARBITRUM: `${exports.explorerBaseUrls.ARBITRUM}/tx`,
35
+ BINANCE: `${exports.explorerBaseUrls.BINANCE}/tx`,
36
+ OPTIMISM: `${exports.explorerBaseUrls.OPTIMISM}/tx`,
37
+ FANTOM: `${exports.explorerBaseUrls.FANTOM}/tx`,
38
+ FUSE: `${exports.explorerBaseUrls.FUSE}/tx`,
39
+ FUSESPARK: `${exports.explorerBaseUrls.FUSESPARK}/tx`,
40
+ MUMBAI: `${exports.explorerBaseUrls.MUMBAI}/tx`,
41
+ METIS: `${exports.explorerBaseUrls.METIS}/tx`,
42
+ "METIS-TESTNET": `${exports.explorerBaseUrls["METIS-TESTNET"]}/tx`,
43
+ MANTLE: `${exports.explorerBaseUrls.MANTLE}/tx`,
44
+ "MANTLE-TESTNET": `${exports.explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
45
+ MANTA: `${exports.explorerBaseUrls.MANTA}/tx`,
46
+ "MANTA-TESTNET": `${exports.explorerBaseUrls["MANTA-TESTNET"]}/tx`,
47
+ [chains_1.zkLink]: `${exports.explorerBaseUrls[chains_1.zkLink]}/tx`,
48
+ [chains_1.zkLinkTestnet]: `${exports.explorerBaseUrls[chains_1.zkLinkTestnet]}/tx`,
49
+ [chains_1.bitlayerTestnet]: `${exports.explorerBaseUrls[chains_1.bitlayerTestnet]}/tx`,
47
50
  };
48
- export const nativeTokenDetails = {
51
+ exports.nativeTokenDetails = {
49
52
  ETH: {
50
53
  name: "Ether",
51
54
  symbol: "ETH",
@@ -131,24 +134,24 @@ export const nativeTokenDetails = {
131
134
  symbol: "SOL",
132
135
  logoUrl: "https://static.tria.so/chain-logo-w/Solana.webp",
133
136
  },
134
- [zkLink]: {
137
+ [chains_1.zkLink]: {
135
138
  name: "Ether",
136
139
  symbol: "ETH",
137
- logoUrl: "https://static.tria.so/chain-logo-w/Ethereum.webp",
140
+ logoUrl: "https://zk.link/_next/static/media/logo.6cb4f860.png",
138
141
  },
139
- [zkLinkTestnet]: {
142
+ [chains_1.zkLinkTestnet]: {
140
143
  name: "Ether",
141
144
  symbol: "ETH",
142
- logoUrl: "https://static.tria.so/chain-logo-w/bitcoin.webp",
145
+ logoUrl: "https://zk.link/_next/static/media/logo.6cb4f860.png",
143
146
  },
144
- [bitlayerTestnet]: {
147
+ [chains_1.bitlayerTestnet]: {
145
148
  name: "Bitcoin",
146
149
  symbol: "BTC",
147
- logoUrl: "https://static.tria.so/chain-logo-w/bitcoin.webp",
150
+ logoUrl: "https://docs.bitlayer.org/images/bitlayer-logo.jpg",
148
151
  },
149
152
  };
150
153
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
151
- export const rpcUrls = {
154
+ exports.rpcUrls = {
152
155
  MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${alchemyKey}`, //'https://polygon-mumbai.blockpi.network/v1/rpc/public',
153
156
  ETH: "https://eth.llamarpc.com",
154
157
  POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
@@ -165,11 +168,11 @@ export const rpcUrls = {
165
168
  "METIS-TESTNET": "https://goerli.gateway.metisdevops.link",
166
169
  MANTLE: "https://rpc.mantle.xyz",
167
170
  "MANTLE-TESTNET": "https://rpc.testnet.mantle.xyz",
168
- [zkLink]: "https://rpc.zklink.io",
169
- [zkLinkTestnet]: "https://goerli.rpc.zklink.io",
170
- [bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
171
+ [chains_1.zkLink]: "https://rpc.zklink.io",
172
+ [chains_1.zkLinkTestnet]: "https://goerli.rpc.zklink.io",
173
+ [chains_1.bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
171
174
  };
172
- export const chainNameToChainId = {
175
+ exports.chainNameToChainId = {
173
176
  MUMBAI: 80001,
174
177
  POLYGON: 137,
175
178
  ETH: 1,
@@ -186,11 +189,11 @@ export const chainNameToChainId = {
186
189
  "METIS-TESTNET": 599,
187
190
  MANTLE: 5000,
188
191
  "MANTLE-TESTNET": 5001,
189
- [zkLink]: 810180,
190
- [zkLinkTestnet]: 810182,
191
- [bitlayerTestnet]: 200810,
192
+ [chains_1.zkLink]: 810180,
193
+ [chains_1.zkLinkTestnet]: 810182,
194
+ [chains_1.bitlayerTestnet]: 200810,
192
195
  };
193
- export const chainIdToChainName = {
196
+ exports.chainIdToChainName = {
194
197
  80001: "MUMBAI",
195
198
  137: "POLYGON",
196
199
  1: "ETH",
@@ -207,7 +210,7 @@ export const chainIdToChainName = {
207
210
  599: "METIS-TESTNET",
208
211
  169: "MANTA",
209
212
  3441005: "MANTA-TESTNET",
210
- 810180: zkLink,
211
- 810182: zkLinkTestnet,
212
- 200810: bitlayerTestnet,
213
+ 810180: chains_1.zkLink,
214
+ 810182: chains_1.zkLinkTestnet,
215
+ 200810: chains_1.bitlayerTestnet,
213
216
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tria-sdk/constants",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,6 +8,10 @@
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
9
  "build": "tsc --project tsconfig.json"
10
10
  },
11
+ "devDependencies": {
12
+ "typescript": "^5.3.3",
13
+ "typescript-tools": "^0.3.1"
14
+ },
11
15
  "keywords": [],
12
16
  "author": "",
13
17
  "license": "ISC"
package/src/chains.ts CHANGED
@@ -1,6 +1,6 @@
1
- export const zkLink = "ZKLINK-NOVA";
2
- export const zkLinkTestnet = "ZKLINK-NOVA-TESTNET";
3
- export const bitlayerTestnet = "BITLAYER-TESTNET";
1
+ export const zkLink: string = "ZKLINK-NOVA";
2
+ export const zkLinkTestnet: string = "ZKLINK-NOVA-TESTNET";
3
+ export const bitlayerTestnet: string = "BITLAYER-TESTNET";
4
4
 
5
5
  export type ZKLINK = "ZKLINK-NOVA";
6
6
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
@@ -151,15 +151,15 @@ export const networks = [
151
151
  },
152
152
  {
153
153
  chainName: zkLink,
154
- logo: ``,
154
+ logo: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
155
155
  },
156
156
  {
157
157
  chainName: zkLinkTestnet,
158
- logo: ``,
158
+ logo: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
159
159
  },
160
160
  {
161
161
  chainName: bitlayerTestnet,
162
- logo: ``,
162
+ logo: `https://docs.bitlayer.org/images/bitlayer-logo.jpg`,
163
163
  },
164
164
  ];
165
165
 
@@ -182,9 +182,9 @@ export const chainNameToLogo = {
182
182
  MANTLE: `${baseLogoUrl}/Mantle.webp`,
183
183
  "MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
184
184
  SOLANA: `${baseLogoUrl}/Solana.webp`,
185
- [zkLink]: `${baseLogoUrl}/Ethereum.webp`,
186
- [zkLinkTestnet]: `${baseLogoUrl}/Ethereum.webp`,
187
- [bitlayerTestnet]: `${baseLogoUrl}/Ethereum.webp`,
185
+ [zkLink]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
186
+ [zkLinkTestnet]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
187
+ [bitlayerTestnet]: `https://docs.bitlayer.org/images/bitlayer-logo.jpg`,
188
188
  };
189
189
 
190
190
  export const chainNameToLogoBlack = {
@@ -206,7 +206,7 @@ export const chainNameToLogoBlack = {
206
206
  MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
207
207
  "MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
208
208
  SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
209
- [zkLink]: `${baseLogoUrlBlack}/Ethereum.webp`,
210
- [zkLinkTestnet]: `${baseLogoUrlBlack}/Ethereum.webp`,
211
- [bitlayerTestnet]: `${baseLogoUrlBlack}/Ethereum.webp`,
209
+ [zkLink]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
210
+ [zkLinkTestnet]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
211
+ [bitlayerTestnet]: `https://docs.bitlayer.org/images/bitlayer-logo.jpg`,
212
212
  };
package/src/connect.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export const eventTypes = {
2
2
  logIn: "Log in",
3
3
  triaSignUp: "Tria Sign up",
4
+ emailPwSignUp: "Email Pwd Sign up",
4
5
  socialSignUp: "Social Sign up",
5
6
  signMessage: "Sign Message",
6
7
  send: "Send",
@@ -12,6 +13,7 @@ export const eventTypes = {
12
13
  accessToken: "Access Token Pass",
13
14
  idTokenPass: "Id Token Pass",
14
15
  saveToAuth: "Save to Auth Iframe",
16
+ triaStoreSet: "triaStoreSet",
15
17
  };
16
18
 
17
19
  export const TRIA_WALLET_STORE = "tria.wallet.store";
package/src/txn.ts CHANGED
@@ -144,17 +144,17 @@ export const nativeTokenDetails = {
144
144
  [zkLink]: {
145
145
  name: "Ether",
146
146
  symbol: "ETH",
147
- logoUrl: "https://static.tria.so/chain-logo-w/Ethereum.webp",
147
+ logoUrl: "https://zk.link/_next/static/media/logo.6cb4f860.png",
148
148
  },
149
149
  [zkLinkTestnet]: {
150
150
  name: "Ether",
151
151
  symbol: "ETH",
152
- logoUrl: "https://static.tria.so/chain-logo-w/bitcoin.webp",
152
+ logoUrl: "https://zk.link/_next/static/media/logo.6cb4f860.png",
153
153
  },
154
154
  [bitlayerTestnet]: {
155
155
  name: "Bitcoin",
156
156
  symbol: "BTC",
157
- logoUrl: "https://static.tria.so/chain-logo-w/bitcoin.webp",
157
+ logoUrl: "https://docs.bitlayer.org/images/bitlayer-logo.jpg",
158
158
  },
159
159
  };
160
160
 
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,