{"id":29083297,"url":"https://github.com/bscript07/transparent-ride-share","last_synced_at":"2025-08-01T02:11:10.933Z","repository":{"id":299635011,"uuid":"999436484","full_name":"bscript07/transparent-ride-share","owner":"bscript07","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-17T13:51:13.000Z","size":5070,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-17T14:41:54.623Z","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/bscript07.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-10T08:46:56.000Z","updated_at":"2025-06-17T13:51:16.000Z","dependencies_parsed_at":"2025-06-17T14:52:32.098Z","dependency_job_id":null,"html_url":"https://github.com/bscript07/transparent-ride-share","commit_stats":null,"previous_names":["bscript07/transparent-ride-share"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bscript07/transparent-ride-share","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscript07%2Ftransparent-ride-share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscript07%2Ftransparent-ride-share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscript07%2Ftransparent-ride-share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscript07%2Ftransparent-ride-share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bscript07","download_url":"https://codeload.github.com/bscript07/transparent-ride-share/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscript07%2Ftransparent-ride-share/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262331911,"owners_count":23294931,"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","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":"2025-06-27T21:02:50.123Z","updated_at":"2025-06-27T21:03:14.355Z","avatar_url":"https://github.com/bscript07.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚕 Ride Share Treasury – Upgradeable Smart Contract (Sepolia)\n\nThis project implements a secure, upgradeable smart contract for a ride-sharing platform. It allows drivers to claim ETH payments via EIP-712 signed vouchers. The contract is deployed on Sepolia using a Transparent Upgradable Proxy.\n\n---\n\n## ✅ Features\n\n- 🔐 Upgradeable via OpenZeppelin Transparent Proxy\n- 🧾 EIP-712 signature verification\n- 🧮 ETH/USD price conversion via Chainlink\n- 🛡️ Role separation: Owner vs Admin vs Driver\n- 🚫 Reentrancy protection\n\n---\n\n## 🔧 Set Up and Run\n\n### 1. Clone the project and install dependencies\n\n```bash\ngit clone https://github.com/bscript07/ride-share-treasury.git\ncd ride-share\nforge install\nforge test\n```\n\n ### 2. Set environment variables\n\n ```bash\n OWNER_ADDRESS=\u003cOWNER_ADDRESS\u003e\n OWNER_PRIVATE_KEY=\u003cOWNER_PRIVATE_KEY\u003e\n\n ADMIN_ADDRESS=\u003cADMIN_ADDRESS\u003e\n ADMIN_PRIVATE_KEY=\u003cADMIN_PRIVATE_KEY\u003e\n\n DRIVER_ONE__ADDRESS=\u003cDRIVER_ONE__ADDRESS\u003e\n DRIVER_TWO__ADDRESS=\u003cDRIVER_TWO__ADDRESS\u003e\n\n CLONE_ADDRESS=\u003cPROXY_CONTRACT_ADDRESS_AFTER_DEPLOY\u003e\n\n SEPOLIA_RPC_URL=\u003cSEPOLIA_RPC_URL\u003e\n ETHERSCAN_API_KEY=\u003cETHERSCAN_API_KEY\u003e\n ```\n\n### 3. Deployment \u0026 Verification (Sepolia)\n\n```bash\nforge script script/deploy.s.sol:DeployScript --rpc-url sepolia --broadcast --verify -vv --private-key \u003cADMIN_PRIVATE_KEY\u003e\n```\n\n ### 4. Generate Voucher Signature (Off-chain)\n\n ```bash\n node scripts/generate-voucher-signature.js\n ```\n \n This script generates a signed voucher using the OWNER_PRIVATE_KEY and writes a JSON object containing:\n- driver address\n- tripId\n- usdCents\n- expiry timestamp\n- signature\n- domain info (incl. verifyingContract = CLONE_ADDRESS)\n\n### 5. Etherscan Links\n\nProxy: 0xf0722f5c70392F7233f0C37504c25226B3044f78\nImplementation: 0x263ece95f545fd910f8bdc91f4726557B7096Ef6\n\n### 6. Example Transactions\n\nTreasury Funded by Owner: [0x71e824214a0453a78e08c5f12dde6408c72dc530d6fcbdbb0ddd700399f3086d](https://sepolia.etherscan.io/tx/0x71e824214a0453a78e08c5f12dde6408c72dc530d6fcbdbb0ddd700399f3086d)\n\nDriver One Voucher Claim: [0xce2bd2736fc493312b9eaf4d0531434929327cd3dcea6ce5bf50419bb458bf53](https://sepolia.etherscan.io/tx/0xce2bd2736fc493312b9eaf4d0531434929327cd3dcea6ce5bf50419bb458bf53)\n\nDriver Two Voucher Claim: [0x1cb84d2e237f816d05bcf10f19edf597dcb957b8c39ab2a2fcb782da0e8c19e1](https://sepolia.etherscan.io/tx/0x1cb84d2e237f816d05bcf10f19edf597dcb957b8c39ab2a2fcb782da0e8c19e1)\n\nOwner Withdraws ETH: [0x30d0f3aa0e66796627ab6d4d6485cd5cb0ddd8bd51fcd5028bd917b7266edfcf](https://sepolia.etherscan.io/tx/0x30d0f3aa0e66796627ab6d4d6485cd5cb0ddd8bd51fcd5028bd917b7266edfcf)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbscript07%2Ftransparent-ride-share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbscript07%2Ftransparent-ride-share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbscript07%2Ftransparent-ride-share/lists"}