@tria-sdk/constants 1.0.46 → 1.0.48

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.
@@ -0,0 +1,28 @@
1
+ const e = {
2
+ logIn: "Log in",
3
+ triaSignUp: "Tria Sign up",
4
+ emailPwSignUp: "Email Pwd Sign up",
5
+ socialSignUp: "Social Sign up",
6
+ signMessage: "Sign Message",
7
+ send: "Send",
8
+ disconnect: "Disconnect",
9
+ switchChain: "Switch chain",
10
+ detected: "Detected Logged in Tria account",
11
+ logout: "Logout",
12
+ passMessage: "Pass Message",
13
+ accessToken: "Access Token Pass",
14
+ idTokenPass: "Id Token Pass",
15
+ saveToAuth: "Save to Auth Iframe",
16
+ triaStoreSet: "triaStoreSet"
17
+ }, t = "tria.wallet.store", s = "tria.wallet.selectedChain", a = {
18
+ TRIA_WALLET_STORE: "tria.wallet.store",
19
+ TRIA_WALLET_SELECTED_CHAIN: "tria.wallet.selectedChain",
20
+ PERSIST_ROOT: "persist:root"
21
+ }, i = "https://auth.tria.so";
22
+ export {
23
+ s as TRIA_WALLET_SELECTED_CHAIN,
24
+ t as TRIA_WALLET_STORE,
25
+ e as eventTypes,
26
+ a as storageKeys,
27
+ i as triaAuthUrl
28
+ };
@@ -0,0 +1,4 @@
1
+ export * from './src/config';
2
+ export * from './src/chains';
3
+ export * from './src/txn';
4
+ export * from './src/connect';
@@ -0,0 +1,101 @@
1
+ export declare const mumbai = "MUMBAI";
2
+ export declare const polygon = "POLYGON";
3
+ export declare const ethereum = "ETH";
4
+ export declare const fuse = "FUSE";
5
+ export declare const fuseSpark = "FUSESPARK";
6
+ export declare const zkLink: string;
7
+ export declare const zkLinkTestnet: string;
8
+ export declare const bitlayerTestnet: string;
9
+ export declare const bitlayerMainnet: string;
10
+ export declare const neoxTestnet: string;
11
+ export declare const sepolia: string;
12
+ export declare const polygonAmoy: string;
13
+ export declare const vanarTestnet: string;
14
+ export declare const skaleTestnet: string;
15
+ export type ZKLINK = "ZKLINK-NOVA";
16
+ export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
17
+ export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
18
+ export type NEOX_TESTNET = "NEOX-TESTNET";
19
+ export type SEPOLIA = "SEPOLIA";
20
+ export type AMOY = "AMOY";
21
+ export type VANGUARD_VANAR_TESTNET = "VANGUARD-VANAR-TESTNET";
22
+ export type SKALE_TESTNET = "SKALE-TESTNET";
23
+ export declare const TESTNET_CHAINS: string[];
24
+ export declare const SUPPORTED_EVM_CHAINS: string[];
25
+ export declare const GAS_ABS_ENABLED_CHAINS: string[];
26
+ export declare const AA_SUPPORTED_EVM_CHAINS: string[];
27
+ export declare const ALLCHAINS: string[];
28
+ export declare const networks: {
29
+ chainName: string;
30
+ logo: string;
31
+ type: string;
32
+ }[];
33
+ export declare const chainNameToLogo: {
34
+ [x: string]: string;
35
+ ETH: string;
36
+ FANTOM: string;
37
+ POLYGON: string;
38
+ AVALANCHE: string;
39
+ OPTIMISM: string;
40
+ ARBITRUM: string;
41
+ LINEA: string;
42
+ MUMBAI: string;
43
+ FUSE: string;
44
+ FUSESPARK: string;
45
+ BINANCE: string;
46
+ MANTA: string;
47
+ "MANTA-TESTNET": string;
48
+ METIS: string;
49
+ "METIS-TESTNET": string;
50
+ MANTLE: string;
51
+ "MANTLE-TESTNET": string;
52
+ SOLANA: string;
53
+ };
54
+ export declare const chainNameToLogoAverageColor: {
55
+ ETH: string;
56
+ POLYGON: string;
57
+ SEPOLIA: string;
58
+ FANTOM: string;
59
+ AMOY: string;
60
+ AVALANCHE: string;
61
+ ARBITRUM: string;
62
+ OPTIMISM: string;
63
+ LINEA: string;
64
+ MUMBAI: string;
65
+ FUSESPARK: string;
66
+ FUSE: string;
67
+ MANTA: string;
68
+ "MANTA-TESTNET": string;
69
+ "METIS-TESTNET": string;
70
+ METIS: string;
71
+ SOLANA: string;
72
+ "MANTLE-TESTNET": string;
73
+ MANTLE: string;
74
+ "BITLAYER-TESTNET": string;
75
+ "ZKLINK-NOVA": string;
76
+ "ZKLINK-NOVA-TESTNET": string;
77
+ "NEOX-TESTNET": string;
78
+ "VANGUARD-VANAR-TESTNET": string;
79
+ BINANCE: string;
80
+ };
81
+ export declare const chainNameToLogoBlack: {
82
+ [x: string]: string;
83
+ ETH: string;
84
+ BINANCE: string;
85
+ FANTOM: string;
86
+ POLYGON: string;
87
+ AVALANCHE: string;
88
+ OPTIMISM: string;
89
+ ARBITRUM: string;
90
+ LINEA: string;
91
+ MUMBAI: string;
92
+ FUSE: string;
93
+ FUSESPARK: string;
94
+ MANTA: string;
95
+ "MANTA-TESTNET": string;
96
+ METIS: string;
97
+ "METIS-TESTNET": string;
98
+ MANTLE: string;
99
+ "MANTLE-TESTNET": string;
100
+ SOLANA: string;
101
+ };
@@ -0,0 +1,6 @@
1
+ export declare const prodApiUrl = "https://prod.tria.so";
2
+ export declare const isEvmChain: (chainName: string) => boolean;
3
+ export declare const isAaSupportedChain: (chainName: string) => boolean;
4
+ export declare const isChainSupported: (chainName: string) => boolean;
5
+ export declare const isTestnetChain: (chainName: string) => boolean;
6
+ export declare const isGasAbsEnabled: (chainName: string) => boolean;
@@ -0,0 +1,25 @@
1
+ export declare const eventTypes: {
2
+ logIn: string;
3
+ triaSignUp: string;
4
+ emailPwSignUp: string;
5
+ socialSignUp: string;
6
+ signMessage: string;
7
+ send: string;
8
+ disconnect: string;
9
+ switchChain: string;
10
+ detected: string;
11
+ logout: string;
12
+ passMessage: string;
13
+ accessToken: string;
14
+ idTokenPass: string;
15
+ saveToAuth: string;
16
+ triaStoreSet: string;
17
+ };
18
+ export declare const TRIA_WALLET_STORE = "tria.wallet.store";
19
+ export declare const TRIA_WALLET_SELECTED_CHAIN = "tria.wallet.selectedChain";
20
+ export declare const storageKeys: {
21
+ TRIA_WALLET_STORE: string;
22
+ TRIA_WALLET_SELECTED_CHAIN: string;
23
+ PERSIST_ROOT: string;
24
+ };
25
+ export declare const triaAuthUrl = "https://auth.tria.so";
File without changes
@@ -0,0 +1,199 @@
1
+ export declare const explorerBaseUrls: {
2
+ [x: string]: string;
3
+ ETH: string;
4
+ POLYGON: string;
5
+ AVALANCHE: string;
6
+ ARBITRUM: string;
7
+ BINANCE: string;
8
+ OPTIMISM: string;
9
+ FANTOM: string;
10
+ SOLANA: string;
11
+ APTOS: string;
12
+ NEO: string;
13
+ SUI: string;
14
+ FUSE: string;
15
+ FUSESPARK: string;
16
+ MUMBAI: string;
17
+ METIS: string;
18
+ "METIS-TESTNET": string;
19
+ MANTLE: string;
20
+ "MANTLE-TESTNET": string;
21
+ MANTA: string;
22
+ "MANTA-TESTNET": string;
23
+ };
24
+ export declare const txnBaseUrl: {
25
+ [x: string]: string;
26
+ ETH: string;
27
+ POLYGON: string;
28
+ AVALANCHE: string;
29
+ ARBITRUM: string;
30
+ BINANCE: string;
31
+ OPTIMISM: string;
32
+ FANTOM: string;
33
+ FUSE: string;
34
+ FUSESPARK: string;
35
+ MUMBAI: string;
36
+ METIS: string;
37
+ "METIS-TESTNET": string;
38
+ MANTLE: string;
39
+ "MANTLE-TESTNET": string;
40
+ MANTA: string;
41
+ "MANTA-TESTNET": string;
42
+ };
43
+ export declare const nativeTokenDetails: {
44
+ [x: string]: {
45
+ name: string;
46
+ symbol: string;
47
+ logoUrl: string;
48
+ };
49
+ ETH: {
50
+ name: string;
51
+ symbol: string;
52
+ logoUrl: string;
53
+ };
54
+ POLYGON: {
55
+ name: string;
56
+ symbol: string;
57
+ logoUrl: string;
58
+ };
59
+ AVALANCHE: {
60
+ name: string;
61
+ symbol: string;
62
+ logoUrl: string;
63
+ };
64
+ ARBITRUM: {
65
+ name: string;
66
+ symbol: string;
67
+ logoUrl: string;
68
+ };
69
+ BINANCE: {
70
+ name: string;
71
+ symbol: string;
72
+ logoUrl: string;
73
+ };
74
+ OPTIMISM: {
75
+ name: string;
76
+ symbol: string;
77
+ logoUrl: string;
78
+ };
79
+ FANTOM: {
80
+ name: string;
81
+ symbol: string;
82
+ logoUrl: string;
83
+ };
84
+ FUSE: {
85
+ name: string;
86
+ symbol: string;
87
+ logoUrl: string;
88
+ };
89
+ FUSESPARK: {
90
+ name: string;
91
+ symbol: string;
92
+ logoUrl: string;
93
+ };
94
+ MUMBAI: {
95
+ name: string;
96
+ symbol: string;
97
+ logoUrl: string;
98
+ };
99
+ METIS: {
100
+ name: string;
101
+ symbol: string;
102
+ logoUrl: string;
103
+ };
104
+ "METIS-TESTNET": {
105
+ name: string;
106
+ symbol: string;
107
+ logoUrl: string;
108
+ };
109
+ MANTLE: {
110
+ name: string;
111
+ symbol: string;
112
+ logoUrl: string;
113
+ };
114
+ "MANTLE-TESTNET": {
115
+ name: string;
116
+ symbol: string;
117
+ logoUrl: string;
118
+ };
119
+ MANTA: {
120
+ name: string;
121
+ symbol: string;
122
+ logoUrl: string;
123
+ };
124
+ "MANTA-TESTNET": {
125
+ name: string;
126
+ symbol: string;
127
+ logoUrl: string;
128
+ };
129
+ SOLANA: {
130
+ name: string;
131
+ symbol: string;
132
+ logoUrl: string;
133
+ };
134
+ };
135
+ export declare const rpcUrls: {
136
+ [x: string]: string;
137
+ MUMBAI: string;
138
+ ETH: string;
139
+ POLYGON: string;
140
+ AVALANCHE: string;
141
+ ARBITRUM: string;
142
+ BINANCE: string;
143
+ OPTIMISM: string;
144
+ FANTOM: string;
145
+ FUSE: string;
146
+ FUSESPARK: string;
147
+ MANTA: string;
148
+ "MANTA-TESTNET": string;
149
+ METIS: string;
150
+ "METIS-TESTNET": string;
151
+ MANTLE: string;
152
+ "MANTLE-TESTNET": string;
153
+ };
154
+ export declare const chainNameToChainId: {
155
+ [x: string]: number;
156
+ MUMBAI: number;
157
+ POLYGON: number;
158
+ ETH: number;
159
+ AVALANCHE: number;
160
+ ARBITRUM: number;
161
+ BINANCE: number;
162
+ OPTIMISM: number;
163
+ FANTOM: number;
164
+ FUSE: number;
165
+ FUSESPARK: number;
166
+ MANTA: number;
167
+ "MANTA-TESTNET": number;
168
+ METIS: number;
169
+ "METIS-TESTNET": number;
170
+ MANTLE: number;
171
+ "MANTLE-TESTNET": number;
172
+ };
173
+ export declare const chainIdToChainName: {
174
+ 11155111: string;
175
+ 80001: string;
176
+ 80002: string;
177
+ 137: string;
178
+ 1: string;
179
+ 43114: string;
180
+ 42161: string;
181
+ 56: string;
182
+ 10: string;
183
+ 250: string;
184
+ 122: string;
185
+ 123: string;
186
+ 5000: string;
187
+ 5001: string;
188
+ 1088: string;
189
+ 599: string;
190
+ 169: string;
191
+ 3441005: string;
192
+ 810180: string;
193
+ 810182: string;
194
+ 200810: string;
195
+ 200901: string;
196
+ 12227330: string;
197
+ 78600: string;
198
+ 974399131: string;
199
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
package/index.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./src/config";
2
2
  export * from "./src/chains";
3
3
  export * from "./src/txn";
4
4
  export * from "./src/connect";
5
+ // export * from "./src/gasToken";
package/package.json CHANGED
@@ -1,14 +1,9 @@
1
1
  {
2
2
  "name": "@tria-sdk/constants",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "",
5
5
  "module": "dist/constants.mjs",
6
6
  "types": "dist/index.d.ts",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
9
- "rollup": "rollup -c",
10
- "build": "tsc && vite build"
11
- },
12
7
  "devDependencies": {
13
8
  "typescript": "^5.3.3",
14
9
  "typescript-tools": "^0.3.1",
@@ -17,5 +12,10 @@
17
12
  },
18
13
  "keywords": [],
19
14
  "author": "",
20
- "license": "ISC"
21
- }
15
+ "license": "ISC",
16
+ "scripts": {
17
+ "test": "echo \"Error: no test specified\" && exit 1",
18
+ "rollup": "rollup -c",
19
+ "build": "tsc && vite build"
20
+ }
21
+ }