尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
You set the rules. The Guardian operates within them. Every decision is explainable and verifiable.
DiversiFi tells you what your currency is doing to your savings, proposes a
protected allocation inside the limits you set, and records the decision where
you can check it. The AI is the interface. The bounds are the trust model.
Is my money losing purchasing power? · What can I do about it? · Why can I
trust the thing doing it? — everything else in this repo exists to answer
those three.查看完整 README ↗You set the rules. The Guardian operates within them. Every decision is explainable and verifiable.
DiversiFi tells you what your currency is doing to your savings, proposes a protected allocation inside the limits you set, and records the decision where you can check it. The AI is the interface. The bounds are the trust model.
Is my money losing purchasing power? · What can I do about it? · Why can I trust the thing doing it? — everything else in this repo exists to answer those three.
Live app: https://diversifi.persidian.com · Positioning: docs/product.md · Trust model: docs/guardian.md
data → deterministic risk calculation → constrained strategy → AI explanation
→ your approval → on-chain execution
The model never authorizes a move. Risk arithmetic (services/fx-drag/),
allocation bands and asset eligibility (config/jurisdictions.ts,
services/strategy/) and spending caps (VaultService.validateSwap,
guardian-loop.ts) are code. The Guardian proposes inside those results; you
approve in your own wallet; the decision is recorded on the chain where the
money moves, with its reasoning anchored to 0G Storage as evidence.
Savings never leave your wallet — no deposit, no custodial account, no Safe.
Autonomy exists only as an ERC-7715 grant your own smart account enforces, and
chains that can't enforce it fall back to one-tap proposals and journal the
decline. What is enforced where — and what is still app-layer only — is stated
plainly in docs/guardian.md.
Both directions of the same trade, one engine:
A chosen philosophy (Africapitalism, Buen Vivir, Islamic Finance, Confucian, Gotong Royong) shapes the allocation. It is the retention layer, not the headline.
Four instruments, one job each: Shield (protection plan + allocation ring),
Home (your currency's moment + holdings), Exchange (move savings),
Guardian (daily limit, latest decision, journal, proof). Simple mode shows
the first three; Full adds Guardian. Design contract:
docs/design-language.md.
pnpm install
cp .env.example .env.local # minimum: NEXT_PUBLIC_PRIVY_APP_ID, PRIVY_APP_SECRET
pnpm dev # http://localhost:3042
Requires Node ≥22.11 and pnpm. Full env table, test drive, deploy and capture
material: docs/reference.md. Docs index:
docs/README.md. Contributing: CONTRIBUTING.md.
| Area | Where |
|---|---|
| Next.js app | apps/web/ (components/, hooks/, pages/, …) |
| Domain logic | packages/shared/ |
| 0G evidence layer | packages/shared-0g/ |
| Agent APIs | apps/web/pages/api/agent/ |
| Contracts | contracts/ (+ contracts/test/), scripts/Deploy*.s.sol (Foundry libs in root lib/) |
| Ops | ops/ · x402 smoke scripts scripts/smoke/ |
| Doc | Answer |
|---|---|
docs/product.md | What DiversiFi is, for whom, and what's live vs. intended |
docs/guardian.md | The trust model — what bounds execution, where it's enforced, agent identity, the claims audit |
docs/architecture.md | System, chains and settlement rails, the 0G evidence stack |
docs/plan.md | What we're building now, in priority order |
docs/reference.md | Setup, env vars, endpoints, deploy, demo capture |
docs/internal/demo-night-runbook.md | The timed 3-minute walletless demo, with preflight and fallbacks |
docs/design-language.md | Surface contract for any user-facing work |
docs/history/roadmap-log.md | Dated record of what shipped |
docs/archive/ | Closed grant tracks and past submissions — reference, not roadmap |
Prior-work disclosure. DiversiFi is an existing product. All Stellar
support was built during HackMeridian — the Stellar network adapter, wallet
integration, exchange flow, receipt path, and this section. The underlying
risk/philosophy/ledger machinery predates the event; the hackathon scope is
Stellar-specific work only. Executed plan:
docs/archive/tracks/hackmeridian-2026-10-execution-plan.md.
What the Stellar integration does. Stellar testnet is a first-class
network mode: connect a Stellar wallet (Freighter, LOBSTR, xBull, Albedo, Hana or Rabet via the StellarWalletsKit picker) → the instrument surfaces real G-address
balances → a supported move is prepared as a strict-send path payment
(XLM → testnet USDC, min-destination computed from a live route) → the user
reviews exact terms and signs in their own wallet → the confirmed transaction
renders as a ledger-verified receipt with an explorer link. Stellar never
masquerades as an EVM chain — a dedicated adapter (apps/web/lib/stellar/)
isolates Horizon reads, validates prepared transactions (fee-bump/signed/legacy
XDR rejected), and recovers pending submissions durably.
| Piece | Where |
|---|---|
| Stellar adapter (Horizon isolation, strict validation, pending recovery) | apps/web/lib/stellar/ |
| Wallet (StellarWalletsKit picker — Freighter/LOBSTR/xBull/Albedo/Hana/Rabet + WalletConnect mobile; direct-Freighter fallback) | apps/web/lib/stellar/wallet.ts |
| Exchange flow + receipt | apps/web/components/swap/StellarExchange.tsx, PairStage.tsx |
| Home/Shield honest Stellar surface | apps/web/components/stellar/StellarModePanel.tsx |
Agent intent (open_stellar — navigation only, never signing) | use-agent-chat.ts, guardian-interaction.ts |
| Stellar voice-of-the-corridor verbs (speech previews/drafts — never commits) | apps/web/lib/voice-verbs.ts |
On-chain evidence (all Stellar testnet):
| Demonstration | Artifact |
|---|---|
| XLM → USDC strict-send path payment, wallet-signed | Exchange flow (pnpm check-stellar-routes re-queries the live route) |
| Soroban RecommendationLedger contract | contracts-stellar/ → CDQUT55ICBFEC6JGMZDJEHA47ECWQOAYHLNFHO2ULFLDQVIDNMKL4WT6, deploy tx b3115c87…, records seq 1 a0a2b75b… / seq 2 f8e41fa3… |
| Smart account + on-chain spending policy (agent key can only move funds inside the cap) | account CBH5NT2HEIQGBMTABOPRPRUJKDNHU3HFIY6STSN7QZSCX7WXSLCOAVC2, policy install abc2fa2e…, within-limit spend accepted a8ab4ab0…, over-limit rejected on-chain (policy error #3221) — scripts/stellar-smart-account-policy.mts reproduces both legs |
| Claimable-balance corridor (bounded proposal claimable only by the counterparty) | create ffde38e3…, claim 0b8927b8… — scripts/stellar-claimable-balance.ts |
| SEP-24 anchor discovery (read-only: which assets an anchor advertises; not a redemption claim) |
Demo: https://diversifi.persidian.com (wallet picker → Stellar testnet → Exchange). Video walkthrough covers one success and one refusal (a spoken commit being declined — voice never signs).
RecommendationLedger (Celo, Arbitrum, 0G) and
AgenticID #1, the x402 intelligence gateway.docs/plan.md.docs/plan.md §11). This is the build-phase target described in the hackathon submission; the demo and idea-phase deliverable is the plan above.scripts/sep24-anchor-discovery.ts — testanchor.stellar.org advertises USDC deposit + withdraw |