- Install and make sure you are running Node JS 12
- Clone the Repo
- Open a Node terminal & change directory to the project root
- Run
npm install - Run
truffle compile - Copy
.env.exampleto a new.envfile and insert your secrets - To start the program run
node ./
The migrations' folder holds the scripts for deploying the contracts categorized by type and chain.
You can use either Hardhat or Truffle to compile and deploy the contracts.
- Run
npx hardhat run --network <network> </migrations/hardhat/<chain>/<.js file>
- Modify the script prefixed with
1-to specify which contract you would like to deploy. - Run the migration with
truffle migrate --network <network_listed_in_config> --reset
- Run
npx hardhat node --fork YOUR_HTTPS_PROVIDER - Open a new terminal and set the WebSocketProvider to consume
http://127.0.0.1/8545 - Run
npx hardhat run --network localhost </migrations/hardhat/<chain>/<.js file> - Start the program with
node ./ - Run the scripts provided by selected
Localin the prompt.
Note Make sure the services provided are using the http://127.0.0.1/8545 websocket url.
Example
- Pending Hardhat test scripts