This repository is a template repository to build application on top of WHF forked DAO.
$ yarn
- To run the tests, you should use hardhat's forking feature.
- Go to alchemy & get API KEY.
- Copy
.env.example
file and create your own.env
file.$ cp .env.example .env
- Replace
<key>
with your own API KEY.FORK_URL=https://eth-mainnet.alchemyapi.io/v2/<key>
- Or you can use your own RPC server using geth. For example,
$ geth --http.api "eth,net,web3" --http.addr localhost --http.port 8888 #.env file FORK_URL=http://localhost:8888
- Run the following command
$ yarn test
- Make sure that you successfully forked WHF. We recommend you to use the Web UI
- Deploy your contract. Please take a look at this post: https://hardhat.org/guides/deploying
- Go to npm & get token
- Go to Github Actions menu and setup the env variable
NPM_TOKEN
- Prepare a release with
yarn version
- Go to Github Releases menu and write a new release with tagging.
- Go to your frontend app & import the deployed artifacts.
Go to your Github repository's Settings > Secrets > Actions tab and set ALCHEMY_API key.
We PROUDLY release codes under GPL v3.0.