-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
72 lines (70 loc) · 1.69 KB
/
Copy pathhardhat.config.js
File metadata and controls
72 lines (70 loc) · 1.69 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
require("@nomiclabs/hardhat-waffle")
require("hardhat-gas-reporter")
require("solidity-coverage")
require("hardhat-contract-sizer")
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners()
for (const account of accounts) {
console.log(account.address)
}
})
module.exports = {
solidity: {
version: "0.8.28",
settings: {
metadata: {
bytecodeHash: "none",
useLiteralContent: true,
},
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
chainId: 10143, // Ensure your Hardhat network runs with Monad's chain ID.
forking: {
url: "https://testnet-rpc.monad.xyz",
// blockNumber: 11389636, // Adjust to a block number that makes sense for your use case.
},
// Custom chain parameters for Monad Testnet:
chains: {
10143: {
// Define hardfork activation history.
// In this example, we assume:
// - London rules from genesis (block 0),
// - Cancun rules activated at block 11389636.
hardforkHistory: {
london: 0,
cancun: 11389636,
},
},
},
},
},
paths: {
artifacts: "./artifacts",
cache: "./cache",
sources: "./contracts",
tests: "./test",
},
sourcify: {
enabled: true,
apiUrl: "https://sourcify-api-monad.blockvision.org",
browserUrl: "https://testnet.monadexplorer.com",
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
},
etherscan: {
enabled: false,
},
mocha: {
timeout: 100000000,
},
}