Skip to content

Metaplayer-one/staking-contracts

Repository files navigation

staking-contracts

Smart contracts for Metad IBFT PoS

How to start

$ git clone https://github.com/metaplayer-one/staking-contracts.git
$ cd staking-contracts
$ npm i

Build contracts

$ npm run build

Run unit tests

$ npm run test

Register BLS Public key to contract

Please make sure required valies are set in .env to use this command

$ npm run register-blskey

Stake balance to contract

Please make sure required values are set in .env to use this command

$ npm run stake

Unstake from contract

$ npm run unstake

Check current total staked amount and validators in contract

$ npm run info

Register Validator Reward Program - minimum staked 10000 METAd

$ npm run register-reward

Claim reward from contract

Please make sure required values are set in .env to use this command

$ npm run claim

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published