mirror of
https://github.com/status-im/dagger-contracts.git
synced 2025-01-13 15:56:32 +00:00
Add npm start
to start development node
It also creates a JSON file with addresses of the deployed contracts.
This commit is contained in:
parent
a69a6d6975
commit
a794141308
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,9 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.env
|
|
||||||
coverage
|
|
||||||
coverage.json
|
|
||||||
typechain
|
|
||||||
|
|
||||||
#Hardhat files
|
|
||||||
cache
|
cache
|
||||||
artifacts
|
artifacts
|
||||||
|
deployment-localhost.json
|
||||||
|
@ -14,6 +14,13 @@ To run the tests, execute the following commands:
|
|||||||
npm install
|
npm install
|
||||||
npm test
|
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
|
Overview
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
"name": "dagger-contracts",
|
"name": "dagger-contracts",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "hardhat test"
|
"test": "hardhat test",
|
||||||
|
"start": "hardhat node --export 'deployment-localhost.json'"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nomiclabs/hardhat-ethers": "^2.0.2",
|
"@nomiclabs/hardhat-ethers": "^2.0.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user