Skip to content

Commit 030569c

Browse files
committed
Making the repo hardhat compatible
1 parent 88c4a6d commit 030569c

File tree

8 files changed

+3506
-0
lines changed

8 files changed

+3506
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ out/
99

1010
# Dotenv file
1111
.env
12+
13+
/node_modules
14+
/artifacts
15+
/cache
16+
/contracts

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ The `main` branch is considered the nightly version of the SDK. Stick to tagged
2626
forge install wormhole-foundation/[email protected]
2727
```
2828

29+
**Hardhat**
30+
```bash
31+
npm install wormhole-solidity-sdk
32+
```
33+
2934
**EVM Version**
3035

3136
One hazard of developing EVM contracts in a cross-chain environment is that different chains have varying levels of "EVM-equivalence". This means you have to ensure that all chains that you are planning to deploy to support all EIPs/opcodes that you rely on.

hardhat.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
solidity: {
3+
version: "0.8.24",
4+
settings: {
5+
optimizer: {
6+
enabled: true,
7+
runs: 200,
8+
}
9+
// viaIR: true,
10+
// optimizer: {
11+
// enabled: true,
12+
// details: {
13+
// yulDetails: {
14+
// optimizerSteps: "u",
15+
// },
16+
// },
17+
// },
18+
},
19+
},
20+
networks: {
21+
hardhat: {
22+
blockGasLimit: 10000000,
23+
},
24+
}
25+
};

0 commit comments

Comments
 (0)