generated from kkrt-labs/build-on-kakarot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
54 lines (51 loc) · 1.31 KB
/
hardhat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-ethers";
import "@nomicfoundation/hardhat-foundry";
import dotenv from "dotenv";
dotenv.config();
/*
task("balance", "Prints an account's balance")
.addParam("account", "The account's address")
.setAction(async (taskArgs) => {
const balance = await ethers.provider.getBalance(taskArgs.account);
console.log(ethers.formatEther(balance), "ETH");
});
*/
const config: HardhatUserConfig = {
solidity: "0.8.24",
networks: {
kakarotRpc: {
url: "http://127.0.0.1:3030",
chainId: 1263227476,
accounts: [
process.env.ANVIL_PKEY_1!,
process.env.ANVIL_PKEY_2!,
process.env.ANVIL_PKEY_3!,
],
},
l1Rpc: {
url: "http://127.0.0.1:8545",
chainId: 31337,
accounts: [
process.env.ANVIL_PKEY_1!,
process.env.ANVIL_PKEY_2!,
process.env.ANVIL_PKEY_3!,
],
},
},
defaultNetwork: "kakarotRpc",
paths: {
sources: "./solidity_contracts/src",
tests: "./tests",
cache: "./cache_hardhat",
artifacts: "./artifacts",
},
ignition: {
blockPollingInterval: 3_000,
timeBeforeBumpingFees: 3 * 60 * 1_000,
maxFeeBumps: 0,
requiredConfirmations: 1,
},
};
export default config;