Use this repository to create a reward for your Web3 Certifier exam with custom reward amount for each user. Users that pass your exam will get rewarded according to the formula that you define.
- Foundryup
- You must have created an exam on Web3 Certifier. Make sure you include information about custom reward functionality at the description of the exam.
- Run the following command on linux terminal
git clone https://github.com/Web3-Certifier/custom-reward.git; cd custom-reward; cp .env.example .env- Change the values of the
.envfile (change at least ALCHEMY_API_KEY, DEPLOYER_PRIVATE_KEY, EXAM_ID) (the DEPLOYER_PRIVATE_KEY should be the one that created the exam) - Modify the
src/CustomReward.solfile - Run
make build; make deploy-w3c-reward-celo
Add a test file on /test/Examples/ directory and run make test
Default: 0x7b57d5e33af49722798589f4cf9783eaee9cbd56
GoodDollarClaims: 0x7e64e4B4Bc8289491AE75147CD6F43153c137396
UbeswapGDStaking: 0xe9f4409b7ff1F8B5D87f5DDB9BD75F0E6467Ba81