{"id":24179974,"url":"https://github.com/crofrank/foundry-basics","last_synced_at":"2025-08-02T14:06:51.020Z","repository":{"id":272133740,"uuid":"914804606","full_name":"CroFrank/Foundry-basics","owner":"CroFrank","description":"My solidity - foundry learning project. Smart Contract for funding and withdrawing funds.","archived":false,"fork":false,"pushed_at":"2025-01-12T11:21:41.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T23:38:10.862Z","etag":null,"topics":["blockchain-technology","foundry-framework","smart-contracts","solidity"],"latest_commit_sha":null,"homepage":"","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/CroFrank.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":"2025-01-10T10:42:31.000Z","updated_at":"2025-01-12T11:21:44.000Z","dependencies_parsed_at":"2025-01-12T12:28:23.253Z","dependency_job_id":"48ff46d8-892c-4ac0-a74a-a8531d612ec5","html_url":"https://github.com/CroFrank/Foundry-basics","commit_stats":null,"previous_names":["crofrank/foundry-basics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CroFrank/Foundry-basics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CroFrank%2FFoundry-basics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CroFrank%2FFoundry-basics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CroFrank%2FFoundry-basics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CroFrank%2FFoundry-basics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CroFrank","download_url":"https://codeload.github.com/CroFrank/Foundry-basics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CroFrank%2FFoundry-basics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268401594,"owners_count":24244464,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blockchain-technology","foundry-framework","smart-contracts","solidity"],"created_at":"2025-01-13T06:11:26.772Z","updated_at":"2025-08-02T14:06:50.979Z","avatar_url":"https://github.com/CroFrank.png","language":"Solidity","readme":"## FundMe\nThis is a smart contract, written in foundry framework, that enables users to send funds to a smart contract. The project leverages Chainlink Price Feeds to fetch real-time price data and facilitates accurate conversions. Only the owner of the contract has the ability to withdraw the accumulated funds.\n\nThis project was built under the guidance of [Patrick Collinst](https://github.com/patrickalphac) from [Cyfrin](https://www.cyfrin.io/)and includes comprehensive testing to ensure reliability and correctness.\n\n## Features\nFund Contract: Users can send ETH to the smart contract.\nPrice Conversion: Chainlink Price Feeds are used to convert ETH to USD, ensuring users meet the minimum funding threshold.\nWithdraw Funds: Only the contract owner can withdraw the accumulated funds.\nTesting: Comprehensive tests are implemented to verify contract functionality.\n\n## Technologies Used\n- Solidity: Smart contract development.\n- Chainlink: For fetching real-time price feeds.\n- Foundry: Development environment for compiling, testing, and deploying contracts.\n- MetaMask: Browser wallet for transactions.\n- Anvil: Local Foundry testing network for rapid development.\n\n## Foundry 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\n## Learning and Guidance\nThis project was created as part of my learning journey with Patrick Collins and Cyfrin. The course emphasized best practices in Solidity, secure smart contract development, and the use of Chainlink oracles.\n\n## Acknowledgments\nSpecial thanks to:\n\nPatrick Collins for the comprehensive lessons.\nChainlink for providing reliable price data.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrofrank%2Ffoundry-basics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrofrank%2Ffoundry-basics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrofrank%2Ffoundry-basics/lists"}