@tria-sdk/constants 1.0.15 → 1.0.17

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,7 +1,7 @@
1
1
  export declare const zkLink: string;
2
2
  export declare const zkLinkTestnet: string;
3
3
  export declare const bitlayerTestnet: string;
4
- export declare const neoxTestnet = "NEOX-TESTNET";
4
+ export declare const neoxTestnet: string;
5
5
  export type ZKLINK = "ZKLINK-NOVA";
6
6
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
7
7
  export type BITLAYER_TESTNET = "BITLAYER-TESTNET";
@@ -13,6 +13,7 @@ export declare const ALLCHAINS: string[];
13
13
  export declare const networks: {
14
14
  chainName: string;
15
15
  logo: string;
16
+ type: string;
16
17
  }[];
17
18
  export declare const chainNameToLogo: {
18
19
  [x: string]: string;
@@ -34,7 +35,6 @@ export declare const chainNameToLogo: {
34
35
  MANTLE: string;
35
36
  "MANTLE-TESTNET": string;
36
37
  SOLANA: string;
37
- "NEOX-TESTNET": string;
38
38
  };
39
39
  export declare const chainNameToLogoBlack: {
40
40
  [x: string]: string;
@@ -56,5 +56,4 @@ export declare const chainNameToLogoBlack: {
56
56
  MANTLE: string;
57
57
  "MANTLE-TESTNET": string;
58
58
  SOLANA: string;
59
- "NEOX-TESTNET": string;
60
59
  };
@@ -38,15 +38,15 @@ exports.SUPPORTED_EVM_CHAINS = [
38
38
  exports.neoxTestnet,
39
39
  ];
40
40
  exports.AA_SUPPORTED_EVM_CHAINS = [
41
- "ETH",
41
+ // "ETH",
42
42
  "POLYGON",
43
- "AVALANCHE",
44
- "ARBITRUM",
45
- "BINANCE",
46
- "OPTIMISM",
47
- "FANTOM",
43
+ // "AVALANCHE",
44
+ // "ARBITRUM",
45
+ // "BINANCE",
46
+ // "OPTIMISM",
48
47
  "FUSE",
49
48
  "MUMBAI",
49
+ // "MANTLE",
50
50
  ];
51
51
  exports.ALLCHAINS = [
52
52
  "ETH",
@@ -77,42 +77,52 @@ exports.networks = [
77
77
  {
78
78
  chainName: "ETH",
79
79
  logo: `${baseLogoUrl}/Ethereum.webp`,
80
+ type: "mainnet",
80
81
  },
81
82
  {
82
83
  chainName: "FANTOM",
83
84
  logo: `${baseLogoUrl}/Fantom.webp`,
85
+ type: "mainnet",
84
86
  },
85
87
  {
86
88
  chainName: "POLYGON",
87
89
  logo: `${baseLogoUrl}/Polygon.svg`,
90
+ type: "mainnet",
88
91
  },
89
92
  {
90
93
  chainName: "AVALANCHE",
91
94
  logo: `${baseLogoUrl}/Avalanche.webp`,
95
+ type: "mainnet",
92
96
  },
93
97
  {
94
98
  chainName: "OPTIMISM",
95
99
  logo: `${baseLogoUrl}/Optimism.webp`,
100
+ type: "mainnet",
96
101
  },
97
102
  {
98
103
  chainName: "ARBITRUM",
99
104
  logo: `${baseLogoUrl}/Arbitrum.webp`,
105
+ type: "mainnet",
100
106
  },
101
107
  {
102
108
  chainName: "FUSE",
103
109
  logo: `${baseLogoUrl}/Fuse.webp`,
110
+ type: "mainnet",
104
111
  },
105
112
  {
106
113
  chainName: "FUSESPARK",
107
114
  logo: `${baseLogoUrl}/Fuse.webp`,
115
+ type: "testnet",
108
116
  },
109
117
  {
110
118
  chainName: "MUMBAI",
111
119
  logo: `${baseLogoUrl}/Polygon.svg`,
120
+ type: "testnet",
112
121
  },
113
122
  {
114
123
  chainName: "BINANCE",
115
124
  logo: `${baseLogoUrl}/Binance.svg`,
125
+ type: "mainnet",
116
126
  },
117
127
  // {
118
128
  // chainName: 'LINEA',
@@ -121,46 +131,57 @@ exports.networks = [
121
131
  {
122
132
  chainName: "METIS",
123
133
  logo: `${baseLogoUrl}/Metis.webp`,
134
+ type: "mainnet",
124
135
  },
125
136
  {
126
137
  chainName: "METIS-TESTNET",
127
138
  logo: `${baseLogoUrl}/Metis.webp`,
139
+ type: "testnet",
128
140
  },
129
141
  {
130
142
  chainName: "MANTA",
131
143
  logo: `${baseLogoUrl}/Manta.webp`,
144
+ type: "mainnet",
132
145
  },
133
146
  {
134
147
  chainName: "MANTA-TESTNET",
135
148
  logo: `${baseLogoUrl}/Manta.webp`,
149
+ type: "testnet",
136
150
  },
137
151
  {
138
152
  chainName: "MANTLE",
139
153
  logo: `${baseLogoUrl}/Mantle.webp`,
154
+ type: "mainnet",
140
155
  },
141
156
  {
142
157
  chainName: "MANTLE-TESTNET",
143
158
  logo: `${baseLogoUrl}/Mantle.webp`,
159
+ type: "testnet",
144
160
  },
145
161
  {
146
162
  chainName: "SOLANA",
147
163
  logo: `${baseLogoUrl}/Solana.webp`,
164
+ type: "mainnet",
148
165
  },
149
166
  {
150
167
  chainName: exports.zkLink,
151
168
  logo: `${baseLogoUrl}/zklink.webp`,
169
+ type: "mainnet",
152
170
  },
153
171
  {
154
172
  chainName: exports.zkLinkTestnet,
155
173
  logo: `${baseLogoUrl}/zklink.webp`,
174
+ type: "testnet",
156
175
  },
157
176
  {
158
177
  chainName: exports.bitlayerTestnet,
159
178
  logo: `${baseLogoUrl}/bitlayer.webp`,
179
+ type: "testnet",
160
180
  },
161
181
  {
162
182
  chainName: exports.neoxTestnet,
163
183
  logo: `${baseLogoUrl}/neox.webp`,
184
+ type: "testnet",
164
185
  },
165
186
  ];
166
187
  exports.chainNameToLogo = {
package/dist/src/txn.d.ts CHANGED
@@ -20,7 +20,6 @@ export declare const explorerBaseUrls: {
20
20
  "MANTLE-TESTNET": string;
21
21
  MANTA: string;
22
22
  "MANTA-TESTNET": string;
23
- "NEOX-TESTNET": string;
24
23
  };
25
24
  export declare const txnBaseUrl: {
26
25
  [x: string]: string;
@@ -40,7 +39,6 @@ export declare const txnBaseUrl: {
40
39
  "MANTLE-TESTNET": string;
41
40
  MANTA: string;
42
41
  "MANTA-TESTNET": string;
43
- "NEOX-TESTNET": string;
44
42
  };
45
43
  export declare const nativeTokenDetails: {
46
44
  [x: string]: {
@@ -133,11 +131,6 @@ export declare const nativeTokenDetails: {
133
131
  symbol: string;
134
132
  logoUrl: string;
135
133
  };
136
- "NEOX-TESTNET": {
137
- name: string;
138
- symbol: string;
139
- logoUrl: string;
140
- };
141
134
  };
142
135
  export declare const rpcUrls: {
143
136
  [x: string]: string;
@@ -157,7 +150,6 @@ export declare const rpcUrls: {
157
150
  "METIS-TESTNET": string;
158
151
  MANTLE: string;
159
152
  "MANTLE-TESTNET": string;
160
- "NEOX-TESTNET": string;
161
153
  };
162
154
  export declare const chainNameToChainId: {
163
155
  [x: string]: number;
@@ -177,7 +169,6 @@ export declare const chainNameToChainId: {
177
169
  "METIS-TESTNET": number;
178
170
  MANTLE: number;
179
171
  "MANTLE-TESTNET": number;
180
- "NEOX-TESTNET": number;
181
172
  };
182
173
  export declare const chainIdToChainName: {
183
174
  80001: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tria-sdk/constants",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/chains.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export const zkLink: string = "ZKLINK-NOVA";
2
2
  export const zkLinkTestnet: string = "ZKLINK-NOVA-TESTNET";
3
3
  export const bitlayerTestnet: string = "BITLAYER-TESTNET";
4
- export const neoxTestnet = "NEOX-TESTNET";
4
+ export const neoxTestnet: string = "NEOX-TESTNET";
5
5
 
6
6
  export type ZKLINK = "ZKLINK-NOVA";
7
7
  export type ZKLINK_TESTNET = "ZKLINK-NOVA-TESTNET";
@@ -43,15 +43,15 @@ export const SUPPORTED_EVM_CHAINS = [
43
43
  ];
44
44
 
45
45
  export const AA_SUPPORTED_EVM_CHAINS = [
46
- "ETH",
46
+ // "ETH",
47
47
  "POLYGON",
48
- "AVALANCHE",
49
- "ARBITRUM",
50
- "BINANCE",
51
- "OPTIMISM",
52
- "FANTOM",
48
+ // "AVALANCHE",
49
+ // "ARBITRUM",
50
+ // "BINANCE",
51
+ // "OPTIMISM",
53
52
  "FUSE",
54
53
  "MUMBAI",
54
+ // "MANTLE",
55
55
  ];
56
56
 
57
57
  export const ALLCHAINS = [
@@ -85,42 +85,52 @@ export const networks = [
85
85
  {
86
86
  chainName: "ETH",
87
87
  logo: `${baseLogoUrl}/Ethereum.webp`,
88
+ type: "mainnet",
88
89
  },
89
90
  {
90
91
  chainName: "FANTOM",
91
92
  logo: `${baseLogoUrl}/Fantom.webp`,
93
+ type: "mainnet",
92
94
  },
93
95
  {
94
96
  chainName: "POLYGON",
95
97
  logo: `${baseLogoUrl}/Polygon.svg`,
98
+ type: "mainnet",
96
99
  },
97
100
  {
98
101
  chainName: "AVALANCHE",
99
102
  logo: `${baseLogoUrl}/Avalanche.webp`,
103
+ type: "mainnet",
100
104
  },
101
105
  {
102
106
  chainName: "OPTIMISM",
103
107
  logo: `${baseLogoUrl}/Optimism.webp`,
108
+ type: "mainnet",
104
109
  },
105
110
  {
106
111
  chainName: "ARBITRUM",
107
112
  logo: `${baseLogoUrl}/Arbitrum.webp`,
113
+ type: "mainnet",
108
114
  },
109
115
  {
110
116
  chainName: "FUSE",
111
117
  logo: `${baseLogoUrl}/Fuse.webp`,
118
+ type: "mainnet",
112
119
  },
113
120
  {
114
121
  chainName: "FUSESPARK",
115
122
  logo: `${baseLogoUrl}/Fuse.webp`,
123
+ type: "testnet",
116
124
  },
117
125
  {
118
126
  chainName: "MUMBAI",
119
127
  logo: `${baseLogoUrl}/Polygon.svg`,
128
+ type: "testnet",
120
129
  },
121
130
  {
122
131
  chainName: "BINANCE",
123
132
  logo: `${baseLogoUrl}/Binance.svg`,
133
+ type: "mainnet",
124
134
  },
125
135
  // {
126
136
  // chainName: 'LINEA',
@@ -129,46 +139,57 @@ export const networks = [
129
139
  {
130
140
  chainName: "METIS",
131
141
  logo: `${baseLogoUrl}/Metis.webp`,
142
+ type: "mainnet",
132
143
  },
133
144
  {
134
145
  chainName: "METIS-TESTNET",
135
146
  logo: `${baseLogoUrl}/Metis.webp`,
147
+ type: "testnet",
136
148
  },
137
149
  {
138
150
  chainName: "MANTA",
139
151
  logo: `${baseLogoUrl}/Manta.webp`,
152
+ type: "mainnet",
140
153
  },
141
154
  {
142
155
  chainName: "MANTA-TESTNET",
143
156
  logo: `${baseLogoUrl}/Manta.webp`,
157
+ type: "testnet",
144
158
  },
145
159
  {
146
160
  chainName: "MANTLE",
147
161
  logo: `${baseLogoUrl}/Mantle.webp`,
162
+ type: "mainnet",
148
163
  },
149
164
  {
150
165
  chainName: "MANTLE-TESTNET",
151
166
  logo: `${baseLogoUrl}/Mantle.webp`,
167
+ type: "testnet",
152
168
  },
153
169
  {
154
170
  chainName: "SOLANA",
155
171
  logo: `${baseLogoUrl}/Solana.webp`,
172
+ type: "mainnet",
156
173
  },
157
174
  {
158
175
  chainName: zkLink,
159
176
  logo: `${baseLogoUrl}/zklink.webp`,
177
+ type: "mainnet",
160
178
  },
161
179
  {
162
180
  chainName: zkLinkTestnet,
163
181
  logo: `${baseLogoUrl}/zklink.webp`,
182
+ type: "testnet",
164
183
  },
165
184
  {
166
185
  chainName: bitlayerTestnet,
167
186
  logo: `${baseLogoUrl}/bitlayer.webp`,
187
+ type: "testnet",
168
188
  },
169
189
  {
170
190
  chainName: neoxTestnet,
171
191
  logo: `${baseLogoUrl}/neox.webp`,
192
+ type: "testnet",
172
193
  },
173
194
  ];
174
195