An open API service indexing awesome lists of open source software.

https://github.com/0xpolygon/staking-contracts

The smart contracts used in the IBFT PoS implementation
https://github.com/0xpolygon/staking-contracts

Last synced: about 1 year ago
JSON representation

The smart contracts used in the IBFT PoS implementation

Awesome Lists containing this project

README

          

# staking-contracts

Smart contracts for IBFT PoS

## How to start

```shell
$ git clone https://github.com/0xPolygon/staking-contracts.git
$ cd staking-contracts
$ npm i
```

### Build contracts

```shell
$ npm run build
```

### Run unit tests

```shell
$ npm run test
```

### Deploy contract to Polygon Edge

```shell
$ npm run deploy
```

### Stake balance to contract

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

```shell
$ npm run stake
```

### Unstake from contract

```shell
$ npm run unstake
```

### Check current total staked amount and validators in contract

```shell
$ npm run info
```