{"id":18340352,"url":"https://github.com/dimensiondev/stake_mask","last_synced_at":"2025-04-09T20:43:32.842Z","repository":{"id":243176776,"uuid":"772388505","full_name":"DimensionDev/stake_mask","owner":"DimensionDev","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-07T03:34:28.000Z","size":1177,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T12:52:42.145Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","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/DimensionDev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-15T05:03:12.000Z","updated_at":"2024-06-07T04:35:45.000Z","dependencies_parsed_at":"2024-06-07T06:39:53.173Z","dependency_job_id":null,"html_url":"https://github.com/DimensionDev/stake_mask","commit_stats":null,"previous_names":["dimensiondev/stake_mask"],"tags_count":0,"template":false,"template_full_name":"SpaceStation09/initialize-contract-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimensionDev%2Fstake_mask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimensionDev%2Fstake_mask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimensionDev%2Fstake_mask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimensionDev%2Fstake_mask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DimensionDev","download_url":"https://codeload.github.com/DimensionDev/stake_mask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248110515,"owners_count":21049499,"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-05T20:22:14.283Z","updated_at":"2025-04-09T20:43:32.821Z","avatar_url":"https://github.com/DimensionDev.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stake Mask\n\n### Introduction\n\nThis project is about staking MASK tokens to earn ecosystem token rewards. It consists of two main contracts:\n`StakeManager.sol`, manages the staking of MASK tokens.\n`Reward.sol`, distributes ecosystem token rewards.\n\n## Getting Started\n\n### Deployed Contract Address\n\n\u003c!-- begin address --\u003e\n\n| Chain   | StakeManager                  | Reward                         |\n| ------- | ----------------------------- | ------------------------------ |\n| mainnet | [`0x089f9e40`][stake-mainnet] | [`0xb55f6363`][reward-mainnet] |\n\n[stake-mainnet]: https://etherscan.io/address/0x089f9e409e2ae5837def520ce6bfb2fa03ce5128\n[reward-mainnet]: https://etherscan.io/address/0xb55f6363e8033641ada71afadabd667d071bc9b1\n\n\u003c!-- end address --\u003e\n\n### Build / Compile\n\nBuild / Compile the contracts:\n\n```sh\n$ forge build\n```\n\n### Clean\n\nDelete the build artifacts and cache directories:\n\n```sh\n$ forge clean\n```\n\n### Coverage\n\nGet a test coverage report:\n\n```sh\n$ forge coverage\n```\n\n### Generate typechain (by hardhat)\n\nGenerate typechain (by hardhat):\n\n```sh\n$ npx hardhat compile\n```\n\n### Deploy\n\nDeploy:\n\n```sh\n$ npx hardhat --network \u003cnetwork\u003e deploy \u003ctag\u003e\n```\n\n### Format\n\nFormat the contracts:\n\n```sh\n$ forge fmt\n```\n\n### Gas Usage\n\nGet a gas report:\n\n```sh\n$ forge test --gas-report\n```\n\n### Test\n\nRun the tests:\n\n```sh\n$ forge test\n```\n\nRun the tests with detailed report:\n\n```sh\n$ forge test -vvvv\n```\n\n### Verify\n\nVerify contracts:\n\n```sh\n$ ETHERSCAN_API_KEY=\u003cetherscan_api_key\u003e forge verify-contract --watch --compiler-version \"v0.8.23\" \\\n  [--verifier-url http://localhost:5000] \\\n  --constructor-args $(cast abi-encode \"constructor(string)\" \"string\") \\\n  \u003caddress\u003e Some-contract\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimensiondev%2Fstake_mask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimensiondev%2Fstake_mask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimensiondev%2Fstake_mask/lists"}