Giter VIP home page Giter VIP logo

totem-staking's Introduction

Totem Staking

This repo contains main 2 contracts.

  1. BabyDolz: ERC 20 with a bridge role that allows to mint an burn tokens, and an upgrade mechanism for the bridge address that introduces a grace period to enable users to unexpose themselves in case they disagree with the update. The token can be freely minted with a minter role, and transfers are restricted to authorized senders and receivers.
  2. Dolzchef: Staking contract that enables the owner to create staking pools for specific tokens with a number of options like deposit fee and reward per block. Users can then lock their tokens to get BabyDolz tokens as rewards.

The code is thoroughly documented.

Environment

Hardhat has been used for that project. It is recommended that you make any hardhat command call with npx hardhat to use the correct version.

Make sure you rename .env.example to .env and fill its fields.

Install packages

npm i

Run tests

npm test

Gas consumption report

Set the showGasReporter variable in hardhat.config.js to true to get report on gas consumption after tests.

Get test coverage

npm run coverage

totem-staking's People

Contributors

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