Chainflip Referral is an affiliate program for the Chainflip protocol. Through this decentralized application (dApp), Chainflip can create referral campaigns. Users can view live campaigns, verify themselves using Worldcoin, participate by entering their swap ID and transaction hash, and track their referral rewards.
To get started with this project, you'll need to set up both the client and the API.
-
Navigate to the
client
directory. -
Install the required dependencies using npm:
npm install
-
Start the client server by running:
npm run dev
The server will run on port 5173.
-
Navigate to the api directory.
-
Start the api server by running:
node verify.js
Here's how you can use Chainflip Referral:
-
Visit the Platform: Open your web browser and go to http://localhost:5173.
-
Connect to Wallet: Use your browser wallet to connect to the Sepolia Testnet.
-
View Live Campaigns: Browse through the available referral campaigns.
-
Verify with Worldcoin: Click on a campaign and verify yourself using Worldcoin.
-
Enter Swap Details: After verification, enter your swap ID and transaction hash.
-
Access User Dashboard: Once verified, access your dashboard to:
- See the number of Flip coins earned through referrals.
- View the per-referral reward.
- Retrieve and share your referral code with others.
- Enter referral codes to earn additional rewards.