GithubHelp home page GithubHelp logo

chiliz-web3-bootcamp-final-project's Introduction

Token Staking Dapp

This is a decentralized token staking application. Built on the Chiliz Spicy testnet with thirdweb. I created a stake token and a reward token as ERC20. In this application, the user is rewarded every 600 seconds for having staked tokens.

Configuration Process

Clone this project and follow these steps to properly configure your environment for the application.

Step 1: Environment File Setup

  1. Navigate to the root directory of the project, ensuring you are at the top-level (same level as the src directory, not within it).
  2. Create a new file and name it .env.local. This file will store important global settings required for the application to function correctly.

Step 2: Environment Variables

Populate the .env.local file with the necessary environment variables. These are crucial for linking the application with your specific resources on Thirdweb. Below is a list of the required variables:

  • NEXT_PUBLIC_CLIENT_ID: Your unique client identifier from Thirdweb. You can find this by logging into your account, navigating to "Settings," then "API Keys," and selecting your key to view the clientID.
  • NEXT_PUBLIC_STAKE_TOKEN_ADDRESS: The address of your stake token.
  • NEXT_PUBLIC_REWARD_TOKEN_ADDRESS: The address of your reward token.
  • NEXT_PUBLIC_CONTRACT_ADDRESS: The address corresponding to your smart contract.

Step 3: Dependency Installation

Execute the following command in your terminal to install the project dependencies:

npm install

Step 4: Launching the Development Server

To start the development server, run:

npm run dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.