@tria-sdk/constants 1.0.8 → 1.0.10

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.
@@ -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
  };
@@ -141,15 +141,15 @@ export const networks = [
141
141
  },
142
142
  {
143
143
  chainName: zkLink,
144
- logo: ``,
144
+ logo: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
145
145
  },
146
146
  {
147
147
  chainName: zkLinkTestnet,
148
- logo: ``,
148
+ logo: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
149
149
  },
150
150
  {
151
151
  chainName: bitlayerTestnet,
152
- logo: ``,
152
+ logo: `https://docs.bitlayer.org/images/bitlayer-logo.jpg`,
153
153
  },
154
154
  ];
155
155
  export const chainNameToLogo = {
@@ -171,9 +171,9 @@ export const chainNameToLogo = {
171
171
  MANTLE: `${baseLogoUrl}/Mantle.webp`,
172
172
  "MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
173
173
  SOLANA: `${baseLogoUrl}/Solana.webp`,
174
- [zkLink]: `${baseLogoUrl}/Ethereum.webp`,
175
- [zkLinkTestnet]: `${baseLogoUrl}/Ethereum.webp`,
176
- [bitlayerTestnet]: `${baseLogoUrl}/Ethereum.webp`,
174
+ [zkLink]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
175
+ [zkLinkTestnet]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
176
+ [bitlayerTestnet]: `https://docs.bitlayer.org/images/bitlayer-logo.jpg`,
177
177
  };
178
178
  export const chainNameToLogoBlack = {
179
179
  ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
@@ -194,7 +194,7 @@ export const chainNameToLogoBlack = {
194
194
  MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
195
195
  "MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
196
196
  SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
197
- [zkLink]: `${baseLogoUrlBlack}/Ethereum.webp`,
198
- [zkLinkTestnet]: `${baseLogoUrlBlack}/Ethereum.webp`,
199
- [bitlayerTestnet]: `${baseLogoUrlBlack}/Ethereum.webp`,
197
+ [zkLink]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
198
+ [zkLinkTestnet]: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
199
+ [bitlayerTestnet]: `https://docs.bitlayer.org/images/bitlayer-logo.jpg`,
200
200
  };
@@ -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,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
  export const TRIA_WALLET_STORE = "tria.wallet.store";
17
19
  export const TRIA_WALLET_SELECTED_CHAIN = "tria.wallet.selectedChain";
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
@@ -134,17 +134,17 @@ export const nativeTokenDetails = {
134
134
  [zkLink]: {
135
135
  name: "Ether",
136
136
  symbol: "ETH",
137
- logoUrl: "https://static.tria.so/chain-logo-w/Ethereum.webp",
137
+ logoUrl: "https://zk.link/_next/static/media/logo.6cb4f860.png",
138
138
  },
139
139
  [zkLinkTestnet]: {
140
140
  name: "Ether",
141
141
  symbol: "ETH",
142
- logoUrl: "https://static.tria.so/chain-logo-w/bitcoin.webp",
142
+ logoUrl: "https://zk.link/_next/static/media/logo.6cb4f860.png",
143
143
  },
144
144
  [bitlayerTestnet]: {
145
145
  name: "Bitcoin",
146
146
  symbol: "BTC",
147
- logoUrl: "https://static.tria.so/chain-logo-w/bitcoin.webp",
147
+ logoUrl: "https://docs.bitlayer.org/images/bitlayer-logo.jpg",
148
148
  },
149
149
  };
150
150
  const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
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.10",
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