This is a template repo that you can fork and modify to start a new smart contract project.
- Install dependencies
npm i
- Setup your
.env
file in order to deploy the contracts
touch .env && cat .env.example > .env
Then, populate the values in .env
.
To run the Hardhat tests, simply run
npm run test
You can find the address of deployed contract on each chain at deploy/deployed-contracts
To deploy a set of contracts yourself, first ensure you've populated your .env
file. The RPC endpoint should point chain you want to deploy the contracts, and the private key of the Deployer account should be funded with ETH on that chain.
Next, add a config file to deploy/configs/[CHAIN_NAME].json
specifying the addresses of the necessary external protocols on that chain. You can use other files in that folder to see which contract addresses must be populated.
Finally, run
npm run deploy
- Features - what can your contracts do?
- Functions - what functions can be called on your contracts to interact with them?
- Repo Layout - where can I find the relevant contracts in this repo?
- Anna Carroll authored the code in this repo
- who else helped?
Contracts in this repo are reproduceable under the terms of MIT license.
MIT © Anna Carroll