{"id":43954356,"url":"https://github.com/salazarsebas/kipu-bank","last_synced_at":"2026-02-07T04:06:49.591Z","repository":{"id":298937492,"uuid":"1000635384","full_name":"salazarsebas/kipu-bank","owner":"salazarsebas","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-13T17:17:35.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-13T18:28:06.739Z","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/salazarsebas.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,"zenodo":null}},"created_at":"2025-06-12T05:08:37.000Z","updated_at":"2025-06-13T17:17:35.000Z","dependencies_parsed_at":"2025-06-13T18:40:25.476Z","dependency_job_id":null,"html_url":"https://github.com/salazarsebas/kipu-bank","commit_stats":null,"previous_names":["salazarsebas/kipu-bank"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/salazarsebas/kipu-bank","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salazarsebas%2Fkipu-bank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salazarsebas%2Fkipu-bank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salazarsebas%2Fkipu-bank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salazarsebas%2Fkipu-bank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salazarsebas","download_url":"https://codeload.github.com/salazarsebas/kipu-bank/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salazarsebas%2Fkipu-bank/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29186111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T03:35:06.566Z","status":"ssl_error","status_checked_at":"2026-02-07T03:34:57.604Z","response_time":63,"last_error":"SSL_read: 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":"2026-02-07T04:06:48.988Z","updated_at":"2026-02-07T04:06:49.584Z","avatar_url":"https://github.com/salazarsebas.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KipuBank Smart Contract\n\n## Description\nKipuBank is a Solidity smart contract designed to allow users to deposit and withdraw ETH securely. It enforces a global deposit cap and a per-transaction withdrawal limit, tracks the number of deposits and withdrawals, and emits events for transparency. The contract follows best practices for security, including the checks-effects-interactions pattern, custom errors, and NatSpec documentation.\n\n## Deploy on testnet\n- Transaction hash: 0xb2091a200544b4d0ae69f4b04923e3c32d14980df70675d557d3dc9d1a24d386\n- Contract address: 0x3c41c6779b4ccf48b0233d0baa1761340887ebb8\n- Testnet: Sepolia.\n- View on etherscaan: https://sepolia.etherscan.io/tx/0xb2091a200544b4d0ae69f4b04923e3c32d14980df70675d557d3dc9d1a24d386\n\n### Key Features\n- **Deposits**: Users can deposit ETH into personal vaults, with a global cap enforced.\n- **Withdrawals**: Users can withdraw ETH up to a fixed limit per transaction.\n- **Security**: Implements custom errors, modifiers, and secure ETH transfers.\n- **Transparency**: Emits events for deposits and withdrawals; tracks transaction counts.\n- **Readability**: Uses NatSpec comments and clean code structure.\n\n## Deployment Instructions\n1. **Prerequisites**:\n   - [Remix](https://remix.ethereum.org/).\n   - Set up a testnet wallet (MetaMask) with test ETH (Sepolia).\n\n2. **Parameters**:\n   - `_withdrawalLimit`: Set to `1 ETH` (1e18 wei) for max withdrawal per transaction.\n   - `_bankCap`: Set to `100 ETH` (1e20 wei) for total contract capacity.\n\n## Interacting with the Contract\n1. **Deposit ETH**:\n   - Call `deposit()` with ETH (e.g., `0.5 ETH` via MetaMask).\n   - Ensure the total deposited does not exceed the `BANK_CAP`.\n\n2. **Withdraw ETH**:\n   - Call `withdraw(amount)` with the desired amount (in wei, up to `WITHDRAWAL_LIMIT`).\n\n3. **Check Balance**:\n   - Call `getUserBalance(address)` to view a user's vault balance.\n\n## Repository Structure\n- `/contracts/KipuBank.sol`: The main smart contract.\n- `README.md`: This documentation file.\n\n## Notes\n- The contract is deployed on the Sepolia testnet at `0x3c41c6779b4ccf48b0233d0baa1761340887ebb8`.\n- Source code is verified on [Sepolia Etherscan](https://sepolia.etherscan.io/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalazarsebas%2Fkipu-bank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalazarsebas%2Fkipu-bank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalazarsebas%2Fkipu-bank/lists"}