{"id":33084943,"url":"https://github.com/katyailil/splitbase","last_synced_at":"2026-05-06T00:02:51.863Z","repository":{"id":325700003,"uuid":"1099089850","full_name":"katyailil/SplitBase","owner":"katyailil","description":"Revenue splitting protocol on Base that routes incoming USDC into configurable pools and buckets for teams, investors, partners and treasuries.","archived":false,"fork":false,"pushed_at":"2025-12-14T15:09:00.000Z","size":109,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"dev","last_synced_at":"2025-12-16T19:58:13.699Z","etag":null,"topics":["base","base-network","foundry","l2","onchain-analytics","payments","revenue-sharing","solidity","treasury","uups"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/katyailil.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-18T14:52:18.000Z","updated_at":"2025-12-14T15:09:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/katyailil/SplitBase","commit_stats":null,"previous_names":["katyailil/splitbase"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/katyailil/SplitBase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katyailil%2FSplitBase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katyailil%2FSplitBase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katyailil%2FSplitBase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katyailil%2FSplitBase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katyailil","download_url":"https://codeload.github.com/katyailil/SplitBase/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katyailil%2FSplitBase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["base","base-network","foundry","l2","onchain-analytics","payments","revenue-sharing","solidity","treasury","uups"],"created_at":"2025-11-14T14:00:37.362Z","updated_at":"2026-05-06T00:02:51.839Z","avatar_url":"https://github.com/katyailil.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SplitBase\n\nProduction-grade on-chain revenue distribution system for Base network.\n\n## Overview\n\nSplitBase provides programmable USDC payout splitting across multiple recipients using upgradeable smart contracts. Built for production treasury infrastructure on Base L2.\n\nHigh-precision share calculations ensure accurate distribution across all recipients with minimal rounding errors.\n\n## Key Benefits\n\n- **No Intermediaries**: Direct on-chain distribution without trust assumptions\n- **Transparent**: All operations recorded on Base blockchain\n- **Efficient**: Optimized gas usage for frequent distributions\n\n## Architecture\n\n- **Core Pool Logic**: Dynamic recipient configurations with percentage/unit-based shares\n- **Bucket Semantics**: Structured categorization (TEAM, INVESTORS, TREASURY, etc.)\n- **Source Tracking**: Revenue attribution (Base Pay, protocol fees, grants, etc.)\n- **Registry**: Centralized pool management and discovery\n- **Executor**: Base Pay integration for automated execution flows\n- **Upgradeability**: UUPS proxy pattern with static addresses\n\n**📚 Documentation:**\n- [Architecture Guide](./docs/ARCHITECTURE.md) - Technical architecture and integration patterns\n- [Domain Model](./docs/DOMAIN_MODEL.md) - Business concepts explained for non-developers\n\n## Features\n\n- Create and manage payout pools with flexible share models\n- **Bucket categorization** (TEAM, INVESTORS, TREASURY, REFERRALS, SECURITY_FUND, GRANTS)\n- **Revenue source tracking** (Base Pay, protocol fees, grants, donations, partnerships)\n- **Distribution history** with full on-chain audit trail\n- Execute distribution cycles with precise accounting\n- Support for Base smart wallets and sub-accounts\n- Full upgradeability without address changes (V1 → V2 compatible)\n- Event emissions optimized for Subgraph indexing and analytics dashboards\n- Gas-optimized execution for cost-effective operations\n\n## Development\n\n```bash\nforge build\nforge test\nforge test --gas-report\nforge snapshot\n```\n\n## Deployment\n\n### Setup\n\n```bash\ncp .env.example .env\n# Add your PRIVATE_KEY and BASESCAN_API_KEY\n```\n\n### Manual Deployment\n\n**Deploy to Base Sepolia:**\n```bash\nforge script script/Deploy.s.sol --rpc-url base_sepolia --broadcast --verify\n```\n\n**Deploy upgradeable proxy:**\n```bash\nforge script script/DeployProxy.s.sol --rpc-url base_sepolia --broadcast --verify\n```\n\n**Upgrade existing proxy:**\n```bash\nPROXY_ADDRESS=0x... forge script script/Upgrade.s.sol --rpc-url base_sepolia --broadcast\n```\n\n### GitHub Actions Deployment\n\nUse workflow dispatch for automated deployments:\n- **Deploy**: Actions → Deploy to Base → Run workflow\n- **Deploy Proxy**: Actions → Deploy Upgradeable Proxy → Run workflow\n- **Upgrade**: Actions → Upgrade Contract → Run workflow\n\n## Security\n\nFor security concerns, please contact the team directly.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatyailil%2Fsplitbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatyailil%2Fsplitbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatyailil%2Fsplitbase/lists"}