@instadapp/avocado-base 0.1.5 → 0.1.6

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.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "global.d.ts",
package/utils/network.ts CHANGED
@@ -15,7 +15,8 @@ import {
15
15
  scroll,
16
16
  opBNB,
17
17
  mode,
18
- blast
18
+ blast,
19
+ linea
19
20
  } from "viem/chains";
20
21
  import {
21
22
  AVO_PROD_CHAIN_NAME,
@@ -467,6 +468,28 @@ export const networks: Network[] = [
467
468
  },
468
469
  viemChain: blast,
469
470
  },
471
+ {
472
+ chainId: 59144,
473
+ name: "Linea",
474
+ apiURL: "https://api.lineascan.build/api",
475
+ color: "#78d64b",
476
+ explorerUrl: "https://lineascan.build",
477
+ params: {
478
+ rpcUrls: ["https://linea-mainnet.public.blastapi.io"],
479
+ chainName: "Linea",
480
+ "nativeCurrency": {
481
+ "name": "Linea Ether",
482
+ "symbol": "ETH",
483
+ "decimals": 18
484
+ },
485
+ },
486
+ fakeTransactionHash: '0x62d068a66eb1515a09e993200e8a495c7fead512689ba78e50523c8e83bbf5b5',
487
+ get serverRpcUrl() {
488
+ return process.env?.LINEA_RPC_URL || this.params.rpcUrls[0];
489
+ },
490
+ viemChain: linea,
491
+ ankrName:'linea',
492
+ },
470
493
  // {
471
494
  // name: "Manta Pacific",
472
495
  // chainId: 169,
package/utils/utils.d.ts CHANGED
@@ -21,6 +21,7 @@ declare global {
21
21
  | 169
22
22
  | 34443
23
23
  | 81457
24
+ | 59144
24
25
 
25
26
  type ISlackMessageType = "danger" | "error" | "success" | "banner";
26
27