{"id":15981569,"url":"https://github.com/shekohex/piggybank","last_synced_at":"2026-04-21T17:02:59.649Z","repository":{"id":89445064,"uuid":"568235086","full_name":"shekohex/piggybank","owner":"shekohex","description":"Piggy Bank Smart contract for rainy days","archived":false,"fork":false,"pushed_at":"2024-03-16T23:03:30.000Z","size":31,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T23:56:54.186Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shekohex.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":"2022-11-19T21:45:49.000Z","updated_at":"2023-12-10T02:39:03.000Z","dependencies_parsed_at":"2024-01-11T19:21:19.485Z","dependency_job_id":"2e2cb6f2-8654-4054-b79d-973d31c41f6d","html_url":"https://github.com/shekohex/piggybank","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shekohex/piggybank","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shekohex%2Fpiggybank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shekohex%2Fpiggybank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shekohex%2Fpiggybank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shekohex%2Fpiggybank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shekohex","download_url":"https://codeload.github.com/shekohex/piggybank/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shekohex%2Fpiggybank/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32101416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-10-08T01:00:33.837Z","updated_at":"2026-04-21T17:02:59.630Z","avatar_url":"https://github.com/shekohex.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ePiggy Bank 🐷💰\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eA simple Smart contract to start saving some ERC20 Tokens for rainy days!\u003c/strong\u003e\n \u003c/div\u003e\n\u003cbr /\u003e\n\nPiggy Bank is a smart contract written in Solidity and is meant to be used as a simple way to save some ERC20 tokens for rainy days. The idea is super simple, you deploy the contract and then you can start sending the tokens you want to save to the contract address, as you would send them to normal wallet address, when you need these tokens you can withdraw them from the contract at any time.\n\n## Usage Scenario 📖\n\nLet's say you want to buy a new phone, and you want to save some money for it, you can deploy the contract and start sending some tokens to it, and when you reach the amount you want to save, you can withdraw them from the contract and buy your new phone.\n\n## How to deploy the contract? 🤔\n\n1. Install [Foundry](https://getfoundry.sh/)\n2. Clone this repository\n3. Copy `.env.example` to `.env` and fill the variables you need.\n4. Start a Dry Run of the contract deployment simulation with\n\n```\nfoundry script DeployPiggyBank --rpc-url \u003cNETWORK\u003e -vvv\n```\n\nwhere network is the network you want to deploy the contract to, for example `foundry script DeployPiggyBank --rpc-url goerli -vvv` will deploy the contract to the Goerli testnet.\n\n5. If you are happy with the simulation, you can deploy the contract to the network with\n\n```\nfoundry script DeployPiggyBank --rpc-url \u003cNETWORK\u003e --broadcast --verify -vvv\n```\n\n5. Done! 🎉\n\n## How to use it? 🤔\n\nOnce deployed, you can interact with the contract using the Explorer like [Etherscan](https://etherscan.io/) or [Polygonscan](https://polygonscan.com/), or you can use the [Foundry Cast CLI](https://book.getfoundry.sh/cast/) to interact with the contract.\n\n## Development 🛠\n\n1. Install [Foundry](https://getfoundry.sh/)\n2. Clone this repository\n3. Copy `.env.example` to `.env` and fill the variables you need.\n4. Install `solc` compiler with just running `yarn`.\n5. Run `forge test` to run the tests.\n6. Start hacking! 🚀\n\n## Contributing\n\nWant to join us? take a look at some of these issues:\n\n- [Issues labeled \"good first issue\"][good-first-issue]\n- [Issues labeled \"help wanted\"][help-wanted]\n\n[good-first-issue]: https://github.com/shekohex/piggybank/labels/good%20first%20issue\n[help-wanted]: https://github.com/shekohex/piggybank/labels/help%20wanted\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshekohex%2Fpiggybank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshekohex%2Fpiggybank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshekohex%2Fpiggybank/lists"}