diff --git a/.gitignore b/.gitignore index 36077f2..5f0f1b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,4 @@ node_modules -.env -coverage -coverage.json -typechain - -#Hardhat files cache artifacts +deployment-localhost.json diff --git a/Readme.md b/Readme.md index 7f3c26d..e928ae6 100644 --- a/Readme.md +++ b/Readme.md @@ -14,6 +14,13 @@ To run the tests, execute the following commands: npm install npm test +To start a local Ethereum node with the contracts deployed, execute: + + npm start + +This will create a `deployment-localhost.json` file containing the addresses of +the deployed contracts. + Overview -------- diff --git a/package.json b/package.json index e81a2d2..3b2c4a8 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "dagger-contracts", "license": "MIT", "scripts": { - "test": "hardhat test" + "test": "hardhat test", + "start": "hardhat node --export 'deployment-localhost.json'" }, "devDependencies": { "@nomiclabs/hardhat-ethers": "^2.0.2",