The Solidity contracts are in the contracts directory and require a wallet private key to deploy them as well as an Infura API key to deploy to the Testnet (both go as environment variables in .env
). If the local Hardhat node is used then the Infura API key is not needed.
- Start a local Hardhat node
npm run hardhat
- Compile the contracts
npm run compile-contracts
- Deploy the contracts
npm run deploy-contracts
This creates the ABIs and saves the deployed contract address in the out
directory inside contracts
to then be used by the application.
MIT (LICENSE-MIT / http://opensource.org/licenses/MIT)