{"id":30405005,"url":"https://github.com/gysr-io/core","last_synced_at":"2026-03-06T16:31:00.933Z","repository":{"id":57682395,"uuid":"290141123","full_name":"gysr-io/core","owner":"gysr-io","description":"GYSR is an open platform for on-chain incentives","archived":false,"fork":false,"pushed_at":"2023-07-10T21:41:20.000Z","size":957,"stargazers_count":10,"open_issues_count":0,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-26T19:55:42.618Z","etag":null,"topics":["defi","ethereum","solidity","staking","yield-farming"],"latest_commit_sha":null,"homepage":"https://docs.gysr.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gysr-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-25T07:09:12.000Z","updated_at":"2024-04-29T21:47:30.000Z","dependencies_parsed_at":"2022-09-10T16:32:54.396Z","dependency_job_id":null,"html_url":"https://github.com/gysr-io/core","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/gysr-io/core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gysr-io%2Fcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gysr-io%2Fcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gysr-io%2Fcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gysr-io%2Fcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gysr-io","download_url":"https://codeload.github.com/gysr-io/core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gysr-io%2Fcore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30185423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["defi","ethereum","solidity","staking","yield-farming"],"created_at":"2025-08-21T17:01:24.373Z","updated_at":"2026-03-06T16:31:00.924Z","avatar_url":"https://github.com/gysr-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GYSR core\n\nThis repository contains the Solidity contracts for the GYSR core procotol, including modular pools, factory system, and token.\n\nFor more information on the project, whitepapers, audits, and other resources,\nsee [gysr.io](https://www.gysr.io/)\n\n\n## Install\n\nTo use the core contracts, interfaces, libraries, or ABIs in your own project\n\n```\nnpm install @gysr/core\n```\n\nSee the [documentation](https://docs.gysr.io/developers) to learn more about interacting with the GYSR protocol.\n\n*Note: the package is published with solidity `^0.8.18` compatibility, but core contracts have only been tested and audited with solidity `0.8.18` exact.*\n\n\n## Development\n\nBoth **Node.js** and **npm** are required for package management and testing. See instructions\nfor installation [here](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).\n\nThis project uses [Hardhat](https://hardhat.org/docs) for development, testing, and deployment.\n\nTo install these packages along with other dependencies:\n```\nnpm install\n```\n\n\n## Test\n\nTo run all unit tests\n```\nnpm test\n```\n\nTo run some subset of tests\n```\nnpx hardhat compile \u0026\u0026 npx hardhat test --grep ERC20CompetitiveRewardModule\n```\n\n\n## Deploy\n\nCopy `.env.template` to `.env` and define the `INFURA_KEY`, `DEPLOYER_INDEX`,\nand `ETHERSCAN_KEY` variables.\n\n\nTo deploy GYSR token to Goerli\n```\nnpx hardhat run --network goerli scripts/i_deploy_token.js\n```\n\nOnce GYSR token is deployed, define the `GYSR_ADDRESS` variable in your `.env` file.\n\n\nTo deploy the configuration contract to Goerli\n```\nnpx hardhat run --network goerli scripts/i_deploy_config.js\n```\n\nOnce the configuration contract is deployed, define the `CONFIG_ADDRESS` variable in your `.env` file.\n\n\nTo deploy the factory contract to Goerli\n```\nnpx hardhat run --network goerli scripts/ii_deploy_factory.js\n```\n\nOnce the factory is deployed, define the `FACTORY_ADDRESS` variable in your `.env` file.\n\n\nTo deploy the ERC20 staking module factory to Goerli\n```\nnpx hardhat run --network goerli scripts/iii_deploy_module_factory_staking.js\n```\n\n\nTo deploy the ERC20 competitive reward module factory to Goerli\n```\nnpx hardhat run --network goerli scripts/iii_deploy_module_factory_competitive.js\n```\n\nFollow the remaining migration steps to deploy all contracts and libraries.\n\n\nTo verify a contract on Goerli\n```\nnpx hardhat verify --network goerli --contract contracts/PoolFactory.sol:PoolFactory 0xpoolfactory 0xgysrtoken 0xconfig\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgysr-io%2Fcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgysr-io%2Fcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgysr-io%2Fcore/lists"}