Skip to content

Blockspade/Chainflip-Referral

Repository files navigation

Chainflip Referral 🏄

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.

Getting Started

To get started with this project, you'll need to set up both the client and the API.

Steps :

  1. Navigate to the client directory.

  2. Install the required dependencies using npm:

    npm install
    
  3. Start the client server by running:

     npm run dev

The server will run on port 5173.

  1. Navigate to the api directory.

  2. Start the api server by running:

    node verify.js
    

Usage :

Here's how you can use Chainflip Referral:

  1. Visit the Platform: Open your web browser and go to http://localhost:5173.

  2. Connect to Wallet: Use your browser wallet to connect to the Sepolia Testnet.

  3. View Live Campaigns: Browse through the available referral campaigns.

  4. Verify with Worldcoin: Click on a campaign and verify yourself using Worldcoin.

  5. Enter Swap Details: After verification, enter your swap ID and transaction hash.

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

Authors

Hephaestus-V

Vasu Gupta