@instadapp/avocado-base 0.0.55 → 0.0.56

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/network.ts +98 -98
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instadapp/avocado-base",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "global.d.ts",
package/utils/network.ts CHANGED
@@ -3,28 +3,6 @@ import { ethers } from "ethers";
3
3
  export const bridgeDisabledNetworks = [1101];
4
4
 
5
5
  export const networks: Network[] = [
6
- {
7
- name: "Ethereum",
8
- debankName: "eth",
9
- ankrName: "eth",
10
- zerionName: "ethereum",
11
- chainId: 1,
12
- explorerUrl: "https://etherscan.io",
13
- color: "#5D5FEF",
14
- get serverRpcUrl() {
15
- return process.env?.MAINNET_RPC_URL || this.params.rpcUrls[0];
16
- },
17
- balanceResolverAddress: "0x5b7D61b389D12e1f5873d0cCEe7E675915AB5F43",
18
- usdcAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
19
- params: {
20
- rpcUrls: ["https://rpc.ankr.com/eth"],
21
- nativeCurrency: {
22
- name: "Ethereum",
23
- symbol: "ETH",
24
- decimals: 18,
25
- },
26
- },
27
- },
28
6
  {
29
7
  name: "Polygon",
30
8
  debankName: "matic",
@@ -71,6 +49,48 @@ export const networks: Network[] = [
71
49
  rpcUrls: ["https://arb1.arbitrum.io/rpc"],
72
50
  },
73
51
  },
52
+ {
53
+ name: "Ethereum",
54
+ debankName: "eth",
55
+ ankrName: "eth",
56
+ zerionName: "ethereum",
57
+ chainId: 1,
58
+ explorerUrl: "https://etherscan.io",
59
+ color: "#5D5FEF",
60
+ get serverRpcUrl() {
61
+ return process.env?.MAINNET_RPC_URL || this.params.rpcUrls[0];
62
+ },
63
+ balanceResolverAddress: "0x5b7D61b389D12e1f5873d0cCEe7E675915AB5F43",
64
+ usdcAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
65
+ params: {
66
+ rpcUrls: ["https://rpc.ankr.com/eth"],
67
+ nativeCurrency: {
68
+ name: "Ethereum",
69
+ symbol: "ETH",
70
+ decimals: 18,
71
+ },
72
+ },
73
+ },
74
+ {
75
+ name: 'Base',
76
+ chainId: 8453,
77
+ color: '#1E2024',
78
+ explorerUrl: 'https://basescan.org',
79
+ get serverRpcUrl() {
80
+ return process.env?.BASE_RPC_URL || this.params.rpcUrls[0];
81
+ },
82
+ usdcAddress: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
83
+ balanceResolverAddress: '0x23c8EAb8a4373dD16b0947Ebe8bf76Ff7A49d13C',
84
+ params: {
85
+ rpcUrls: ['https://rpc.ankr.com/base'],
86
+ chainName: "Base",
87
+ nativeCurrency: {
88
+ name: "Ethereum",
89
+ symbol: "ETH",
90
+ decimals: 18,
91
+ },
92
+ }
93
+ },
74
94
  {
75
95
  name: "Optimism",
76
96
  debankName: "op",
@@ -95,26 +115,23 @@ export const networks: Network[] = [
95
115
  },
96
116
  },
97
117
  {
98
- name: "Avalanche",
99
- debankName: "avax",
100
- ankrName: "avalanche",
101
- zerionName: "avalanche",
102
- color: "#EB5757",
103
- chainId: 43114,
104
- usdcAddress: "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
105
- balanceResolverAddress: "0x63009f31D054E0ac9F321Cf0D642375236A4Bf1E",
106
- explorerUrl: "https://snowtrace.io",
118
+ name: "Polygon zkEVM",
119
+ chainId: 1101,
120
+ color: "#8544f6",
121
+ explorerUrl: "https://zkevm.polygonscan.com",
122
+ balanceResolverAddress: "0x48D1Fa5Ee6691a1E0B45d2B515650997BEA27a01",
123
+ usdcAddress: "0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035",
107
124
  get serverRpcUrl() {
108
- return process.env?.AVALANCHE_RPC_URL || this.params.rpcUrls[0];
125
+ return process.env?.POLYGON_ZKEVM_RPC_URL || this.params.rpcUrls[0];
109
126
  },
110
127
  params: {
111
- chainName: "Avalanche Network",
128
+ chainName: "polygon zkEVM",
129
+ rpcUrls: ["https://zkevm-rpc.com"],
112
130
  nativeCurrency: {
113
- name: "Avalanche",
114
- symbol: "AVAX",
131
+ name: "Ethereum",
132
+ symbol: "ETH",
115
133
  decimals: 18,
116
134
  },
117
- rpcUrls: ["https://rpc.ankr.com/avalanche"],
118
135
  },
119
136
  },
120
137
  {
@@ -140,6 +157,51 @@ export const networks: Network[] = [
140
157
  },
141
158
  },
142
159
  },
160
+ {
161
+ name: "Avalanche",
162
+ debankName: "avax",
163
+ ankrName: "avalanche",
164
+ zerionName: "avalanche",
165
+ color: "#EB5757",
166
+ chainId: 43114,
167
+ usdcAddress: "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
168
+ balanceResolverAddress: "0x63009f31D054E0ac9F321Cf0D642375236A4Bf1E",
169
+ explorerUrl: "https://snowtrace.io",
170
+ get serverRpcUrl() {
171
+ return process.env?.AVALANCHE_RPC_URL || this.params.rpcUrls[0];
172
+ },
173
+ params: {
174
+ chainName: "Avalanche Network",
175
+ nativeCurrency: {
176
+ name: "Avalanche",
177
+ symbol: "AVAX",
178
+ decimals: 18,
179
+ },
180
+ rpcUrls: ["https://rpc.ankr.com/avalanche"],
181
+ },
182
+ },
183
+ {
184
+ name: "Fantom",
185
+ chainId: 250,
186
+ zerionName: "fantom",
187
+ explorerUrl: "https://ftmscan.com",
188
+ ankrName: "fantom",
189
+ color: "#1969ff",
190
+ get serverRpcUrl() {
191
+ return process.env?.FANTOM_RPC_URL || this.params.rpcUrls[0];
192
+ },
193
+ usdcAddress: "0x04068da6c83afcfa0e13ba15a6696662335d5b75",
194
+ balanceResolverAddress: "0x929376c77a2fb8152375a089a4fccf84ff481479",
195
+ params: {
196
+ rpcUrls: ["https://rpc.ankr.com/fantom"],
197
+ chainName: "Fantom",
198
+ nativeCurrency: {
199
+ name: "Fantom",
200
+ symbol: "FTM",
201
+ decimals: 18,
202
+ },
203
+ },
204
+ },
143
205
  {
144
206
  name: "Gnosis",
145
207
  debankName: "xdai",
@@ -162,26 +224,6 @@ export const networks: Network[] = [
162
224
  },
163
225
  },
164
226
  },
165
- {
166
- name: "Polygon zkEVM",
167
- chainId: 1101,
168
- color: "#8544f6",
169
- explorerUrl: "https://zkevm.polygonscan.com",
170
- balanceResolverAddress: "0x48D1Fa5Ee6691a1E0B45d2B515650997BEA27a01",
171
- usdcAddress: "0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035",
172
- get serverRpcUrl() {
173
- return process.env?.POLYGON_ZKEVM_RPC_URL || this.params.rpcUrls[0];
174
- },
175
- params: {
176
- chainName: "polygon zkEVM",
177
- rpcUrls: ["https://zkevm-rpc.com"],
178
- nativeCurrency: {
179
- name: "Ethereum",
180
- symbol: "ETH",
181
- decimals: 18,
182
- },
183
- },
184
- },
185
227
  {
186
228
  name: "Aurora",
187
229
  chainId: 1313161554,
@@ -203,48 +245,6 @@ export const networks: Network[] = [
203
245
  },
204
246
  },
205
247
  },
206
- {
207
- name: "Fantom",
208
- chainId: 250,
209
- zerionName: "fantom",
210
- explorerUrl: "https://ftmscan.com",
211
- ankrName: "fantom",
212
- color: "#1969ff",
213
- get serverRpcUrl() {
214
- return process.env?.FANTOM_RPC_URL || this.params.rpcUrls[0];
215
- },
216
- usdcAddress: "0x04068da6c83afcfa0e13ba15a6696662335d5b75",
217
- balanceResolverAddress: "0x929376c77a2fb8152375a089a4fccf84ff481479",
218
- params: {
219
- rpcUrls: ["https://rpc.ankr.com/fantom"],
220
- chainName: "Fantom",
221
- nativeCurrency: {
222
- name: "Fantom",
223
- symbol: "FTM",
224
- decimals: 18,
225
- },
226
- },
227
- },
228
- {
229
- name: 'Base',
230
- chainId: 8453,
231
- color: '#1E2024',
232
- explorerUrl: 'https://basescan.org',
233
- get serverRpcUrl() {
234
- return process.env?.BASE_RPC_URL || this.params.rpcUrls[0];
235
- },
236
- usdcAddress: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
237
- balanceResolverAddress: '0x23c8EAb8a4373dD16b0947Ebe8bf76Ff7A49d13C',
238
- params: {
239
- rpcUrls: ['https://rpc.ankr.com/base'],
240
- chainName: "Base",
241
- nativeCurrency: {
242
- name: "Ethereum",
243
- symbol: "ETH",
244
- decimals: 18,
245
- },
246
- }
247
- },
248
248
  {
249
249
  name: AVO_PROD_CHAIN_NAME,
250
250
  chainId: AVO_PROD_CHAIN_ID,