Skip to content

Web3-Certifier/custom-reward

Repository files navigation

About

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.

Requirements

  • 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.

Usage

  1. Run the following command on linux terminal
git clone https://github.com/Web3-Certifier/custom-reward.git; cd custom-reward; cp .env.example .env
  1. Change the values of the .env file (change at least ALCHEMY_API_KEY, DEPLOYER_PRIVATE_KEY, EXAM_ID) (the DEPLOYER_PRIVATE_KEY should be the one that created the exam)
  2. Modify the src/CustomReward.sol file
  3. Run make build; make deploy-w3c-reward-celo

Test

Add a test file on /test/Examples/ directory and run make test




Note: test with exam id 37/40 on Celo and id 69 on Sepolia

Deployed custom rewards on Celo:

Default: 0x7b57d5e33af49722798589f4cf9783eaee9cbd56
GoodDollarClaims: 0x7e64e4B4Bc8289491AE75147CD6F43153c137396
UbeswapGDStaking: 0xe9f4409b7ff1F8B5D87f5DDB9BD75F0E6467Ba81

About

This repository is for creating a reward for an exam on Web3 Certifier with custom reward amount.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors