@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 +1 -1
- package/utils/network.ts +24 -1
- package/utils/utils.d.ts +1 -0
package/package.json
CHANGED
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,
|