GithubHelp home page GithubHelp logo

benjiewheeler / ezstake Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 40 KB

Smart contract for customizable NFT staking using Atomicassets standard

License: MIT License

C++ 38.29% TypeScript 61.71%
antelope eosio smart-contract staking

ezstake's Introduction

ezstake

Smart contract for customizable NFT staking using Atomicassets standard.

This contract is designed to work out-of-the-box, without the need to modify the source code.

All the main features are fully configurable by the contract owner.

Features

For the admin:

  • customizable configurations:
    • token contract and symbol
    • minimum claim period
    • unstaking period
    • hourly rate per template
    • per template control
  • freeze/unfreeze the contract functionalities
  • force reset/unstake user's assets

For the user:

  • register
  • stake/unstake the assets
  • claim the tokens

Testing

The contract is fully tested using proton's VeRT

  • To build the contract for testing blanc is required.
npm install # or yarn or pnpm
npm run build:dev # to compile the contract using blanc++
npm test

Deployment

  • To build & deploy the contract, both of the Antelope cdt and leap are required.
npm build:prod # to compile the contract using cdt-cpp

# deploy the contract
cleos -u <your_api_endpoint> set contract <account> $PWD contract/ezstake.wasm contract/ezstake.abi -p <account>@active

# dont forget to add eosio.code permission
cleos -u <your_api_endpoint> set account permission <account> active --add-code

Want more features ?

Hire me ;)

Discord Badge Telegram Badge Protonmail Badge Github Badge

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.