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
- Host: GitHub
- URL: https://github.com/0xpolygon/staking-contracts
- Owner: 0xPolygon
- Archived: true
- Created: 2021-08-25T08:33:21.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-05T07:47:15.000Z (almost 4 years ago)
- Last Synced: 2025-03-09T19:13:34.952Z (over 1 year ago)
- Language: TypeScript
- Size: 539 KB
- Stars: 35
- Watchers: 6
- Forks: 39
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```