{"id":50496183,"url":"https://github.com/davidweb3-ctrl/minipay-spend-guard","last_synced_at":"2026-06-02T07:03:59.801Z","repository":{"id":359812791,"uuid":"1247588400","full_name":"davidweb3-ctrl/minipay-spend-guard","owner":"davidweb3-ctrl","description":"Non-custodial MiniPay spend-limit and receipt proof for Celo Proof of Ship","archived":false,"fork":false,"pushed_at":"2026-05-23T14:47:25.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T16:26:02.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/davidweb3-ctrl.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-23T14:14:08.000Z","updated_at":"2026-05-23T14:47:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/davidweb3-ctrl/minipay-spend-guard","commit_stats":null,"previous_names":["davidweb3-ctrl/minipay-spend-guard"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/davidweb3-ctrl/minipay-spend-guard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidweb3-ctrl%2Fminipay-spend-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidweb3-ctrl%2Fminipay-spend-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidweb3-ctrl%2Fminipay-spend-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidweb3-ctrl%2Fminipay-spend-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidweb3-ctrl","download_url":"https://codeload.github.com/davidweb3-ctrl/minipay-spend-guard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidweb3-ctrl%2Fminipay-spend-guard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33810345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"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":[],"created_at":"2026-06-02T07:03:58.367Z","updated_at":"2026-06-02T07:03:59.788Z","avatar_url":"https://github.com/davidweb3-ctrl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MiniPay Spend Guard\n\nMiniPay Spend Guard is a small Celo/MiniPay-compatible payment-safety proof.\n\nIt lets a user set a monthly spending limit and record merchant spend receipts onchain. The contract does not custody funds, does not route payments, and rejects native CELO transfers. It is intended as a narrow Proof of Ship submission artifact for payment policy, transparency, and user-facing spend controls.\n\n## Why This Exists\n\nCelo Proof of Ship rewards shipped products with measurable Celo activity. This project is intentionally scoped as a low-risk MiniPay-adjacent utility:\n\n- non-custodial by design;\n- useful for payment and merchant workflows;\n- small enough to deploy and test quickly;\n- built with Foundry tests and a Vite/Wagmi frontend using `viem`, not `ethers.js`.\n\n## Contracts\n\n```text\nsrc/MiniPaySpendGuard.sol\n```\n\nCore actions:\n\n- `setMonthlyLimit(uint256 limitCents)`\n- `recordSpend(bytes32 merchantId, uint256 amountCents, string memo)`\n- `getMonthState(address user, uint64 monthKey)`\n\n## Run Tests\n\n```bash\nforge test -vv\n```\n\n## Frontend\n\n```bash\ncd app\npnpm install\npnpm build\n```\n\nThe frontend uses injected wallets through Wagmi. Set the deployed contract address before building:\n\n```bash\ncp .env.example .env\nVITE_CONTRACT_ADDRESS=0xYourCeloContract\n```\n\n## Celo Mainnet Deployment\n\nUse a fresh development wallet with only a tiny amount of CELO for gas.\n\n```bash\nexport PRIVATE_KEY=0x...\nforge script script/DeployCelo.s.sol:DeployCelo \\\n  --rpc-url https://forno.celo.org \\\n  --chain-id 42220 \\\n  --broadcast \\\n  --verify\n```\n\nDo not use a wallet containing personal funds for development.\n\n## Proof of Ship Notes\n\nThis project is not a production wallet, audit framework, custodial product, or DeFi strategy. It is a working public proof for:\n\n- Celo mainnet contract deployment;\n- open-source GitHub activity;\n- MiniPay-compatible frontend dependencies;\n- simple real-user spend safety UX.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidweb3-ctrl%2Fminipay-spend-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidweb3-ctrl%2Fminipay-spend-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidweb3-ctrl%2Fminipay-spend-guard/lists"}