{"id":18953164,"url":"https://github.com/0xpolygon/staking-contracts","last_synced_at":"2025-04-16T02:32:00.372Z","repository":{"id":37914782,"uuid":"399746808","full_name":"0xPolygon/staking-contracts","owner":"0xPolygon","description":"The smart contracts used in the IBFT PoS implementation","archived":true,"fork":false,"pushed_at":"2022-09-05T07:47:15.000Z","size":552,"stargazers_count":35,"open_issues_count":1,"forks_count":39,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-09T19:13:34.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xPolygon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-25T08:33:21.000Z","updated_at":"2024-06-21T10:15:36.000Z","dependencies_parsed_at":"2022-07-14T22:00:29.919Z","dependency_job_id":null,"html_url":"https://github.com/0xPolygon/staking-contracts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Fstaking-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Fstaking-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Fstaking-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Fstaking-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xPolygon","download_url":"https://codeload.github.com/0xPolygon/staking-contracts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249184544,"owners_count":21226400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T13:36:54.290Z","updated_at":"2025-04-16T02:31:59.889Z","avatar_url":"https://github.com/0xPolygon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# staking-contracts\n\nSmart contracts for IBFT PoS\n\n## How to start\n\n```shell\n$ git clone https://github.com/0xPolygon/staking-contracts.git\n$ cd staking-contracts\n$ npm i\n```\n\n### Build contracts\n\n```shell\n$ npm run build\n```\n\n### Run unit tests\n\n```shell\n$ npm run test\n```\n\n### Deploy contract to Polygon Edge\n\n```shell\n$ npm run deploy\n```\n\n### Stake balance to contract\n\nPlease make sure required values are set in .env to use this command\n\n```shell\n$ npm run stake\n```\n\n### Unstake from contract\n\n```shell\n$ npm run unstake\n```\n\n### Check current total staked amount and validators in contract\n\n```shell\n$ npm run info\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpolygon%2Fstaking-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xpolygon%2Fstaking-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpolygon%2Fstaking-contracts/lists"}