Giter Site home page Giter Site logo

wiredweb3 / nelson-nft-stacking-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smartcodedeveloper/nelson-nft-stacking-frontend

0.0 0.0 0.0 647 KB

NFT stacking frontend completion using web3 on solana for client Nelson project.

JavaScript 45.70% TypeScript 28.50% CSS 22.49% HTML 3.31%

nelson-nft-stacking-frontend's Introduction

NFT Staking test with React App

Needed requirement

Check the phantom extension was installed.

Copy idl file (nft_staking.json) to staking-ui/src/assets/ directory;

Follow Step by Step

In the project directory, you can run:

1 => yarn install

Install all needed packages

2 => Configration

Initialize All configure data( Pool PublicKey, Liquidity Pool Mint PublicKey,
Funder PublicKey, Vault PublicKey, MintRewards PublicKey ).

  • All files are being created with random so if you want you can store file using "solana-keygen new -o file.json"

Copy All Pubkeys to staking-ui/src/config.js file.

  • poolPublicKey = Pool PublicKey
  • lpMintPublicKey = Liquidity Pool Mint PublicKey
  • funderPublicKey = Funder PublicKey
  • vaultPublicKey = Vault PublicKey
  • mintRewardsPublicKey = MintRewards PublicKey

3 => yarn start

  • You can stake NFTs if you hit the "Stake" button on the nft bottom.

  • You can claim Rewards if you hit the "Claim Rewards" button on the top left.

  • You can see currently pending claim reward amount if you hit the "Pending Rewards" button on the top.

  • You can unstake NFTs if you clicks the "Unstake NFT" button on the top right.

nelson-nft-stacking-frontend's People

Contributors

smartcodedeveloper avatar

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.