{"id":22370536,"url":"https://github.com/zaryab2000/brb_staking_contract","last_synced_at":"2025-03-26T16:41:43.282Z","repository":{"id":244193172,"uuid":"814534046","full_name":"zaryab2000/BRB_Staking_Contract","owner":"zaryab2000","description":"A staking contract with foundry for BRB Solidity Workshop","archived":false,"fork":false,"pushed_at":"2024-06-13T08:09:47.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T21:11:28.158Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaryab2000.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T07:42:37.000Z","updated_at":"2024-06-13T08:09:50.000Z","dependencies_parsed_at":"2024-06-13T11:07:29.006Z","dependency_job_id":null,"html_url":"https://github.com/zaryab2000/BRB_Staking_Contract","commit_stats":null,"previous_names":["zaryab2000/brb_staking_contract"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaryab2000%2FBRB_Staking_Contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaryab2000%2FBRB_Staking_Contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaryab2000%2FBRB_Staking_Contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaryab2000%2FBRB_Staking_Contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaryab2000","download_url":"https://codeload.github.com/zaryab2000/BRB_Staking_Contract/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245697107,"owners_count":20657845,"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-12-04T19:46:00.229Z","updated_at":"2025-03-26T16:41:43.258Z","avatar_url":"https://github.com/zaryab2000.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"## BRB Staking with Foundry\n\n### Details of Staking Contract:\n* Initialization Requirement: “Users must be able to initialize their staking profile.”\n* Staking Tokens: “Users should be able to stake ERC20 tokens in the contract.”\n* Lockup Period: “A 7-day lockup period must be enforced before users can unstake their tokens.”\n* Unstaking Tokens: “Users should be able to unstake their tokens after the 7-day lockup period.”\n* Fixed Reward: “Upon successful unstaking after the lockup period, users should receive a fixed reward of 100 tokens.”\n* Reward Addition by Admin: “The admin should be able to add tokens to the reward pool.”\n\n\n\n### Details on Foundry Framework\n**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**\n\nFoundry consists of:\n\n-   **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools).\n-   **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.\n-   **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network.\n-   **Chisel**: Fast, utilitarian, and verbose solidity REPL.\n\n## Documentation\n\nhttps://book.getfoundry.sh/\n\n## Usage\n\n### Build\n\n```shell\n$ forge build\n```\n\n### Test\n\n```shell\n$ forge test\n```\n\n### Format\n\n```shell\n$ forge fmt\n```\n\n### Gas Snapshots\n\n```shell\n$ forge snapshot\n```\n\n### Anvil\n\n```shell\n$ anvil\n```\n\n### Deploy\n\n```shell\n$ forge script script/Counter.s.sol:CounterScript --rpc-url \u003cyour_rpc_url\u003e --private-key \u003cyour_private_key\u003e\n```\n\n### Cast\n\n```shell\n$ cast \u003csubcommand\u003e\n```\n\n### Help\n\n```shell\n$ forge --help\n$ anvil --help\n$ cast --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaryab2000%2Fbrb_staking_contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaryab2000%2Fbrb_staking_contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaryab2000%2Fbrb_staking_contract/lists"}