Note
The contents of this repo have been moved to Civic Pass Demos
This project demonstrates the integration of Civic Pass into an Ethereum smart contract.
It is a simple airdrop contract that allows users to claim one ERC20 token each.
By adding Civic's Uniqueness Pass to the contract, we can ensure that each user can only claim.
Install dependencies:
yarn
Run a local hardhat node: (This project uses hardhat-deploy to set up an ERC20 token contract.)
yarn local:start
Start the frontend:
yarn app:start
Deploy to testnet:
PRIVATE_KEY=${YOUR_PRIVATE_KEY} yarn deploy:testnet
Start the frontend pointing to testnet:
yarn app:start:testnet