@instadapp/avocado-base 0.0.79 → 0.0.81

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instadapp/avocado-base",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "global.d.ts",
package/utils/network.ts CHANGED
@@ -269,27 +269,63 @@ export const networks: Network[] = [
269
269
  },
270
270
  },
271
271
  },
272
- // {
273
- // name: "Fuse",
274
- // chainId: 122,
275
- // zerionName: "fuse",
276
- // color: "#78d64b",
277
- // explorerUrl: "https://explorer.fuse.io",
278
- // get serverRpcUrl() {
279
- // return process.env?.FUSE_RPC_URL || this.params.rpcUrls[0];
280
- // },
281
- // usdcAddress: "",
282
- // balanceResolverAddress: "0xdF19Da523DA64bBE82eE0E4DFf00d676A8386474",
283
- // params: {
284
- // rpcUrls: ["https://fuse-mainnet.chainstacklabs.com"],
285
- // chainName: "Fuse",
286
- // nativeCurrency: {
287
- // decimals: 18,
288
- // name: "Fuse",
289
- // symbol: "fuse",
290
- // },
291
- // },
292
- // },
272
+ {
273
+ name: "Fuse",
274
+ chainId: 122,
275
+ zerionName: "fuse",
276
+ color: "#78d64b",
277
+ explorerUrl: "https://explorer.fuse.io",
278
+ get serverRpcUrl() {
279
+ return process.env?.FUSE_RPC_URL || this.params.rpcUrls[0];
280
+ },
281
+ usdcAddress: "",
282
+ balanceResolverAddress: "0xdF19Da523DA64bBE82eE0E4DFf00d676A8386474",
283
+ params: {
284
+ rpcUrls: ["https://fuse-mainnet.chainstacklabs.com"],
285
+ chainName: "Fuse",
286
+ nativeCurrency: {
287
+ decimals: 18,
288
+ name: "Fuse",
289
+ symbol: "fuse",
290
+ },
291
+ },
292
+ },
293
+ {
294
+ name: "Scroll",
295
+ chainId: 534352,
296
+ color: "#78d64b",
297
+ explorerUrl: "https://scrollscan.com",
298
+ get serverRpcUrl() {
299
+ return process.env?.SCROLL_RPC_URL || this.params.rpcUrls[0];
300
+ },
301
+ params: {
302
+ rpcUrls: ["https://rpc.scroll.io"],
303
+ chainName: "Scroll",
304
+ nativeCurrency: {
305
+ name: "Ethereum",
306
+ symbol: "ETH",
307
+ decimals: 18,
308
+ },
309
+ },
310
+ },
311
+ {
312
+ name: "opBNB",
313
+ chainId: 204,
314
+ color: "#78d64b",
315
+ explorerUrl: "https://opbnbscan.com",
316
+ get serverRpcUrl() {
317
+ return process.env?.OPBNB_RPC_URL || this.params.rpcUrls[0];
318
+ },
319
+ params: {
320
+ rpcUrls: ["https://opbnb-mainnet-rpc.bnbchain.org"],
321
+ chainName: "opBNB",
322
+ nativeCurrency: {
323
+ name: "BNB",
324
+ symbol: "BNB",
325
+ decimals: 18,
326
+ },
327
+ },
328
+ },
293
329
  {
294
330
  name: AVO_PROD_CHAIN_NAME,
295
331
  chainId: AVO_PROD_CHAIN_ID,
package/utils/utils.d.ts CHANGED
@@ -13,6 +13,8 @@ declare global {
13
13
  | 1313161554
14
14
  | 8453
15
15
  | 122
16
+ | 534352
17
+ | 204
16
18
  | 63400;
17
19
 
18
20
  type ISlackMessageType = "danger" | "error" | "success" | "banner";
@@ -33,7 +35,7 @@ declare global {
33
35
  isAvocado?: boolean;
34
36
  serverRpcUrl: string | undefined;
35
37
  balanceResolverAddress?: string;
36
- usdcAddress: string;
38
+ usdcAddress?: string;
37
39
  explorerUrl: string;
38
40
  apiURL?: string;
39
41
  params: {