Skip to content

feat: AgentFi complete frontend — ready for backend integration#1

Open
andreagnzz wants to merge 68 commits intomainfrom
feature/frontend
Open

feat: AgentFi complete frontend — ready for backend integration#1
andreagnzz wants to merge 68 commits intomainfrom
feature/frontend

Conversation

@andreagnzz
Copy link
Collaborator

AgentFi Frontend — Backend Integration PR

What's been built

Full frontend across 4 pages, ready to connect to your FastAPI backend.


Pages & Routes

Route Description
/ Landing page — hero, terminal, chain carousel, CTA
/marketplace Agent marketplace — filter by category, hire agents
/dashboard Agent creation wizard — 3-step template + custom prompt
/my-agents iNFT collection — TiltedCard gallery, activity feed

API Integration Points needed from backend

Agents

GET  /agents              → list all agents (marketplace)
GET  /agents/:id          → agent detail
POST /agents              → create new agent (dashboard wizard)
POST /agents/custom       → deploy from custom prompt

iNFTs / Ownership

GET  /nfts/:wallet        → iNFTs owned by wallet (my-agents page)
POST /nfts/mint           → mint agent as ERC-7857 on 0G Chain
POST /nfts/transfer       → transfer iNFT to new owner

Execution

POST /agents/:id/execute  → run agent query (pay ADI, get result)
GET  /agents/:id/activity → activity feed (my-agents timeline)

Payments

GET  /payments/:wallet    → ADI payment history
POST /payments/quote      → estimate query cost in ADI

Auth

  • Wallet address from wagmi useAccount() hook
  • Pass as header: x-wallet-address: 0x...
  • No JWT needed — wallet signature for sensitive ops

Mock data locations

All mock data is inline in each page component:

  • frontend/src/app/marketplace/page.tsx → AGENTS array
  • frontend/src/app/my-agents/page.tsx → AGENTS array
  • frontend/src/app/dashboard/page.tsx → CAPABILITIES, CHAINS, MODELS

Replace with real API calls using fetch or wagmi hooks.


Stack

  • Next.js 14 · TypeScript · TailwindCSS
  • wagmi v2 · RainbowKit (wallet connect)
  • GSAP · motion/react (animations)
  • pnpm workspaces monorepo

Run frontend

cd frontend && pnpm install && pnpm dev

Chains

Chain Role Status
0G Chain iNFT ownership (ERC-7857) Testnet
Hedera Agent execution (HCS-10) Testnet
ADI Chain Micropayments Testnet

…n connect, address display, modal with X close
andreagnzz and others added 29 commits February 18, 2026 22:21
- SDK inventory: hedera-agent-kit-py + HOL standards-sdk (TS)
- HTS token creation, agent registration via HCS-10, attestations
- Architecture: agents/hedera/ module, non-invasive orchestrator hooks
- Risk assessment + fallback plan for testnet issues
- ~10h estimated implementation, ordered by priority
- agents/hedera/ module: config, hts_service, mock_hedera, service_factory
- create_token.py script creates AgentFi Credits (AFC) fungible token
- Token 0.0.7977623 live on Hedera testnet (1,000.00 AFC supply)
- MockHTSService fallback when HEDERA_ENABLED != true
- Pin hiero-sdk-python>=0.1.9 in requirements.txt
Registered all 3 AgentFi agents on Hedera testnet HCS-2 registry:
- Portfolio Analyzer: account 0.0.7977799, inbound 0.0.7977803
- Yield Optimizer: account 0.0.7977811, inbound 0.0.7977813
- Risk Scorer: account 0.0.7977819, inbound 0.0.7977822

Each agent got: new Hedera account, inbound/outbound HCS-10 topics,
HCS-11 profile inscribed, and registration confirmed in guarded registry.

SDK: @hashgraphonline/standards-sdk v0.1.159
- hcs_messaging.py: submit HCS-10 formatted messages to Hedera topics
- attestation.py: post-execution proof submission (hash of result)
- orchestrator.py: Hedera attestation hook after each agent execution
- api.py: /hedera/status, /hedera/agents/{id}/topics, /hedera/registration
- api.py: /orchestrate and /agents/{id}/execute now return hedera_proof
- Mock fallbacks for all Hedera services when HEDERA_ENABLED=false

Verified: HCS-10 message visible on-chain at topic 0.0.7977803
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants