@tria-sdk/constants 1.0.7 → 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/src/chains.d.ts +5 -9
- package/dist/src/chains.js +9 -9
- package/dist/src/connect.d.ts +2 -0
- package/dist/src/connect.js +2 -0
- package/dist/src/txn.d.ts +9 -27
- package/dist/src/txn.js +3 -3
- package/package.json +5 -1
- package/src/chains.ts +12 -12
- package/src/connect.ts +2 -0
- package/src/txn.ts +3 -3
package/dist/src/chains.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const zkLink
|
|
2
|
-
export declare const zkLinkTestnet
|
|
3
|
-
export declare const bitlayerTestnet
|
|
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
|
};
|
package/dist/src/chains.js
CHANGED
|
@@ -144,15 +144,15 @@ exports.networks = [
|
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
chainName: exports.zkLink,
|
|
147
|
-
logo:
|
|
147
|
+
logo: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
chainName: exports.zkLinkTestnet,
|
|
151
|
-
logo:
|
|
151
|
+
logo: `https://zk.link/_next/static/media/logo.6cb4f860.png`,
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
chainName: exports.bitlayerTestnet,
|
|
155
|
-
logo:
|
|
155
|
+
logo: `https://docs.bitlayer.org/images/bitlayer-logo.jpg`,
|
|
156
156
|
},
|
|
157
157
|
];
|
|
158
158
|
exports.chainNameToLogo = {
|
|
@@ -174,9 +174,9 @@ exports.chainNameToLogo = {
|
|
|
174
174
|
MANTLE: `${baseLogoUrl}/Mantle.webp`,
|
|
175
175
|
"MANTLE-TESTNET": `${baseLogoUrl}/Mantle.webp`,
|
|
176
176
|
SOLANA: `${baseLogoUrl}/Solana.webp`,
|
|
177
|
-
[exports.zkLink]:
|
|
178
|
-
[exports.zkLinkTestnet]:
|
|
179
|
-
[exports.bitlayerTestnet]:
|
|
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`,
|
|
180
180
|
};
|
|
181
181
|
exports.chainNameToLogoBlack = {
|
|
182
182
|
ETH: `${baseLogoUrlBlack}/Ethereum.webp`,
|
|
@@ -197,7 +197,7 @@ exports.chainNameToLogoBlack = {
|
|
|
197
197
|
MANTLE: `${baseLogoUrlBlack}/Mantle.webp`,
|
|
198
198
|
"MANTLE-TESTNET": `${baseLogoUrlBlack}/Mantle.webp`,
|
|
199
199
|
SOLANA: `${baseLogoUrlBlack}/Solana.webp`,
|
|
200
|
-
[exports.zkLink]:
|
|
201
|
-
[exports.zkLinkTestnet]:
|
|
202
|
-
[exports.bitlayerTestnet]:
|
|
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`,
|
|
203
203
|
};
|
package/dist/src/connect.d.ts
CHANGED
|
@@ -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";
|
package/dist/src/connect.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.triaAuthUrl = exports.storageKeys = exports.TRIA_WALLET_SELECTED_CHAIN =
|
|
|
4
4
|
exports.eventTypes = {
|
|
5
5
|
logIn: "Log in",
|
|
6
6
|
triaSignUp: "Tria Sign up",
|
|
7
|
+
emailPwSignUp: "Email Pwd Sign up",
|
|
7
8
|
socialSignUp: "Social Sign up",
|
|
8
9
|
signMessage: "Sign Message",
|
|
9
10
|
send: "Send",
|
|
@@ -15,6 +16,7 @@ exports.eventTypes = {
|
|
|
15
16
|
accessToken: "Access Token Pass",
|
|
16
17
|
idTokenPass: "Id Token Pass",
|
|
17
18
|
saveToAuth: "Save to Auth Iframe",
|
|
19
|
+
triaStoreSet: "triaStoreSet",
|
|
18
20
|
};
|
|
19
21
|
exports.TRIA_WALLET_STORE = "tria.wallet.store";
|
|
20
22
|
exports.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
|
@@ -137,17 +137,17 @@ exports.nativeTokenDetails = {
|
|
|
137
137
|
[chains_1.zkLink]: {
|
|
138
138
|
name: "Ether",
|
|
139
139
|
symbol: "ETH",
|
|
140
|
-
logoUrl: "https://
|
|
140
|
+
logoUrl: "https://zk.link/_next/static/media/logo.6cb4f860.png",
|
|
141
141
|
},
|
|
142
142
|
[chains_1.zkLinkTestnet]: {
|
|
143
143
|
name: "Ether",
|
|
144
144
|
symbol: "ETH",
|
|
145
|
-
logoUrl: "https://
|
|
145
|
+
logoUrl: "https://zk.link/_next/static/media/logo.6cb4f860.png",
|
|
146
146
|
},
|
|
147
147
|
[chains_1.bitlayerTestnet]: {
|
|
148
148
|
name: "Bitcoin",
|
|
149
149
|
symbol: "BTC",
|
|
150
|
-
logoUrl: "https://
|
|
150
|
+
logoUrl: "https://docs.bitlayer.org/images/bitlayer-logo.jpg",
|
|
151
151
|
},
|
|
152
152
|
};
|
|
153
153
|
const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tria-sdk/constants",
|
|
3
|
-
"version": "1.0.
|
|
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]:
|
|
186
|
-
[zkLinkTestnet]:
|
|
187
|
-
[bitlayerTestnet]:
|
|
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]:
|
|
210
|
-
[zkLinkTestnet]:
|
|
211
|
-
[bitlayerTestnet]:
|
|
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://
|
|
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://
|
|
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://
|
|
157
|
+
logoUrl: "https://docs.bitlayer.org/images/bitlayer-logo.jpg",
|
|
158
158
|
},
|
|
159
159
|
};
|
|
160
160
|
|