- Install packages with
yarn
ornpm i
- Test contracts compile:
yarn hardhat compile
- Check contract size:
yarn hardhat size-contracts
- Run tests:
yarn test
- Run prettier:
yarn prettier
- Copy .env.example into .env and set your variables
- Use
contracts/
,tests/
andscripts/
to build your code. - Deploy on testnet:
yarn hardhat run scripts/deploy.ts --network moonbaseAlpha
- Verify contracts, using the contract address and arguments from previous step:
yarn hardhat verify 0x.... --network moonbaseAlpha --contract contracts/SimpleEquippable.sol:SimpleEquippable --arguments ...
Remember to give credit to RMRK if you're using it's technology. Check the license and notice for more details.
- Create deployment scripts on
deploy/
- Run deployments via
yarn hardhat deploy --network moonbaseAlpha --tags kanaria --export frontend_data.json
- Set the registry using
yarn hardhat run scripts/setRegistry.ts --network moonbaseAlpha
- Start a dev node deploying only the kanaria
yarn hardhat node --tags kanaria