Skip to content

Commit

Permalink
Merge pull request #16 from lacchain/hardhat
Browse files Browse the repository at this point in the history
Move development environment to Hardhat
  • Loading branch information
diega authored Feb 21, 2023
2 parents e0950e1 + d63e4aa commit ae60f2f
Show file tree
Hide file tree
Showing 8 changed files with 7,578 additions and 107 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Truffle tests
name: Unit tests

on:
push:
Expand All @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
services:
besu:
image: hyperledger/besu:21.1.2
image: hyperledger/besu:23.1.0
env:
BESU_NETWORK: dev
BESU_MIN_GAS_PRICE: 0
Expand All @@ -26,7 +26,9 @@ jobs:
ports:
- 8545:8545
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install --no-save truffle @truffle/[email protected]
- run: npx --no-install truffle test
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npx hardhat test --network development
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
node_modules/
package.json
package-lock.json

artifacts/
cache/
.DS_Store
.vscode/
build/
Expand Down
24 changes: 24 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
require("@nomiclabs/hardhat-ethers");

module.exports = {
networks: {
hardhat: {
allowUnlimitedContractSize: true,
gasPrice: 0,
initialBaseFeePerGas: 0,
blockGasLimit: 500_000_000
},
development: {
url: "http://127.0.0.1:8545",
gas: 0x1ffffffffffffe,
gasPrice: 0,
accounts: ["0xc87509a1c067bbde78beb793e6fa76530b6382a4c0241e5e4a9ec0a0f44dc0d3"]
}
},
solidity: {
version: "0.7.6"
},
mocha: {
timeout: 3_600_000
}
};
Loading

0 comments on commit ae60f2f

Please sign in to comment.