Giter VIP home page Giter VIP logo

honeycomb's Introduction

Honeycomb ๐Ÿฏ

Pool for users to stake an ERC-20 token and receive a share of the total reward pool after (n) number of epochs

Setup ๐Ÿ’ป

After cloning repository,

  • Install all dependencies by running
npm install
  • Compile contracts using
npx hardhat compile
  • Assign the private key of deployer address to the DEPLOYER variable and your rinkeby node url to RINKEBY_NODE in .env.example file

  • Rename .env.example to .env

  • Deploy contract to rinkeby testnet by running

npx hardhat run scripts/deploy.js --network rinkeby

Note that the contract is deployed using an epoch of 15 minutes. To change this, modify the T variable in scripts/deploy.js file before deploying

  • Copy the address of the BEE token from the console and paste it in app/src/utils/erc20.json file, as the value of the address key

  • Copy the address of the HONEYCOMB also from the console and paste it in app/src/utils/honeycomb.json file, as the value of the address key

  • Run the dApp using

cd app
npm start

To run tests ๐Ÿงช

After cloning repository,

  • Install all dependencies by running
npm install
  • Compile contracts using
npx hardhat compile
  • Spin up a ganache instance and add the the private keys of 4 signers(addresses) to their variables in .env.example file

  • Rename .env.example to .env

  • Change the defaultNetwork value to "ganache" in the hardhat.config.js file.

  • Run tests using

npx hardhat test

Technologies ๐Ÿ› 

honeycomb's People

Contributors

jo-oladeji avatar

Stargazers

binarybodhi avatar  avatar

Watchers

 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.