{"id":50496181,"url":"https://github.com/davidweb3-ctrl/mantle-agent-payment-guard","last_synced_at":"2026-06-02T07:03:59.158Z","repository":{"id":360596830,"uuid":"1250879816","full_name":"davidweb3-ctrl/mantle-agent-payment-guard","owner":"davidweb3-ctrl","description":"AI-assisted payment safety receipts for onchain agent actions on Mantle","archived":false,"fork":false,"pushed_at":"2026-05-27T03:52:29.000Z","size":400,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T05:26:23.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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-27T03:43:43.000Z","updated_at":"2026-05-27T03:52:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/davidweb3-ctrl/mantle-agent-payment-guard","commit_stats":null,"previous_names":["davidweb3-ctrl/mantle-agent-payment-guard"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/davidweb3-ctrl/mantle-agent-payment-guard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidweb3-ctrl%2Fmantle-agent-payment-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidweb3-ctrl%2Fmantle-agent-payment-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidweb3-ctrl%2Fmantle-agent-payment-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidweb3-ctrl%2Fmantle-agent-payment-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidweb3-ctrl","download_url":"https://codeload.github.com/davidweb3-ctrl/mantle-agent-payment-guard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidweb3-ctrl%2Fmantle-agent-payment-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.179Z","updated_at":"2026-06-02T07:03:59.152Z","avatar_url":"https://github.com/davidweb3-ctrl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mantle Agent Payment Guard\n\nAI-assisted payment safety for onchain agent actions on Mantle.\n\n## Pitch\n\nAI agents are becoming capable of initiating payments, subscriptions, and treasury actions. Mantle Agent Payment Guard adds a review step before value moves: the app analyzes a payment intent, shows human-readable risk signals, and records a compact payment-safety receipt on a Mantle smart contract.\n\n## What It Does\n\n- Reviews an AI-agent payment intent before an onchain write.\n- Scores risk based on amount, recipient format, purpose, and risky language.\n- Creates an intent hash for a reproducible audit trail.\n- Records a payment-safety receipt on Mantle Sepolia.\n- Shows users the transaction link after recording.\n\n## Architecture\n\n```text\nUser / wallet\n  -\u003e React frontend\n  -\u003e local AI-style risk review engine\n  -\u003e Mantle Sepolia smart contract\n  -\u003e PaymentIntentRecorded event / receipt lookup\n```\n\nThe current demo uses a deterministic local review engine so the app is easy to run and verify during the hackathon. A production version would call a hosted model or policy engine before writing the receipt.\n\n## Smart Contract\n\n`contracts/AgentPaymentGuard.sol` stores reviewed payment intent receipts:\n\n- user address;\n- agent address;\n- recipient;\n- amount;\n- token symbol;\n- intent hash;\n- risk score;\n- risk summary;\n- source chain id;\n- timestamp.\n\n## Mantle Network\n\nThe project targets Mantle Sepolia for low-cost hackathon proof:\n\n- Chain ID: `5003`\n- RPC: `https://rpc.sepolia.mantle.xyz`\n- Explorer: `https://explorer.sepolia.mantle.xyz`\n\n## Local Setup\n\n```bash\nnpm install\nnpm run test:contracts\nnpm run dev\n```\n\nOpen the printed Vite URL and test the local review flow.\n\n## Public Frontend\n\nCurrent public demo:\n\n```text\nhttps://davidweb3-ctrl.github.io/mantle-agent-payment-guard/\n```\n\n## Demo Video\n\n```text\nhttps://github.com/davidweb3-ctrl/mantle-agent-payment-guard/raw/main/demo/mantle-agent-payment-guard-demo.mp4\n```\n\nThe video is about 2 minutes and 16 seconds long, uses real project screenshots plus the deployed Mantle Sepolia evidence, and explains the pre-payment safety receipt flow. The latest render aligns each slide with the ElevenLabs narration sequence.\n\nThe static frontend can be published with GitHub Pages:\n\n```bash\nnpm run deploy:pages\n```\n\n## Deploy To Mantle Sepolia\n\nCreate `.env` from `.env.example`, then set:\n\n```text\nPRIVATE_KEY=your_test_wallet_private_key\nMANTLE_SEPOLIA_RPC_URL=https://rpc.sepolia.mantle.xyz\n```\n\nDeploy:\n\n```bash\nsource .env\nnpm run deploy:mantle-sepolia\n```\n\nAfter deployment, set:\n\n```text\nVITE_CONTRACT_ADDRESS=0x...\n```\n\nThen rebuild and publish the frontend.\n\n## Current Deployment\n\nPublic frontend:\n\n```text\nhttps://davidweb3-ctrl.github.io/mantle-agent-payment-guard/\n```\n\nMantle Sepolia contract:\n\n```text\n0x4965e045fBA701c8d98B445155e82B2E153e7335\n```\n\nExplorer:\n\n```text\nhttps://explorer.sepolia.mantle.xyz/address/0x4965e045fBA701c8d98B445155e82B2E153e7335\n```\n\nDeployment transaction:\n\n```text\n0x45f245e4d916d0f4cf0f97438e21267d399059069a27f4cfe2a3dae405160dce\n```\n\nTransaction explorer:\n\n```text\nhttps://explorer.sepolia.mantle.xyz/tx/0x45f245e4d916d0f4cf0f97438e21267d399059069a27f4cfe2a3dae405160dce\n```\n\nDeployment block:\n\n```text\n39163481\n```\n\nFirst usage transaction:\n\n```text\n0x7264d23c8e5c0a3e57559e9af64b81bfba42dd13f5c65ae3e13299101633c1fa\n```\n\nUsage transaction explorer:\n\n```text\nhttps://sepolia.mantlescan.xyz/tx/0x7264d23c8e5c0a3e57559e9af64b81bfba42dd13f5c65ae3e13299101633c1fa\n```\n\nUsage block:\n\n```text\n39163828\n```\n\nOnchain receipt count:\n\n```text\n1\n```\n\nThis demo video is ready to use for the DoraHacks submission.\n\n## Verification\n\nLocal verification completed on 2026-05-27:\n\n```bash\nnpm run test:contracts\nnpm run build\n```\n\nResult:\n\n- Foundry: 4 contract tests passed.\n- Vite: production build passed.\n- Browser check: local and GitHub Pages frontend loaded with live risk scoring.\n- Mantle Sepolia RPC check: deployed contract bytecode exists and deployment receipt has `status 1`.\n- Mantle Sepolia usage check: first `recordPaymentIntent` transaction has `status 1`, emitted `PaymentIntentRecorded`, and `receiptCount()` returns `1`.\n\n## Hackathon Track\n\nThe Turing Test Hackathon 2026 - `AI DevTools`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidweb3-ctrl%2Fmantle-agent-payment-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidweb3-ctrl%2Fmantle-agent-payment-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidweb3-ctrl%2Fmantle-agent-payment-guard/lists"}