From 77a2456a63b3eebcc53573839c13127c7cbfb697 Mon Sep 17 00:00:00 2001
From: Eras256 <219895655+Eras256@users.noreply.github.com>
Date: Wed, 2 Dec 2026 22:05:30 -0600
Subject: [PATCH 1/2] sync: site and README from core at 7a08a40
Brings the public copy of apps/web and the README up to date with the
private source (last sync was 25 Nov 2026).
- Site: link previews refreshed, /chains added, Treasury and Payouts
pages replaced by the archive page (both were tested only with the
team's own funds and discontinued on 30 Nov 2026), SCF removed from the
site, the Codigo 402 and treasury-node blog posts removed.
- README: current state, Treasury and Payouts mentioned once, closed
routes listed, package versions re-checked on 2 Dec 2026.
- pnpm-lock.yaml regenerated in this tree for nirium-pollar-adapter ^0.7.0.
Only apps/web, README.md and the lockfile change. Packages, contracts and
workflows are untouched.
Co-Authored-By: Claude Opus 5.5
---
README.md | 346 +-
apps/web/app/(app)/agents/layout.tsx | 4 +-
apps/web/app/(app)/agents/page.tsx | 131 +-
apps/web/app/(app)/analytics/layout.tsx | 4 +-
apps/web/app/(app)/analytics/page.tsx | 178 +-
.../(app)/blog/bbva-open-deal-room/layout.tsx | 2 +-
.../codigo-402-agentes-que-pagan/layout.tsx | 12 -
.../codigo-402-agentes-que-pagan/page.tsx | 261 --
apps/web/app/(app)/blog/page.tsx | 2 +-
apps/web/app/(app)/blog/posts.ts | 12 +-
.../layout.tsx | 15 -
.../treasury-node-verify-it-yourself/page.tsx | 226 --
apps/web/app/(app)/build/layout.tsx | 2 +-
apps/web/app/(app)/build/page.tsx | 54 +-
apps/web/app/(app)/chains/layout.tsx | 11 +
apps/web/app/(app)/chains/page.tsx | 395 ++
apps/web/app/(app)/coc/page.tsx | 28 +-
apps/web/app/(app)/compliance/page.tsx | 6 +-
apps/web/app/(app)/dashboard/layout.tsx | 2 +-
apps/web/app/(app)/dashboard/page.tsx | 3358 +----------------
apps/web/app/(app)/developers/layout.tsx | 2 +-
apps/web/app/(app)/developers/page.tsx | 111 +-
apps/web/app/(app)/disclaimers/page.tsx | 65 +-
apps/web/app/(app)/docs/page.tsx | 70 +-
apps/web/app/(app)/how-to-use/layout.tsx | 2 +-
apps/web/app/(app)/keys/layout.tsx | 2 +-
apps/web/app/(app)/keys/page.tsx | 4 +-
apps/web/app/(app)/manifesto/layout.tsx | 2 +-
apps/web/app/(app)/payouts/layout.tsx | 4 +-
apps/web/app/(app)/payouts/page.tsx | 478 +--
.../pollar-adapter-documentation/page.tsx | 11 +-
apps/web/app/(app)/pricing/page.tsx | 95 +-
apps/web/app/(app)/privacy/page.tsx | 42 +-
apps/web/app/(app)/ramp/page.tsx | 62 +-
apps/web/app/(app)/risk-disclosure/layout.tsx | 2 +-
apps/web/app/(app)/risk-disclosure/page.tsx | 4 +-
apps/web/app/(app)/security/layout.tsx | 2 +-
apps/web/app/(app)/security/page.tsx | 345 +-
apps/web/app/(app)/stats/StatsClient.tsx | 58 +-
.../app/(app)/treasury/builder/CustomNode.tsx | 90 -
.../web/app/(app)/treasury/builder/layout.tsx | 4 +-
apps/web/app/(app)/treasury/builder/page.tsx | 886 +----
apps/web/app/(app)/treasury/layout.tsx | 4 +-
apps/web/app/(app)/treasury/page.tsx | 337 +-
apps/web/app/(app)/treasury/vault/layout.tsx | 4 +-
apps/web/app/(app)/treasury/vault/page.tsx | 109 +-
apps/web/app/(app)/verify/page.tsx | 248 +-
apps/web/app/api/chain-stats/route.ts | 59 +
apps/web/app/api/reporting-summary/route.ts | 5 +-
apps/web/app/api/stats/statsData.ts | 29 +-
apps/web/app/blocked/page.tsx | 4 +-
apps/web/app/build/niriumtober/page.tsx | 76 +-
apps/web/app/globals.css | 12 +-
apps/web/app/layout.tsx | 18 +-
apps/web/app/page.tsx | 206 +-
apps/web/app/sitemap.ts | 8 +-
.../web/components/analytics/NodeActivity.tsx | 88 +-
.../analytics/ReceiptsSettlements.tsx | 9 +-
.../web/components/dashboard/MarketTicker.tsx | 255 --
.../components/home/BuiltWithEcosystem.tsx | 50 +-
apps/web/components/home/HeroSeal.tsx | 191 +
apps/web/components/home/SocialProof.tsx | 4 +-
.../components/home/TreasuryPlainTerms.tsx | 21 +-
apps/web/components/layout/AppLayout.tsx | 36 +-
apps/web/components/layout/Footer.tsx | 152 +-
apps/web/components/layout/Navbar.tsx | 91 +-
apps/web/components/layout/OpsConsole.tsx | 54 +-
apps/web/components/layout/TestnetBanner.tsx | 10 +-
apps/web/components/legal/LegalDisclaimer.tsx | 8 +-
.../components/shared/NetworkSwitchModal.tsx | 56 +-
.../components/shared/SecurityDisclaimer.tsx | 13 +-
apps/web/components/ui/ChatBot.tsx | 71 +-
apps/web/components/ui/ComplianceBanner.tsx | 3 +-
apps/web/dictionaries/en.json | 253 +-
apps/web/dictionaries/es.json | 249 +-
apps/web/lib/og/sections.ts | 125 +-
apps/web/lib/statsEs.ts | 4 +-
apps/web/middleware.ts | 14 +
apps/web/package.json | 2 +-
apps/web/public/legal/payouts-terms-v1.md | 14 +-
.../legal/restricted-jurisdictions-v1.md | 45 +-
apps/web/public/llms.txt | 12 +-
apps/web/public/nirium-api.yaml | 1509 --------
apps/web/vercel.json | 100 +-
pnpm-lock.yaml | 10 +-
85 files changed, 2205 insertions(+), 9753 deletions(-)
delete mode 100644 apps/web/app/(app)/blog/codigo-402-agentes-que-pagan/layout.tsx
delete mode 100644 apps/web/app/(app)/blog/codigo-402-agentes-que-pagan/page.tsx
delete mode 100644 apps/web/app/(app)/blog/treasury-node-verify-it-yourself/layout.tsx
delete mode 100644 apps/web/app/(app)/blog/treasury-node-verify-it-yourself/page.tsx
create mode 100644 apps/web/app/(app)/chains/layout.tsx
create mode 100755 apps/web/app/(app)/chains/page.tsx
delete mode 100644 apps/web/app/(app)/treasury/builder/CustomNode.tsx
create mode 100755 apps/web/app/api/chain-stats/route.ts
delete mode 100644 apps/web/components/dashboard/MarketTicker.tsx
create mode 100755 apps/web/components/home/HeroSeal.tsx
delete mode 100644 apps/web/public/nirium-api.yaml
diff --git a/README.md b/README.md
index 58851f27..352eb09f 100644
--- a/README.md
+++ b/README.md
@@ -3,44 +3,43 @@
[](https://github.com/nirium-protocol/nirium-core/actions/workflows/ci.yml)
[](https://github.com/nirium-protocol/nirium-core/actions/workflows/security-gate.yml)
-Payment rails, audit and execution on Stellar.
+Money moves because of a document that can change. Nirium records the version it moved on, signed by whoever declares it, so anyone can check which one it was: Audit Trail, Reporting and x402 payments, live on Stellar mainnet.
-This is the full Nirium monorepo: the Soroban contracts, the nirium.xyz web app, the fuzz targets and copies of the client packages. The packages published to npm and PyPI (SDKs, CLI, MCP server) are developed and released from [nirium-protocol/nirium](https://github.com/nirium-protocol/nirium); the copies under `packages/` here can trail those releases. The source-verified NiriumVault build on Stellar Expert points to this repository.
+This is the Nirium monorepo: the Soroban contracts, the nirium.xyz web app, the fuzz targets and copies of the client packages. The packages published to npm and PyPI (TypeScript and Python packages, CLI, MCP server) are developed and released from [nirium-protocol/nirium](https://github.com/nirium-protocol/nirium); the copies under `packages/` here can trail those releases. The source-verified NiriumVault build on Stellar Expert points to this repository.
+
+Nirium also runs on other chains, each in its own repo: [nirium-solana](https://github.com/nirium-protocol/nirium-solana) and [nirium-avalanche](https://github.com/nirium-protocol/nirium-avalanche), with first versions on Base and Arbitrum. See [nirium.xyz/chains](https://nirium.xyz/chains).
**Reviewing Nirium?** [`FOR-REVIEWERS.md`](https://github.com/nirium-protocol/nirium/blob/main/docs/FOR-REVIEWERS.md) is a ten-minute path through things you can check yourself, and every piece of evidence, with its network and date, is in [`EVIDENCE.md`](https://github.com/nirium-protocol/nirium/blob/main/EVIDENCE.md). Verify any receipt with no account at [nirium.xyz/verify](https://nirium.xyz/verify).
---
-> **⚠️ MANDATORY LEGAL DISCLAIMER**
+> **⚠️ LEGAL DISCLAIMER**
>
-> Nirium is **experimental software**. Nirium's own **NiriumVault** treasury contract remains on **Stellar Testnet, audit-gated**: no independent third-party audit has occurred yet, and no real client funds ever reach that contract.
+> Nirium is **experimental software**. Nirium's own **NiriumVault** contract remains on **Stellar Testnet, audit-gated**: no independent third-party audit has occurred yet, and no real client funds ever reach it.
>
-> The **autonomous treasury node runs on mainnet over a DeFindex vault the client owns**: a third-party contract audited by OtterSec, not ours. Nirium holds only the vault's `RebalanceManager` role, which by the contract's own design cannot withdraw funds, change roles, or pause anything. Autonomous rebalancing on mainnet is **invite-only** until we have a written legal opinion. A separate set of receive-only nodes (x402 micropayments, IPFS audit anchoring, non-custodial Payouts, Reporting) also run in **mainnet early access**; several move real USDC under the client's own wallet signature - see the evidence table below for which ones. **MPP Charge is testnet-only and experimental**: verified with settled payments on testnet (15 Oct 2026), but it has never settled on mainnet - see the evidence table's MPP row for the exact status. **Nirium never custodies funds.**
+> On mainnet, Nirium runs receive-only nodes: x402 micropayments, IPFS audit anchoring and Reporting. The mainnet API box holds **no signing key**; the client signs every payment. **MPP Charge is experimental**: verified with settled payments on testnet (15 Oct 2026), never settled on mainnet. **Nirium never custodies funds.**
>
-> **Update, 2026-10-08 (checked against the live `/api/tickers` on both networks that day):** until today the site, the API and the docs showed a CETES rate of 5.57% under labels such as "Banxico ref", "Today" and, on one dashboard card, "LIVE". It was a fixed reference value read once from app.etherfuse.com/b/cetes in June 2026, not a live reading and not from Banxico. The labels are corrected; the value itself is unchanged and still not live. The same release stops publishing `1 / xlmPrice` as the USDC price in `/api/tickers`: that figure (about 5.25) was how many XLM one dollar buys, and is now `null`.
+> Treasury and Payouts were tested only with the team's own funds and discontinued on 30 Nov 2026.
>
-> **Nirium is not financial advice. It is not an investment product. It does not guarantee yields, dividends, asset appreciation, or returns of any kind.** Reference rate data shown on the dashboard (Blend supply rate, Etherfuse CETES rate) is **public protocol information only**, not projections or promises of return. XLM and Stellar assets are volatile. Smart contracts carry risk even when audited. Use at your own risk.
+> **Nirium is not financial advice. It is not an investment product. It does not guarantee yields, dividends, asset appreciation, or returns of any kind.** Reference rate data shown on the site is **public protocol information only**. XLM and Stellar assets are volatile. Smart contracts carry risk even when audited. Use at your own risk.
>
> This project does not use grant funds for speculation, trading, investment advice, or marketing of products promising interest or appreciation, in accordance with the [Stellar Community Fund Official Rules](https://stellar.gitbook.io/scf-handbook/scf-awards/official-rules-for-submissions).
---
-**Nirium is software, not a financial service**: autonomous treasury and agentic payments (x402; MPP experimental) on Stellar/Soroban, for B2B fintechs and developers rather than consumers.
-
-**The product is the rail, not the data.** A 102-endpoint API and TypeScript/Python SDKs that let a fintech both *pay* for machine-to-machine services and *charge* for its own, plus execution nodes that run treasury operations on their own, inside limits the client sets and can revoke.
+**Nirium is software, not a financial service**, for fintechs, developers and AI agents rather than consumers.
-### Execution Nodes
+### Nodes
| # | Node | Status | Network | What it does |
|---|---|---|---|---|
-| 1 | **Settlement** (x402 active; MPP Charge experimental) | x402 ✅ Active · MPP ⚠️ Experimental | both | Per-request micropayments for AI agents. Pay for others' APIs with `initX402()` today - x402 has confirmed mainnet settlements (see the evidence table below). MPP Charge is implemented but experimental: verified on testnet on 15 Oct 2026 with settled payments in pull and push mode (it had rejected a valid payment on 1 Oct); mainnet is unverified. **Update, 2026-10-07:** this previously said charging for your own with `x402Serve()` was invite-only, same gate as Treasury and Payouts - there is no such gate. `x402Serve()` is a general-purpose library that runs on the integrator's own server; Nirium does not operate or gate it. Third-party use is an open legal question, with no written legal opinion yet - compliance is the integrator's own responsibility. |
-| 2 | **Audit Trail** | ✅ Active | both | Evidence anchored to IPFS as tamper-evident receipts (a changed document no longer matches its CID), optionally **signed by the agent that produced it** (ed25519 over a domain-separated statement), so the CID proves not just *that* a fact is unaltered but *who declared it*. |
-| 3 | **Payouts** | ✅ Active (mainnet invite-only) | both | Non-custodial batch disbursements, up to 100 recipients per transaction. Mainnet is invite-only; independent service payments only (contractors, freelancers, B2B); never subordinate-employee salary. A milestone variant (Trustless Work Multi-Release - one contract, a distinct receiver per milestone) runs on testnet: `GET /api/payroll/escrow/info`. |
-| 4 | **Treasury Rebalance** | ✅ Active (mainnet invite-only) | both | Moves idle capital into a CETES strategy and back, on its own, over a **DeFindex vault the client owns**. Live on mainnet, invite-only until a written legal opinion. |
-| 5 | **Reporting** | ✅ Active | both | Institutional-format summaries and CSV/JSON exports over anchored receipts. Read-only; regulatory filings remain the client's responsibility. |
-| 6 | **Policy Gate** | ✅ Active | both | Routes every outgoing x402 payment through your own policy engine before it is signed (`initX402({ policy })`, #96). Binds the decision to the exact authorization; a deny, timeout, or stale answer signs nothing. Not a remote key-custody control - it wraps the signing call inside the same process that holds the key, so direct access to that signer bypasses it. See the roadmap for a stronger, not-yet-designed alternative. |
+| 1 | **Settlement** (x402; MPP Charge experimental) | x402 ✅ Active · MPP ⚠️ Experimental | both | Per-request micropayments for AI agents. Pay for others' APIs with `initX402()`, charge for your own with `x402Serve()`. `x402Serve()` is a library that runs on the integrator's own server; Nirium does not operate or gate it, and compliance is the integrator's own responsibility. |
+| 2 | **Audit Trail** | ✅ Active | both | Evidence anchored to IPFS as tamper-evident receipts (a changed document no longer matches its CID), optionally **signed by whoever declares it** (ed25519 over a domain-separated statement). A receipt is worth what the ledger doesn't hold: what a payment was for, payments a policy refused, off-chain records. |
+| 3 | **Reporting** | ✅ Active | both | Summaries and CSV/JSON exports over anchored receipts. Read-only; regulatory filings remain the client's responsibility. |
+| 4 | **Policy Gate** | ✅ Active | both | Routes every outgoing x402 payment through your own policy engine before it is signed (`initX402({ policy })`). A deny, timeout or stale answer signs nothing. It wraps the signing call inside the same process that holds the key, so direct access to that signer bypasses it. |
+| - | Treasury Rebalance, Payouts | Discontinued 30 Nov 2026 | - | Tested only with the team's own funds. Code archived, not deleted; the node answers `410`. |
-The framework supports up to 10 nodes per vault. Live catalog: `GET /api/nodes`.
+Live catalog: `GET /api/nodes`.
---
@@ -48,21 +47,18 @@ The framework supports up to 10 nodes per vault. Live catalog: `GET /api/nodes`.
Every claim below is a link. Nothing here asks to be believed.
-Who holds what. Your keys stay on your side: you sign every payment and every vault deposit or withdrawal. The mainnet API box holds no signing key, and receipts are hashes on IPFS that anyone can check.
-
```mermaid
flowchart TB
subgraph YOU["Your side: your keys"]
- APP["Your app, backend or AI agent nirium SDK, CLI or MCP"]
+ APP["Your app, backend or AI agent nirium package, CLI or MCP"]
KEY["Your key or wallet (Stellar keypair, SEP-43, Pollar)"]
- VAULT["Your Treasury vault client-owned, DeFindex"]
end
subgraph NIRIUM["Nirium: no client funds"]
API["Agent API on Fly mainnet box is receive-only, holds no signing key"]
WEB["nirium.xyz /verify, /stats"]
end
FAC["x402 facilitator independent: OpenZeppelin"]
- STELLAR[("Stellar USDC payments, Soroban")]
+ STELLAR[("Stellar USDC payments")]
IPFS[("IPFS receipt hashes")]
KEY -- "signs every payment" --> APP
APP -- "x402 payment" --> FAC
@@ -70,25 +66,20 @@ flowchart TB
APP -- "anchor a receipt hash" --> API
API -- "pins" --> IPFS
WEB -- "anyone verifies a CID" --> IPFS
- KEY -- "deposits and withdraws, you sign" --> VAULT
- API -. "proposes a rebalance, you sign (mainnet: invite-only)" .-> VAULT
- VAULT --- STELLAR
```
-
### Status at a glance
| Product | Status |
|---|---|
| x402 | Live on mainnet ([last settled payment 24 Nov 2026, our own test](https://stellar.expert/explorer/public/account/GCLBBPON256CV7ATEHM5B54BOKNC7GX53MBINJ42MHVXGDMMZ3ZWKBHP)) |
-| Audit Trail | Live on mainnet (last anchor 24 Nov 2026) |
+| Audit Trail | Live on mainnet (44 anchors, the last on 25 Nov 2026, our own notice) |
| Reporting | Live on mainnet |
-| Treasury Rebalance | Mainnet, invite-only (4 self-funded rebalances, last 6 Aug 2026) |
-| Payouts | Mainnet, invite-only (no mainnet runs yet) |
-| Policy hook (pre-sign `ALLOW`/`DENY`) | Experimental (TypeScript SDK; Python SDK since 0.12.9) |
-| MPP Charge | Testnet only |
+| Policy hook (pre-sign `ALLOW`/`DENY`) | Experimental (TypeScript package; Python since 0.12.9) |
+| MPP Charge | Testnet only (the client fails on `nirium` 0.20.0 and 0.21.0; use 0.19.8) |
+| Treasury and Payouts | Tested only with the team's own funds and discontinued on 30 Nov 2026 |
-The detailed tables below back each row with a transaction hash or a live endpoint - this one is just the summary. Statuses checked against Horizon and the live API on 22 Nov 2026.
+The tables below back each row with a transaction hash or a live endpoint. Statuses checked against Horizon and the live API on 28 Nov 2026; Treasury, Payouts and the closed endpoints re-checked on 2 Dec 2026.
### Mainnet (real value)
@@ -100,30 +91,21 @@ The detailed tables below back each row with a transaction hash or a live endpoi
| x402: paid from a social login (Pollar) | Settled 5 Aug 2026, holding **zero XLM** end to end | [`e4fa3df9…16ed9`](https://stellar.expert/explorer/public/tx/e4fa3df9cb225a4d7f64dd0082eb38218ada4b4af3378f288989a5d4b1116ed9) |
| `nirium-pollar-adapter`: end-to-end from a clean npm install | Settled 27 Jul 2026, standard Stellar keypair signer (the pluggable-signer test, not Pollar-specific) | [`48136451…3795e`](https://stellar.expert/explorer/public/tx/4813645165d15af1e503d66ef84d826e83fff235d4f98c3f6eba8a4e7c83795e) · receipt [`QmRzgTtVPg…`](https://gateway.pinata.cloud/ipfs/QmRzgTtVPg5a5pipi8npfpXt81xiGG5Ue5Rygd6Fye1aon) · **Update, 2026-10-07:** the receipt above no longer resolves on the Pinata gateway (404 on two checks). The original bytes are not kept in this repo, so it was not re-pinned under the same CID. The payment itself is verifiable on Stellar Expert. **Update, 2026-11-10:** the receipt resolves again - 200 on both the Pinata gateway and `nirium.myfilebase.com`. |
| MPP Charge | **Experimental**: implemented, `charge.enabled: true` on both networks; **testnet verified 2026-10-15** with settled payments in pull and push mode ([`b8c4ed56…`](https://stellar.expert/explorer/testnet/tx/b8c4ed568f6eb41321b97d251d7f3727c57570a226d187e3675a9df03496e3ed), [`96d43d6f…`](https://stellar.expert/explorer/testnet/tx/96d43d6f4cf38fbd3a4df2c2bb6625e650c0d0509184d86c1e42c7e6ebdf242c)); mainnet unverified, no confirmed mainnet settlement (**Update, 2026-10-07, checked live against Horizon and `/api/v1/mpp/info`:** this row previously read "Live: `market` charges and delivers" without a transaction hash, unlike every other row in this table. A 2026-10-01 end-to-end test found the testnet box rejecting real payment proofs with `verification-failed`, including a push flow where the payment settled on-chain but the content was never delivered; the root cause was not determined. No MPP Charge-tagged credit appears anywhere in the mainnet recipient's payment history, past or since. **Update, 2026-10-15:** re-tested with `nirium@0.16.1` against the testnet box: `pull` and `push` both settled and delivered, so the 1 Oct failure no longer reproduces. Mainnet is still untested.) | [`/api/v1/mpp/info`](https://nirium-agent-mainnet.fly.dev/api/v1/mpp/info) |
-| Treasury: vault deployed | 6 Aug 2026, **client signs** | [`93ff6284…78416`](https://stellar.expert/explorer/public/tx/93ff6284cdf03706624c88434a79fba1b213ee547f58e09a9248f75373178416) |
-| Treasury: autonomous invest | 6 Aug 2026, **the agent signs** | [`82d73f53…6b3d4`](https://stellar.expert/explorer/public/tx/82d73f537e907140367f9343f63a36704c74a5286aced7a938cee8fffb56b3d4) |
-| Treasury: the vault itself | Client-owned, roles readable on-chain | [`CAMDXG6L…K57MH`](https://stellar.expert/explorer/public/contract/CAMDXG6L4LXLXXV675KZSHM3BMSETZ4NVMC7JYIQCZ2JTG54OMSK57MH) |
-| Payouts | Live, **invite-only** (tier-gated + terms acceptance); no mainnet payout runs yet | [`/api/payroll/info`](https://nirium-agent-mainnet.fly.dev/api/payroll/info) |
-| Trustless Work escrow: deploy path timing, 3 Sep 2026 | Real deploys, self-owned wallets only - **not** the milestone fast-signer below, which stays testnet-only | [`65568e79…f2f3d6e`](https://stellar.expert/explorer/public/tx/65568e79ef61f78e153156158983ab4cdb5325d0813fc1e8bf9f28b74f2f3d6e) (Horizon direct) · [`7d5690cf…02e4b9e6`](https://stellar.expert/explorer/public/tx/7d5690cf431cd32ac4e28780f57c9291ac0a10d670186b9f6ccf495602e4b9e6) (via Trustless Work's own relay) |
-| Trustless Work escrow: full cycle, 3 Sep 2026 | deploy → fund → approve → release, real 0.50 USDC, **self-directed** (one key, every role, no third-party client). Proves the mechanism - not a decision to open this flow to Payouts production, which waits on a written legal opinion | [`4110dd16…12aefe84`](https://stellar.expert/explorer/public/tx/4110dd16df6c7cdaf50d89f7402e3e51de0ac4f63255f6601e800e3912aefe84) → [`7b181a13…451c09c`](https://stellar.expert/explorer/public/tx/7b181a13160d6d7170f78ba9a4e15309cc0a8f6e20a1db01adfcdb667451c09c) → [`a3aa35a2…4096ca5`](https://stellar.expert/explorer/public/tx/a3aa35a272774547d3ca4ce5a32e361641daac6cf829ecf8951b83a194096ca5) → [`0c533088…a8192b`](https://stellar.expert/explorer/public/tx/0c533088ab6326a78b9f79c197b7636ca4662a0d72562968ddea37f370a8192b) - receiver balance moved by exactly 0.4985 USDC, 0.50 minus Trustless Work's fixed 0.3% fee |
| Audit + Reporting | Live | [`/api/audit/info`](https://nirium-agent-mainnet.fly.dev/api/audit/info) · [`/api/reporting/info`](https://nirium-agent-mainnet.fly.dev/api/reporting/info) |
-| Autonomous rebalancing | **Invite-only** until we have a written legal opinion | enabling a vault takes a commit to this repo, with author and date |
-| **NiriumVault (our own contract)** | ❌ **Not on mainnet**: audit-gated | n/a |
| **MPP Channel mode** | ❌ **Not on mainnet**: deposit contract = temporary custody, same audit gate | [`channel.enabled: false`](https://nirium-agent-mainnet.fly.dev/api/v1/mpp/info) |
| **LCP legal layer** | ❌ Off: terms pending a written legal opinion | n/a |
-### Testnet (no real value, where the loop and the key live)
+The transactions from the Treasury tests stay public in [EVIDENCE.md section 7](https://github.com/nirium-protocol/nirium/blob/main/EVIDENCE.md).
+
+### Testnet (no real value)
| What | Status | Verify |
|---|---|---|
-| API box | Live, full autonomous loop, agent holds a key | [`/health`](https://nirium-agent.fly.dev/health) · [`/api/loop/status`](https://nirium-agent.fly.dev/api/loop/status) |
+| API box | Live | [`/health`](https://nirium-agent.fly.dev/health) · [`/api/nodes`](https://nirium-agent.fly.dev/api/nodes) |
| NiriumVault | Live, source-verified on Stellar Expert (9 Nov 2026): treasury, delegation, flash loans, emergency pause (2-of-3 once cosigners are registered; none yet) | [`CDMFURE6…QOI2S2`](https://stellar.expert/explorer/testnet/contract/CDMFURE6MYROTA2A6DLD4TN2S4QTN64L2FZ2I2RY2AREONX6DUQOI2S2) |
| NiriumProtocol | Testnet, deployed 25 Oct 2026: no agents or strategies registered yet (checked 17 Nov 2026) | [`CBKCTMTC…CNSXX`](https://stellar.expert/explorer/testnet/contract/CBKCTMTCCZQIPEESLHHEZKXYSPWNO24NEG33T2XSAAAHPISBND5CNSXX) |
| Policy Account | Live: one `CallContract` rule, **no** `Default` rule | [`CCZW2WIF…B5LML`](https://stellar.expert/explorer/testnet/contract/CCZW2WIFAD7OQX35U5AILTNF32TCHQUYVPNB32GGKEKKPII2HF7B5LML) |
-| Treasury: full cycle, 5 Aug 2026 | deploy → deposit → autonomous invest | [`a96eec81…a2662`](https://stellar.expert/explorer/testnet/tx/a96eec81347731ced1505cd20be7bbc92d66fbc88c8e12e5376d685ff82a2662) → [`2c4df5a8…2c3b7`](https://stellar.expert/explorer/testnet/tx/2c4df5a85de8357c1f4868ddbb88aa123db04fc80967291fe3f06e9a9332c3b7) → [`c53d4746…52ed3`](https://stellar.expert/explorer/testnet/tx/c53d474658898af7ebbb84d17845902572147cfe1fb72965833e3d4cf7552ed3) |
-| Trustless Work escrow: full cycle, 2 Sep 2026 | deploy (human) → allowlist gate confirmed blocking, then permitting → approve + release milestone, both **agent-signed** | [`8c89ede2…5921f13`](https://stellar.expert/explorer/testnet/tx/8c89ede21a7b2246c2d0bef3d7ee0a4e7218f7ec7a07b2b3d3cc150d05921f13) |
-| Autonomous rebalancing | Live and open: this is the demonstration | [`/api/loop/status`](https://nirium-agent.fly.dev/api/loop/status) |
-| x402 `signals` / `execute` | Live and paid: the loop and the key exist here | [`/api/v1/premium/signals`](https://nirium-agent.fly.dev/api/v1/premium/signals) → `402` |
+| x402 `market` | Live and paid | [`/api/v1/premium/market`](https://nirium-agent.fly.dev/api/v1/premium/market) → `402` |
### Signed audit evidence (anyone can verify with only the CID)
@@ -134,42 +116,6 @@ Each document carries an ed25519 signature over `nirium-audit-v1: **The two networks are not two copies of the same thing.** Testnet is where the agent holds a key and rebalances on demand. That is the demonstration. Mainnet is where real value moves, and there the API box holds **no key at all**: a separate process with no HTTP surface signs the rebalances, and every fund movement a client makes is signed by the client. Never quote a testnet figure as if it were mainnet: deploying a vault costs ~0.038 XLM on testnet and ~1.4 XLM on mainnet, 47× more.
-
----
-
-## The Treasury Node: how an agent moves someone else's money without being able to take it
-
-This is the part that took the longest to get right, and it is worth stating precisely because the safety does not come from our promises.
-
-The client deploys a **DeFindex vault** (a third-party Soroban contract) with their own signature. That vault has four roles:
-
-| Role | Held by | Can do |
-|---|---|---|
-| Manager | **the client** | everything: pause, rescue, change roles |
-| Emergency Manager | **the client** | emergency stop |
-| Fee Receiver | **the client** | collect the vault fee (we set it to 0) |
-| **RebalanceManager** | **Nirium** | `rebalance()` and nothing else |
-
-`rebalance()` accepts four instructions: `Invest`, `Unwind`, `SwapExactIn`, `SwapExactOut`. **None of them takes a destination address**: `to` is hardcoded to the vault itself in every branch. Withdrawal is not *forbidden*, it is **inexpressible**. This was verified by reading DeFindex's source (not its docs) and confirmed by submitting real transactions: Soroban's simulator *records* `require_auth()` without verifying signatures, so simulating gives a false pass.
-
-The client can call `set_rebalance_manager` and remove us unilaterally, without notice, and we cannot stop them.
-
-**Verified on mainnet, with real funds:**
-
-| Step | Who signs | Transaction |
-|---|---|---|
-| Deploy vault | the client | [`93ff6284…78416`](https://stellar.expert/explorer/public/tx/93ff6284cdf03706624c88434a79fba1b213ee547f58e09a9248f75373178416) |
-| Invest into strategy | **the agent** | [`82d73f53…6b3d4`](https://stellar.expert/explorer/public/tx/82d73f537e907140367f9343f63a36704c74a5286aced7a938cee8fffb56b3d4) |
-
-That second transaction is the whole argument turned into evidence: the agent moved someone else's funds, and the contract gave it no way to take them out.
-
-**Audit scope, stated honestly:** the vault is DeFindex, audited by OtterSec (March 2025, 16 findings total - 13 of them vulnerabilities, all resolved; the other 3 were non-vulnerability suggestions), running a Blend V2 strategy (3 independent audits). The deployed WASM matches the public 1.0.0 release. What is *not* covered is the Etherfuse pool as an external dependency and each instance's configuration. **Fees:** Nirium takes no percentage of your capital; DeFindex, the protocol behind the vault, takes 20% of the yield it generates.
-
-**Update, 2026-10-24 (checked against the live SCF Integration List and on-chain contract data that day):** the CETES strategy above runs on a Blend lending pool (`CDMAVJPFXPADND3YRL4BSM3AKZWCTFMX27GLLXCML3PD62HEQS5FPVAI`, read directly from the strategy's own on-chain config). Blend currently carries **"Note: Blend temporarily removed from list"** on SCF's own Integration List (`stellar/scf-handbook`), its entire row struck through, while under review. Two real 2026 incidents hit Blend: YieldBlox/Blend V2 (~22-Feb-2026, ~$10.2-10.8M, an oracle misconfiguration via thin USTRY liquidity) and the Comet BLND-USDC backstop pool (~25-Aug-2026, ~$717K, a same-asset swap-accounting bug that paused Blend's backstop). Neither incident's affected pool is this one - YieldBlox's exploit drained a different pool entirely (`CCCCIQSDILITHMM7PBSLVDT5MISSY7R26MNZXCX4H7J5JQ5FPIYOGYFS`), and the Comet incident hit a separate backstop AMM pool (`CAS3FL6TLZKDGGSISDBWGGPXT3NRR4DYTZD7YOD3HMYO6LTJUVGRVEAM`), not any lending pool; Blend itself stated lending-pool depositors were not at risk in the August incident, only backstop depositors. This is not a claim that the Etherfuse/CETES pool is risk-free - only that it was not the pool involved in either known 2026 incident.
-
-The mainnet signer is a **separate process with its own key and no HTTP surface**: the mainnet API box holds no signing key at all, by design, and enforces it at startup.
-
---
## Why now
@@ -177,19 +123,18 @@ The mainnet signer is a **separate process with its own key and no HTTP surface*
Market context, high-confidence sources only - this is not traction (see the next section for that), and none of it implies any relationship with Nirium unless stated.
- **Mastercard published Verifiable Intent** ([mastercard.com](https://www.mastercard.com/us/en/news-and-trends/stories/2026/verifiable-intent.html)), an open standard for proving what a user actually authorized in an agent payment. Its own spec repo has two open issues asking the exact question Audit Trail already answers: [#37](https://github.com/agent-intent/verifiable-intent/issues/37) ("does VI check that a purchase matches what the user asked for, not only that it was authorized?") and [#42](https://github.com/agent-intent/verifiable-intent/issues/42) (what evidence anchors a decision after the fact). Verifying the payment is not the same problem as verifying the decision - that gap is Audit Trail's whole premise.
-- **Tokenized RWA on Stellar grew 360%+ in 2026**, nearing $4B, with roughly $490M of it non-U.S. sovereign debt - CETES included - per Cointelegraph ([cointelegraph.com](https://cointelegraph.com/news/stellar-tokenized-rwa-market-nears-4b-after-fourfold-2026-growth)). This is the asset class the Treasury Node rebalances into.
- **MPP shipped on a production mainnet**: Stripe and Tempo launched the Machine Payments Protocol on Tempo's mainnet in March 2026 ([theblock.co](https://www.theblock.co/post/394131/tempo-mainnet-goes-live-with-machine-payments-protocol-for-agents)). Nirium's own MPP Charge mode is testnet-only (see the status table above) - cited here as evidence the protocol itself is moving toward production elsewhere, not as our own traction.
- **Institutional auto-renewal infrastructure went live on Stellar**: Ascend and M1X Global completed the first institutional repo on Stellar using a sovereign-bond-backed stablecoin, with 72 automated hourly rolls over three days, announced 23-oct-2026 ([businesswire.com](https://www.businesswire.com/news/home/20261023351098/en/)). Unrelated to Nirium - cited only as a market signal that institutional-grade automation is landing on this chain.
+
---
## Market Traction: Developer Adoption & Verifiable On-Chain Activity
Traction is **self-generated and independently verifiable**. It does not depend on third-party announcements:
-- **Published SDKs** on npm and PyPI (`nirium`) with recorded downloads across multiple versions.
-- **Live autonomous agent** running 24/7 on Stellar Testnet, every rebalance verifiable on Stellar Expert.
-- **Real mainnet activity**: x402 micropayments settling in production, and a full treasury cycle executed with real funds (hashes above).
+- **Published packages** on npm and PyPI (`nirium`) with recorded downloads across multiple versions.
+- **Real mainnet activity**: x402 micropayments settling in production (hashes above).
- **Open API + free sandbox keys**, so any developer can integrate and exercise the contracts directly.
- **Real upstream engagement** - issues we filed and fixes we shipped against the
Stellar and x402 ecosystems, most recent first. Every row links to the public thread;
@@ -226,104 +171,75 @@ We provide the middleware; independent operators (e.g. Etherfuse) execute settle
## Architecture
```
-Fintech / Institution (B2B / A2A)
+Fintech, developer or AI agent
|
v
- [Next.js 15 Dashboard: nirium.xyz]
- [i18n: EN / ES]
+ [Next.js 15 site: nirium.xyz, EN / ES]
|
v
- [Agent API: dual network, 102 endpoints]
- |-- nirium-agent.fly.dev (testnet, full autonomous loop, agent holds a key)
+ [Agent API: dual network]
+ |-- nirium-agent.fly.dev (testnet)
|-- nirium-agent-mainnet.fly.dev (mainnet, receive-only, NO signing key by design)
|-- Auth (JWT / API key / sandbox tiers)
- |-- legalShield middleware (SCF CoC compliance)
|-- x402 + MPP payment middleware
- |-- Sliding-window rate limiting (300 rpm institutional)
- |-- domainLock + obfuscation code exists but is not mounted on any route
- | (Update, 2026-10-07: this line previously also listed "AML screening" as part
- | of the Agent API. That middleware was never imported or mounted anywhere in
- | the codebase since it was written - dead code, not a live control - and has
- | been removed. domainLock and obfuscation remain in the repo, equally unmounted.)
+ |-- Sliding-window rate limiting
|
v
- [Autonomous Execution Layer]
- |-- Autonomous node: LLM proposes, deterministic fallback decides if it stalls
- |-- Mainnet rebalancer: separate process, own key, no HTTP surface,
- | deterministic rule with no model in the signing path
- |-- Composable framework: up to 10 Execution Nodes per vault
+ [Soroban Contracts, testnet]
+ |-- NiriumVault (source-verified build, see Deployed Contracts)
+ |-- NiriumProtocol (reputation, strategy registry, scoring, skill gate)
+ |-- Policy Account (scopes an agent key to ONE vault: one CallContract
+ | rule, no Default rule; that absence IS the mechanism)
|
v
- [Soroban Contracts]
- |-- Testnet: NiriumVault (treasury, flash loans, delegation, emergency pause;
- | source-verified build, see Deployed Contracts)
- |-- Testnet: NiriumProtocol (ELO reputation, strategy registry, scoring, skill gate)
- |-- Testnet: Policy Account (scopes the agent key to ONE vault: one CallContract
- | rule, no Default rule; that absence IS the mechanism)
- |-- Mainnet: DeFindex vault (third-party, OtterSec-audited, owned by the client;
- | Nirium holds RebalanceManager only)
- |
- v
- [Supabase] ← logs, auth_keys, webhooks, payroll_runs, treasury_vaults, subscriptions
- [IPFS / Pinata] ← tamper-evident receipts; daily digest of confirmed executions
+ [Supabase] ← logs, auth_keys, webhooks, subscriptions
+ [IPFS / Pinata] ← tamper-evident receipts
```
---
## Core Features
-### Institutional API (102 endpoints: 101 HTTP + 1 WebSocket)
+### API
-Multi-tier authentication with sandbox accounts, self-service API keys (`/keys`, wallet-signed via SEP-53), tiers (free/sandbox/institutional/enterprise), and JWT for WebSocket. Full RBAC, sliding-window rate limiting. **Update, 2026-10-07:** this previously also said "AML checks, and domain lock" as live controls. Neither was ever mounted on any route - the AML middleware has been removed as dead code, and the domainLock/obfuscation modules remain in the repo, unused.
+Multi-tier authentication with sandbox accounts, self-service API keys (`/keys`, wallet-signed via SEP-53), tiers (free/sandbox/institutional/enterprise), and JWT for WebSocket. Sliding-window rate limiting.
| Access level | Endpoints |
|---|---|
-| Public (no key) | health, loop/status, execute-demo, signals/recent, skills, nodes, netdiag |
-| Protected (API key) | execute, market, tickers, stats, loop control, webhooks, subscriptions, skills/install, payroll/\*, treasury/\* |
-| Paid (x402 / MPP) | premium/\*, mpp/\* |
+| Public (no key) | health, loop/status, skills, nodes, netdiag, audit/info, reporting/info |
+| Protected (API key) | market, tickers, stats, webhooks, subscriptions, skills/install |
+| Paid (x402 / MPP) | `premium/market`, `mpp/market` ($0.05 USDC, both networks) |
| WebSocket (JWT) | `/ws/signals`, signal stream (the hosted endpoint did not accept connections when checked on 21 Nov 2026) |
| Admin only | system/health, config/llm |
-**Endpoints charge where the capability exists, not where it reads better.** The mainnet box holds no signing key and runs no autonomous loop, so `premium/signals` and `premium/execute` return `501` there instead of charging for an empty answer. `premium/market` charges and delivers on both networks.
-
-Full specification: [API_DOCUMENTATION_OPENAPI.yaml](API_DOCUMENTATION_OPENAPI.yaml)
-
-### Autonomous On-Chain Execution (Soroban)
-
-Strategies dispatched to the NiriumVault contract on testnet, all verifiable on Stellar Expert:
+Closed: `premium/signals`, `premium/execute`, `mpp/signals` and `signals/recent` since 1 Dec 2026; `execute-demo`, the Payouts runs and the Treasury write routes since 30 Nov 2026. They answer `410` without charging.
-- `flash-loan-arb` / `flash-loan` → `flash_loan_execute`: atomic flash loans with automatic revert on non-repayment
-- `path-arbitrage` / `path-vector` → `execute_path_arbitrage`: path payment discovery for XLM-USDC corridors
-- `cross-dex` → `execute_cross_dex`: cross-venue routing
-- `blend-yield` → `execute_blend_yield`: non-custodial allocation on Blend Protocol
-- `soroswap-swap` → `execute_soroswap_swap`: multi-hop execution with minimum-slippage enforcement
-
-The mainnet treasury path does **not** go through this router. It goes through the client-owned DeFindex vault described above.
+Full specification: [API_DOCUMENTATION_OPENAPI.yaml](API_DOCUMENTATION_OPENAPI.yaml) (it still lists the closed routes).
### x402 + MPP + MCP
-Any AI agent (Claude, GPT, custom) can access Nirium's premium data **per request** by paying USDC on Stellar: no account, no subscription. Adopted on launch day alongside emerging industry standards:
+Any AI agent (Claude, GPT, custom) can pay for Nirium's market data **per request** by paying USDC on Stellar: no account, no subscription. Adopted on launch day alongside emerging industry standards:
- x402 integrated April 2, 2026: same day as the Linux Foundation x402 Foundation launch
- MPP integrated April 3, 2026: a few weeks after Stripe and Tempo launched it (March 2026)
-**Both directions are supported.** `initX402()` pays for someone else's API, live today. `x402Serve()` charges for yours. **Update, 2026-10-07:** this previously said third-party facilitator use was invite-only, same gate as Treasury and Payouts - there is no such gate. `x402Serve()` is a general-purpose library that runs on the integrator's own server; Nirium does not operate or gate it. Third-party use is an open legal question, with no written legal opinion yet - compliance is the integrator's own responsibility:
+**Both directions are supported.** `initX402()` pays for someone else's API, live today. `x402Serve()` charges for yours. `x402Serve()` is a general-purpose library that runs on the integrator's own server; Nirium does not operate or gate it. Third-party use is an open legal question, with no written legal opinion yet - compliance is the integrator's own responsibility:
```typescript
import { x402Serve } from 'nirium';
app.use('/premium', x402Serve({
payTo: 'G...',
- routes: { 'GET /signals': '$0.02' },
+ routes: { 'GET /data': '$0.02' },
facilitatorApiKey: process.env.X402_FACILITATOR_API_KEY, // OpenZeppelin Channels, per network
}));
```
Replay protection and a per-IP rate limit are available since nirium 0.15.0 through the optional `guard`; without it, `x402Serve()` verifies and settles the payment and nothing else. On the paying side, both SDKs refuse more than $1 of USDC per payment by default unless the integrator raises the cap (Python since 0.12.0, which also refuses a 402 offered on another network).
-**MPP Charge is experimental**: implemented and verified on testnet (settled payments in pull and push mode, 15 Oct 2026); mainnet is unverified. Its design: the client signs a complete USDC transfer inside the request, the server validates it by simulation and broadcasts it, with no external facilitator. MPP's Channel mode is implemented but **disabled**, because its setup phase deploys a channel contract holding a deposit, which is temporary custody and falls under the same audit gate as our own vault.
+**MPP Charge is experimental**: implemented and verified on testnet (settled payments in pull and push mode, 15 Oct 2026); mainnet is unverified. The client signs a complete USDC transfer inside the request, and the server validates it by simulation and broadcasts it, with no external facilitator. MPP's Channel mode is implemented but **disabled**, because its setup deploys a channel contract holding a deposit, which would be temporary custody.
-The MCP server exposes Nirium as **25 tools** for Claude Desktop, Cursor, and any MCP-compatible IDE: 10 free, 9 authenticated, 1 informational, 3 paid over x402, 2 MPP tools (experimental).
+The MCP server exposes Nirium to Claude Desktop, Cursor and any MCP-compatible IDE: 14 tools by default (see the [nirium-mcp README](https://github.com/nirium-protocol/nirium/tree/main/packages/mcp)).
### Audit Trail Engine
@@ -339,63 +255,28 @@ Agent action or third-party event
An invalid signature returns **400 and nothing is anchored**: nobody can guarantee deletion from IPFS (anyone with the CID may have kept a copy), so a false attestation could outlive any correction. Third-party apps anchor through `POST /api/audit/log`. Anchor **hashes, not raw personal data**.
-### Live Market Ticker (Reference Data)
-
-> *Public protocol information. Not investment advice and not a return projection.*
-
-| Ticker | Source | Description |
-|---|---|---|
-| **XLM/USDC** | Reflector → CoinGecko → Stellar Expert | Multi-tier oracle price feed |
-| **SDEX spread** | Stellar Horizon orderbook | Live XLM/USDC spread in basis points |
-| **Blend rate** | Blend Protocol on-chain | Liquidity reference rate |
-| **CETES rate** | Etherfuse (fixed reference) | **Fixed** reference value 5.57%, read 2026-06 from app.etherfuse.com/b/cetes; not updated live |
-| **Base fee** | Stellar Horizon | Live network base fee |
-
-### Published SDKs (npm + PyPI)
+### Published packages (npm + PyPI)
-| SDK | Package | Version | Install |
+| Package | Registry | Version | Install |
|---|---|---|---|
-| TypeScript | [nirium (npm)](https://www.npmjs.com/package/nirium) | 0.20.0 | `npm install nirium` |
+| TypeScript | [nirium (npm)](https://www.npmjs.com/package/nirium) | 0.21.0 | `npm install nirium` |
| Python | [nirium (PyPI)](https://pypi.org/project/nirium/) | 0.13.0 | `pip install nirium` |
-| MCP server | [nirium-mcp (npm)](https://www.npmjs.com/package/nirium-mcp) | 0.6.13 | `npx nirium-mcp` |
-| Pollar adapter | [nirium-pollar-adapter (npm)](https://www.npmjs.com/package/nirium-pollar-adapter) | 0.6.6 | `npm install nirium-pollar-adapter` |
-| CLI | [nirium-cli (npm)](https://www.npmjs.com/package/nirium-cli) | 3.2.8 | `npm install -g nirium-cli` |
+| MCP server | [nirium-mcp (npm)](https://www.npmjs.com/package/nirium-mcp) | 0.8.0 | `npx nirium-mcp` |
+| CLI | [nirium-cli (npm)](https://www.npmjs.com/package/nirium-cli) | 4.0.0 | `npm install -g nirium-cli` |
+| Pollar adapter | [nirium-pollar-adapter (npm)](https://www.npmjs.com/package/nirium-pollar-adapter) | 0.7.0 | `npm install nirium-pollar-adapter` |
+| Solana | [nirium-solana (npm)](https://www.npmjs.com/package/nirium-solana) | 0.3.0 | `npm install nirium-solana` |
+| Avalanche | [nirium-avalanche (npm)](https://www.npmjs.com/package/nirium-avalanche) | 0.3.0 | `npm install nirium-avalanche` |
-Versions checked against the npm and PyPI registries on 23 Nov 2026. These packages are released from [nirium-protocol/nirium](https://github.com/nirium-protocol/nirium).
-
-> The two SDKs share full Treasury parity (12 methods, `proposeTreasuryRebalance()`/`propose_treasury_rebalance()` included) since 10-sep-2026. `x402Serve()` stays TypeScript-only - it's Express middleware, server-side Node, with no meaningful equivalent in an async Python client. Both SDKs include a resilient, auto-reconnecting WebSocket client (backoff, jitter, dedup; `ResilientSignalClient` in TypeScript), though the hosted stream at `/ws/signals` did not accept connections when checked on 18 Nov 2026. Python also ships a LangChain `BaseTool` (`pip install nirium[langchain]`) that TypeScript doesn't have.
+Versions checked against the npm and PyPI registries on 2 Dec 2026. Full docs: the package READMEs in [nirium-protocol/nirium](https://github.com/nirium-protocol/nirium).
```typescript
import { Agent } from 'nirium';
const agent = new Agent({ apiKey: 'sk_inst_...', baseUrl: 'https://nirium-agent.fly.dev' });
-const market = await agent.getMarket();
const nodes = await agent.getNodes();
await agent.anchorAuditRecord({ hash: '...' });
-agent.subscribe(signal => console.log(signal)); // hosted stream not accepting connections as of 18 Nov 2026
-```
-
-```python
-import asyncio
-from nirium import Agent
-
-async def main():
- agent = Agent(api_url="https://nirium-agent.fly.dev", api_key="sk_inst_...")
-
- market = await agent.get_market()
- await agent.anchor_audit_record(hash="...")
-
- @agent.on("signal")
- async def on_signal(data):
- print(data)
-
- await agent.subscribe()
-
-asyncio.run(main())
```
-Full SDK documentation: the package READMEs in nirium-protocol/nirium, [TypeScript](https://github.com/nirium-protocol/nirium/tree/main/packages/sdk) and [Python](https://github.com/nirium-protocol/nirium/tree/main/packages/sdk-python).
-
---
## Deployed Contracts
@@ -405,25 +286,15 @@ Full SDK documentation: the package READMEs in nirium-protocol/nirium, [TypeScri
| **NiriumVault** (source-verified, 9 Nov 2026) | Testnet | `CDMFURE6MYROTA2A6DLD4TN2S4QTN64L2FZ2I2RY2AREONX6DUQOI2S2` | Core treasury: vaults, agent delegation, strategy execution, flash loans, emergency pause (2-of-3 once cosigners are registered; none yet). Built by GitHub from [nirium-core@8489481](https://github.com/nirium-protocol/nirium-core/releases/tag/nirium-vault-v0.1.0_nirium-contracts_pkg0.1.0_cli28.1.0). Earlier, unverified deployments: `CBTWMZCG3P72EHFAQ4ZLSEBIOFYJC244H5J6DHZIJ56FHFWJ2CFAWSZU` (May 2026, used by nirium.xyz until 9 Nov, 180 vaults) and `CARTJIASVFHS4JJ24GVRO3XFQD37JCJEAXVPS7SPIWB3HLBXAYQ5SICV` (25 Oct 2026, never connected to the site) |
| **NiriumProtocol** | Testnet | `CBKCTMTCCZQIPEESLHHEZKXYSPWNO24NEG33T2XSAAAHPISBND5CNSXX` | Unified registry: ELO reputation, strategy marketplace, agent scoring, skill gate (x402). No agents or strategies registered yet (checked 17 Nov 2026) |
| **Policy Account** | Testnet | `CCZW2WIFAD7OQX35U5AILTNF32TCHQUYVPNB32GGKEKKPII2HF7B5LML` | Scopes an agent key to a single vault: one `CallContract` rule, **no** `Default` rule |
-| **DeFindex vault** (reference) | Mainnet | `CAMDXG6L4LXLXXV675KZSHM3BMSETZ4NVMC7JYIQCZ2JTG54OMSK57MH` | Third-party, OtterSec-audited, owned by its deployer; Nirium holds RebalanceManager only |
-
-Verifiable at [Stellar Expert](https://stellar.expert/explorer/public).
-
----
-
-## Side Projects
-
-### /build: Startup Ideas Hub
-Interactive dashboard with 12 startup ideas buildable on the Nirium API and SDKs, with code examples in TypeScript, Python, cURL, and MCP.
-Live: [nirium.xyz/build](https://nirium.xyz/build)
+Verifiable at [Stellar Expert](https://stellar.expert/explorer/testnet).
---
## Quick Start
### Requirements
-- Node.js >=22.12.0, pnpm 9+ (`@stellar/stellar-sdk` 17.x requires 22.12.0+; an older Node resolves an older, incompatible SDK silently)
+- Node.js >=22.12.0, pnpm 9+ (`@stellar/stellar-sdk` 17.x requires 22.12.0+; an older Node resolves an older, incompatible version silently)
- [Freighter Wallet](https://freighter.app/) for dashboard interactions
### Run locally
@@ -434,10 +305,11 @@ pnpm --filter nirium-web dev # web app on port 3000
The agent API (`packages/agent`) is private; this repo carries only its types, so `pnpm dev` (web + agent) only works in the private source. The web app talks to the hosted API boxes listed under Contact.
-### SDK quick start
+### Try it
```bash
-npm install nirium # TypeScript SDK
-pip install nirium # Python SDK
+# Testnet: no real funds required
+curl https://nirium-agent.fly.dev/health
+curl https://nirium-agent.fly.dev/api/nodes
```
---
@@ -446,16 +318,16 @@ pip install nirium # Python SDK
```
nirium-core/ (public repo)
-├── apps/web/ → Next.js 15 dashboard (nirium.xyz), i18n (EN/ES)
-├── packages/sdk/ → copy of the TypeScript SDK (npm: nirium; released from nirium-protocol/nirium)
-├── packages/sdk-python/ → copy of the Python SDK (PyPI: nirium; released from nirium-protocol/nirium)
-├── nirium-soroban-contracts/ → Soroban contracts (Rust): NiriumVault + NiriumProtocol, both deployed on testnet, 5 fuzz targets
+├── apps/web/ → Next.js 15 site (nirium.xyz), i18n (EN/ES)
+├── packages/sdk/ → copy of the TypeScript package (npm: nirium; released from nirium-protocol/nirium)
+├── packages/sdk-python/ → copy of the Python package (PyPI: nirium; released from nirium-protocol/nirium)
+├── packages/mcp/ → MCP server (npm: nirium-mcp)
+├── packages/cli/ → CLI (npm: nirium-cli)
+├── nirium-soroban-contracts/ → Soroban contracts (Rust): NiriumVault + NiriumProtocol, both on testnet, 5 fuzz targets
├── packages/policy-account/ → Soroban policy account (Rust), scopes a key to one vault
-├── .github/workflows/ → CI, release, security-gate, desktop release, NiriumVault verified release
+├── .github/workflows/ → CI, release, security-gate, NiriumVault verified release
│
-├── packages/agent/ → [private] Express 5 API, 102 endpoints (101 HTTP + 1 WebSocket); only its types are published here
-├── packages/mcp/ → [public] MCP server, 25 tools (npm: nirium-mcp)
-├── packages/cli/ → [public] CLI (npm: nirium-cli)
+├── packages/agent/ → [private] Express 5 API; only its types are published here
├── packages/desktop/ → [private] Tauri desktop wrapper
```
@@ -464,10 +336,9 @@ nirium-core/ (public repo)
## Security
- **Internal self-review only. No external audit and no penetration test has been done.** The report lists method, findings, fixes and what was left out; it carries no score and no certification.
-- Methodology: static analysis (`cargo clippy`, grep), runtime checks on testnet, `cargo audit` + `pnpm audit` in CI, fuzz smoke runs (5 cargo-fuzz targets), manual code review
-- **Update, 2026-10-12 (checked against `INTERNAL_SECURITY_AUDIT.md` and CI that day):** this section previously stated "83/83 vectors checked" and named the method "full-spectrum pentesting". The score and that label were removed: no pentest was performed and a pass count over our own checklist is not evidence an outside reader can check.
-- A formal independent audit is planned before any mainnet deployment of **NiriumVault**. The mainnet nodes running today do not depend on it: they either never touch funds (x402, audit, reporting), or the client signs every fund movement themselves (Payouts), or they operate a **third-party contract already audited by OtterSec** in a role that cannot withdraw (Treasury).
-- The mainnet API box holds **no signing key**, enforced at startup. The autonomous mainnet signer is a separate process with no HTTP surface.
+- Methodology: static analysis (`cargo clippy`, grep), runtime checks on testnet, `cargo audit` + `pnpm audit` in CI, fuzz smoke runs (5 cargo-fuzz targets), manual code review.
+- A formal independent audit is planned before any mainnet deployment of **NiriumVault**. The mainnet nodes running today never touch client funds: x402 is signed by the client and settled by an independent facilitator, and Audit Trail and Reporting only store and read hashes.
+- The mainnet API box holds **no signing key**, enforced at startup.
- See [SECURITY.md](SECURITY.md) for responsible disclosure, and [INTERNAL_SECURITY_AUDIT.md](INTERNAL_SECURITY_AUDIT.md) for the full report.
---
@@ -478,11 +349,11 @@ Nirium operates in alignment with the [Stellar Code of Conduct](https://stellar.
| Principle | Nirium status |
|---|---|
-| Stellar must be **core and valuable**, not auxiliary | ✅ Soroban contracts, SDEX, Blend, DeFindex, x402; MPP experimental; Stellar is the execution layer |
+| Stellar must be **core and valuable**, not auxiliary | ✅ Soroban contracts, x402 and Audit Trail anchoring on Stellar; MPP experimental |
| No speculation, wash trading, or insider trading with grant funds | ✅ Grant funds allocated to development, not trading |
| No investment advice or yield promises | ✅ Prominent disclaimer; rates displayed as protocol reference data only |
| No marketing promising interest, dividends, or appreciation | ✅ Language focuses on workflow automation, not guaranteed returns |
-| Open source, contracts and SDKs publicly available | ✅ Soroban contracts + TypeScript SDK + Python SDK in the public repo |
+| Open source, contracts and packages publicly available | ✅ Soroban contracts + TypeScript and Python packages in the public repo |
| Transparency | ✅ Every protocol action auditable on-chain via Stellar Expert |
| Integrity | ✅ No front-running or predatory extraction |
| Safety | ✅ Non-custodial by design; the user is the sole custodian of their keys |
@@ -502,22 +373,20 @@ Nirium received two Stellar Community Fund Instawards, through the Stellar Ambas
| Milestone | Status |
|---|---|
| Core infrastructure + x402 on testnet | ✅ Complete · MPP experimental |
-| Institutional API (102 endpoints) + published SDKs | ✅ Complete |
+| API + published TypeScript and Python packages | ✅ Complete |
| Internal security self-review (no external audit; see report) | ✅ Complete |
-| MCP server, 25 tools | ✅ Complete |
-| Etherfuse CETES integration (testnet + SPEI sandbox) | ✅ Complete |
+| MCP server | ✅ Complete |
| Self-service API keys console (`/keys`, wallet-signed via SEP-53) | ✅ Live |
-| Mainnet receive-only nodes (x402, Audit Trail, Reporting) | ✅ Live, early access |
-| MPP Charge, mainnet receive-only node | 🟡 Implemented, experimental - no confirmed mainnet settlement yet, see the evidence table above |
-| Payouts node, non-custodial batch disbursements | ✅ Live, mainnet invite-only |
-| `x402Serve()`, charge for your own API in one call | ✅ Shipped in SDK. **Update, 2026-10-07:** previously said third-party use was invite-only during legal review - there is no such gate. It's a general-purpose library the integrator runs on their own server; Nirium does not operate or gate it; compliance is theirs |
+| Mainnet receive-only nodes (x402, Audit Trail, Reporting) | ✅ Live |
+| MPP Charge, mainnet receive-only node | 🟡 Implemented, experimental - no confirmed mainnet settlement yet |
+| `x402Serve()`, charge for your own API in one call | ✅ Shipped. A library the integrator runs on their own server; Nirium does not operate or gate it |
| Agent attestation in the audit trail (signed evidence) | ✅ Shipped |
-| Treasury node on mainnet over a client-owned DeFindex vault | ✅ Live, invite-only until a written legal opinion |
-| Legal opinion on the treasury node (MX + cross-border) | ⏳ Pending: no lawyer engaged yet; a written opinion gates opening it beyond invite-only |
-| Etherfuse, enterprise KYB onboarding | **Update, 2026-10-14:** this row previously read "In progress". Etherfuse told us they cannot commit to a partnership or KYB track at this time, only co-marketing. Closed, not in progress. |
-| Stellar Community Fund Build Award | 🔄 Submitted for SCF #46 on 9 Nov 2026, in review |
+| Pre-sign policy hook | ✅ Shipped, experimental |
+| Solana and Avalanche (x402, pre-sign policy, payment-bound receipts) | ✅ Public repos, packages on npm |
+| Base and Arbitrum | 🟡 First versions |
+| Treasury and Payouts | Tested only with the team's own funds; discontinued 30 Nov 2026 |
+| Legal opinion (MX + cross-border) | ⏳ Pending a written legal opinion; no lawyer engaged yet |
| Formal independent audit of NiriumVault | Planned, ahead of any NiriumVault mainnet deployment |
-| NiriumVault mainnet deployment (real treasury funds) | Post formal audit |
| **KineGuard** (tentative name) - remote key-custody policy gate: the auditor endpoint would hold or gate access to the signing key itself, not just opine before the same process signs | 💭 Idea only. Not designed, not scoped, no date. Distinct from Policy Gate above (#6), which already covers "ask a policy engine before signing" - this would only be worth building if it closes that control's one real gap: code in the same process as the key can bypass a same-process hook. |
---
@@ -526,7 +395,6 @@ Nirium received two Stellar Community Fund Instawards, through the Stellar Ambas
- **Stellar Community Fund Instawards (2)**, via the Stellar Ambassador Program; full KYC complete (Airtable + Persona + W-8BEN). Payments on mainnet: [#1, 11 May 2026](https://stellar.expert/explorer/public/tx/fd0f7469ae78b76ca5c4186cd7e1b24c081c407758a92cff3a56f376d01e91d1) and [#2, 31 Jul 2026](https://stellar.expert/explorer/public/tx/7784ad6eb2b27ace75ce2fe4b7290fb1b8241da425331bfbda2e939b47759b7e)
- **Update, 2026-10-12 (checked against this repository):** this list previously included "Stellar Scale / Kickstart: 83/100 Bootcamp Impact; active graduate with ongoing SDF mentorship". The line was removed because it could not be verified (no source for the 83/100 figure or for an SDF mentorship), not reworded.
-- **Update, 2026-10-14 (confirmed directly with Etherfuse):** this line previously read "active technical integration (CETES on testnet + SPEI sandbox); enterprise KYB onboarding in progress". We used Etherfuse's CETES vault via DeFindex (4 mainnet rebalances, 6-Aug-2026); no partnership or KYB is in progress.
---
@@ -536,7 +404,7 @@ Nirium received two Stellar Community Fund Instawards, through the Stellar Ambas
|---|---|
| [SDKs.md](SDKs.md) | Historical SDK notes (SDK 0.5.0); the maintained docs are the package READMEs in nirium-protocol/nirium |
| [API_DOCUMENTATION_OPENAPI.yaml](API_DOCUMENTATION_OPENAPI.yaml) | OpenAPI specification |
-| [MCP_INTEGRATION_GUIDE.md](MCP_INTEGRATION_GUIDE.md) | Historical MCP guide (v0.4.0); the maintained one is the [nirium-mcp README](https://github.com/nirium-protocol/nirium/tree/main/packages/mcp) (25 tools) |
+| [MCP_INTEGRATION_GUIDE.md](MCP_INTEGRATION_GUIDE.md) | Historical MCP guide (v0.4.0); the maintained one is the [nirium-mcp README](https://github.com/nirium-protocol/nirium/tree/main/packages/mcp) (14 tools by default) |
| [INTERNAL_SECURITY_AUDIT.md](INTERNAL_SECURITY_AUDIT.md) | Internal security self-review: method, findings, fixes, out of scope |
| [NIRIUM_TECHNICAL_PAPER.md](NIRIUM_TECHNICAL_PAPER.md) | Technical whitepaper |
| [SECURITY.md](SECURITY.md) | Responsible vulnerability disclosure policy |
@@ -544,25 +412,6 @@ Nirium received two Stellar Community Fund Instawards, through the Stellar Ambas
---
-## Developer Quick Start
-
-```bash
-# Testnet: no real funds required
-curl https://nirium-agent.fly.dev/health
-
-# The node catalog: no key needed
-curl https://nirium-agent.fly.dev/api/nodes
-
-# Sandbox API key (free)
-curl https://nirium-agent.fly.dev/api/sandbox/status \
- -H "x-api-key: YOUR_SANDBOX_KEY"
-
-# WebSocket signal stream (hosted endpoint not accepting connections as of 21 Nov 2026;
-# run your own agent and use ws://localhost:3001/ws/signals?token=YOUR_JWT)
-```
-
----
-
## Contact
| Channel | Link |
@@ -570,9 +419,8 @@ curl https://nirium-agent.fly.dev/api/sandbox/status \
| **Website** | [nirium.xyz](https://nirium.xyz) |
| **API (testnet)** | [nirium-agent.fly.dev](https://nirium-agent.fly.dev) |
| **API (mainnet)** | [nirium-agent-mainnet.fly.dev](https://nirium-agent-mainnet.fly.dev) |
-| **Build Hub** | [nirium.xyz/build](https://nirium.xyz/build) |
+| **Every network** | [nirium.xyz/chains](https://nirium.xyz/chains) |
| **X / Twitter** | [@Niriumstellar](https://x.com/Niriumstellar) |
-| **SCF / Community** | [communityfund.stellar.org](https://communityfund.stellar.org) |
| **Security** | niriumprotocol@gmail.com |
---
@@ -587,4 +435,4 @@ This project operates under the [Stellar Community Fund](https://stellar.gitbook
---
-*Nirium Protocol: experimental software. Not financial advice. NiriumVault is testnet-only and audit-gated; the mainnet treasury node runs over a client-owned, third-party audited DeFindex vault in a role that cannot withdraw. Updated November 22, 2026.*
+*Nirium Protocol: experimental software. Not financial advice. NiriumVault is testnet-only and audit-gated. Treasury and Payouts were tested only with the team's own funds and discontinued on 30 Nov 2026. Updated 2 December 2026.*
diff --git a/apps/web/app/(app)/agents/layout.tsx b/apps/web/app/(app)/agents/layout.tsx
index ed64e947..ae065132 100644
--- a/apps/web/app/(app)/agents/layout.tsx
+++ b/apps/web/app/(app)/agents/layout.tsx
@@ -2,8 +2,8 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/agents",
- title: "Execution Nodes",
- description: "Nirium's execution nodes on Stellar: what each one does, what it is allowed to sign, and on which network it runs.",
+ title: "How it works",
+ description: "Nirium's 3 nodes: what each one does, what it is allowed to sign, and on which network it runs.",
});
export default function AgentsLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/agents/page.tsx b/apps/web/app/(app)/agents/page.tsx
index 01d8778d..023c97d1 100644
--- a/apps/web/app/(app)/agents/page.tsx
+++ b/apps/web/app/(app)/agents/page.tsx
@@ -33,79 +33,9 @@ export default function AgentsPage() {
return () => { cancelled = true; };
}, []);
+ // 30-nov-2026: los nodos de Tesorería, Payouts y bóveda se archivaron (ver /treasury).
+ const NODE_ORDER = ['audit-node', 'settlement-hub', 'policy-gate'];
const nodes = [
- {
- id: "rebalance-node",
- statusLabel: lang("MAINNET · INVITE-ONLY", "MAINNET · POR INVITACIÓN"),
- statusColor: "bg-emerald-400/10 text-emerald-400 border-emerald-400/20",
- dotColor: "bg-stellar-teal",
- accentBorder: "border-stellar-teal/20",
- icon: Activity,
- iconColor: "text-stellar-teal",
- name: lang(
- "Rebalance Node",
- "Nodo de Rebalanceo"),
- role: lang(
- "Autonomous rebalancing of a vault's idle funds (USDC or CETES, one asset per vault) into the vault's own strategy and back, based on thresholds the vault owner sets, no human approval per call. Designed to run continuously; to date, 4 real rebalances, self-funded, all on 6 Aug 2026, none since.",
- "Rebalanceo autónomo del saldo ocioso de una bóveda (USDC o CETES, un activo por bóveda) hacia la estrategia de esa misma bóveda y de regreso, según umbrales que fija el dueño de la bóveda, sin aprobación humana por llamada. Diseñado para correr de forma continua; a la fecha, 4 rebalanceos reales, autofinanciados, todos el 6-ago-2026, ninguno desde entonces."),
- // Revisado contra rebalanceDecision.ts / scripts/rebalancer.ts (8-nov-2026):
- // no es un spread. Es la tasa de CETES de la bóveda (medida desde su
- // propia posición, o la de referencia declarada si aún no hay historia)
- // contra dos umbrales del dueño, con banda muerta entre ellos.
- cycle: lang("Checks every 10 minutes by default", "Revisa cada 10 minutos por defecto"),
- trigger: lang(
- "The vault's measured yield (or the CETES reference rate, until there is history) reaches the owner's entry threshold (invest idle cash) or drops to the exit threshold (unwind); between the two, it does nothing",
- "El rendimiento medido de la bóveda (o la tasa de referencia de CETES, mientras no hay historial) llega al umbral de entrada del dueño (invierte el efectivo ocioso) o baja al de salida (recoge lo invertido); entre los dos, no hace nada"),
- authorized: lang(
- "Invest and Unwind between the vault's own strategies - no swaps, no destination address",
- "Invest y Unwind entre las estrategias de la propia bóveda - sin swaps y sin dirección de destino"),
- audit: lang(
- "SHA-256 + IPFS anchor when a run is recorded (opt-in)",
- "SHA-256 + anclaje IPFS cuando se registra una corrida (opcional)"),
- // 21-nov-2026 (G2): era una ruta relativa, que en nirium.xyz da 404.
- metric: (
- <>
- {lang("Health is public - see ", "Salud pública - ver ")}
- nirium-agent-mainnet.fly.dev/api/public/rebalancer-health
- {lang(
- "; a non-zero problem count there is expected when a dependency hiccups, not a silent failure",
- "; un conteo de problemas distinto de cero ahí es esperado cuando falla una dependencia, no una falla silenciosa")}
- >
- ),
- locked: false,
- },
- {
- id: "payroll-node",
- statusLabel: lang("MAINNET · EARLY ACCESS · INVITE-ONLY", "MAINNET · ACCESO ANTICIPADO · POR INVITACIÓN"),
- statusColor: "bg-emerald-400/10 text-emerald-400 border-emerald-400/20",
- dotColor: "bg-stellar-teal",
- accentBorder: "border-stellar-teal/20",
- icon: Send,
- iconColor: "text-stellar-teal",
- name: lang(
- "Disbursement Node (Bulk Payouts)",
- "Nodo de Dispersión (Pagos Masivos)"),
- role: lang(
- "Disburse funds from one company wallet to up to 100 recipients per batch (99 if the batch carries a fee) - contractors, freelancers, B2B partners - in a single signed batch payment. Non-custodial - the company signs in its own wallet, Nirium never holds funds.",
- "Dispersa fondos desde una wallet de la empresa a hasta 100 destinatarios por lote (99 si el lote lleva comisión) - contratistas, freelancers, socios B2B - en un solo lote de pago firmado. Non-custodial - la empresa firma en su propia wallet, Nirium nunca custodia fondos."),
- cycle: lang("On-demand / per run", "Bajo demanda / por corrida"),
- trigger: lang(
- "Company builds and signs a payout run",
- "La empresa arma y firma una corrida de pago"),
- authorized: lang(
- // No es "sponsored": executePayroll.ts (onboardEmployee) arma un
- // changeTrust que firma el propio destinatario y su cuenta paga la
- // reserva. Verificado el 8-nov-2026.
- "Batch USDC/XLM payment (up to 100 recipients per batch, 99 if the batch carries a fee) + USDC trustline the recipient adds and signs itself",
- "Pago batch USDC/XLM (hasta 100 destinatarios por lote, 99 si el lote lleva comisión) + trustline USDC que el propio destinatario agrega y firma"),
- audit: lang(
- "Tamper-evident IPFS receipt per run (optional LCP legal layer - pending a legal opinion)",
- "Recibo IPFS por corrida donde cualquier cambio se nota (capa legal LCP opcional - pendiente de opinión legal)"),
- metric: lang(
- "Mainnet early access · independent service payments only · Freighter-signed",
- "Mainnet early access · solo pagos de servicios independientes · firmado con Freighter"),
- locked: false,
- },
{
id: "policy-gate",
// Reemplaza a "Compliance Sentinel" (2026-11-03): esa tarjeta
@@ -117,8 +47,8 @@ export default function AgentsPage() {
// esta es la mitad real. Texto igual al de
// packages/agent/src/services/nodeRegistry.ts (la fuente real) -
// si se actualiza uno, actualizar el otro.
- // Sin "SDK" en lo público (regla de AGENTS.md: ese enrutamiento ya
- // costó un prescreen de SCF). Es el paquete `nirium` en npm.
+ // Sin "SDK" en lo público: se nombra la capacidad, no la
+ // categoría técnica. Es el paquete `nirium` en npm.
statusLabel: lang("SHIPPED · NPM PACKAGE", "PUBLICADO · PAQUETE NPM"),
statusColor: "bg-emerald-400/10 text-emerald-400 border-emerald-400/20",
dotColor: "bg-green-400",
@@ -156,8 +86,8 @@ export default function AgentsPage() {
"Settlement Hub",
"Hub de Liquidación"),
role: lang(
- "On mainnet, Nirium's own x402 test endpoint (/premium/market, $0.05) settles on-chain; signals and execute answer 501 there without charging. x402Serve() lets you charge for your own API the same way. Third-party use on mainnet is not something we promote until we have a written legal opinion, and compliance is the integrator's own responsibility.",
- "En mainnet, el endpoint x402 de prueba de Nirium (/premium/market, $0.05) liquida en cadena; signals y execute responden 501 ahí sin cobrar. x402Serve() te deja cobrar por tu propia API de la misma forma. No promovemos su uso por terceros en mainnet hasta tener una opinión legal por escrito, y el cumplimiento es responsabilidad de quien integra."),
+ "On mainnet, Nirium's own x402 test endpoint (/premium/market, $0.05) settles on-chain; signals answers 501 there without charging. x402Serve() lets you charge for your own API the same way. Third-party use on mainnet is not something we promote until we have a written legal opinion, and compliance is the integrator's own responsibility.",
+ "En mainnet, el endpoint x402 de prueba de Nirium (/premium/market, $0.05) liquida en cadena; signals responde 501 ahí sin cobrar. x402Serve() te deja cobrar por tu propia API de la misma forma. No promovemos su uso por terceros en mainnet hasta tener una opinión legal por escrito, y el cumplimiento es responsabilidad de quien integra."),
cycle: lang("On-demand", "Bajo demanda"),
trigger: lang("Paid HTTP requests (x402)", "Requests HTTP pagados (x402)"),
authorized: lang(
@@ -203,44 +133,6 @@ export default function AgentsPage() {
"Anclajes en mainnet - conteo en vivo en /stats"),
locked: false,
},
- {
- // Revisado contra packages/contracts/src/nirium_vault.rs (8-nov-2026).
- // Antes decía que pausa, cambio de cosignatarios y cierre de bóveda
- // requerían multisig 2-de-3. En el contrato: solo pause/unpause usan
- // admin + 1 cosignatario, y solo si hay cosignatarios registrados (si no,
- // el admin solo); set_cosigners es solo del admin; close_vault lo firma
- // el dueño de la bóveda.
- id: "vault-operations",
- statusLabel: lang("TESTNET · CONTRACT ADMIN", "TESTNET · ADMIN DEL CONTRATO"),
- statusColor: "bg-red-500/10 text-red-400 border-red-500/20",
- dotColor: "bg-red-400",
- accentBorder: "border-red-500/20",
- icon: Lock,
- iconColor: "text-red-400",
- name: lang(
- "Vault Operations Node",
- "Nodo de Operaciones de Vault"),
- // Confirmado en la cadena el 8-nov-2026 (instance storage de
- // CARTJI…Q5SICV vía Soroban RPC): solo AdminAddress, Treasury y
- // contadores; ningún Cosigner1/Cosigner2. O sea, hoy pausa el admin solo.
- role: lang(
- "Emergency controls of the NiriumVault contract. The contract supports a 2-of-3 pause (admin plus one cosigner), but the testnet deployment (contract CDMFURE6…) has no cosigners registered yet (checked on-chain, 21 Nov 2026), so today pausing or resuming takes the admin's signature alone. Each owner closes their own vault with their own signature. Never runs autonomously.",
- "Controles de emergencia del contrato NiriumVault. El contrato admite una pausa 2-de-3 (admin más un cosignatario), pero el despliegue de testnet (contrato CDMFURE6…) todavía no tiene cosignatarios registrados (revisado en la cadena, 21 nov 2026), así que hoy pausarlo o reanudarlo requiere solo la firma del admin. Cada dueño cierra su propia bóveda con su propia firma. Nunca corre de forma autónoma."),
- cycle: lang("Manual only", "Solo manual"),
- trigger: lang(
- "Admin request (no cosigners registered yet)",
- "Solicitud del admin (aún sin cosignatarios registrados)"),
- authorized: lang(
- "Contract pause/unpause · cosigner changes (admin only)",
- "Pausa/reanudación del contrato · cambio de cosignatarios (solo el admin)"),
- audit: lang(
- "Pause and unpause emit on-chain events",
- "La pausa y la reanudación emiten eventos en la cadena"),
- metric: lang(
- "Human signatures only - no autonomous action",
- "Solo firmas humanas - ninguna acción autónoma"),
- locked: false,
- },
];
return (
@@ -267,8 +159,8 @@ export default function AgentsPage() {
{/* Antes prometía "rastro de auditoría criptográfico" para los 6;
Policy Gate y Vault Operations no lo tienen (ver su campo Audit). */}
{lang(
- "6 nodes: what each one does, what it is allowed to sign, and on which network it runs.",
- "6 nodos: qué hace cada uno, qué puede firmar y en qué red corre.")}
+ "3 nodes: what each one does, what it is allowed to sign, and on which network it runs.",
+ "3 nodos: qué hace cada uno, qué puede firmar y en qué red corre.")}
- {nodes.map((node, i) => (
+ {/* 27-nov-2026: los nodos de Audit Trail, x402 y la política primero; los de
+ Tesorería y Payouts después, bajo "en pausa". */}
+ {[...nodes].sort((a, b) => NODE_ORDER.indexOf(a.id) - NODE_ORDER.indexOf(b.id)).map((node, i) => (
+
+
))}
diff --git a/apps/web/app/(app)/analytics/layout.tsx b/apps/web/app/(app)/analytics/layout.tsx
index ad6f9aad..b9f49255 100644
--- a/apps/web/app/(app)/analytics/layout.tsx
+++ b/apps/web/app/(app)/analytics/layout.tsx
@@ -2,8 +2,8 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/analytics",
- title: "Network Telemetry",
- description: "Receipts, settlements and node activity on Stellar, with links to the transactions behind them. Panels with sample data are labeled.",
+ title: "Reporting",
+ description: "Payments, receipts and what you can download: public data from mainnet and testnet as CSV or JSON, with links to the transactions behind them.",
});
export default function AnalyticsLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/analytics/page.tsx b/apps/web/app/(app)/analytics/page.tsx
index ac0911c3..53ce079f 100644
--- a/apps/web/app/(app)/analytics/page.tsx
+++ b/apps/web/app/(app)/analytics/page.tsx
@@ -16,8 +16,6 @@ import NodeActivity from "@/components/analytics/NodeActivity";
import ReceiptsSettlements from "@/components/analytics/ReceiptsSettlements";
import NetworkScopeNote from "@/components/shared/NetworkScopeNote";
import { ComplianceBanner, AtomicProofBadge } from "@/components/ui/ComplianceBanner";
-import { getCETESBalance, vaultGetVaultCount, vaultGetTotalFees } from "@/lib/sorobanContracts";
-import { CETES_REFERENCE_RATE_PCT, CETES_REFERENCE_DATE_LABEL_EN } from "@/lib/cetesReference";
// ── StatCard ──────────────────────────────────────────────────────────────
const StatCard = ({ title, value, change, icon: Icon, color, status }: any) => (
@@ -60,14 +58,10 @@ const StatCard = ({ title, value, change, icon: Icon, color, status }: any) => (
type AnalyticsLog = { time: string; source: string; type: string; msg: string; tx?: string };
const ANALYTICS_LOGS: AnalyticsLog[] = [
- { time: '00:25:44', source: 'REBALANCE_NODE', type: 'info', msg: `Scan - CETES ${CETES_REFERENCE_RATE_PCT}% (Etherfuse fixed reference, ${CETES_REFERENCE_DATE_LABEL_EN}) vs idle USDC | base fee 100 stroops.` },
- { time: '00:25:46', source: 'REBALANCE_NODE', type: 'success', msg: `CETES reference ${CETES_REFERENCE_RATE_PCT}% (fixed, Etherfuse, ${CETES_REFERENCE_DATE_LABEL_EN}, not live) is above the 2.5% rule threshold. Rule condition only, not a recommendation. The agent calls rebalance() on the owner's DeFindex vault: Invest into its own strategy - no swap, no destination address.` },
- { time: '00:25:48', source: 'AUDIT_NODE', type: 'audit', msg: 'Transaction confirmed on-chain before it is logged. Anchoring a receipt of it is opt-in, per call.' },
- { time: '00:30:12', source: 'PAYOUTS_NODE', type: 'payment', msg: 'Batch prepared: unsigned XDR built server-side. The client signs it with their own wallet - Nirium never holds the key.' },
- { time: '00:30:15', source: 'PAYOUTS_NODE', type: 'success', msg: 'Batch submitted. One signature, every transfer in a single Stellar transaction.' },
- { time: '00:35:00', source: 'SETTLEMENT', type: 'info', msg: 'x402 challenge issued - 0.02 USDC for /signals.' },
- { time: '00:35:02', source: 'SETTLEMENT', type: 'success', msg: 'Payment verified and settled on-chain before the response was returned.' },
- { time: '00:35:04', source: 'AUDIT_NODE', type: 'success', msg: 'Receipt anchored to IPFS on request - the caller gets a CID anyone can check at /verify.' },
+ { time: '00:25:44', source: 'SETTLEMENT', type: 'info', msg: 'x402 challenge issued - 0.02 USDC for /signals.' },
+ { time: '00:25:46', source: 'SETTLEMENT', type: 'success', msg: 'Payment verified and settled on-chain before the response was returned.' },
+ { time: '00:25:48', source: 'AUDIT_NODE', type: 'success', msg: 'Receipt anchored to IPFS on request - the caller gets a CID anyone can check at /verify.' },
+ { time: '00:30:16', source: 'AUDIT_NODE', type: 'audit', msg: 'Transaction confirmed on-chain before it is logged. Anchoring a receipt of it is opt-in, per call.' },
];
export default function AnalyticsPage() {
@@ -145,27 +139,6 @@ export default function AnalyticsPage() {
return () => { cancelled = true; clearInterval(id); };
}, []);
- // ── Live on-chain stats ──────────────────────────────────────────────────
- const [vaultCount, setVaultCount] = useState('-');
- const [feesCollected, setFeesCollected] = useState('-');
- const [cetesBalance, setCetesBalance] = useState('-');
- const [cetesRate, setCetesRate] = useState(`${CETES_REFERENCE_RATE_PCT}%`);
-
- useEffect(() => {
- // Fetch on-chain metrics
- vaultGetVaultCount().then(n => setVaultCount(String(n))).catch(() => {});
- vaultGetTotalFees().then(f => setFeesCollected(`${(Number(f) / 10_000_000).toFixed(2)} XLM`)).catch(() => {});
-
- if (accountStr) {
- getCETESBalance(accountStr).then(b => setCetesBalance(`${Number(b).toFixed(2)} CETES`)).catch(() => {});
- }
-
- // CETES reference rate from the agent API: a fixed value (12 Nov 2026), not a live reading
- fetch('https://nirium-agent.fly.dev/api/tickers')
- .then(r => r.json())
- .then(d => { if (d.cetesRate) setCetesRate(`${d.cetesRate.toFixed(2)}%`); })
- .catch(() => {});
- }, [accountStr]);
return (
@@ -190,19 +163,20 @@ export default function AnalyticsPage() {
{/* 16-nov-2026: decía "Treasury Telemetry"; la página ahora abre con recibos y cobros. */}
- {language === 'es' ? 'TELEMETRÍA DE LA RED' : 'NETWORK TELEMETRY'}
+ {/* 27-nov-2026: el home manda aquí como la página de Reporting. */}
+ {language === 'es' ? 'REPORTING' : 'REPORTING'}
- v0.20.0
+ v0.21.0
- {language === 'es' ? 'Recibos, cobros y actividad por nodo' : 'Receipts, settlements and node activity'}
+ {language === 'es' ? 'Pagos, recibos y lo que puedes descargar' : 'Payments, receipts and what you can download'}
- {language === 'es' ? 'Lecturas on-chain de mainnet y testnet · NiriumVault solo en testnet' : 'On-chain reads from mainnet and testnet · NiriumVault on testnet only'}
+ {language === 'es' ? 'Datos públicos de mainnet y testnet · CSV o JSON' : 'Public data from mainnet and testnet · CSV or JSON'}
@@ -214,117 +188,6 @@ export default function AnalyticsPage() {
{/* 16-nov-2026: recibos, cobros y reporting antes que Treasury. */}
- {/* KPI Grid - Treasury, live on-chain data. Plegado por defecto (16-nov-2026). */}
-
-
-
-
- {language === 'es' ? 'Treasury · tu wallet y testnet' : 'Treasury · your wallet and testnet'}
-
-
- {language === 'es' ? 'Saldos de tu wallet y del contrato NiriumVault en testnet, sin valor real.' : 'Your wallet balances and the NiriumVault contract on testnet, no real value.'}
-
-
- {language === 'es' ? 'En mainnet, Treasury es solo por invitación hasta tener una opinión legal por escrito.' : 'On mainnet, Treasury is invite-only until we have a written legal opinion.'}
-
-
-
-
-
-
-
-
-
-
-
-
- {/* Charts & Side Area */}
-
-
-
-
-
-
TREASURY DEPLOYMENT HISTORY
-
-
- {/* Aquí había una gráfica hecha con Math.random(): etiquetada "Datos de
- muestra", pero con horas reales en el eje y una curva que cambiaba en
- cada clic de 24H/7D/30D. En una página llamada "telemetría" eso se lee
- como historial real. Hasta tener una serie real, se dice que no la hay. */}
-
-
- {language === 'es' ? 'Sin historial que graficar todavía' : 'No history to chart yet'}
-
-
- {language === 'es'
- ? 'El rebalanceo en mainnet solo ha corrido con fondos del equipo (4 rebalanceos, 6-ago-2026). Las ejecuciones reales, con su transacción, están en la evidencia on-chain verificada y en el feed del dashboard.'
- : "Mainnet rebalancing has only run with the team's own funds (4 rebalances, 6 Aug 2026). Real executions, each with its transaction, are under Verified On-chain Evidence and in the dashboard feed."}
-
-
-
-
-
-
CAPITAL DEPLOYMENT MATRIX
-
- {[
- { asset: 'CETES', name: 'Etherfuse Stablebond', rate: `${CETES_REFERENCE_RATE_PCT}% fixed ref. (${CETES_REFERENCE_DATE_LABEL_EN})`, type: 'TOKENIZED CETES' },
- { asset: 'USDC', name: 'Operational Liquidity', rate: '0.00%', type: 'STABLE' },
- { asset: 'XLM', name: 'Gas Reserve', rate: 'Min.', type: 'UTILITY' },
- // AUDIT y PAYOUTS salieron de aquí el 9-nov-2026: no son activos de la
- // tesorería. Ahora tienen su propia tarjeta en "Actividad por nodo".
- ].map((item, i) => (
-
-
- {item.asset}
- {item.name}
-
-
-
{item.rate}
-
{item.type}
-
-
- ))}
-
-
-
-
-
{/* Agent Activity Feed */}
@@ -343,9 +206,6 @@ export default function AnalyticsPage() {
esto es una muestra de la forma que tienen las entradas. */}
{language === 'es' ? 'Ejemplo' : 'Example'}
-
- {language === 'es' ? 'Feed en vivo en el dashboard' : 'Live feed in the dashboard'}
-
@@ -420,18 +280,6 @@ export default function AnalyticsPage() {
{[
{ net: 'mainnet' as const, date: '2026-07-09', tx: '3134a51c66091fd7fbd85b38a4a6ec6cd432bb92c2450eac84ea7855cb7558bc', msg: 'x402 settlement - 0.02 USDC to our x402 account (Nirium-funded test wallet)' },
{ net: 'mainnet' as const, date: '2026-08-05', tx: 'e4fa3df9cb225a4d7f64dd0082eb38218ada4b4af3378f288989a5d4b1116ed9', msg: 'x402 settlement - 0.02 USDC, signed via Pollar social login (Nirium self-test, reserve funded by us)' },
- // Se retiró la tx del 19-abr etiquetada 'NiriumVault - revoke_agent(1218)'.
- // El hash era real y la cuenta fue nuestra, pero el contrato invocado era
- // CAU2XBJT… - el vault VIEJO, retirado en la consolidación a 2 contratos de
- // mayo. O sea: la etiqueta nombraba un contrato que no es el que publicamos,
- // y quien hiciera clic para verificar encontraría una dirección que no cuadra.
- // En su lugar va la evidencia más fuerte que tenemos, y es de agosto:
- // el agente invirtiendo fondos ajenos dentro de una bóveda de la que no
- // puede sacarlos.
- { net: 'testnet' as const, date: '2026-08-05', tx: 'c53d474658898af7ebbb84d17845902572147cfe1fb72965833e3d4cf7552ed3', msg: 'DeFindex vault - Invest signed by the agent, not the owner' },
- // 12-nov-2026: el texto de arriba remite aquí para "ejecuciones reales" de mainnet y no había
- // ninguna. rebalance() en Horizon, SUCCESS, 2026-08-06T00:56:39Z.
- { net: 'mainnet' as const, date: '2026-08-06', tx: '82d73f537e907140367f9343f63a36704c74a5286aced7a938cee8fffb56b3d4', msg: 'DeFindex rebalance() on mainnet - team funds, our own vault' },
// 16-nov-2026: el Policy Gate no publica contadores; su única evidencia es esta corrida
// de testnet (Horizon: SUCCESS, 2026-10-01T01:20:42Z). Los casos DENY y stale no firmaron nada.
{ net: 'testnet' as const, date: '2026-10-01', tx: 'eefd57995733c29fd1ba8244b783419015af642073e9c918a0d732a6bb81a6b3', msg: 'Policy Gate - ALLOW signed and settled (0.02 USDC); the DENY and stale cases in the same run signed nothing' },
@@ -463,9 +311,9 @@ export default function AnalyticsPage() {
))}
-
- {language === 'es' ? 'El registro completo está en el dashboard' : 'Full audit trail in the dashboard'}
-
+
+ {language === 'es' ? 'Toda la evidencia en EVIDENCE.md' : 'All the evidence in EVIDENCE.md'}
+
@@ -518,6 +366,8 @@ export default function AnalyticsPage() {
+
+
);
diff --git a/apps/web/app/(app)/blog/bbva-open-deal-room/layout.tsx b/apps/web/app/(app)/blog/bbva-open-deal-room/layout.tsx
index 437bce49..7feff8bb 100644
--- a/apps/web/app/(app)/blog/bbva-open-deal-room/layout.tsx
+++ b/apps/web/app/(app)/blog/bbva-open-deal-room/layout.tsx
@@ -4,7 +4,7 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/blog/bbva-open-deal-room",
title: "Nirium at The Open Deal Room by Stellar",
- description: "We were one of six Stellar startups featured at La Arena inside BBVA Tower CDMX. Here is what we showed, who was in the room, and why an autonomous treasury agent belongs in front of institutional investors.",
+ description: "We were one of six Stellar startups featured at La Arena inside BBVA Tower CDMX. Here is what we showed and who was in the room.",
});
export default function BbvaOpenDealRoomLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/blog/codigo-402-agentes-que-pagan/layout.tsx b/apps/web/app/(app)/blog/codigo-402-agentes-que-pagan/layout.tsx
deleted file mode 100644
index a48c2118..00000000
--- a/apps/web/app/(app)/blog/codigo-402-agentes-que-pagan/layout.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import { pageMetadata } from "@/lib/pageMetadata";
-
-// page.tsx es "use client": sin este layout el post salía con el título de la home.
-export const metadata = pageMetadata({
- path: "/blog/codigo-402-agentes-que-pagan",
- title: "Código 402: Agentes que pagan - free Stellar x402 bootcamp",
- description: "Your code has never charged you a dime. A free, 5-session bootcamp (BAF x Stellar x Nirium) where you build an API that charges per call and an agent that pays on its own, on Stellar testnet.",
-});
-
-export default function Codigo402Layout({ children }: { children: React.ReactNode }) {
- return children;
-}
diff --git a/apps/web/app/(app)/blog/codigo-402-agentes-que-pagan/page.tsx b/apps/web/app/(app)/blog/codigo-402-agentes-que-pagan/page.tsx
deleted file mode 100644
index 4f16856a..00000000
--- a/apps/web/app/(app)/blog/codigo-402-agentes-que-pagan/page.tsx
+++ /dev/null
@@ -1,261 +0,0 @@
-"use client";
-
-import Link from "next/link";
-import {
- ArrowLeft,
- Calendar,
- Clock,
- Gift,
- MonitorSmartphone,
- Code2,
- Bot,
- FileCheck2,
- GraduationCap,
- UserCheck,
- Sparkles,
- Server,
- ShoppingCart,
- Network,
- Receipt,
-} from "lucide-react";
-import { motion } from "framer-motion";
-import { useLanguage } from "../../../../context/LanguageContext";
-import { posts } from "../posts";
-
-const SLUG = "codigo-402-agentes-que-pagan";
-const STEPS = [
- { key: "step1", Icon: Code2 },
- { key: "step2", Icon: Bot },
- { key: "step3", Icon: FileCheck2 },
-] as const;
-
-const FACTS = [
- { key: "fact_date", Icon: Calendar },
- { key: "fact_time", Icon: Clock },
- { key: "fact_mode", Icon: MonitorSmartphone },
- { key: "fact_cost", Icon: Gift },
-] as const;
-
-const LEARN_ITEMS = ["learn1", "learn2", "learn3", "learn4", "learn5"] as const;
-
-const BUILD_CARDS = [
- { key: "build1", Icon: Server },
- { key: "build2", Icon: ShoppingCart },
- { key: "build3", Icon: Network },
- { key: "build4", Icon: Receipt },
-] as const;
-
-export default function Codigo402Post() {
- const { t } = useLanguage();
- const meta = (t.blog.posts as Record)[SLUG];
- const postMeta = posts.find((p) => p.slug === SLUG)!;
- const readLabel = `${postMeta.readMinutes} ${t.blog.min_read}`;
-
- return (
-
-
-
-
-
-
-
- {t.blog.back_to_blog}
-
-
-
-
-
-
-
-
- {t.blog.all_articles}
-
-
- {t.blog.see_product}
-
-
-
-
- );
-}
diff --git a/apps/web/app/(app)/build/layout.tsx b/apps/web/app/(app)/build/layout.tsx
index e2cb9996..5feeecc8 100644
--- a/apps/web/app/(app)/build/layout.tsx
+++ b/apps/web/app/(app)/build/layout.tsx
@@ -3,7 +3,7 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/build",
title: "What You Can Build",
- description: "Product ideas you can prototype on Nirium's payment, audit and execution rails, most of them live on Stellar testnet today.",
+ description: "Product ideas you can prototype on Nirium's receipts, Reporting and x402, most of them live on Stellar testnet today.",
});
export default function BuildLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/build/page.tsx b/apps/web/app/(app)/build/page.tsx
index 2baf35db..3b8368a0 100644
--- a/apps/web/app/(app)/build/page.tsx
+++ b/apps/web/app/(app)/build/page.tsx
@@ -5,9 +5,9 @@ import { motion } from "framer-motion";
import {
Rocket, Bot, Wallet, Gift, Wand2, ScrollText, PlayCircle, Clock,
Code2, ArrowRight, Globe, Zap, Layers, Webhook,
- KeyRound, Send, Coins, Radio, LineChart, Brain, Trophy,
+ KeyRound, Send, Coins, Radio, Brain, Trophy,
Terminal as TerminalIcon, Package, Github, Shield,
- Landmark, ShieldCheck, Image, Database, Handshake, Cpu
+ Landmark, Image, Database, Cpu
} from "lucide-react";
import { useLanguage } from "@/context/LanguageContext";
@@ -19,46 +19,35 @@ const fadeUp = (delay = 0) => ({
});
const STARTUP_CARDS = [
- { id: "global_payroll", icon: Globe, accent: "#2DEBE8" },
+ // 27-nov-2026: primero las ideas sobre Audit Trail y x402; las de Tesorería y Payouts al final
+ // (por invitación). Fuera "Router de Capital Autónomo": era una app para consumidores que mueve su
+ // capital, y Nirium es B2B (su texto sigue en los diccionarios, sin usarse).
{ id: "m2m_exchange", icon: Zap, accent: "#FFD700" },
- { id: "forensic_treasury", icon: Shield, accent: "#34D399" },
- { id: "savings_neobank", icon: LineChart, accent: "#EC4899" },
- { id: "grant_distributor", icon: Trophy, accent: "#A78BFA" },
{ id: "logistics_settle", icon: Send, accent: "#F97316" },
- { id: "energy_grid", icon: Cpu, accent: "#10B981" },
- { id: "rwa_market", icon: Landmark, accent: "#FBBF24" },
- { id: "defi_insurance", icon: ShieldCheck, accent: "#EF4444" },
{ id: "content_license", icon: Image, accent: "#8B5CF6" },
{ id: "oracle_bridge", icon: Database, accent: "#3B82F6" },
- { id: "escrow_fleet", icon: Handshake, accent: "#6366F1" },
+ { id: "energy_grid", icon: Cpu, accent: "#10B981" },
+ { id: "grant_distributor", icon: Trophy, accent: "#A78BFA" },
] as const;
// 21-nov-2026 (B1): rutas comprobadas en main ese día (#373, #412, #389, #411, #422 mergeados).
// Grants Autónomos entra cuando #419 se mergee.
const COMMUNITY_EXAMPLES: Record = {
- global_payroll: { dir: 'payouts-batch-testnet' },
oracle_bridge: { dir: 'build-oracle-x402' },
- defi_insurance: { dir: 'build-risk-signals' },
logistics_settle: { dir: 'build-smart-settlement' },
grant_distributor: { dir: 'build-autonomous-grants' },
m2m_exchange: { dir: 'openai-agents-x402', related: { en: 'an agent that pays x402 with a cap', es: 'un agente que paga x402 con tope' } },
};
const API_ENDPOINTS = [
- // 21-nov-2026 (B2): `auth` marca las rutas que piden key, igual que /developers (probado ese día:
- // /api/webhooks, /api/auth/keys y /api/payroll/run dan 401 sin key).
- { id: "auth", icon: KeyRound, path: "/api/auth/keys", method: "POST", auth: "key" },
- { id: "market", icon: LineChart, path: "/api/market", method: "GET", auth: "key" },
- { id: "exec", icon: TerminalIcon, path: "/api/execute", method: "POST", auth: "signer" },
- { id: "skills", icon: Brain, path: "/api/skills", method: "GET" },
- // market es el único endpoint x402 que cobra en mainnet; signals es solo testnet.
+ // 27-nov-2026: Audit Trail y x402 primero. 30-nov-2026: Tesorería y Payouts archivados, fuera.
+ // 1-dic-2026: fuera también market, execute (410) y webhooks (sus eventos eran del loop y la ejecución).
+ // `auth` marca las rutas que piden key (probado el 21-nov-2026: webhooks, auth/keys y payroll/run dan 401 sin key).
+ { id: "audit", icon: ScrollText, path: "/api/audit/log", method: "POST" },
{ id: "billing", icon: Coins, path: "/api/v1/premium/market", method: "GET" },
{ id: "settle", icon: Send, path: "/api/v1/mpp/signals", method: "GET" },
- { id: "vault", icon: Landmark, path: "/api/treasury/vaults", method: "GET" },
- { id: "audit", icon: ScrollText, path: "/api/audit/log", method: "POST" },
- { id: "payroll", icon: Wallet, path: "/api/payroll/run", method: "POST", auth: "key" },
- { id: "webhooks", icon: Webhook, path: "/api/webhooks", method: "POST", auth: "key" },
- // Las 10 rutas comprobadas contra packages/agent/src el 9-nov-2026.
+ { id: "auth", icon: KeyRound, path: "/api/auth/keys", method: "POST", auth: "key" },
+ { id: "skills", icon: Brain, path: "/api/skills", method: "GET" },
];
const SDK_ICONS: Record = {
@@ -69,7 +58,6 @@ const SDK_HREFS: Record = {
ts: 'https://www.npmjs.com/package/nirium',
py: 'https://pypi.org/project/nirium/',
mcp: 'https://www.npmjs.com/package/nirium-mcp',
- studio: '/treasury/builder',
};
export default function BuildPage() {
@@ -407,26 +395,22 @@ export default function BuildPage() {
{" "}apiKey: 'sk_free_...',{"\n"}
{" "}baseUrl: 'https://nirium-agent.fly.dev', // testnet node{"\n"}
{"}"});{"\n\n"}
-// 1. Deploy a treasury vault. This returns an UNSIGNED xdr.{"\n"}
-// You sign it with YOUR OWN key; Nirium never holds it.{"\n"}
-const vault = await nirium.deployTreasuryVault({"{"}{"\n"}
-{" "}caller: 'G...', manager: 'G...',{"\n"}
-{"}"});{"\n"}
-// vault.xdr: sign with `caller`, then submitTreasuryTx(signedXdr){"\n\n"}
+// 1. Anchor the hash of a record only you hold (Audit Trail){"\n"}
+const receipt = await nirium.anchorAuditRecord({"{"} hash: '<sha-256 of your record>', tag: 'my-app' {"}"});{"\n"}
+// receipt.cid: anyone can check it at nirium.xyz/verify{"\n\n"}
// 2. Pay for an x402-protected API from your own wallet{"\n"}
// (to charge for YOUR API, see x402Serve() in the docs){"\n"}
nirium.initX402({"{"} secretKey: process.env.STELLAR_SECRET_KEY {"}"});{"\n"}
const res = await nirium.x402Fetch('https://your-api.com/paid-endpoint');{"\n\n"}
-// 3. Anchor the hash of a record only you hold (Audit Trail){"\n"}
-const receipt = await nirium.anchorAuditRecord({"{"} hash: '<sha-256 of your record>', tag: 'my-app' {"}"});{"\n"}
-// receipt.cid: anyone can check it at nirium.xyz/verify
+// 3. Reporting: payments and receipts for a network{"\n"}
+const summary = await nirium.getReportingSummary({"{"} network: 'testnet' {"}"});
{/* SDK cards */}
- {(Object.keys(ah.sdks) as Array).map((key) => {
+ {(Object.keys(ah.sdks) as Array).filter((key) => key !== 'studio').map((key) => {
const sdk = ah.sdks[key];
const IconComp = SDK_ICONS[key as string] || Package;
const href = SDK_HREFS[key as string];
diff --git a/apps/web/app/(app)/chains/layout.tsx b/apps/web/app/(app)/chains/layout.tsx
new file mode 100644
index 00000000..f82ea621
--- /dev/null
+++ b/apps/web/app/(app)/chains/layout.tsx
@@ -0,0 +1,11 @@
+import { pageMetadata } from "@/lib/pageMetadata";
+
+export const metadata = pageMetadata({
+ path: "/chains",
+ title: "Chains",
+ description: "What works on Stellar, Solana, Avalanche, Base and Arbitrum, feature by feature: receipts, verification, x402, the pre-sign policy, Reporting and the markets.",
+});
+
+export default function ChainsLayout({ children }: { children: React.ReactNode }) {
+ return children;
+}
diff --git a/apps/web/app/(app)/chains/page.tsx b/apps/web/app/(app)/chains/page.tsx
new file mode 100755
index 00000000..c9435a54
--- /dev/null
+++ b/apps/web/app/(app)/chains/page.tsx
@@ -0,0 +1,395 @@
+/** Nirium - Chains: what works on Stellar, Solana, Avalanche, Base and Arbitrum, feature by feature. One page, so a
+ * visitor does not have to visit three sites to learn where each thing runs. Every "Mainnet" here was
+ * checked live on 27-nov-2026 (markets' /v1/market/info, the node's /api/reporting/summary per chain,
+ * npm exports). Keep it that way: a row changes only when the thing itself changes. **/
+'use client';
+
+import { Check, Minus, Clock, ExternalLink, ArrowRight } from "lucide-react";
+import { useEffect, useState } from "react";
+import { useLanguage } from "@/context/LanguageContext";
+
+type State = "yes" | "no" | "soon";
+type Cell = { state: State; en: string; es: string; href?: string };
+type Row = { en: string; es: string; cells: [Cell, Cell, Cell, Cell, Cell] };
+
+const CHAINS = [
+ { id: "stellar", name: "Stellar", color: "#D4AF37", home: "/verify" },
+ { id: "solana", name: "Solana", color: "#9945FF", home: "/solana" },
+ { id: "avalanche", name: "Avalanche", color: "#E84142", home: "/avalanche" },
+ { id: "base", name: "Base", color: "#0052FF", home: "/base" },
+ { id: "arbitrum", name: "Arbitrum", color: "#28A0F0", home: "/arbitrum" },
+] as const;
+
+const y = (en: string, es: string, href?: string): Cell => ({ state: "yes", en, es, href });
+const n = (en = "Not on this chain", es = "No en esta red"): Cell => ({ state: "no", en, es });
+
+const ROWS: Row[] = [
+ {
+ en: "Payer-signed receipts, anchored to IPFS by Audit Trail", es: "Recibos firmados por quien paga, anclados en IPFS por Audit Trail",
+ cells: [
+ y("Mainnet", "Mainnet"),
+ y("Mainnet", "Mainnet"),
+ y("Mainnet", "Mainnet"),
+ y("Mainnet", "Mainnet"),
+ y("Mainnet", "Mainnet"),
+ ],
+ },
+ {
+ en: "Receipt checked against the exact payment on-chain (amount, payer, receiver, asset)", es: "Recibo comprobado contra el pago exacto en la cadena (monto, quién paga, quién cobra, activo)",
+ cells: [
+ n("Not yet: a receipt can name the transaction hash, but nothing checks it against the payment", "Todavía no: un recibo puede nombrar el hash de la transacción, pero nada lo compara con el pago"),
+ y("Mainnet, against the SPL transfer and its Memo", "Mainnet, contra la transferencia SPL y su Memo"),
+ y("Mainnet, against the USDC Transfer log and the EIP-3009 nonce", "Mainnet, contra el log Transfer de USDC y el nonce EIP-3009"),
+ y("Mainnet, against the USDC Transfer log and the EIP-3009 nonce", "Mainnet, contra el log Transfer de USDC y el nonce EIP-3009"),
+ y("Mainnet, against the USDC Transfer log and the EIP-3009 nonce", "Mainnet, contra el log Transfer de USDC y el nonce EIP-3009"),
+ ],
+ },
+ {
+ en: "Order reference written on-chain with the payment", es: "Referencia del pedido escrita en la cadena junto al pago",
+ cells: [
+ n("Not yet: an x402 payment carries no memo", "Todavía no: un pago x402 no lleva memo"),
+ y("Memo, from the X-Nirium-Ref header", "Memo, desde el header X-Nirium-Ref"),
+ n("No memo on EVM; the reference goes in the receipt", "En EVM no hay memo; la referencia va en el recibo"),
+ n("No memo on EVM; the reference goes in the receipt", "En EVM no hay memo; la referencia va en el recibo"),
+ n("No memo on EVM; the reference goes in the receipt", "En EVM no hay memo; la referencia va en el recibo"),
+ ],
+ },
+ {
+ en: "Check a receipt in the browser", es: "Comprobar un recibo en el navegador",
+ cells: [
+ y("nirium.xyz/verify", "nirium.xyz/verify", "/verify"),
+ y("nirium.xyz/solana; mainnet chain checks need your own RPC", "nirium.xyz/solana; en mainnet la parte de la cadena pide tu propio RPC", "/solana/explorer"),
+ y("nirium.xyz/avalanche, every check in the browser", "nirium.xyz/avalanche, todas las comprobaciones en el navegador", "/avalanche/explorer"),
+ y("nirium.xyz/base, every check in the browser", "nirium.xyz/base, todas las comprobaciones en el navegador", "/base/explorer"),
+ y("nirium.xyz/arbitrum, every check in the browser", "nirium.xyz/arbitrum, todas las comprobaciones en el navegador", "/arbitrum/explorer"),
+ ],
+ },
+ {
+ en: "Check a receipt from a terminal", es: "Comprobar un recibo desde la terminal",
+ cells: [
+ y("npx nirium-cli verify ", "npx nirium-cli verify "),
+ y("npx -p nirium-solana nirium-verify-svm receipt.json", "npx -p nirium-solana nirium-verify-svm receipt.json"),
+ y("npx -p nirium-avalanche nirium-verify-evm receipt.json", "npx -p nirium-avalanche nirium-verify-evm receipt.json"),
+ n("Not yet: the library is not on npm", "Todavía no: la librería no está en npm"),
+ n("Not yet: the library is not on npm", "Todavía no: la librería no está en npm"),
+ ],
+ },
+ {
+ en: "Pay and charge per request with x402", es: "Pagar y cobrar por consulta con x402",
+ cells: [
+ y("Mainnet on Nirium's own endpoint; for your API, testnet", "Mainnet en el endpoint propio de Nirium; para tu API, testnet"),
+ y("Mainnet on Nirium's own market, settled by an independent facilitator (PayAI); for your API, devnet", "Mainnet en el market propio de Nirium, liquidado por un facilitador independiente (PayAI); para tu API, devnet"),
+ y("Mainnet on Nirium's own market, settled by an independent facilitator (PayAI); for your API, Fuji", "Mainnet en el market propio de Nirium, liquidado por un facilitador independiente (PayAI); para tu API, Fuji"),
+ y("Mainnet on Nirium's own market, settled by an independent facilitator (PayAI); the library for your API is not on npm yet", "Mainnet en el market propio de Nirium, liquidado por un facilitador independiente (PayAI); la librería para tu API todavía no está en npm"),
+ y("Mainnet on Nirium's own market, settled by an independent facilitator (PayAI); the library for your API is not on npm yet", "Mainnet en el market propio de Nirium, liquidado por un facilitador independiente (PayAI); la librería para tu API todavía no está en npm"),
+ ],
+ },
+ {
+ en: "Refuse a payment before it is signed (pre-sign policy)", es: "Rechazar un pago antes de firmarlo (política antes de firmar)",
+ cells: [y("In the library", "En la librería"), y("In the library", "En la librería"), y("In the library", "En la librería"), n("In the library, not on npm yet", "En la librería, todavía no en npm"), n("In the library, not on npm yet", "En la librería, todavía no en npm")],
+ },
+ {
+ en: "Receipts for refused payments (DENY, WAIT)", es: "Recibos de pagos rechazados (DENY, WAIT)",
+ cells: [
+ y("As Audit Trail receipts", "Como recibos de Audit Trail"),
+ y("Devnet, in nirium-solana 0.3.0", "Devnet, en nirium-solana 0.3.0"),
+ y("Fuji, in nirium-avalanche 0.3.0", "Fuji, en nirium-avalanche 0.3.0"),
+ n("Not yet", "Todavía no"),
+ n("Not yet", "Todavía no"),
+ ],
+ },
+ {
+ en: "Reporting: receipts, payers and USDC declared, per chain", es: "Reporting: recibos, pagadores y USDC declarados, por red",
+ cells: [y("Mainnet", "Mainnet"), y("Mainnet", "Mainnet"), y("Mainnet", "Mainnet"), y("Mainnet", "Mainnet"), y("Mainnet", "Mainnet")],
+ },
+ {
+ en: "An x402 market selling network data at $0.01", es: "Un market x402 que vende datos de la red a $0.01",
+ cells: [
+ y("Paid endpoints on the Nirium node", "Endpoints de pago en el nodo de Nirium"),
+ y("Mainnet", "Mainnet", "https://nirium-market-solana.fly.dev/v1/market/info"),
+ y("C-Chain mainnet", "C-Chain mainnet", "https://nirium-market-avalanche.fly.dev/v1/market/info"),
+ y("Base mainnet", "Base mainnet", "https://nirium-market-base.fly.dev/v1/market/info"),
+ y("Arbitrum One", "Arbitrum One", "https://nirium-market-arbitrum.fly.dev/v1/market/info"),
+ ],
+ },
+ {
+ en: "ERC-8004: a validation request that points to a receipt", es: "ERC-8004: una solicitud de validación que apunta a un recibo",
+ cells: [n(), n(), y("Fuji", "Fuji"), n(), n()],
+ },
+ {
+ en: "MCP server for agents", es: "Servidor MCP para agentes",
+ cells: [y("nirium-mcp", "nirium-mcp"), n("Not yet", "Todavía no"), n("Not yet", "Todavía no"), n("Not yet", "Todavía no"), n("Not yet", "Todavía no")],
+ },
+ {
+ en: "Package", es: "Paquete",
+ cells: [
+ y("nirium (npm, PyPI)", "nirium (npm, PyPI)", "https://www.npmjs.com/package/nirium"),
+ y("nirium-solana", "nirium-solana", "https://www.npmjs.com/package/nirium-solana"),
+ y("nirium-avalanche", "nirium-avalanche", "https://www.npmjs.com/package/nirium-avalanche"),
+ n("nirium-base, not published yet", "nirium-base, todavía sin publicar"),
+ n("nirium-arbitrum, not published yet", "nirium-arbitrum, todavía sin publicar"),
+ ],
+ },
+];
+
+function Mark({ state }: { state: State }) {
+ if (state === "yes") return ;
+ if (state === "soon") return ;
+ return ;
+}
+
+function CellView({ cell, lang }: { cell: Cell; lang: (en: string, es: string) => string }) {
+ const label = { yes: lang("Yes", "Sí"), soon: lang("Soon", "Pronto"), no: lang("No", "No") }[cell.state];
+ const text = lang(cell.en, cell.es);
+ const external = cell.href?.startsWith("http");
+ return (
+
+ {lang(
+ "Live, each chain on its own and never added to another. Stellar's numbers are in /stats.",
+ "En vivo, cada red por separado y nunca sumada a otra. Los números de Stellar están en /stats.",
+ )}
+
+
+ {cards.map((c) => {
+ const d = data?.[c.id];
+ const r = d?.reporting;
+ const outside = r ? Math.max(0, r.distinctPayers - d!.teamPayers) : null;
+ const dash = failed ? lang("unavailable", "no disponible") : "…";
+ const rows: [string, string, string?][] = [
+ [lang("Receipts anchored on mainnet", "Recibos anclados en mainnet"), r ? String(r.receipts) : dash],
+ [lang("Payers that are not team keys", "Pagadores que no son llaves del equipo"), outside !== null ? String(outside) : dash],
+ [lang("USDC declared in those receipts", "USDC declarados en esos recibos"), r ? r.usdc : dash],
+ [lang("Last receipt", "Último recibo"), r?.lastAnchoredAt ? new Date(r.lastAnchoredAt).toISOString().slice(0, 10) : r ? "-" : dash],
+ [d && !d.package ? lang("npm package", "Paquete en npm") : lang(`npm downloads, last week (${d?.package ?? "package"})`, `Descargas en npm, última semana (${d?.package ?? "paquete"})`),
+ d ? (!d.package ? lang("not published yet", "sin publicar aún") : d.npm ? String(d.npm.downloads) : lang("no data yet", "sin datos aún")) : dash],
+ ];
+ return (
+
+
+ {c.name}
+
+
+ {rows.map(([k, v]) => (
+
+
{k}
+
{v}
+
+ ))}
+
+ {r && outside === 0 && (
+
+ {lang("So far every mainnet receipt here is a team self-test.", "Hasta ahora, cada recibo en mainnet aquí es una autoprueba del equipo.")}
+
+ )}
+ {d && (
+
+ {lang("Sources:", "Fuentes:")}{" "}
+ Reporting
+ {d.sources.npm && <>{" · "}npm>}.{" "}
+ {lang("npm downloads include bots, mirrors and CI; they are not users.", "Las descargas de npm incluyen robots, espejos y CI; no son usuarios.")}
+
+ )}
+
+ );
+ })}
+
+
+ );
+}
+
+// Quickstarts (27-nov-2026): each one was run verbatim with the published package (0.2.0), from a clean
+// folder, against devnet / Fuji through PayAI. Change the code only together with a new run and new hashes.
+const QUICKSTART = {
+ solana: {
+ code: "// npm i nirium-solana@0.2.0 express @solana/kit\nimport express from \"express\";\nimport { readFileSync } from \"node:fs\";\nimport { createKeyPairSignerFromBytes } from \"@solana/kit\";\nimport { x402Serve, createX402Fetch, createRulesPolicy, settlementOf, bindReceipt, verifyReceipt, DEVNET } from \"nirium-solana\";\n\nconst PAY_TO = process.env.PAY_TO; // your wallet that receives USDC\nconst signer = await createKeyPairSignerFromBytes(Uint8Array.from(JSON.parse(readFileSync(process.env.PAYER_KEYPAIR, \"utf8\"))));\n\n// 1. Charge: one route, $0.01 in USDC on devnet, settled by PayAI\nconst app = express();\napp.use(x402Serve({ payTo: PAY_TO, network: DEVNET, routes: { \"GET /data\": { price: \"$0.01\", description: \"Example data\" } } }));\napp.get(\"/data\", (_req, res) => res.json({ ok: true }));\nconst server = app.listen(4021);\n\n// 2. Pay: your own policy decides before anything is signed\nconst feePayers = (await (await fetch(\"https://facilitator.payai.network/supported\")).json()).signers[\"solana:*\"];\nconst pay = createX402Fetch({\n signer, network: DEVNET, maxAmountPerPayment: \"10000\",\n policy: createRulesPolicy({ maxAmount: \"10000\", allowPayTo: [PAY_TO], allowFeePayers: feePayers }),\n});\nconst url = \"http://localhost:4021/data\";\nconst res = await pay(url, { headers: { \"X-Nirium-Ref\": \"order-123\" } }); // the ref goes on-chain as the Memo\n\n// 3. Receipt: bound to the exact USDC transfer, signed by the payer, checked against the chain\nconst receipt = await bindReceipt({ tx: settlementOf(res).transaction, network: DEVNET, ref: \"order-123\", resource: url, signer });\nconst check = await verifyReceipt(receipt);\nconsole.log(check.ok ? \"VALID\" : \"INVALID\", `${check.checks.filter((c) => c.ok).length}/${check.checks.length}`, settlementOf(res).transaction);\nserver.close();",
+ tx: "cbagt3pSgvrayqBxmeTEiNgLCNoUTifocdSAq95z1Bh6PBDE9NeZCFkaqs6UHhKvT5Sy3vhUsF9aMur5cDWHxjt",
+ txUrl: "https://explorer.solana.com/tx/cbagt3pSgvrayqBxmeTEiNgLCNoUTifocdSAq95z1Bh6PBDE9NeZCFkaqs6UHhKvT5Sy3vhUsF9aMur5cDWHxjt?cluster=devnet",
+ result: "VALID 27/27",
+ run: { en: "nirium-solana 0.2.0 on devnet, 27 Nov 2026", es: "nirium-solana 0.2.0 en devnet, 27 nov 2026" },
+ verify: "npx -p nirium-solana nirium-verify-svm receipt.json",
+ repo: "https://github.com/nirium-protocol/nirium-solana",
+ },
+ avalanche: {
+ code: "// npm i nirium-avalanche@0.2.0 express viem\nimport express from \"express\";\nimport { privateKeyToAccount } from \"viem/accounts\";\nimport { x402Serve, createX402Fetch, createRulesPolicy, settlementOf, bindReceipt, verifyReceipt } from \"nirium-avalanche\";\n\nconst NETWORK = \"eip155:43113\"; // Avalanche Fuji\nconst PAY_TO = process.env.PAY_TO; // your address that receives USDC\nconst signer = privateKeyToAccount(process.env.PAYER_KEY);\n\n// 1. Charge: one route, $0.01 in USDC on Fuji, settled by PayAI\nconst app = express();\napp.use(x402Serve({ payTo: PAY_TO, network: NETWORK, routes: { \"GET /data\": { price: \"$0.01\", description: \"Example data\" } } }));\napp.get(\"/data\", (_req, res) => res.json({ ok: true }));\nconst server = app.listen(4022);\n\n// 2. Pay: your own policy decides before anything is signed\nconst pay = createX402Fetch({\n signer, network: NETWORK, maxAmountPerPayment: \"10000\",\n policy: createRulesPolicy({ maxAmount: \"10000\", allowPayTo: [PAY_TO] }),\n});\nconst url = \"http://localhost:4022/data\";\nconst res = await pay(url);\n\n// 3. Receipt: bound to the exact USDC transfer, signed by the payer, checked against the chain\nconst receipt = await bindReceipt({ tx: settlementOf(res).transaction, network: NETWORK, ref: \"order-123\", resource: url, signer });\nconst check = await verifyReceipt(receipt);\nconsole.log(check.ok ? \"VALID\" : \"INVALID\", `${check.checks.filter((c) => c.ok).length}/${check.checks.length}`, settlementOf(res).transaction);\nserver.close();",
+ tx: "0x6c74e0ef29e4d6ae55b0fa2e983ea13b4bf8205fdb5d19dc83140c97f9717ae5",
+ txUrl: "https://testnet.snowtrace.io/tx/0x6c74e0ef29e4d6ae55b0fa2e983ea13b4bf8205fdb5d19dc83140c97f9717ae5",
+ result: "VALID 18/18",
+ run: { en: "nirium-avalanche 0.2.0 on Fuji, 27 Nov 2026", es: "nirium-avalanche 0.2.0 en Fuji, 27 nov 2026" },
+ verify: "npx -p nirium-avalanche nirium-verify-evm receipt.json",
+ repo: "https://github.com/nirium-protocol/nirium-avalanche",
+ },
+} as const;
+
+function ForDevelopers({ lang }: { lang: (en: string, es: string) => string }) {
+ const [tab, setTab] = useState<"solana" | "avalanche">("solana");
+ const q = QUICKSTART[tab];
+ return (
+
+
{lang("For developers", "Para desarrolladores")}
+
+ {lang(
+ "Charge for a route, pay it under your own policy, and get a receipt bound to the exact USDC transfer, signed by the payer. Test tokens only.",
+ "Cobra por una ruta, págala con tu propia política y obtén un recibo ligado a la transferencia exacta de USDC, firmado por quien paga. Solo tokens de prueba.")}
+ {" "}{lang("Base and Arbitrum: the library is not on npm yet.", "Base y Arbitrum: la librería todavía no está en npm.")}
+
+ {lang("Run verbatim with ", "Corrido tal cual con ")}{lang(q.run.en, q.run.es)}{": "}
+ {q.tx.slice(0, 10)}…{", "}{q.result}.
+
+
+
+
{lang("Anchor the receipt (Audit Trail)", "Ancla el recibo (Audit Trail)")}
+
{lang("Save it as receipt.json and send it to the Nirium node. It checks the hash and the payer's signature and returns a CID.", "Guárdalo como receipt.json y mándalo al nodo de Nirium. Revisa el hash y la firma de quien paga y te devuelve un CID.")}
+
{"curl -X POST https://nirium-agent.fly.dev/api/audit/binding \\\n -H 'content-type: application/json' --data-binary @receipt.json"}
+
+
+
{lang("Check it, without trusting us", "Compruébalo, sin confiar en nosotros")}
+
{lang("From a terminal, against the chain, or by CID on this chain's explorer page.", "Desde la terminal, contra la cadena, o con su CID en la página del explorador de esa red.")}
+
{q.verify}
+
+
+
+ {lang("Refused-payment receipts (DENY, WAIT) come from the package's /decision export, since 0.3.0. Source and full docs: ", "Los recibos de pagos rechazados (DENY, WAIT) salen del export /decision del paquete, desde la versión 0.3.0. Código y documentación completa: ")}
+ {q.repo.replace("https://github.com/", "")}
+
+
+ );
+}
+
+export default function ChainsPage() {
+ const { language } = useLanguage();
+ const lang = (en: string, es: string) => (language === "es" ? es : en);
+ return (
+
+ {lang(
+ "The same receipt, signed by whoever pays and checkable by anyone, on Stellar, Solana, Avalanche, Base and Arbitrum. This page is the one place that says what works where.",
+ "El mismo recibo, firmado por quien paga y comprobable por cualquiera, en Stellar, Solana, Avalanche, Base y Arbitrum. Esta página es el único lugar que dice qué funciona en cada red.",
+ )}
+
+
+
+ {/* Desktop: a table. Phones: one card per feature. */}
+
+
+
{lang("What works on each chain", "Qué funciona en cada red")}
+
+
+
{lang("Feature", "Función")}
+ {CHAINS.map((c) => (
+
+ {c.name}
+
+ ))}
+
+
+
+ {ROWS.map((r) => (
+
+
{lang(r.en, r.es)}
+ {r.cells.map((c, i) =>
)}
+
+ ))}
+
+
+
+
+ {ROWS.map((r) => (
+
+
{lang(r.en, r.es)}
+
+ {r.cells.map((c, i) => (
+
+
{CHAINS[i].name}
+
+
+ ))}
+
+
+ ))}
+
+
+
+
+
+
+
+
+
+ {lang(
+ "On Solana, Avalanche, Base and Arbitrum, the only mainnet payments so far are our own test payments. Testnet demos (Solana devnet, Avalanche Fuji) use test tokens only.",
+ "En Solana, Avalanche, Base y Arbitrum, los únicos pagos en mainnet hasta ahora son nuestras propias pruebas. Las demos en testnet (devnet de Solana, Fuji de Avalanche) usan solo tokens de prueba.",
+ )}
+
+
+ {lang(
+ "Non-custodial on every chain: the payer's own key signs, and Nirium never holds funds. A receipt records who declared a payment and what it was for; it does not prove that goods or a service were delivered.",
+ "Sin custodia en todas las redes: firma la llave de quien paga y Nirium nunca guarda fondos. Un recibo registra quién declaró un pago y para qué fue; no prueba que se entregaron bienes o un servicio.",
+ )}
+
+
+
+ );
+}
diff --git a/apps/web/app/(app)/coc/page.tsx b/apps/web/app/(app)/coc/page.tsx
index 1d569369..5930a2f0 100644
--- a/apps/web/app/(app)/coc/page.tsx
+++ b/apps/web/app/(app)/coc/page.tsx
@@ -14,8 +14,8 @@ export default function CocPage() {
{
title: t("1. Transparency", "1. Transparencia"),
body: t(
- <>We build in the open. Payments and rebalances settle on-chain, and anyone can check them on Stellar Expert. Audit Trail receipts can be checked by anyone at /verify (it recalculates the CID and the hash in your browser and checks the signature on our server) or, without depending on us at all, with npx nirium-cli verify <CID>.>,
- <>Construimos a la vista. Los pagos y rebalanceos se liquidan on-chain y cualquiera puede revisarlos en Stellar Expert. Los recibos de Audit Trail los puede comprobar cualquiera en /verify (recalcula el CID y el hash en tu navegador y revisa la firma en nuestro servidor) o, sin depender de nosotros para nada, con npx nirium-cli verify <CID>.>
+ <>We build in the open. Payments settle on-chain, and anyone can check them on each network's public explorer, such as Stellar Expert. Audit Trail receipts can be checked by anyone at /verify (it recalculates the CID and the hash in your browser and checks the signature on our server) or, without depending on us at all, with npx nirium-cli verify <CID>.>,
+ <>Construimos a la vista. Los pagos se liquidan on-chain y cualquiera puede revisarlos en el explorador público de cada red, como Stellar Expert. Los recibos de Audit Trail los puede comprobar cualquiera en /verify (recalcula el CID y el hash en tu navegador y revisa la firma en nuestro servidor) o, sin depender de nosotros para nada, con npx nirium-cli verify <CID>.>
),
},
{
@@ -24,15 +24,15 @@ export default function CocPage() {
// 9-nov-2026: decía "El LLM sugiere, el contrato decide". El firmante de
// mainnet no usa un LLM (reglas fijas, ver rebalanceDecision.ts) y sí firma
// Invest/Unwind; el loop con IA es la demo de testnet.
- <>We do not use deceptive practices, hype marketing or front-running. Where Nirium automates something, the contract sets the limits: the agent can only do what its on-chain role allows. The mainnet rebalancer follows fixed rules set by the vault owner, not an AI model, and its role cannot take funds out of the vault.>,
- <>No usamos prácticas engañosas, marketing exagerado ni front-running. Donde Nirium automatiza algo, el contrato pone los límites: el agente solo puede hacer lo que su rol on-chain permite. El rebalanceador de mainnet sigue reglas fijas que pone el dueño de la bóveda, no un modelo de IA, y su rol no puede sacar fondos de la bóveda.>
+ <>We do not use deceptive practices, hype marketing or front-running. A pre-sign policy runs in the payer's own client and can only refuse to sign.>,
+ <>No usamos prácticas engañosas, marketing exagerado ni front-running. Una política antes de firmar corre en el propio cliente del pagador y solo puede negarse a firmar.>
),
},
{
title: t("3. Safety", "3. Seguridad"),
body: t(
- "User protection comes first. Nirium is non-custodial: it never holds client keys, and the only role it can hold on a client vault cannot withdraw funds. Clients sign with their own wallet and keep their own keys.",
- "La protección del usuario va primero. Nirium es no custodial: nunca guarda las llaves del cliente, y el único rol que puede tener en una bóveda de un cliente no puede retirar fondos. Los clientes firman con su propia wallet y conservan sus llaves."
+ "User protection comes first. Nirium is non-custodial: it never holds client keys or client funds. Clients sign with their own wallet and keep their own keys.",
+ "La protección del usuario va primero. Nirium es no custodial: nunca guarda las llaves ni los fondos del cliente. Los clientes firman con su propia wallet y conservan sus llaves."
),
},
{
@@ -45,8 +45,8 @@ export default function CocPage() {
{
title: t("5. Open Source", "5. Código abierto"),
body: t(
- "We contribute back to the ecosystem. Our core smart contracts, SDK, MCP (Model Context Protocol) server and Agent API are published under the permissive Apache 2.0 license.",
- "Le regresamos al ecosistema. Nuestros contratos inteligentes principales, el SDK, el servidor MCP (Model Context Protocol) y la API del agente se publican con la licencia permisiva Apache 2.0."
+ "We contribute back to the ecosystem. Our smart contracts, packages, MCP (Model Context Protocol) server and site interface are published under the permissive Apache 2.0 license.",
+ "Le regresamos al ecosistema. Nuestros contratos inteligentes, paquetes, el servidor MCP (Model Context Protocol) y la interfaz del sitio se publican con la licencia permisiva Apache 2.0."
),
},
];
@@ -61,7 +61,7 @@ export default function CocPage() {
{t("Code of Conduct", "Código de Conducta")}
-
{t("Last updated: November 21, 2026", "Última actualización: 21 de noviembre de 2026")}
+
{t("Last updated: December 1, 2026", "Última actualización: 1 de diciembre de 2026")}
@@ -76,6 +76,12 @@ export default function CocPage() {
<>La comunidad, los desarrolladores y el ecosistema de Nirium Protocol siguen el Código de Conducta de Stellar. Queremos un ambiente acogedor, profesional y transparente para todos.>
)}
+
+ {t(
+ "Nirium also runs on Solana, Avalanche, Base and Arbitrum. In each ecosystem's own spaces (its Discord, forums and events) we follow that ecosystem's rules too; in Nirium's own spaces, the five principles below apply on every chain.",
+ "Nirium también corre en Solana, Avalanche, Base y Arbitrum. En los espacios de cada ecosistema (su Discord, sus foros y eventos) seguimos además sus propias reglas; en los espacios de Nirium aplican los cinco principios de abajo, en todas las redes."
+ )}
+
{t(
- <>When taking part in our Discord, our GitHub repositories, our events (such as Código 402) or our social channels, everyone is expected to:>,
- <>Al participar en nuestro Discord, en nuestros repositorios de GitHub, en nuestros eventos (como Código 402) o en nuestras redes, se espera que cada persona:>
+ <>When taking part in our Discord, our GitHub repositories, our events or our social channels, everyone is expected to:>,
+ <>Al participar en nuestro Discord, en nuestros repositorios de GitHub, en nuestros eventos o en nuestras redes, se espera que cada persona:>
)}
{t("Use welcoming and inclusive language.", "Use un lenguaje acogedor e inclusivo.")}
diff --git a/apps/web/app/(app)/compliance/page.tsx b/apps/web/app/(app)/compliance/page.tsx
index 97ef43e2..0b8dc1e1 100644
--- a/apps/web/app/(app)/compliance/page.tsx
+++ b/apps/web/app/(app)/compliance/page.tsx
@@ -254,6 +254,10 @@ export default function CompliancePage() {
{t.compliance_page.preview.note}
+
+ {language === 'es' ? 'Sin terminal: descárgalo en CSV o JSON desde ' : 'No terminal: download it as CSV or JSON from '}
+ Reporting.
+
@@ -267,7 +271,7 @@ export default function CompliancePage() {
- {language === 'es' ? 'Última actualización: 21 de noviembre de 2026' : 'Last updated: November 21, 2026'}
+ {language === 'es' ? 'Última actualización: 1 de diciembre de 2026' : 'Last updated: December 1, 2026'}
diff --git a/apps/web/app/(app)/dashboard/layout.tsx b/apps/web/app/(app)/dashboard/layout.tsx
index 49b5801a..34dd0949 100644
--- a/apps/web/app/(app)/dashboard/layout.tsx
+++ b/apps/web/app/(app)/dashboard/layout.tsx
@@ -3,7 +3,7 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/dashboard",
title: "Dashboard",
- description: "The Nirium operator dashboard: the agent's execution feed, vault state and Audit Trail receipts (anchored on IPFS).",
+ description: "The Nirium dashboard: activity per node, Audit Trail receipts (anchored on IPFS) and x402 settlements.",
});
export default function DashboardLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/dashboard/page.tsx b/apps/web/app/(app)/dashboard/page.tsx
index fe9f44a2..c46a64e5 100644
--- a/apps/web/app/(app)/dashboard/page.tsx
+++ b/apps/web/app/(app)/dashboard/page.tsx
@@ -1,3354 +1,50 @@
-// @ts-nocheck
'use client';
-import { SectionBrandLogo } from "@/components/ui/SectionBrandLogo";
+/** /dashboard - 30-nov-2026: Tesorería y Payouts archivados. Antes esta página era casi
+ * entera herramientas de NiriumVault (crear, fondear, delegar al agente) y su feed; eso
+ * salió con el archivo. Quedan la actividad por nodo y los recibos y cobros. **/
-import { Suspense, useState, useEffect, useMemo, useRef } from "react";
-import { motion, AnimatePresence } from "framer-motion";
-import { Canvas } from "@react-three/fiber";
-import { Float, Sphere, MeshTransmissionMaterial } from "@react-three/drei";
-import { CanvasErrorBoundary } from "@/components/3d/CanvasErrorBoundary";
-import Link from 'next/link';
-import { useFreighter } from "@/hooks/useFreighter";
-import { TransactionBuilder, Networks, Asset, Operation, Keypair } from "@stellar/stellar-sdk";
-import { toast } from "sonner";
-import { useRouter, useSearchParams } from "next/navigation";
-import { ExternalLink, Shield, X, AlertTriangle, Trash2, Info, ChevronRight, RefreshCw, Zap, Plus, Code, Cpu, Filter, Download, Activity, StopCircle, Database, Globe } from "lucide-react";
-import ProtocolRevenue from "@/components/dashboard/ProtocolRevenue";
-import PaymentStreams from "@/components/dashboard/PaymentStreams";
-import TelemetryFeed from "@/components/dashboard/TelemetryFeed";
-import { writeLog } from "@/lib/logger";
-import { stellarClient } from "@/lib/stellarClient";
-import { useVault } from "@/hooks/useNiriumContracts";
-import { getWebSocketUrl } from "@/lib/constants";
-import { simulateSorobanTx } from "@/lib/stellarSim";
-import { handleWalletError } from "@/components/wallet/WalletErrorHandler";
-import { NATIVE_ASSET_ID, USDC_ASSET_ID, CETES_ASSET_ID, vaultDeposit, vaultWithdraw, vaultCreate, vaultClose, vaultRevokeAgent, vaultDelegateAgent, vaultGetVaultCount, CETES_ASSET, getCETESBalance, hasCETESTrustline } from "@/lib/sorobanContracts";
-import { generateOnboardingUrl, getOrCreateCustomerIds } from "@/lib/etherfuseApi";
-import MarketTicker from "@/components/dashboard/MarketTicker";
+import { SectionBrandLogo } from "@/components/ui/SectionBrandLogo";
+import { ComplianceBanner } from "@/components/ui/ComplianceBanner";
import AuditTrailViewer from "@/components/dashboard/AuditTrailViewer";
-import ProtocolKernel from "@/components/dashboard/ProtocolKernel";
-import StatusBadge from "@/components/ui/StatusBadge";
-import { useLanguage } from "@/context/LanguageContext";
import NodeActivity from "@/components/analytics/NodeActivity";
import ReceiptsSettlements from "@/components/analytics/ReceiptsSettlements";
+import { useLanguage } from "@/context/LanguageContext";
import { useNetwork } from "@/context/NetworkContext";
-import NetworkScopeNote from "@/components/shared/NetworkScopeNote";
-
-import { ComplianceBanner } from "@/components/ui/ComplianceBanner";
-
-// WebSocket hook removed as it was unused and redundant
-
-function ProtocolKernelSmall() {
- return (
-
-
-
- );
-}
-function DashboardContent() {
+export default function Dashboard() {
const { t, language } = useLanguage();
- // Textos fijos del panel en el idioma elegido.
- const L = (en: string, es: string) => (language === 'es' ? es : en);
- const router = useRouter();
- const searchParams = useSearchParams();
- const { address: accountStr, isConnected, connect, disconnect } = useFreighter();
- const account = useMemo(() => isConnected && accountStr ? { address: accountStr, chains: ['stellar:testnet'] } : null, [isConnected, accountStr]);
- // Helper: Sign transaction with Freighter and submit to Horizon.
- const signAndSubmitTransaction = async ({ transaction }: { transaction: any }): Promise<{ hash: string }> => {
- const { signTransaction } = await import("@stellar/freighter-api");
- const { Horizon, Networks, TransactionBuilder } = await import("@stellar/stellar-sdk");
-
- console.log("Signing XDR via Freighter...");
- const txXdr = transaction.toXDR();
-
- // Let Freighter sign the Transaction
- const response = await signTransaction(txXdr, {
- networkPassphrase: Networks.TESTNET,
- address: transaction.source, // Ensure Freighter signs with the transaction's source account
- } as any);
-
- if (response.error) {
- throw new Error(response.error as string);
- }
-
- // Submit the signed transaction via Horizon
- const server = new Horizon.Server("https://horizon-testnet.stellar.org");
- const signedTx = TransactionBuilder.fromXDR(response.signedTxXdr, Networks.TESTNET);
-
- try {
- const result = await server.submitTransaction(signedTx as any);
-
- if (!result.successful) {
- throw new Error('Stellar Transaction failed on-chain');
- }
-
- return { hash: result.hash };
- } catch (e: any) {
- console.error("Horizon Submission Error:", e.response?.data || e);
- if (e.response?.data?.extras?.result_codes) {
- const codes = e.response.data.extras.result_codes;
- throw new Error(`Horizon rejected Tx: ${codes.transaction} - Operations: ${codes.operations?.join(', ')}`);
- }
- throw e;
- }
- };
-
- // Helper: fetch current sequence number and build transaction
- const buildStellarTransaction = async (accountId: string) => {
- const { TransactionBuilder, Networks, Horizon } = await import("@stellar/stellar-sdk");
- const server = new Horizon.Server("https://horizon-testnet.stellar.org");
- const sourceAccount = await server.loadAccount(accountId);
- return new TransactionBuilder(sourceAccount, { fee: "100", networkPassphrase: Networks.TESTNET }).setTimeout(300);
- };
-
- // Helper: fetch account or contract state from Horizon/Soroban
- const getLiveAccountData = async (accountId: string) => {
- const obj = await stellarClient.getObject({ id: accountId });
- if (!obj.data) throw new Error(`Account ${accountId} not found on Stellar network`);
- return obj.data;
- };
- const [showAutoStartModal, setShowAutoStartModal] = useState(false);
- const [baseAsset, setBaseAsset] = useState<"XLM" | "USDC" | "CETES">("USDC");
- const getCoinType = () => baseAsset === "XLM"
- ? "XLM"
- : baseAsset === "CETES"
- ? "CETES"
- : "USDC";
-
- const [selectedStrategy, setSelectedStrategy] = useState(null); // State for Details Modal
- const [expandConsole, setExpandConsole] = useState(false);
-
- const [blendData, setBlendData] = useState<{ supplyApy: number, borrowApy: number } | null>(null);
- const [phoenixData, setPhoenixData] = useState<{ supplyApy: number, borrowApy: number } | null>(null);
- const [currentMarketState, setCurrentMarketState] = useState<{ etherfuseApy: number; baseFee: number; pathPaymentRoutes: any[] } | null>(null);
- const [walletBalance, setWalletBalance] = useState(0);
- const [cetesBalance, setCetesBalance] = useState('0');
- const [hasCetesTrust, setHasCetesTrust] = useState(false);
- const [onChainVaultCount, setOnChainVaultCount] = useState(null);
- const [onChainTotalFees, setOnChainTotalFees] = useState(null);
- const [globalActiveAgents, setGlobalActiveAgents] = useState(null);
- // Empieza vacío: antes traía tres mensajes de demo ("Strategic execution
- // network online...") que se veían igual que logs reales y se quedaban si
- // /api/logs fallaba. TelemetryFeed ya tiene su propio estado vacío.
- const [thoughts, setThoughts] = useState([]);
- const vault = useVault();
-
- // Fetch live on-chain data from Soroban RPC
- useEffect(() => {
- const fetchOnChainData = async () => {
- try {
- const [count, fees] = await Promise.all([
- vault.getVaultCount(),
- vault.getTotalFees(),
- ]);
- setOnChainVaultCount(count);
- setOnChainTotalFees(fees / 10_000_000);
- } catch (e) {
- console.warn('[Dashboard] On-chain data fetch failed:', e);
- }
- };
- fetchOnChainData();
- }, [accountStr]);
-
- // Fetch global active agents count from Supabase
- useEffect(() => {
- const fetchGlobalAgents = async () => {
- try {
- const { supabase } = await import('@/lib/supabase');
- const { count } = await supabase
- .from('nirium_protocol_records')
- .select('*', { count: 'exact', head: true })
- .eq('record_type', 'STRATEGY')
- .eq('status', 'RUNNING');
- setGlobalActiveAgents(count ?? 0);
- } catch {
- setGlobalActiveAgents(null);
- }
- };
- fetchGlobalAgents();
- }, []);
-
- // Fetch telemetry from /api/logs (combines agent_logs + activity + Horizon), polling every 8s
- useEffect(() => {
- const fetchThoughts = async () => {
- try {
- const res = await fetch('/api/logs');
- const data = await res.json();
- if (!Array.isArray(data) || data.length === 0) return;
- setThoughts(data.slice(0, 20).map((d: any) => ({
- id: d.id,
- agent: d.agent_id ?? 'CORE',
- content: d.message ?? '',
- timestamp: d.created_at ?? new Date().toISOString(),
- type: (d.level === 'error' || d.level === 'warn') ? 'security' : 'execution',
- })));
- } catch {
- // silently ignore - empty state handles it
- }
- };
- fetchThoughts();
- // Nothing while the tab is in the background: each poll is a server function run on Vercel.
- const interval = setInterval(() => { if (document.visibilityState === 'visible') fetchThoughts(); }, 8000);
- return () => clearInterval(interval);
- }, []);
-
- const [vaultBalance, setVaultBalance] = useState(0);
- const [vaultId, setVaultId] = useState(null);
- // 16-nov-2026: Treasury (bóveda de testnet) va plegado debajo de recibos y cobros.
- // Se abre solo si ya tienes bóveda o si llegas desde el builder con una estrategia.
const { network: uiNet } = useNetwork();
- const [treasuryOpen, setTreasuryOpen] = useState(false);
- const [autoRebalance, setAutoRebalance] = useState(false);
- const [autoRebalanceLoading, setAutoRebalanceLoading] = useState(false);
- const [delegationId, setDelegationId] = useState(null);
- const [autoExit, setAutoExit] = useState(false);
- const [autoExitLoading, setAutoExitLoading] = useState(false);
- const [delegationTxHash, setDelegationTxHash] = useState(null);
- const [rebalanceThreshold, setRebalanceThreshold] = useState(2.5);
- const [reverseThreshold, setReverseThreshold] = useState(2.0);
- const [ownerCapId, setOwnerCapId] = useState(null);
- const [amountInput, setAmountInput] = useState("0.1");
- const [installedSkills, setInstalledSkills] = useState([]);
-
- const tradingSkills = installedSkills.filter(s => s.category === 'trading' || s.category === 'defi');
- const activePlugins = installedSkills.filter(s => s.category !== 'trading' && s.category !== 'defi');
- const [isSkillsLoading, setIsSkillsLoading] = useState(false);
-
- const [confirmConfig, setConfirmConfig] = useState<{
- isOpen: boolean;
- title: string;
- description: React.ReactNode;
- icon: React.ReactNode;
- confirmText: string;
- onConfirm: () => void;
- type: 'danger' | 'info';
- }>({
- isOpen: false,
- title: '',
- description: '',
- icon: null,
- confirmText: '',
- onConfirm: () => { },
- type: 'info'
- });
-
- // Fetch User Real Balance
- useEffect(() => {
- if (!account?.address) return;
-
- const fetchBalance = async () => {
- try {
- const { stellarClient } = await import("@/lib/stellarClient");
- const decimals = 10_000_000; // All Stellar / Soroban SAC assets use 7 decimals
- const coinType = baseAsset === "XLM"
- ? "XLM"
- : "USDC";
- const balance = await stellarClient.getBalance({ owner: account.address, coinType });
- const total = Number(BigInt(balance.totalBalance)) / decimals;
- setWalletBalance(total);
- } catch (e) {
- console.warn("Soft Error: Wallet Fetch Failed", e);
- }
- };
-
- fetchBalance();
- const interval = setInterval(fetchBalance, 10000); // Poll every 10s
- return () => clearInterval(interval);
- }, [account, baseAsset]);
-
- // Fetch CETES Balance and Trustline Status
- useEffect(() => {
- if (!account?.address) return;
-
- const fetchCETESData = async () => {
- try {
- const [balance, trustlineStatus] = await Promise.all([
- getCETESBalance(account.address),
- hasCETESTrustline(account.address)
- ]);
- setCetesBalance(balance);
- setHasCetesTrust(trustlineStatus);
- } catch (e) {
- console.warn("CETES fetch failed:", e);
- }
- };
-
- fetchCETESData();
- const interval = setInterval(fetchCETESData, 10000); // Poll every 10s
- return () => clearInterval(interval);
- }, [account]);
-
- // Fetch Vault Balance specifically
- useEffect(() => {
- if (!vaultId) {
- setVaultBalance(0);
- return;
- }
-
- const fetchVaultBalance = async () => {
- try {
- if (vaultId) {
- const vData = await vault.getVault(Number(vaultId));
- if (vData && vData.balance !== undefined) {
- const realBalance = Number(BigInt(vData.balance)) / 10_000_000;
- setVaultBalance(realBalance);
- return;
- }
- }
-
- // Fallback: Read from local storage to keep demo state across refreshes if contract not ready
- const storedBalance = localStorage.getItem(`nirium-vault-balance-${vaultId}-${baseAsset}`);
- if (storedBalance) {
- setVaultBalance(parseFloat(storedBalance));
- } else {
- setVaultBalance(0);
- }
- } catch (e) {
- console.warn("Soft Error: Vault Balance Scan Failed", e);
- }
- };
-
- fetchVaultBalance();
- const interval = setInterval(fetchVaultBalance, 10000);
- return () => clearInterval(interval);
- }, [vaultId, baseAsset]);
-
- // Fetch Real Protocol Data
- useEffect(() => {
- const fetchProtocols = async () => {
- try {
- // Direct fetch to Protocol SDKs (Simulated for Demo Stability)
- console.log("Connecting to Liquidity Protocols...");
-
- // Simulation of network call latency
- await new Promise(r => setTimeout(r, 1000));
-
- // In a full production app we would use:
- // const blend = new BlendSDK({ networkType: 'testnet' });
- // const market = await blend.queryMarket();
- // setBlendData(market.stellar.apy);
-
- // Blend/Phoenix rates not used in main stats - CETES rate from Etherfuse is the reference
- // These remain available for the Strategy Builder internal calculations
- setBlendData({ supplyApy: 0, borrowApy: 0 });
- setPhoenixData({ supplyApy: 0, borrowApy: 0 });
-
- } catch (e) {
- console.error("Protocol data fetch error", e);
- }
- };
- fetchProtocols();
- }, []);
-
- // Fetch Installed Skills
- const fetchInstalledSkills = async (agentId?: string) => {
- if (!agentId) return;
-
- setIsSkillsLoading(true);
- try {
- // Skills/Plugins catalog (now fetched from protocol-meta)
- const SKILL_CATALOG = protocolMeta.skills || {};
-
- // Read from localStorage PER-AGENT (where Marketplace + Plugins pages persist installs)
- const localSkills = JSON.parse(localStorage.getItem(`nirium-skills-${agentId}`) || '{}');
- const localPlugins = JSON.parse(localStorage.getItem(`nirium-plugins-${agentId}`) || '{}');
- const allLocalInstalled = { ...localSkills, ...localPlugins };
-
- // Build full skill objects from the catalog
- const resolved: any[] = [];
- for (const key of Object.keys(allLocalInstalled)) {
- if (allLocalInstalled[key] && SKILL_CATALOG[key]) {
- resolved.push(SKILL_CATALOG[key]);
- }
- }
-
- // Also try the API (merge if available)
- try {
- const response = await fetch(`/api/marketplace/installed?agentId=${agentId}`);
- const data = await response.json();
- if (data.success && data.skills?.length > 0) {
- const existingSlugs = new Set(resolved.map(s => s.slug));
- for (const s of data.skills) {
- if (!existingSlugs.has(s.slug)) {
- resolved.push(s);
- }
- }
- }
- } catch {
- // API unavailable, localStorage data is sufficient
- }
-
- setInstalledSkills(resolved);
- } catch (error) {
- console.error("Failed to fetch skills", error);
- } finally {
- setIsSkillsLoading(false);
- }
- };
-
- useEffect(() => {
- if (selectedStrategy?.id) {
- fetchInstalledSkills(selectedStrategy.id);
- }
- }, [selectedStrategy]);
-
- const handleUninstallSkill = async (slug: string) => {
- if (!selectedStrategy?.id) return;
-
- const toastId = toast.loading(L(`Uninstalling ${slug}...`, `Desinstalando ${slug}...`));
- try {
- // Remove from localStorage (per-agent)
- const agentId = selectedStrategy.id;
- const localSkills = JSON.parse(localStorage.getItem(`nirium-skills-${agentId}`) || '{}');
- const localPlugins = JSON.parse(localStorage.getItem(`nirium-plugins-${agentId}`) || '{}');
-
- delete localSkills[slug];
- delete localPlugins[slug];
-
- localStorage.setItem(`nirium-skills-${agentId}`, JSON.stringify(localSkills));
- localStorage.setItem(`nirium-plugins-${agentId}`, JSON.stringify(localPlugins));
-
- // Update state
- setInstalledSkills(prev => prev.filter(s => s.slug !== slug));
- toast.success(L("Skill uninstalled", "Skill desinstalada"), { id: toastId });
-
- // Log to Ops Console
- const skillName = installedSkills.find(s => s.slug === slug)?.name || slug;
- writeLog(`PLUGIN REMOVED: ${skillName} - uninstalled from agent ${agentId}`, 'warn', account?.address);
- } catch (error) {
- toast.error(L(`Failed to uninstall: ${String(error)}`, `No se pudo desinstalar: ${String(error)}`), { id: toastId });
- }
- };
-
- // --- 1. STATE DECLARATIONS (Must correspond to logic below) ---
- // Active Strategies Fleet (Persisted via Supabase/Local)
- const [activeStrategies, setActiveStrategies] = useState>([]);
- const [isLoadingFleet, setIsLoadingFleet] = useState(false);
- const [isInitialized, setIsInitialized] = useState(false);
-
- // Modals (showAutoStartModal already declared above)
-
- // --- 2. CONSTANTS & MEMOS ---
- // Protocol Metadata state (fetched from API)
- const [protocolMeta, setProtocolMeta] = useState({ strategies: {}, skills: {}, bootLogs: {} });
-
- // Fetch Protocol Metadata on mount
- useEffect(() => {
- const fetchMeta = async () => {
- try {
- const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL || 'https://nirium-agent.fly.dev'}/api/public/protocol-meta`);
- const data = await res.json();
- if (data.success) {
- setProtocolMeta(data);
- }
- } catch (e) {
- console.warn("[Dashboard] Protocol metadata fetch failed, using fallback empty state.");
- }
- };
- fetchMeta();
- }, []);
-
- // Fetch live market state (CETES rate, base fee, corridors)
- useEffect(() => {
- const fetchMarket = async () => {
- try {
- const res = await fetch('/api/market');
- const data = await res.json();
- setCurrentMarketState({
- etherfuseApy: data.cetesRate ?? 0,
- baseFee: data.baseFee ?? 100,
- pathPaymentRoutes: data.pathPaymentRoutes ?? [],
- });
- } catch { /* use fallback */ }
- };
- fetchMarket();
- const interval = setInterval(fetchMarket, 30_000);
- return () => clearInterval(interval);
- }, []);
-
- const STRATEGIES = protocolMeta.strategies || {};
-
- const strategyId = searchParams.get('strategy') || "nirium-usdc-loop";
- const strategyNameParam = searchParams.get('name'); // From Builder redirect
-
- // Dynamically resolve strategy metadata (Default -> Active Fleet -> URL Param -> Custom Fallback)
- const currentStrategy = useMemo(() => {
- // 1. Known Hardcoded Strategy
- if (STRATEGIES[strategyId]) return STRATEGIES[strategyId];
-
- // 2. Look in Active Fleet (Loaded from DB/Local)
- const found = activeStrategies.find(s => s.id === strategyId || s.strategy_id === strategyId);
- if (found) return { name: found.name, logPrefix: "CUSTOM", emoji: found.emoji };
-
- // 3. Try direct LocalStorage peek (for immediate post-builder redirect)
- if (typeof window !== 'undefined' && account?.address) {
- try {
- const localKey = `nirium-fleet-${account.address}`;
- const local = JSON.parse(localStorage.getItem(localKey) || "[]");
- const localFound = local.find((s: any) => s.id === strategyId);
- if (localFound) return { name: localFound.name, logPrefix: "CUSTOM", emoji: localFound.emoji || "🛠️" };
- } catch { }
- }
-
- // 4. Use URL name param if provided (for immediate display before data loads)
- if (strategyNameParam) {
- return { name: strategyNameParam, logPrefix: "CUSTOM", emoji: "🛠️" };
- }
-
- // 5. Smart Fallback
- if (strategyId.startsWith('custom-')) {
- return { name: "Custom Agent Strategy", logPrefix: "BUILDER", emoji: "🛠️" };
- }
-
- return STRATEGIES["nirium-usdc-loop"] || { name: "Nirium Loop", logPrefix: "CORE", emoji: "🧬" };
- }, [strategyId, activeStrategies, account, strategyNameParam, STRATEGIES]);
-
- // Treasury plegado: se abre con bóveda propia o al llegar con una estrategia/activo en la URL.
- useEffect(() => {
- if (vaultId !== null || searchParams.get('strategy') || searchParams.get('asset') || strategyNameParam) {
- setTreasuryOpen(true);
- }
- }, [vaultId, searchParams, strategyNameParam]);
-
- // Auto-deploy logic for Navbar CTA
- useEffect(() => {
- const assetParam = searchParams.get('asset');
- if (assetParam === 'XLM' || assetParam === 'USDC') {
- setBaseAsset(assetParam);
- }
-
- if (searchParams.get('autostart') === 'true' && account) {
- setTreasuryOpen(true);
- // Preserve name param if it exists
- const nameParam = strategyNameParam ? `&name=${encodeURIComponent(strategyNameParam)}` : '';
- router.replace(`/dashboard?strategy=${strategyId}${nameParam}`);
- setShowAutoStartModal(true);
- }
- }, [searchParams, account, router, strategyId, strategyNameParam]);
-
- useEffect(() => {
- if (account?.address) {
- const loadFleet = async () => {
- setIsLoadingFleet(true);
- setIsInitialized(false);
- try {
- // Dynamic import to avoid server-side issues
- const { StrategyService } = await import("@/lib/strategyService");
- const fleet = await StrategyService.getStrategies(account.address);
-
- // Merge with LocalStorage to capture offline-created custom builds
- const localKey = `nirium-fleet-${account.address}`;
- const localRaw = localStorage.getItem(localKey);
- let merged = [...fleet];
-
- if (localRaw) {
- const local = JSON.parse(localRaw) as any[];
-
- // 1. Deduplicate LocalStorage internally (keep latest)
- const localMap = new Map();
- local.forEach(item => {
- if (item.id) localMap.set(item.id, item);
- });
- const distinctLocal = Array.from(localMap.values());
-
- // 2. Filter out items that are already in DB
- const uniqueLocals = distinctLocal.filter((l: any) =>
- !fleet.some(dbS =>
- (dbS.strategy_id && dbS.strategy_id === l.id) ||
- (dbS.name === l.name)
- )
- );
- merged = [...merged, ...uniqueLocals];
- }
-
- if (merged.length === 0) {
- // Clean state
- setActiveStrategies([]);
- } else {
- // FINAL AGGRESSIVE DEDUP: Prioritize NAME to avoid same-name duplicates
- const finalMap = new Map();
- merged.forEach(item => {
- // For custom strategies, use name as key (prevents "StellarL" appearing 3 times)
- // For DB strategies, use id
- const isCustom = item.id?.startsWith('custom-') || item.strategy_id?.startsWith('custom-');
- const key = isCustom ? (item.name || item.id) : (item.id || item.name);
-
- if (key && !finalMap.has(key)) {
- finalMap.set(key, item);
- }
- });
- const finalDeduped = Array.from(finalMap.values());
-
- // Filter out DRAFT strategies - show any RUNNING/active status
- const activeOnly = finalDeduped.filter(s => {
- const st = (s.status || '').toUpperCase();
- return st !== 'DRAFT' && st !== '';
- });
-
- // Also clean up LocalStorage to prevent future issues
- if (finalDeduped.length < merged.length) {
- const localKey = `nirium-fleet-${account.address}`;
- localStorage.setItem(localKey, JSON.stringify(finalDeduped));
- console.log('[Dashboard] Cleaned duplicate strategies from LocalStorage');
- }
-
- setActiveStrategies(activeOnly);
- }
- } catch (e) {
- console.error("Supabase sync failed, using local", e);
- } finally {
- setIsLoadingFleet(false);
- setIsInitialized(true);
- }
- };
- loadFleet();
- } else {
- setActiveStrategies([]);
- setIsInitialized(false);
- }
- }, [account]);
-
- // Persist activeStrategies to LocalStorage whenever they change (after initial load)
- useEffect(() => {
- if (!isInitialized || !account?.address) return;
-
- const localKey = `nirium-fleet-${account.address}`;
- try {
- // Merge with existing to preserve DRAFT strategies from Builder
- const existing = JSON.parse(localStorage.getItem(localKey) || "[]");
- const drafts = existing.filter((s: any) => s.status === 'DRAFT');
-
- // activeStrategies only contains RUNNING strategies
- // Combine DRAFTs (from builder) + RUNNING (from dashboard)
- const combined = [...drafts, ...activeStrategies];
-
- // Deduplicate by ID
- const deduped = Array.from(new Map(combined.map(s => [s.id, s])).values());
-
- localStorage.setItem(localKey, JSON.stringify(deduped));
- console.log('[Dashboard] Synced fleet to LocalStorage:', deduped.length, 'strategies');
- } catch (e) {
- console.warn('[Dashboard] Failed to sync LocalStorage:', e);
- }
- }, [activeStrategies, isInitialized, account]);
-
- const handleDeploy = () => {
- if (!account) {
- toast.error(L("Please connect your Stellar wallet first", "Primero conecta tu wallet de Stellar"));
- return;
- }
-
- // Check duplicates
- if (activeStrategies.find(s => s.strategy_id === strategyId)) {
- toast.warning(L(`${currentStrategy.emoji} ${currentStrategy.name} is already active`, `${currentStrategy.emoji} ${currentStrategy.name} ya está activa`));
- return;
- }
-
- setShowAutoStartModal(true);
- };
-
- const executeDeploy = async () => {
- if (!account) return;
-
- const toastId = toast.loading(L(`Starting ${currentStrategy.name}...`, `Iniciando ${currentStrategy.name}...`));
-
- // determine Mode: V2 (AgentCap) or V1 (Script)
- const useAgentCap = !!(vaultId && ownerCapId);
- // Updated License fee: 12.5 XLM (approx. 100 MXN / 5 USD)
- const REQUIRED_FEE_LO: string = "125000000"; // 12.5 XLM in stroops
-
- // Network Check (Strict)
- if (account.chains?.[0] && account.chains[0] !== 'stellar:testnet') {
- toast.error(L("Wrong network", "Red equivocada"), {
- description: L("This dashboard runs on Stellar testnet. Switch your wallet's network.", "Este panel corre en Stellar testnet. Cambia la red de tu wallet.")
- });
- return;
- }
- const REQUIRED_BALANCE = 15.0; // 12.5 Fee + Gas Buffer
-
- try {
- // 0. Check Balance
- // Check Native XLM Balance for Transaction Gas + Fee Requirements
- let requiredStellarAmount = REQUIRED_BALANCE;
- const { stellarClient } = await import("@/lib/stellarClient");
- const nativeBalance = await stellarClient.getBalance({ owner: account.address, coinType: 'XLM' }).then(b => Number(BigInt(b.totalBalance)) / 10_000_000);
-
- if (nativeBalance < REQUIRED_BALANCE) {
- toast.error(t.dashboard.toasts.insufficient_balance.replace('{amount}', REQUIRED_BALANCE.toString()), {
- description: L(`Detected: ${nativeBalance.toFixed(4)} XLM.`, `Detectado: ${nativeBalance.toFixed(4)} XLM.`)
- });
- return;
- }
-
- // REAL INSTITUTIONAL SOROBAN CALL
- toast.loading(t.dashboard.toasts.deploying_vault, { id: toastId });
- const result = await vault.createVault(account.address, NATIVE_ASSET_ID, currentStrategy.name);
-
- if (!result.success || !result.txHash) {
- toast.dismiss(toastId);
- toast.error(t.dashboard.toasts.deployment_failed, {
- description: result.error || t.dashboard.toasts.check_freighter
- });
- return;
- }
-
- const txHash = result.txHash;
-
- // Extract vault ID and store so stop flow can call close_vault
- const newVaultData = result.result as any;
- const newVaultId = newVaultData
- ? Number(newVaultData.vault_id ?? newVaultData.vaultId ?? newVaultData[0] ?? NaN)
- : NaN;
- if (!isNaN(newVaultId)) {
- const storageData = {
- vaultId: newVaultId,
- ownerCapId: `cap_${newVaultId}_${Date.now()}`,
- createdAt: Date.now(),
- txHash,
- };
- localStorage.setItem(`nirium-vault-v2-XLM-${account.address}`, JSON.stringify(storageData));
- setVaultId(newVaultId);
- }
-
- toast.dismiss(toastId);
- toast.success(L(`${currentStrategy.emoji} ${currentStrategy.name} active`, `${currentStrategy.emoji} ${currentStrategy.name} activa`), {
- description: L("Vault created on Soroban.", "Bóveda creada en Soroban."),
- action: {
- label: "Verify on Explorer",
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${txHash}`, "_blank")
- }
- });
-
- // Save to Supabase & State (vault_id in config so stop works after page reload)
- const { StrategyService } = await import("@/lib/strategyService");
- StrategyService.deployStrategy(account.address, {
- strategy_id: strategyId,
- name: currentStrategy.name,
- emoji: currentStrategy.emoji,
- status: "RUNNING",
- yield: "~6.5%",
- tx_digest: txHash,
- config: !isNaN(newVaultId) ? { vault_id: newVaultId } : {}
- }).then((newStrategy: any) => {
- const strategyToAdd = {
- id: newStrategy?.id || strategyId,
- strategy_id: strategyId,
- name: currentStrategy.name,
- emoji: currentStrategy.emoji,
- status: "RUNNING",
- yield: "~6.5%",
- tx_digest: txHash,
- };
- setActiveStrategies(prev => {
- const filtered = prev.filter(s => s.id !== strategyId && s.strategy_id !== strategyId);
- return [strategyToAdd, ...filtered];
- });
- });
-
- writeLog(`Agent Activity: ${currentStrategy.name} initialization confirmed.`, 'info', account?.address);
-
- writeLog(
- `${currentStrategy.emoji} AGENT DEPLOYED: ${currentStrategy.name} | tx: ${txHash.slice(0, 12)}...`,
- 'success',
- account?.address
- );
-
- // Strategy-specific boot logs (now fetched from protocol-meta)
- const STRATEGY_BOOT_LOGS = protocolMeta.bootLogs || {};
-
- const bootLogs = STRATEGY_BOOT_LOGS[strategyId];
- if (bootLogs) {
- bootLogs.forEach((entry, i) => {
- setTimeout(() => {
- writeLog(entry.msg, entry.level, account?.address);
- }, (i + 1) * 2000);
- });
- }
-
- } catch (err: any) {
- console.error("Deploy Error:", err);
- toast.dismiss(toastId);
- handleWalletError(err);
- }
- };
-
- const stopStrategy = (dbId: string) => {
- if (!account) {
- toast.error(L("Please connect your Stellar wallet first", "Primero conecta tu wallet de Stellar"));
- return;
- }
- const foundStrategy = activeStrategies.find(s => s.id === dbId || s.strategy_id === dbId);
- if (!foundStrategy) return;
-
- setConfirmConfig({
- isOpen: true,
- title: L("Stop this agent?", "¿Detener este agente?"),
- description: (
-
-
{L('You are about to stop the agent for ', 'Vas a detener el agente de ')}{foundStrategy.name}.
-
-
-
- {L('What happens', 'Qué pasa')}
-
-
- {L('• The agent stops acting on this strategy', '• El agente deja de actuar en esta estrategia')}
- {L('• If it has a vault, it is closed on-chain (balance must be 0)', '• Si tiene bóveda, se cierra en la cadena (el saldo debe ser 0)')}
- {L('• Needs your signature in Freighter', '• Requiere tu firma en Freighter')}
-
-
-
- ),
- icon:
-
-
-
,
- confirmText: L("STOP AGENT", "DETENER AGENTE"),
- type: 'danger',
- onConfirm: () => {
- setConfirmConfig(prev => ({ ...prev, isOpen: false }));
- executeStopStrategy(dbId);
- }
- });
- };
-
- const executeStopStrategy = async (dbId: string) => {
- if (!account) return;
-
- // Network Check (Strict)
- if (account.chains?.[0] && account.chains[0] !== 'stellar:testnet') {
- toast.error(L("Wrong network", "Red equivocada"), {
- description: L("This dashboard runs on Stellar testnet. Switch your wallet's network.", "Este panel corre en Stellar testnet. Cambia la red de tu wallet.")
- });
- return;
- }
-
- const toastId = toast.loading(L("Stopping the agent...", "Deteniendo el agente..."));
-
- try {
- // Resolve vaultId: state → localStorage → Supabase config
- let resolvedVaultId = vaultId;
- if (resolvedVaultId === null && account?.address) {
- for (const asset of ['USDC', 'XLM', 'CETES']) {
- try {
- const saved = localStorage.getItem(`nirium-vault-v2-${asset}-${account.address}`);
- if (saved) {
- const parsed = JSON.parse(saved);
- if (parsed?.vaultId != null && !isNaN(Number(parsed.vaultId))) {
- resolvedVaultId = Number(parsed.vaultId);
- break;
- }
- }
- } catch { /* skip */ }
- }
- }
- // Last resort: read vault_id from the strategy's config in Supabase/localStorage
- if (resolvedVaultId === null) {
- const found = activeStrategies.find(s => s.id === dbId || s.strategy_id === dbId);
- const configVaultId = found?.config?.vault_id;
- if (configVaultId != null && !isNaN(Number(configVaultId))) {
- resolvedVaultId = Number(configVaultId);
- }
- }
-
- // Close vault on-chain - proper Soroban invocation, 1 Freighter signature
- const localVaultId = resolvedVaultId;
- const closeResult = localVaultId !== null
- ? await vaultClose(account.address, localVaultId)
- : null;
-
- toast.dismiss(toastId);
- if (closeResult?.success && closeResult?.txHash) {
- toast.success(L("Vault closed", "Bóveda cerrada"), {
- description: L(`Vault #${localVaultId} closed on Stellar testnet.`, `Bóveda #${localVaultId} cerrada en Stellar testnet.`),
- action: {
- label: "View Tx",
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${closeResult.txHash}`, "_blank")
- }
- });
- writeLog(`VAULT CLOSED: #${localVaultId} | tx: ${closeResult.txHash.slice(0, 12)}...`, 'warn', account?.address);
- } else {
- // Fallback: signed memo tx so Freighter still prompts
- const { Operation, Asset, Memo } = await import("@stellar/stellar-sdk");
- const stratName = activeStrategies.find(s => s.id === dbId)?.name || dbId;
- const tx = await buildStellarTransaction(account.address);
- tx.addOperation(Operation.payment({
- destination: account.address,
- asset: Asset.native(),
- amount: "0.0001"
- })).addMemo(Memo.text(`NIRIUM:STOP:${stratName.slice(0, 16)}`));
- const builtTx = tx.build();
- const result = await signAndSubmitTransaction({ transaction: builtTx });
- toast.success(L("Agent stopped", "Agente detenido"), {
- description: L("Stop recorded on Stellar testnet.", "Detención registrada en Stellar testnet."),
- action: {
- label: "View Tx",
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${result.hash}`, "_blank")
- }
- });
- writeLog(`AGENT TERMINATED: ${stratName} | tx: ${result.hash.slice(0, 12)}...`, 'warn', account?.address);
- }
-
- // Step 2: Clean up locally
- setActiveStrategies(prev => prev.filter(s => s.id !== dbId));
-
- // Server-side stop (DB update)
- const isUUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(dbId);
- if (isUUID) {
- import("@/lib/strategyService").then(({ StrategyService }) => {
- StrategyService.stopStrategy(dbId).catch(console.warn);
- });
- }
-
- // Persist removal to LocalStorage
- if (account?.address) {
- const localKey = `nirium-fleet-${account.address}`;
- try {
- const existing = JSON.parse(localStorage.getItem(localKey) || "[]");
- const filtered = existing.filter((s: any) => s.id !== dbId && s.strategy_id !== dbId);
- localStorage.setItem(localKey, JSON.stringify(filtered));
- } catch (e) { }
- }
-
- } catch (e: any) {
- toast.dismiss(toastId);
- console.warn("Agent stop error:", e);
- const msg = e.message || String(e);
-
- if (msg.includes("Rejected")) return;
-
- // If it's a network error (502) or the object doesn't exist, offer "Force Remove"
- toast.error(L("Sync failed", "Falló la sincronización"), {
- description: L(`Code: ${msg.slice(0, 30)}...`, `Código: ${msg.slice(0, 30)}...`),
- action: {
- label: "FORCE REMOVE",
- onClick: () => {
- // 1. Force clean up local state
- setActiveStrategies(prev => prev.filter(s => s.id !== dbId));
-
- // 2. Force clean up database (Uplink)
- import("@/lib/strategyService").then(({ StrategyService }) => {
- StrategyService.stopStrategy(dbId).catch(err => console.error("DB Cleanup failed:", err));
- });
-
- // 3. Force clean up local storage
- if (account?.address) {
- const localKey = `nirium-fleet-${account.address}`;
- try {
- const existing = JSON.parse(localStorage.getItem(localKey) || "[]");
- const filtered = existing.filter((s: any) => s.id !== dbId && s.strategy_id !== dbId);
- localStorage.setItem(localKey, JSON.stringify(filtered));
- } catch (err) { }
- }
- toast.success(L("Agent removed from the list and its record cleared", "Agente quitado de la lista y su registro borrado"));
- writeLog(`AGENT TERMINATED: Force cleaned from logic gates.`, 'error', account?.address);
- }
- }
- });
- }
- };
-
-
-
- const confirmAutoStart = () => {
- setShowAutoStartModal(false);
- executeDeploy();
- };
-
- // --- RESTORE AUTO-REBALANCE STATE FROM LOCALSTORAGE ---
- useEffect(() => {
- if (!account?.address) return;
- try {
- const saved = localStorage.getItem(`nirium-autorebalance-${account.address}`);
- if (!saved) return;
-
- const { autoRebalance: ar, delegationId: di, autoExit: ae, txHash: th, rebalanceThreshold: rt, reverseThreshold: rv } = JSON.parse(saved);
- if (ar) { setAutoRebalance(true); setDelegationId(di ?? null); if (th) setDelegationTxHash(th); }
- if (ae) setAutoExit(true);
- if (rt) setRebalanceThreshold(rt);
- if (rv) setReverseThreshold(rv);
-
- // If the saved delegation ID is a fake demo-del-xxx (created when the agent was unreachable),
- // re-register in Supabase now that CORS + service role key are configured.
- // The Soroban delegation already exists on-chain - no Freighter signature needed.
- if (ar && di && (di.startsWith('demo-del-') || !di.includes('-'))) {
- const savedVaultId = (() => {
- for (const asset of ['USDC', 'XLM', 'CETES']) {
- try {
- const v = localStorage.getItem(`nirium-vault-v2-${asset}-${account.address}`);
- if (v) { const p = JSON.parse(v); if (p?.vaultId) return p.vaultId; }
- } catch { /* skip */ }
- }
- return null;
- })();
-
- if (savedVaultId) {
- const AGENT_API_URL = process.env.NEXT_PUBLIC_AGENT_URL || 'https://nirium-agent.fly.dev';
- const token = localStorage.getItem('nirium-token') || 'demo-token';
- fetch(`${AGENT_API_URL}/api/vault/delegate`, {
- method: 'POST',
- headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${token}` },
- body: JSON.stringify({
- user_wallet: account.address,
- vault_id: savedVaultId,
- rebalance_threshold: rt ?? 4.0,
- }),
- }).then(async r => {
- if (r.ok) {
- const data = await r.json();
- const realId = data.delegation?.id;
- if (realId) {
- setDelegationId(realId);
- const updated = JSON.parse(localStorage.getItem(`nirium-autorebalance-${account.address}`) ?? '{}');
- updated.delegationId = realId;
- localStorage.setItem(`nirium-autorebalance-${account.address}`, JSON.stringify(updated));
- }
- }
- }).catch(() => { /* silent - agent may be starting up */ });
- }
- }
- } catch { /* ignore */ }
- }, [account?.address]);
-
- // --- RECONCILE WITH SUPABASE (DB es la fuente de verdad por wallet) ---
- // Poll cada 15s al endpoint de la wallet conectada para mantener el toggle
- // sincronizado con DB, incluso si un STOP/activate no se propagó por timeouts de red.
- useEffect(() => {
- if (!account?.address) return;
- const AGENT_API_URL = process.env.NEXT_PUBLIC_AGENT_URL || 'https://nirium-agent.fly.dev';
- const wallet = account.address;
-
- const sync = async () => {
- const ctrl = new AbortController();
- const t = setTimeout(() => ctrl.abort(), 8000);
- try {
- const r = await fetch(`${AGENT_API_URL}/api/vault/delegate/${wallet}`, { signal: ctrl.signal });
- if (!r.ok) return;
- const data = await r.json();
- const d = data?.delegation;
- if (d && d.is_active) {
- setAutoRebalance(true);
- setDelegationId(d.id);
- if (d.rebalance_threshold) setRebalanceThreshold(Number(d.rebalance_threshold));
- if (d.reverse_rebalance) {
- setAutoExit(true);
- if (d.reverse_threshold) setReverseThreshold(Number(d.reverse_threshold));
- } else {
- setAutoExit(false);
- }
- const stored = JSON.parse(localStorage.getItem(`nirium-autorebalance-${wallet}`) ?? '{}');
- localStorage.setItem(`nirium-autorebalance-${wallet}`, JSON.stringify({
- ...stored,
- autoRebalance: true,
- delegationId: d.id,
- rebalanceThreshold: Number(d.rebalance_threshold),
- autoExit: !!d.reverse_rebalance,
- reverseThreshold: Number(d.reverse_threshold),
- }));
- } else {
- // No hay fila activa en Supabase. Antes de borrar el estado, verificamos
- // si tenemos una delegación on-chain pendiente de sincronizar (placeholder
- // demo-del-* con txHash real). Si la hay, re-intentamos el registro.
- const stored = localStorage.getItem(`nirium-autorebalance-${wallet}`);
- if (stored) {
- try {
- const parsed = JSON.parse(stored);
- const isPending = parsed?.autoRebalance === true
- && typeof parsed?.delegationId === 'string'
- && parsed.delegationId.startsWith('demo-del-')
- && parsed?.txHash;
- if (isPending) {
- const resolvedVaultId = (() => {
- for (const asset of ['USDC', 'XLM', 'CETES']) {
- try {
- const v = localStorage.getItem(`nirium-vault-v2-${asset}-${wallet}`);
- if (v) { const p = JSON.parse(v); if (p?.vaultId) return p.vaultId; }
- } catch { /* skip */ }
- }
- return null;
- })();
- if (resolvedVaultId) {
- const token = localStorage.getItem('nirium-token') || 'demo-token';
- fetch(`${AGENT_API_URL}/api/vault/delegate`, {
- method: 'POST',
- headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${token}` },
- body: JSON.stringify({
- user_wallet: wallet,
- vault_id: resolvedVaultId,
- rebalance_threshold: parsed.rebalanceThreshold ?? 4.0,
- }),
- }).then(async r2 => {
- if (!r2.ok) return;
- const data2 = await r2.json();
- const realId = data2?.delegation?.id;
- if (realId) {
- setDelegationId(realId);
- const updated = { ...parsed, delegationId: realId };
- localStorage.setItem(`nirium-autorebalance-${wallet}`, JSON.stringify(updated));
- }
- }).catch(() => { /* siguiente tick re-intenta */ });
- return; // No borramos el estado mientras retry está en curso
- }
- }
- } catch { /* ignore parse error */ }
- }
- setAutoRebalance(false);
- setAutoExit(false);
- setDelegationId(null);
- setDelegationTxHash(null);
- localStorage.removeItem(`nirium-autorebalance-${wallet}`);
- }
- } catch { /* timeout o offline - conserva estado actual */ }
- finally { clearTimeout(t); }
- };
-
- sync();
- const interval = setInterval(sync, 15000);
- return () => clearInterval(interval);
- }, [account?.address]);
-
- // --- REAL-TIME LOGS VIA WEBSOCKET ---
- const wsRef = useRef(null);
- const accountRef = useRef(account);
- useEffect(() => { accountRef.current = account; }, [account]);
-
- useEffect(() => {
- let isUnmounted = false;
- let retryCount = 0;
- let retryTimeout: NodeJS.Timeout;
-
- const connectWebSocket = () => {
- if (isUnmounted) return;
- // Prevent multiple simultaneous connections from the same component instance
- if (wsRef.current && (wsRef.current.readyState === WebSocket.OPEN || wsRef.current.readyState === WebSocket.CONNECTING)) {
- return;
- }
-
- const wsUrl = getWebSocketUrl('/ws/signals');
- // Safety check for production mixed content
- if (wsUrl.includes('localhost') && typeof window !== 'undefined' && window.location.protocol === 'https:') {
- console.log('[Dashboard] Skipping WS localhost on HTTPS');
- return;
- }
-
- try {
- console.log('[Dashboard] Attempting WS connection to:', wsUrl);
- const ws = new WebSocket(wsUrl);
- wsRef.current = ws;
-
- ws.onopen = () => {
- if (isUnmounted) return;
- console.log('[Dashboard] WS Connected Successfully');
-
- if (accountRef.current?.address) {
- ws.send(JSON.stringify({
- type: 'subscribe',
- userId: accountRef.current.address,
- topics: ['execution', 'system']
- }));
- }
- };
-
- ws.onmessage = (event) => {
- if (isUnmounted) return;
- try {
- const data = JSON.parse(event.data);
- if (data.type === 'log' || data.type === 'execution') {
- const time = new Date().toLocaleTimeString();
- const message = data.message || JSON.stringify(data);
- writeLog(`🤖 ${message}`, 'info', data.agent_id || 'UI_CLIENT');
-
- if (data.status === 'success' && data.txHash) {
- toast.success(L("Strategy executed", "Estrategia ejecutada"), {
- description: `Tx: ${data.txHash.slice(0, 8)}...`,
- action: {
- label: "View",
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${data.txHash}`, "_blank")
- }
- });
- }
- }
-
- // Tauri Tray Trigger
- if (data.type === 'signal' && (window as any).__TAURI_INTERNALS__) {
- const { invoke } = require('@tauri-apps/api/core');
- invoke('update_tray_status', { active: true });
- }
- } catch (e) { }
- };
-
- ws.onclose = (event) => {
- wsRef.current = null;
- if (!isUnmounted) {
- console.log('[Dashboard] WS Closed. Code:', event.code);
- if (retryCount < 5) { // Limit retries to prevent storms
- retryCount++;
- const delay = 3000 * retryCount; // Exponential backoff
- console.log(`[Dashboard] Retrying in ${delay}ms...`);
- retryTimeout = setTimeout(connectWebSocket, delay);
- }
- }
- };
-
- ws.onerror = () => {
- // Muted intentionally to prevent noisy UI console logs when backend is offline
- wsRef.current = null;
- };
-
- } catch (e) {
- console.error("[Dashboard] WS Setup Failed:", e);
- }
- };
-
- connectWebSocket();
-
- return () => {
- isUnmounted = true;
- if (retryTimeout) clearTimeout(retryTimeout);
- if (wsRef.current) {
- console.log('[Dashboard] Cleaning up WS connection');
- wsRef.current.close();
- wsRef.current = null;
- }
- };
- }, []); // Runs once per mount
-
- // 🧪 Production Diagnostics: Test Supabase link on first load
- useEffect(() => {
- const testConn = async () => {
- const hasTested = sessionStorage.getItem('nirium_diag_v1');
- if (!hasTested) {
- console.log('🧪 [Diag] Dashboard session initialized - keeping diagnostics off the public feed.');
- sessionStorage.setItem('nirium_diag_v1', 'true');
- }
- };
- testConn();
- }, []);
-
-
-
- // SVG Chart Data Generator (Mock)
- const chartPath = "M0,100 C20,90 40,110 60,80 C80,50 100,90 120,40 C140,20 160,60 180,30 C200,10 220,40 240,20 L240,150 L0,150 Z";
- const linePath = "M0,100 C20,90 40,110 60,80 C80,50 100,90 120,40 C140,20 160,60 180,30 C200,10 220,40 240,20";
-
- // Load Vault & OwnerCap from LocalStorage on mount
- useEffect(() => {
- if (account?.address) {
- const CURRENT_VAULT_CONTRACT = process.env.NEXT_PUBLIC_CONTRACT_VAULT || 'CDMFURE6MYROTA2A6DLD4TN2S4QTN64L2FZ2I2RY2AREONX6DUQOI2S2';
- const savedData = localStorage.getItem(`nirium-vault-v2-${baseAsset}-${account.address}`);
- if (savedData) {
- try {
- const vaultData = JSON.parse(savedData);
- // If vault was created on a different contract, clear it - it's an orphaned vault
- if (vaultData.contractId && vaultData.contractId !== CURRENT_VAULT_CONTRACT) {
- console.warn('[Vault] Orphaned vault detected - contract changed. Clearing cache.');
- localStorage.removeItem(`nirium-vault-v2-${baseAsset}-${account.address}`);
- localStorage.removeItem(`nirium-autorebalance-${account.address}`);
- setVaultId(null);
- setOwnerCapId(null);
- } else if (typeof vaultData === 'object' && vaultData.vaultId !== undefined) {
- const numericId = typeof vaultData.vaultId === 'number'
- ? vaultData.vaultId
- : parseInt(String(vaultData.vaultId), 10);
- if (!isNaN(numericId)) {
- setVaultId(numericId);
- if (vaultData.ownerCapId) setOwnerCapId(vaultData.ownerCapId);
- } else {
- localStorage.removeItem(`nirium-vault-v2-${baseAsset}-${account.address}`);
- setVaultId(null);
- setOwnerCapId(null);
- }
- } else {
- setVaultId(null);
- setOwnerCapId(null);
- }
- } catch (e) {
- console.error('Failed to parse vault data:', e);
- setVaultId(null);
- setOwnerCapId(null);
- }
- } else {
- setVaultId(null);
- setOwnerCapId(null);
- }
- }
- }, [account, baseAsset]);
-
- const handleDeposit = () => {
- if (!vaultId) return;
-
- setConfirmConfig({
- isOpen: true,
- title: L("Deposit to your vault", "Depositar en tu bóveda"),
- description: (
-
-
{L(`Move ${baseAsset} from your wallet to your vault.`, `Mueve ${baseAsset} de tu wallet a tu bóveda.`)}
-
-
- {baseAsset}
-
-
- ),
- icon: ,
- confirmText: L("CONFIRM DEPOSIT", "CONFIRMAR DEPÓSITO"),
- type: 'info',
- onConfirm: () => {
- const val = (document.getElementById('depositInput') as HTMLInputElement)?.value || "0";
- setAmountInput(val);
- setConfirmConfig(p => ({ ...p, isOpen: false }));
- executeDeposit(val);
- }
- });
- };
-
- const executeDeposit = async (amount: string) => {
- if (!account) {
- toast.error(L("Please connect your wallet", "Conecta tu wallet"));
- return;
- }
-
- if (!vaultId || typeof vaultId !== 'number') {
- toast.error(L("No vault found", "No se encontró la bóveda"), {
- description: L("Create a vault before depositing", "Crea una bóveda antes de depositar")
- });
- return;
- }
-
- // Network Check (Strict)
- if (account.chains?.[0] && account.chains[0] !== 'stellar:testnet') {
- toast.error(L("Wrong network", "Red equivocada"), {
- description: L("This dashboard runs on Stellar testnet. Switch your wallet's network.", "Este panel corre en Stellar testnet. Cambia la red de tu wallet.")
- });
- return;
- }
-
- // Validate balance before deposit
- const depositAmount = parseFloat(amount);
- const currentBalance = baseAsset === 'CETES' ? parseFloat(cetesBalance) : walletBalance;
-
- if (depositAmount > currentBalance) {
- toast.error(L("Insufficient balance", "Saldo insuficiente"), {
- description: L(`You only have ${currentBalance.toFixed(2)} ${baseAsset}. You can't deposit ${depositAmount} ${baseAsset}.`, `Solo tienes ${currentBalance.toFixed(2)} ${baseAsset}. No puedes depositar ${depositAmount} ${baseAsset}.`)
- });
- return;
- }
-
- const toastId = toast.loading(L(`Depositing ${amount} ${baseAsset}...`, `Depositando ${amount} ${baseAsset}...`));
- try {
- // Convert amount to stroops (1 XLM/USDC/CETES = 10^7 stroops)
- const amountInStroops = BigInt(Math.floor(parseFloat(amount) * 10_000_000));
-
- // Call the actual Soroban vault contract deposit function
- const result = await vaultDeposit(account.address, vaultId, amountInStroops);
-
- toast.dismiss(toastId);
-
- if (result.success) {
- // Update vault balance optimistically
- setVaultBalance(prev => prev + parseFloat(amount));
-
- // Immediately update wallet balance (subtract deposited amount)
- setWalletBalance(prev => Math.max(0, prev - parseFloat(amount)));
-
- toast.success(t.dashboard.toasts.deposit_success, {
- description: t.dashboard.toasts.deposit_desc.replace('{amount}', amount).replace('{asset}', baseAsset),
- action: result.txHash ? {
- label: t.dashboard.toasts.view_tx,
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${result.txHash}`, "_blank")
- } : undefined
- });
-
- // Log the successful deposit
- writeLog(`VAULT DEPOSIT: ${amount} ${baseAsset} | Vault ID: ${vaultId} | Tx: ${result.txHash?.slice(0, 12)}...`, 'success');
- } else {
- throw new Error(result.error || 'Deposit failed');
- }
- } catch (e: any) {
- console.error('Deposit error:', e);
- toast.dismiss(toastId);
- toast.error(L("Deposit failed", "Falló el depósito"), {
- description: e.message || "Failed to deposit to vault contract"
- });
- writeLog(`VAULT DEPOSIT FAILED: ${e.message}`, 'error');
- }
- };
-
- const handleWithdraw = () => {
- if (!vaultId || !ownerCapId) {
- toast.error(L("Only the vault owner can withdraw.", "Solo el dueño de la bóveda puede retirar."));
- return;
- }
-
- setConfirmConfig({
- isOpen: true,
- title: L("Withdraw from your vault", "Retirar de tu bóveda"),
- description: (
-
-
{L(`Move ${baseAsset} from your vault back to your wallet.`, `Regresa ${baseAsset} de tu bóveda a tu wallet.`)}
-
-
- {baseAsset}
-
-
- ),
- icon:
,
- confirmText: L("CONFIRM WITHDRAWAL", "CONFIRMAR RETIRO"),
- type: 'info',
- onConfirm: () => {
- const val = (document.getElementById('withdrawInput') as HTMLInputElement)?.value || "0";
- setAmountInput(val);
- setConfirmConfig(p => ({ ...p, isOpen: false }));
- executeWithdraw(val);
- }
- });
- };
-
- const executeWithdraw = async (amount: string, retryCount = 0) => {
- const MAX_RETRIES = 3;
-
- if (!account) {
- toast.error(L("Please connect your wallet", "Conecta tu wallet"));
- return;
- }
-
- if (!vaultId || typeof vaultId !== 'number') {
- toast.error(L("No vault found", "No se encontró la bóveda"), {
- description: L("Create a vault first", "Primero crea una bóveda")
- });
- return;
- }
-
- if (!ownerCapId) {
- toast.error(L("This wallet isn't the vault owner", "Esta wallet no es la dueña de la bóveda"), {
- description: L("Only the vault owner can withdraw", "Solo el dueño de la bóveda puede retirar")
- });
- return;
- }
-
- // Network Check (Strict)
- if (account.chains?.[0] && account.chains[0] !== 'stellar:testnet') {
- toast.error(L("Wrong network", "Red equivocada"), {
- description: L("This dashboard runs on Stellar testnet. Switch your wallet's network.", "Este panel corre en Stellar testnet. Cambia la red de tu wallet.")
- });
- return;
- }
-
- // Validate withdrawal amount
- const withdrawAmount = parseFloat(amount);
- if (isNaN(withdrawAmount) || withdrawAmount <= 0) {
- toast.error(L("Invalid amount", "Monto inválido"), {
- description: L("Enter a positive number to withdraw.", "Escribe un número positivo para retirar.")
- });
- return;
- }
-
- // Check vault has sufficient balance
- if (withdrawAmount > vaultBalance) {
- toast.error(L(`Not enough ${baseAsset} in the vault`, `No hay suficiente ${baseAsset} en la bóveda`), {
- description: L(`Vault balance: ${vaultBalance.toFixed(7)} ${baseAsset}. You asked for ${withdrawAmount} ${baseAsset}.`, `Saldo de la bóveda: ${vaultBalance.toFixed(7)} ${baseAsset}. Pediste ${withdrawAmount} ${baseAsset}.`)
- });
- return;
- }
-
- // CETES trustline pre-check (Stellar requires trustline before receiving non-native assets)
- // Reference: https://developers.stellar.org/docs/build/guides/basics/verify-trustlines
- if (baseAsset === 'CETES' && !hasCetesTrust) {
- toast.error(L("CETES trustline not found", "No se encontró la trustline de CETES"), {
- description: L("Your wallet needs a CETES trustline to receive this asset. Add it in Freighter first.", "Tu wallet necesita una trustline de CETES para recibir este activo. Agrégala primero en Freighter."),
- action: {
- label: "Add via Etherfuse",
- onClick: () => window.open('https://devnet.etherfuse.com', '_blank')
- }
- });
- return;
- }
-
- // USDC trustline pre-check (SAC assets also need trustline on classic side for withdrawal)
- if (baseAsset === 'USDC') {
- try {
- const { Horizon } = await import('@stellar/stellar-sdk');
- const horizonServer = new Horizon.Server(process.env.NEXT_PUBLIC_HORIZON_URL || 'https://horizon-testnet.stellar.org');
- const acct = await horizonServer.loadAccount(account.address);
- const hasUSDC = acct.balances.some(
- (b: any) => b.asset_type !== 'native' && b.asset_code === 'USDC'
- );
- if (!hasUSDC) {
- toast.error(L("USDC trustline not found", "No se encontró la trustline de USDC"), {
- description: L("Your wallet needs a USDC trustline to receive this asset. Add it in Freighter's settings.", "Tu wallet necesita una trustline de USDC para recibir este activo. Agrégala en la configuración de Freighter.")
- });
- return;
- }
- } catch {
- // If Horizon is unreachable, proceed - the contract will catch it
- }
- }
-
- const isRetry = retryCount > 0;
- const toastId = toast.loading(
- isRetry
- ? `Retrying withdrawal (${retryCount}/${MAX_RETRIES})...`
- : `Withdrawing ${amount} ${baseAsset}...`
- );
-
- try {
- // Convert amount to stroops (1 XLM/USDC/CETES = 10^7 stroops - Stellar 7-decimal precision)
- const amountInStroops = BigInt(Math.floor(withdrawAmount * 10_000_000));
-
- const result = await vaultWithdraw(account.address, vaultId, amountInStroops);
-
- toast.dismiss(toastId);
-
- if (result.success) {
- setVaultBalance(prev => Math.max(0, prev - withdrawAmount));
- setWalletBalance(prev => prev + withdrawAmount);
-
- toast.success(t.dashboard.toasts.withdrawal_success, {
- description: t.dashboard.toasts.withdrawal_desc
- .replace('{amount}', amount)
- .replace('{asset}', baseAsset),
- action: result.txHash ? {
- label: t.dashboard.toasts.view_tx,
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${result.txHash}`, "_blank")
- } : undefined
- });
-
- writeLog(`VAULT WITHDRAW: ${amount} ${baseAsset} | Vault ID: ${vaultId} | Tx: ${result.txHash?.slice(0, 12)}...`, 'success');
- } else {
- // Classify the error for actionable user feedback
- const err = result.error || 'Withdrawal failed';
-
- if (err.includes('insufficient vault balance') || err.includes('balance')) {
- toast.error(L(`Not enough ${baseAsset} in the vault`, `No hay suficiente ${baseAsset} en la bóveda`), {
- description: L(`The vault doesn't have enough ${baseAsset}. Current balance: ${vaultBalance.toFixed(7)} ${baseAsset}.`, `La bóveda no tiene suficiente ${baseAsset}. Saldo actual: ${vaultBalance.toFixed(7)} ${baseAsset}.`)
- });
- } else if (err.includes('vault not found')) {
- toast.error(L("Vault not found", "No se encontró la bóveda"), {
- description: L("This vault may have been closed or the contract redeployed. Clear the cache and reconnect.", "Puede que la bóveda se haya cerrado o que el contrato se haya vuelto a desplegar. Borra la caché y vuelve a conectar.")
- });
- } else if (err.includes('not_paused') || err.includes('paused')) {
- toast.error(L("Contract paused", "Contrato en pausa"), {
- description: L("The NiriumVault contract is paused for now.", "El contrato NiriumVault está en pausa por ahora.")
- });
- } else if (result.isSimulationError) {
- toast.error(L("Transaction simulation failed", "Falló la simulación de la transacción"), {
- description: L("Soroban RPC rejected this transaction during simulation. It usually means the contract state changed. Try again.", "El RPC de Soroban rechazó la transacción al simularla. Suele significar que cambió el estado del contrato. Intenta de nuevo.")
- });
- } else {
- throw new Error(err);
- }
-
- writeLog(`VAULT WITHDRAW FAILED: ${err}`, 'error');
- }
- } catch (e: any) {
- console.error('Withdrawal error:', e);
- toast.dismiss(toastId);
-
- const errorMsg = e.message || 'Unknown error';
-
- // Retry on transient network errors (exponential backoff: 2s, 4s, 8s)
- const isTransient = errorMsg.includes('timeout') ||
- errorMsg.includes('fetch') ||
- errorMsg.includes('network') ||
- errorMsg.includes('ECONNREFUSED') ||
- errorMsg.includes('504') ||
- errorMsg.includes('503');
-
- if (isTransient && retryCount < MAX_RETRIES) {
- const delay = Math.pow(2, retryCount + 1) * 1000; // 2s, 4s, 8s
- toast.info(L(`Network issue. Retrying in ${delay / 1000}s...`, `Problema de red. Reintentando en ${delay / 1000}s...`), {
- description: L(`Attempt ${retryCount + 1} of ${MAX_RETRIES}`, `Intento ${retryCount + 1} de ${MAX_RETRIES}`)
- });
- setTimeout(() => executeWithdraw(amount, retryCount + 1), delay);
- return;
- }
-
- if (isTransient) {
- toast.error(L("Network unavailable", "Red no disponible"), {
- description: L("Couldn't reach the Stellar network after 3 attempts. Check your connection and try again.", "No se pudo llegar a la red de Stellar tras 3 intentos. Revisa tu conexión e intenta de nuevo.")
- });
- } else if (errorMsg.includes('User declined')) {
- toast.error(L("Transaction cancelled", "Transacción cancelada"), {
- description: L("You declined the transaction in Freighter.", "Rechazaste la transacción en Freighter.")
- });
- } else {
- toast.error(L("Withdrawal failed", "Falló el retiro"), {
- description: errorMsg
- });
- }
-
- writeLog(`VAULT WITHDRAW FAILED: ${errorMsg}`, 'error');
- }
- };
-
- // Nirium agent public key - receives delegation to execute on user vaults
- const NIRIUM_AGENT_KEY = 'GAVU2GH5RZUIQKLHM4FTVGTUY2V4XNVGWNGO2T6LVU7U74IYJGGYZ667';
- const AGENT_API = process.env.NEXT_PUBLIC_AGENT_URL || 'https://nirium-agent.fly.dev';
-
- const handleAutoRebalanceToggle = async () => {
- if (!account || !vaultId) {
- toast.error(L("Connect your wallet and create a vault first", "Conecta tu wallet y crea una bóveda primero"));
- return;
- }
- setAutoRebalanceLoading(true);
- try {
- if (!autoRebalance) {
- // Preflight: verifica que la wallet conectada sea el owner on-chain del vault.
- // Sin esto, delegate_agent fallaría en vault.owner.require_auth() después de
- // que el usuario firme con Freighter - y el auto-recovery dispararía 2 firmas
- // adicionales que también fallan.
- try {
- const vData = await vault.getVault(Number(vaultId));
- const onChainOwner = (vData as any)?.owner;
- if (onChainOwner && onChainOwner !== account.address) {
- toast.error(L(`This vault belongs to another wallet (${String(onChainOwner).slice(0, 8)}…). Connect that wallet in Freighter or create a new vault.`, `Esta bóveda pertenece a otra wallet (${String(onChainOwner).slice(0, 8)}…). Conecta esa wallet en Freighter o crea una nueva bóveda.`));
- return;
- }
- } catch { /* si la lectura falla, dejamos que el flujo siga - peor caso, falla la tx */ }
-
- // 1. Delegate vault to Nirium's agent key on Soroban - capture TX hash
- const delegateResult = await vaultDelegateAgent(account.address, vaultId, NIRIUM_AGENT_KEY);
- const txHash = (delegateResult as any)?.txHash;
- const txSuccess = (delegateResult as any)?.success;
- const txError = (delegateResult as any)?.error;
-
- // Si el contrato rechazó la llamada, casi siempre es porque el agente ya está delegado
- // para este vault (estado previo no revocado). Intentamos revoke + re-delegate.
- if (txSuccess === false) {
- if (typeof txError === 'string' && txError.includes('failed on-chain')) {
- try {
- await vaultRevokeAgent(account.address, vaultId, NIRIUM_AGENT_KEY, true);
- const retry = await vaultDelegateAgent(account.address, vaultId, NIRIUM_AGENT_KEY);
- if ((retry as any)?.success === false) {
- toast.error(L(`Soroban rejected the delegation: ${(retry as any)?.error ?? 'unknown'}`, `Soroban rechazó la delegación: ${(retry as any)?.error ?? 'unknown'}`));
- return;
- }
- (delegateResult as any).txHash = (retry as any).txHash;
- } catch (e: any) {
- toast.error(L(`Couldn't delegate on-chain: ${e?.message ?? txError}`, `No se pudo delegar on-chain: ${e?.message ?? txError}`));
- return;
- }
- } else {
- toast.error(L(`Soroban rejected the delegation: ${txError ?? 'unknown'}`, `Soroban rechazó la delegación: ${txError ?? 'unknown'}`));
- return;
- }
- }
- const finalTxHash = (delegateResult as any).txHash ?? txHash;
-
- // Optimistic UI: la delegación on-chain ya quedó firmada. Marcamos el nodo
- // activo *antes* del POST a Supabase para que (a) el usuario vea feedback
- // inmediato (1/10) y (b) si vuelve a clickear, dispare el flujo de STOP
- // (revoke) en vez de un nuevo delegate_agent on-chain.
- const pendingDelegationId = `demo-del-${Date.now()}`;
- setDelegationTxHash(finalTxHash ?? null);
- setAutoRebalance(true);
- setDelegationId(pendingDelegationId);
- localStorage.setItem(`nirium-autorebalance-${account.address}`, JSON.stringify({
- autoRebalance: true,
- delegationId: pendingDelegationId,
- autoExit,
- txHash: finalTxHash ?? null,
- rebalanceThreshold,
- reverseThreshold,
- }));
-
- // 2. Register delegation in agent backend - reintenta hasta 3 veces si la red Fly→Supabase está degradada
- const token = localStorage.getItem('nirium-token') || 'demo-token';
- let newDelegationId: string | null = null;
- for (let attempt = 0; attempt < 3 && !newDelegationId; attempt++) {
- try {
- const res = await fetch(`${AGENT_API}/api/vault/delegate`, {
- method: 'POST',
- headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${token}` },
- body: JSON.stringify({ user_wallet: account.address, vault_id: vaultId, rebalance_threshold: rebalanceThreshold }),
- });
- if (res.ok) {
- const data = await res.json();
- if (data.delegation?.id) newDelegationId = data.delegation.id;
- }
- } catch { /* siguiente intento */ }
- if (!newDelegationId && attempt < 2) await new Promise(r => setTimeout(r, 1500));
- }
-
- if (!newDelegationId) {
- // El registro en Supabase falló - el reconcile sync re-intentará en el próximo tick
- // (usa el placeholder demo-del-* para detectar que la fila aún no está sincronizada).
- toast.warning(L("On-chain delegation confirmed - syncing with the backend in the background…", "Delegación on-chain confirmada - sincronizando con backend en segundo plano…"), {
- action: finalTxHash ? {
- label: t.dashboard.toasts.view_tx,
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${finalTxHash}`, '_blank'),
- } : undefined,
- });
- return;
- }
-
- setDelegationId(newDelegationId);
- localStorage.setItem(`nirium-autorebalance-${account.address}`, JSON.stringify({ autoRebalance: true, delegationId: newDelegationId, autoExit, txHash: finalTxHash ?? null, rebalanceThreshold, reverseThreshold }));
-
- toast.success(t.dashboard.auto_rebalance.toast_enabled, {
- action: finalTxHash ? {
- label: t.dashboard.toasts.view_tx,
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${finalTxHash}`, '_blank'),
- } : undefined,
- });
- } else {
- // 1. Mark inactive in backend FIRST - para detener el loop incluso si el usuario cancela la firma Freighter
- {
- const token = localStorage.getItem('nirium-token');
- await fetch(`${AGENT_API}/api/vault/delegate/${delegationId ?? 'none'}`, {
- method: 'DELETE',
- headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${token}` },
- body: JSON.stringify({ user_wallet: account.address }),
- }).catch(() => {});
- }
-
- // 2. Update UI state inmediatamente - el toggle/nodo desaparece sin esperar Freighter
- setAutoRebalance(false);
- setAutoExit(false);
- setDelegationId(null);
- setDelegationTxHash(null);
- localStorage.removeItem(`nirium-autorebalance-${account.address}`);
-
- // 3. Revocar delegación on-chain en Soroban (best-effort - si el usuario cancela, el loop ya está detenido)
- let revokeTxHash: string | undefined;
- try {
- const revokeResult = await vaultRevokeAgent(account.address, vaultId, NIRIUM_AGENT_KEY);
- revokeTxHash = (revokeResult as any)?.txHash;
- } catch { /* el usuario canceló o falló la firma - la DB ya está inactiva */ }
-
- toast.success(t.dashboard.auto_rebalance.toast_disabled, {
- action: revokeTxHash ? {
- label: t.dashboard.toasts.view_tx,
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${revokeTxHash}`, '_blank'),
- } : undefined,
- });
- }
- } catch (e: any) {
- toast.error(`${t.dashboard.auto_rebalance.toast_error}: ${e.message}`);
- } finally {
- setAutoRebalanceLoading(false);
- }
- };
-
- const handleAutoExitToggle = async () => {
- if (!account || !vaultId) {
- toast.error(L("Connect your wallet and create a vault first", "Conecta tu wallet y crea una bóveda primero"));
- return;
- }
- if (!delegationId) {
- toast.error(t.dashboard.auto_exit.delegation_required);
- return;
- }
- setAutoExitLoading(true);
- try {
- const newAutoExit = !autoExit;
- const token = localStorage.getItem('nirium-token') || 'demo-token';
- // Optimistic update - persist locally first, then try backend
- setAutoExit(newAutoExit);
- localStorage.setItem(`nirium-autorebalance-${account.address}`, JSON.stringify({ autoRebalance: true, delegationId, autoExit: newAutoExit, txHash: delegationTxHash }));
- try {
- const res = await fetch(`${AGENT_API}/api/vault/delegate/${delegationId}/reverse`, {
- method: 'PATCH',
- headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${token}` },
- body: JSON.stringify({ enabled: newAutoExit, reverse_threshold: reverseThreshold }),
- });
- if (!res.ok) console.warn('[Auto-Exit] Backend update failed silently:', await res.text().catch(() => ''));
- } catch { /* API unreachable - state already saved locally */ }
- toast.success(autoExit ? t.dashboard.auto_exit.toast_disabled : t.dashboard.auto_exit.toast_enabled);
- } catch (e: any) {
- toast.error(`${t.dashboard.auto_exit.toast_error}: ${e.message}`);
- } finally {
- setAutoExitLoading(false);
- }
- };
-
- const handleCreateVault = () => {
- if (!account) {
- toast.error(L("Please connect your Stellar wallet first", "Primero conecta tu wallet de Stellar"));
- return;
- }
-
- setConfirmConfig({
- isOpen: true,
- // Lo que de verdad hace create_vault en nirium_vault.rs. El texto anterior
- // hablaba de "OwnerCap" y "Hot Potato" (patrones de Move/Sui, no de
- // Soroban) y de una "pequeña comisión de gas", cuando el contrato cobra
- // 12.5 XLM.
- title: language === 'es' ? '¿Crear tu bóveda?' : 'Create your vault?',
- description: (
-
-
- {language === 'es' ? 'Crea una ' : 'Creates a '}
- NiriumVault {baseAsset}
- {language === 'es' ? ' en Stellar testnet.' : ' on Stellar testnet.'}
-
-
-
- {language === 'es' ? (
- <>• Tú quedas como dueño: retirar a tu wallet requiere tu firma (require_auth) • Si delegas al agente, opera solo hasta el tope acumulado que tú fijes, y lo puedes revocar cuando quieras>
- ) : (
- <>• You are the owner: withdrawing to your wallet requires your signature (require_auth) • If you delegate to the agent, it can only act up to the cumulative cap you set, and you can revoke it anytime>
- )}
-
-
-
- {language === 'es'
- ? 'El contrato cobra 12.5 XLM de testnet por crear la bóveda (van a la tesorería de Nirium), más el fee de red.'
- : 'The contract charges 12.5 testnet XLM to create the vault (sent to the Nirium treasury), plus the network fee.'}
-
-
- ),
- icon: ,
- confirmText: L("CREATE VAULT", "CREAR BÓVEDA"),
- type: 'info',
- onConfirm: () => {
- setConfirmConfig(prev => ({ ...prev, isOpen: false }));
- executeCreateVault();
- }
- });
- };
-
- const executeCreateVault = async () => {
- if (!account) return;
-
- // Network Check (Strict)
- if (account.chains?.[0] && account.chains[0] !== 'stellar:testnet') {
- toast.error(L("Wrong network", "Red equivocada"), {
- description: L("This dashboard runs on Stellar testnet. Switch your wallet's network.", "Este panel corre en Stellar testnet. Cambia la red de tu wallet.")
- });
- return;
- }
-
- const toastId = toast.loading(L("Creating your vault on Soroban...", "Creando tu bóveda en Soroban..."));
-
- try {
- // Call the actual Soroban vault contract create_vault function
- const vaultName = `Vault-${Date.now()}`;
- const targetAssetId = baseAsset === 'USDC'
- ? USDC_ASSET_ID
- : baseAsset === 'CETES'
- ? CETES_ASSET_ID
- : NATIVE_ASSET_ID;
- const result = await vaultCreate(account.address, targetAssetId, vaultName);
-
- toast.dismiss(toastId);
-
- if (result.success && result.result) {
- // Extract the vault object from the result
- const vaultData = result.result as any;
- const numericVaultId = Number(vaultData.vault_id || vaultData.vaultId || vaultData[0]);
-
- if (!numericVaultId || isNaN(numericVaultId)) {
- throw new Error('Failed to extract vault ID from contract response');
- }
-
- // Store vault data with numeric ID
- const storageData = {
- vaultId: numericVaultId,
- ownerCapId: `cap_${numericVaultId}_${Date.now()}`,
- createdAt: Date.now(),
- txHash: result.txHash,
- contractId: process.env.NEXT_PUBLIC_CONTRACT_VAULT || 'CDMFURE6MYROTA2A6DLD4TN2S4QTN64L2FZ2I2RY2AREONX6DUQOI2S2',
- };
-
- localStorage.setItem(
- `nirium-vault-v2-${baseAsset}-${account.address}`,
- JSON.stringify(storageData)
- );
-
- setVaultId(numericVaultId);
- setOwnerCapId(storageData.ownerCapId);
-
- toast.success(L("Vault created", "Bóveda creada"), {
- description: L(`Vault ID: ${numericVaultId} | on-chain`, `ID de bóveda: ${numericVaultId} | en la cadena`),
- action: result.txHash ? {
- label: "View Tx",
- onClick: () => window.open(
- `https://stellar.expert/explorer/testnet/tx/${result.txHash}`,
- "_blank"
- )
- } : undefined
- });
-
- writeLog(
- `VAULT CREATED: ID=${numericVaultId} | Asset=${baseAsset} | Tx: ${result.txHash?.slice(0, 12)}...`,
- 'success',
- account?.address
- );
- } else {
- throw new Error(result.error || 'Failed to create vault');
- }
- } catch (e: any) {
- toast.dismiss(toastId);
- console.error("Vault Creation Error:", e);
- toast.error(L("Vault creation failed", "No se pudo crear la bóveda"), {
- description: e.message || "Failed to create vault on-chain"
- });
- writeLog(`VAULT CREATE FAILED: ${e.message}`, 'error', account?.address);
- }
- };
-
- // ═══════════════════════════════════════════════════════
- // MXNE RAMP INTEGRATION - Etherfuse
- // ═══════════════════════════════════════════════════════
-
- const handleAddCETESTrustline = async () => {
- if (!account) {
- toast.error(L("Please connect your wallet first", "Primero conecta tu wallet"));
- return;
- }
-
- const toastId = toast.loading(L("Adding the CETES trustline...", "Agregando la trustline de CETES..."));
- try {
- const { signTransaction } = await import("@stellar/freighter-api");
- const { Horizon, Networks, TransactionBuilder, Asset, Operation } = await import("@stellar/stellar-sdk");
-
- // 1. Load account from Horizon
- const horizonServer = new Horizon.Server("https://horizon-testnet.stellar.org");
- const sourceAccount = await horizonServer.loadAccount(account.address);
-
- // 2. Build changeTrust transaction
- const cetesAsset = new Asset(CETES_ASSET.code, CETES_ASSET.issuer);
- const transaction = new TransactionBuilder(sourceAccount, {
- fee: "100",
- networkPassphrase: Networks.TESTNET,
- })
- .addOperation(Operation.changeTrust({
- asset: cetesAsset,
- limit: '1000000000',
- }))
- .setTimeout(300)
- .build();
-
- // 3. Sign with Freighter - MUST specify address to avoid tx_bad_auth
- toast.loading(L("Sign the trustline in your wallet...", "Firma la trustline en tu wallet..."), { id: toastId });
- const txXdr = transaction.toXDR();
- const signedResult = await signTransaction(txXdr, {
- networkPassphrase: Networks.TESTNET,
- address: account.address,
- });
-
- if (signedResult && typeof signedResult === 'object' && (signedResult as any).error) {
- throw new Error(String((signedResult as any).error));
- }
-
- const signedXdr = typeof signedResult === 'string' ? signedResult : (signedResult as any).signedTxXdr;
- if (!signedXdr) {
- throw new Error('Wallet signing was cancelled');
- }
-
- // 4. Submit signed transaction to Horizon
- toast.loading(L("Sending to the Stellar network...", "Enviando a la red de Stellar..."), { id: toastId });
- const signedTx = TransactionBuilder.fromXDR(signedXdr, Networks.TESTNET);
- const result = await horizonServer.submitTransaction(signedTx as any);
-
- toast.dismiss(toastId);
-
- if (result.successful) {
- setHasCetesTrust(true);
- toast.success(L("CETES trustline added", "Trustline de CETES agregada"), {
- description: L("You can now receive CETES (Mexican treasury bonds) on Stellar", "Ya puedes recibir CETES (bonos del gobierno de México) en Stellar"),
- action: {
- label: "View Tx",
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${result.hash}`, "_blank")
- }
- });
- writeLog(`CETES TRUSTLINE ADDED | Tx: ${result.hash?.slice(0, 12)}...`, 'success', account.address);
- } else {
- throw new Error('Transaction was not successful');
- }
- } catch (e: any) {
- toast.dismiss(toastId);
-
- let errorMsg = e.message || "Failed to add CETES trustline";
- if (e.response?.data?.extras?.result_codes) {
- const codes = e.response.data.extras.result_codes;
- errorMsg = `Horizon: tx=${codes.transaction}, ops=${codes.operations?.join(', ')}`;
- }
-
- toast.error(L("Trustline failed", "Falló la trustline"), { description: errorMsg });
- writeLog(`CETES TRUSTLINE FAILED: ${errorMsg}`, 'error', account?.address);
- }
- };
-
- const handleOpenRamp = async () => {
- if (!account) {
- toast.error(L("Please connect your wallet first", "Primero conecta tu wallet"));
- return;
- }
-
- if (!hasCetesTrust) {
- toast.error(L("Add the CETES trustline first", "Primero agrega la trustline de CETES"), {
- description: L("You need the CETES trustline before buying", "Necesitas la trustline de CETES antes de comprar")
- });
- return;
- }
-
- const toastId = toast.loading(L("Opening the Etherfuse ramp...", "Abriendo la rampa de Etherfuse..."));
-
- try {
- // Get or create persistent customer IDs for this wallet
- const { customerId, bankAccountId } = getOrCreateCustomerIds(account.address);
-
- // Generate onboarding URL via Etherfuse API
- const result = await generateOnboardingUrl({
- customerId,
- bankAccountId,
- publicKey: account.address,
- blockchain: 'stellar',
- });
-
- toast.dismiss(toastId);
-
- if (result.success && result.data?.url) {
- // Open the presigned URL in new tab
- window.open(result.data.url, '_blank');
-
- toast.success(L("Etherfuse ramp opened (test environment)", "Rampa de Etherfuse abierta (entorno de pruebas)"), {
- description: L("Complete KYC to buy CETES with SPEI. The link expires in 15 minutes.", "Completa el KYC para comprar CETES con SPEI. El enlace vence en 15 minutos.")
- });
-
- writeLog(`ETHERFUSE RAMP: Opened for customer ${customerId}`, 'info', account.address);
- } else {
- // Fallback: open devnet directly
- const fallbackUrl = 'https://devnet.etherfuse.com';
- window.open(fallbackUrl, '_blank');
- toast.info(L("Opened Etherfuse directly", "Se abrió Etherfuse directamente"), {
- description: result.error || "Opened Etherfuse devnet portal."
- });
- writeLog(`ETHERFUSE RAMP: API issue, opened devnet directly. ${result.error}`, 'warn', account?.address);
- }
- } catch (e: any) {
- toast.dismiss(toastId);
- window.open('https://devnet.etherfuse.com', '_blank');
- toast.info(L("Opened Etherfuse directly", "Se abrió Etherfuse directamente"), {
- description: L("Couldn't create a signed link, so the portal opened directly.", "No se pudo generar el enlace firmado; se abrió el portal directamente.")
- });
- writeLog(`ETHERFUSE RAMP FALLBACK: ${e.message}`, 'warn', account?.address);
- }
- };
-
- const handleDestroyVault = async () => {
- if (!account) {
- toast.error(L("Please connect your Stellar wallet first", "Primero conecta tu wallet de Stellar"));
- return;
- }
- if (!vaultId) return;
-
- // Load vault data from localStorage
- const savedData = localStorage.getItem(`nirium-vault-v2-${baseAsset}-${account.address}`);
- if (!savedData) {
- toast.error(L("Can't find the vault data", "No se encuentran los datos de la bóveda"));
- return;
- }
-
- let vaultData;
- try {
- vaultData = JSON.parse(savedData);
- } catch {
- // Old format without OwnerCap ID - allow force reset
- setConfirmConfig({
- isOpen: true,
- title: L("Old vault format", "Formato de bóveda antiguo"),
- description: (
-
-
{L('This vault was saved in an older format. Resetting this view clears it from this browser only.', 'Esta bóveda se guardó en un formato anterior. Reiniciar la vista la quita solo de este navegador.')}
-
-
- {L('• Clears the saved vault from this browser', '• Borra la bóveda guardada en este navegador')}
- {L('• Nothing changes on-chain', '• No cambia nada en la cadena')}
-
-
-
- ),
- icon: ,
- confirmText: L("RESET LOCAL VIEW", "REINICIAR VISTA LOCAL"),
- type: 'info',
- onConfirm: () => {
- localStorage.removeItem(`nirium-vault-v2-${baseAsset}-${account.address}`);
- setVaultId(null);
- setConfirmConfig(prev => ({ ...prev, isOpen: false }));
- toast.info(L("Vault disconnected from this view", "Bóveda desconectada de esta vista"), {
- description: L("You can now create a new vault.", "Ya puedes crear una bóveda nueva.")
- });
- }
- });
- return;
- }
-
- setConfirmConfig({
- isOpen: true,
- title: L("Close your vault?", "¿Cerrar tu bóveda?"),
- description: (
-
-
{L('This closes your vault on the NiriumVault contract.', 'Esto cierra tu bóveda en el contrato NiriumVault.')}
-
-
-
- {L('Closes the vault on-chain', 'Cierra la bóveda en la cadena')}
-
-
-
- {L('Needs your signature (vault owner)', 'Requiere tu firma (dueño de la bóveda)')}
-
-
-
- {L('Balance must be 0: withdraw first', 'El saldo debe ser 0: retira primero')}
-
-
-
- {L("Can't be undone. Network fee applies.", 'No se puede deshacer. Aplica el fee de red.')}
-
-
- ),
- icon: ,
- confirmText: L("CLOSE VAULT", "CERRAR BÓVEDA"),
- type: 'danger',
- onConfirm: async () => {
- setConfirmConfig(prev => ({ ...prev, isOpen: false }));
- await executeVaultDestruction(vaultData);
- }
- });
- };
-
- const executeVaultDestruction = async (vaultData: any) => {
- if (!account) return;
-
- // Block close if vault still has balance - user must withdraw first
- if (vaultBalance > 0) {
- toast.error(L("Withdraw your funds first", "Primero retira tus fondos"), {
- description: L(`Vault #${vaultData.vaultId} still has a balance. Withdraw everything before closing.`, `La bóveda #${vaultData.vaultId} todavía tiene saldo. Retira todo antes de cerrarla.`),
- duration: 6000,
- });
- return;
- }
-
- const toastId = toast.loading(L("Closing the vault on-chain...", "Cerrando la bóveda en la cadena..."));
-
- try {
- const result = await vaultClose(account.address, vaultData.vaultId);
-
- if (!result.success) {
- toast.dismiss(toastId);
- const errorMsg = result.error || "";
- // Legacy vault from old contract - can't be closed on-chain, just remove from UI
- if (errorMsg.includes("UnreachableCodeReached") || errorMsg.includes("E_VAULT_NOT_FOUND") || errorMsg.includes("InvalidAction")) {
- localStorage.removeItem(`nirium-vault-v2-${baseAsset}-${account.address}`);
- localStorage.removeItem(`nirium-vault-balance-${vaultData.vaultId}-${baseAsset}`);
- setVaultId(null);
- setOwnerCapId(null);
- setVaultBalance(0);
- toast.success(L("Old vault removed", "Bóveda antigua quitada"), {
- description: L(`Vault #${vaultData.vaultId} was created on an earlier contract version and was removed from your dashboard. Nothing to do on-chain (it had a 0 balance).`, `La bóveda #${vaultData.vaultId} se creó con una versión anterior del contrato y se quitó de tu panel. No hay nada que hacer en la cadena (tenía saldo 0).`),
- duration: 8000,
- });
- } else if (errorMsg.includes("0 balance") || errorMsg.includes("withdraw")) {
- toast.error(L("Withdraw your funds first", "Primero retira tus fondos"), {
- description: L("The contract requires a 0 balance before closing.", "El contrato exige saldo 0 antes de cerrar."),
- duration: 6000,
- });
- } else {
- toast.error(L("Couldn't close the vault", "No se pudo cerrar la bóveda"), {
- description: errorMsg,
- duration: 6000,
- });
- }
- return;
- }
-
- const txHash = result.txHash || "";
-
- // Clear local storage only after confirmed on-chain close
- localStorage.removeItem(`nirium-vault-v2-${baseAsset}-${account.address}`);
- localStorage.removeItem(`nirium-vault-balance-${vaultData.vaultId}-${baseAsset}`);
-
- setVaultId(null);
- setOwnerCapId(null);
- setVaultBalance(0);
-
- toast.dismiss(toastId);
- toast.success(L("Vault closed", "Bóveda cerrada"), {
- description: L(`Vault ${vaultData.vaultId} closed on-chain. Tx: ${txHash.slice(0, 8)}...`, `Bóveda ${vaultData.vaultId} cerrada en la cadena. Tx: ${txHash.slice(0, 8)}...`),
- duration: 6000,
- action: {
- label: "View Tx",
- onClick: () => window.open(`https://stellar.expert/explorer/testnet/tx/${txHash}`, "_blank")
- }
- });
-
- writeLog(
- `VAULT CLOSED: ID=${vaultData.vaultId} | Tx: ${txHash.slice(0, 12)}...`,
- 'success',
- account?.address
- );
- } catch (error: any) {
- toast.dismiss(toastId);
- console.error("Close Vault Error:", error);
- const errStr = String(error?.message || error || "");
- if (errStr.includes("UnreachableCodeReached") || errStr.includes("E_VAULT_NOT_FOUND") || errStr.includes("InvalidAction")) {
- localStorage.removeItem(`nirium-vault-v2-${baseAsset}-${account.address}`);
- localStorage.removeItem(`nirium-vault-balance-${vaultData.vaultId}-${baseAsset}`);
- setVaultId(null);
- setOwnerCapId(null);
- setVaultBalance(0);
- toast.success(L("Old vault removed", "Bóveda antigua quitada"), {
- description: L(`Vault #${vaultData.vaultId} was created on an earlier contract version and was removed from your dashboard.`, `La bóveda #${vaultData.vaultId} se creó con una versión anterior del contrato y se quitó de tu panel.`),
- duration: 8000,
- });
- } else {
- handleWalletError(error);
- }
- }
- };
-
- const handleRevokeAgent = async (agentCapId?: string) => {
- if (!account) return;
-
- toast.error(L("Revoking an agent from here isn't available yet.", "Revocar un agente desde aquí todavía no está disponible."), {
- description: L("For now, stop agents with the toggle.", "Por ahora, detén los agentes con el interruptor."),
- duration: 5000
- });
-
- // TODO: Implement with actual object fetching:
- // const tx = {} as any;
- // const PACKAGE_ID = process.env.NEXT_PUBLIC_PACKAGE_ID;
- // const agentCapObjectId = agentCapId || await fetchAgentCapId(account.address);
- //
- // tx.moveCall({
- // target: `${PACKAGE_ID}::atomic_engine::destroy_agent_cap`,
- // arguments: [tx.object(agentCapObjectId)]
- // });
- //
- // signAndSubmitTransaction({ transaction: tx }, {
- // onSuccess: () => {
- // toast.success(L("Agent permission revoked", "Permiso del agente revocado"));
- // }
- // });
- };
-
- // --- ACCESS GUARD (Removed for guest viewing) ---
return (
-
-
-
-
- {/* 9-nov-2026: el dashboard solo mostraba la bóveda de testnet. La fila de
- nodos sigue el switch TEST/MAIN; las herramientas de bóveda de abajo son
- de NiriumVault, que solo existe en testnet, y lo dicen. */}
-
-
- {/* 16-nov-2026: recibos, cobros y reporting van antes que Treasury. */}
-
-
-
- {/* Key Metrics Grid. Solo lo que trae el registro de la estrategia:
- antes había "Profit 24h" fijo en +0.24 XLM y "Uptime" con
- Math.random(), presentados como métricas reales. */}
-
- {/* El id tal cual. Antes se adivinaba un protocolo por
- substring, con nombres que no son de Stellar
- (Bluefin Perps, Wormhole) y "Blend / Soroswap" por
- defecto para cualquier otro id. */}
-
- )}
-
-
- {/* Treasury: herramientas de NiriumVault en testnet, plegadas por defecto. */}
- setTreasuryOpen((e.currentTarget as HTMLDetailsElement).open)}
- className="max-w-[1600px] mx-auto px-4 md:px-8 mb-8 relative z-10 group/treasury"
- >
-
-
-
- {L('Treasury · testnet vault tools', 'Treasury · herramientas de bóveda en testnet')}
-
-
- {L('Create and fund a NiriumVault, delegate the agent and watch its feed. Testnet only, no real value.', 'Crea y fondea una NiriumVault, delega al agente y mira su feed. Solo testnet, sin valor real.')}
-
-
- {L('On mainnet, Treasury is invite-only until we have a written legal opinion.', 'En mainnet, Treasury es solo por invitación hasta tener una opinión legal por escrito.')}
-
-
-
-
-
- {/* 21-nov-2026 (D3): en mainnet esto mostraba herramientas de NiriumVault en cero
- (bóvedas 0, nodos 0, comisiones 0.0000). NiriumVault solo existe en testnet. */}
- {uiNet === 'mainnet' ? (
-
-
- {L('NiriumVault lives on testnet. Switch to TEST in the menu to create a vault and try the nodes. On mainnet the treasury is a DeFindex vault you own, invite-only: ', 'NiriumVault vive en testnet. Cambia a TEST en el menú para crear una bóveda y probar los nodos. En mainnet la tesorería es una bóveda de DeFindex tuya, solo por invitación: ')}
- /security.
-
- {vaultId ? `ID: ${vaultId}` : L('Vault ID: not created', 'ID de bóveda: sin crear')} • {vaultBalance.toFixed(2)} {baseAsset} {L('in the vault', 'en la bóveda')}
-
-
- )}
- {activeStrategies.slice(0, 10).map((strat, i) => {
- // Se muestra la tasa objetivo del registro. Antes era la APY de
- // Blend + un "boost" sacado del primer carácter del id, con
- // etiqueta "est.", y una curva SVG decorativa debajo.
- return (
-
-
-
- {strat.emoji}
-
-
{strat.name}
-
-
- {t.dashboard.stats.status_active}
-
-
-
-
-
{strat.yield ?? '-'}
-
{language === 'es' ? 'Tasa objetivo, no garantizada' : 'Target rate, not guaranteed'}
-
- {/* x402 / MPP institutional settlement panels hidden for now - the
- capability is live but has no real settlement traffic yet (buyers
- disabled for stability), so they showed empty $0.00 / "Awaiting
- corporate routing". Re-enable once a separate buyer agent feeds them.
-
- )}
-
- {/* Quick Actions at the bottom of the Fleet card */}
-
-
-
-
-
-
-
-
- {/* CETES Reference Rate (replaces Blend/Phoenix) */}
- {/* 21-nov-2026 (D4): aquí se repetían la tasa CETES (queda en el ticker) y el fee de red (queda arriba). */}
-
- {/* Telemetry Network Thought Process */}
-
- {/* El Audit Trail subió a la sección de recibos (16-nov-2026). */}
-
-
- >)}
+
-
- {/* Background Elements */}
-
-
-
-
-
-
- );
-}
-
-export default function Dashboard() {
- const { t } = useLanguage();
- return (
-
- {/* @ts-ignore - React 19 type mismatch in Next.js */}
-
-
-
-
{t.dashboard.loading_dashboard}
-
+
+
+
- }>
-
-
+
- )
+ );
}
diff --git a/apps/web/app/(app)/developers/layout.tsx b/apps/web/app/(app)/developers/layout.tsx
index 4226af80..2bc6b41a 100644
--- a/apps/web/app/(app)/developers/layout.tsx
+++ b/apps/web/app/(app)/developers/layout.tsx
@@ -3,7 +3,7 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/developers",
title: "Build on Nirium",
- description: "The nirium package for TypeScript and Python, a REST API, an MCP server and x402 per-request payments on Stellar.",
+ description: "The nirium package for TypeScript and Python, a REST API, an MCP server and x402 per-request payments on Stellar, plus nirium-solana and nirium-avalanche.",
});
export default function DevelopersLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/developers/page.tsx b/apps/web/app/(app)/developers/page.tsx
index 6357ba37..bab78869 100644
--- a/apps/web/app/(app)/developers/page.tsx
+++ b/apps/web/app/(app)/developers/page.tsx
@@ -7,7 +7,7 @@ import {
Code2, Terminal, Zap, ArrowRight, CheckCircle2,
Copy, Sparkles, Package, Cpu, Globe, ChevronRight,
Server, Boxes, Layers, Shield, ExternalLink, Activity,
- Lock, TrendingUp, Layers as LayersIcon, Send
+ Lock, Layers as LayersIcon, Send
} from "lucide-react";
import { ComplianceBanner } from "@/components/ui/ComplianceBanner";
import { PollarPayCard } from "@/components/shared/PollarPayCard";
@@ -55,15 +55,15 @@ const agent = new Agent({
baseUrl: "https://nirium-agent.fly.dev", // mainnet: https://nirium-agent-mainnet.fly.dev
});
-// Live market data - rates attributed to their source
-const market = await agent.getMarket();
-
-// The node catalog: what runs, on which network
-const nodes = await agent.getNodes();
-
// Anchor evidence to IPFS and get a verifiable CID back
const { cid, document } = await agent.anchorAuditRecord({ hash: "" });
-// keep \`document\`: receiptCid(document) === cid, even if IPFS loses it`;
+// keep \`document\`: receiptCid(document) === cid, even if IPFS loses it
+
+// Reporting: payments and receipts for a network and period
+const summary = await agent.getReportingSummary({ network: "testnet" });
+
+// The node catalog: what runs, on which network
+const nodes = await agent.getNodes();`;
const X402_CODE = `import { Agent } from "nirium";
@@ -141,12 +141,14 @@ const MCP_CODE = `// Claude Desktop: claude_desktop_config.json
// esas filas devolvía 404 en la página que un desarrollador abre primero.
const ENDPOINTS = [
// Público
+ // 27-nov-2026: Audit Trail y Reporting primero, como en el resto del sitio.
+ { method: 'POST', path: '/api/audit/log', desc_en: 'Anchor a record or hash to IPFS', desc_es: 'Ancla un registro o un hash en IPFS' },
+ { method: 'GET', path: '/api/reporting/summary', desc_en: 'Payments and receipts by period', desc_es: 'Pagos y recibos por periodo' },
+ { method: 'POST', path: '/api/audit/binding', desc_en: 'Receipts from Solana, Avalanche, Base and Arbitrum (payments and decisions)', desc_es: 'Recibos de Solana, Avalanche, Base y Arbitrum (pagos y decisiones)' },
{ method: 'GET', path: '/health', desc_en: 'Liveness probe', desc_es: 'Sonda de disponibilidad' },
{ method: 'GET', path: '/api/info', desc_en: 'Agent metadata, network and version', desc_es: 'Metadatos del agente, red y versión' },
- { method: 'GET', path: '/api/tickers', desc_en: 'CETES + Blend reference rates', desc_es: 'Tasas de referencia CETES + Blend' },
{ method: 'GET', path: '/api/nodes', desc_en: 'Execution Node catalog (status + custody)', desc_es: 'Catálogo de Execution Nodes (estado + custodia)' },
{ method: 'GET', path: '/api/loop/status', desc_en: 'Autonomous loop state + last decision', desc_es: 'Estado del loop autónomo + última decisión' },
- { method: 'POST', path: '/api/execute-demo', desc_en: 'Run a demo rebalance - no key required', desc_es: 'Corre un rebalanceo demo - sin llave' },
// Auth
{ method: 'POST', path: '/api/auth/token', desc_en: 'Exchange credentials for a JWT', desc_es: 'Cambia credenciales por un JWT' },
@@ -159,14 +161,12 @@ const ENDPOINTS = [
// responden 501 como si fueran igual de reales que market.
{ method: 'GET', path: '/api/v1/premium/signals', desc_en: 'Premium signals - $0.02 USDC (x402, testnet only)', desc_es: 'Señales premium - $0.02 USDC (x402, solo testnet)' },
{ method: 'GET', path: '/api/v1/premium/market', desc_en: 'Enriched market state - $0.05 USDC (x402, mainnet + testnet)', desc_es: 'Estado de mercado - $0.05 USDC (x402, mainnet + testnet)' },
- { method: 'POST', path: '/api/v1/premium/execute', desc_en: 'Paid strategy execution - $0.25 USDC (x402, testnet only)', desc_es: 'Ejecución pagada - $0.25 USDC (x402, solo testnet)' },
// MPP Charge - mismo patrón: signals/execute 501 en el box de mainnet
// (verificado en vivo), solo market corre en las dos redes.
// signals y execute de MPP responden 501 en el nodo de mainnet (revisado 9-nov-2026), igual que en x402.
{ method: 'GET', path: '/api/v1/mpp/signals', desc_en: 'Premium signals - $0.02 USDC per call (testnet only; verified 15 Oct 2026)', desc_es: 'Señales premium - $0.02 USDC por llamada (solo testnet; verificado el 15-oct-2026)' },
{ method: 'GET', path: '/api/v1/mpp/market', desc_en: 'Enriched market state - $0.05 USDC (testnet: verified 15 Oct 2026 · mainnet: not tested)', desc_es: 'Estado de mercado enriquecido - $0.05 USDC (testnet: verificado el 15-oct-2026 · mainnet: sin probar)' },
- { method: 'POST', path: '/api/v1/mpp/execute', desc_en: 'Paid strategy execution - $0.25 USDC (testnet only; implemented, not tested)', desc_es: 'Ejecución de estrategia pagada - $0.25 USDC (solo testnet; implementado, sin probar)' },
{ method: 'GET', path: '/api/v1/mpp/info', desc_en: 'Active mode, routes and pricing', desc_es: 'Modo activo, rutas y precios' },
// Audit Trail
@@ -177,24 +177,19 @@ const ENDPOINTS = [
{ method: 'GET', path: '/api/reporting/summary', desc_en: 'Consolidated summary by period and network', desc_es: 'Sumario consolidado por periodo y red' },
{ method: 'GET', path: '/api/reporting/export', desc_en: 'The rows behind the summary (CSV / JSON), no CIDs', desc_es: 'Las filas detrás del resumen (CSV / JSON), sin CIDs' },
- // Payouts
- { method: 'POST', path: '/api/payroll/run', desc_en: 'Build a batch payout (unsigned XDR)', desc_es: 'Arma un pago batch (XDR sin firmar)' },
- { method: 'POST', path: '/api/payroll/submit', desc_en: 'Broadcast company-signed payout', desc_es: 'Transmite el pago firmado por la empresa' },
- { method: 'POST', path: '/api/payroll/onboard', desc_en: 'Add a USDC trustline (self-signed)', desc_es: 'Agrega trustline USDC (self-signed)' },
- { method: 'GET', path: '/api/payroll/runs', desc_en: 'Payout history: amount, recipient count, tx', desc_es: 'Historial de pagos: monto, destinatarios, tx' },
];
// Descripciones tomadas de nirium-mcp 0.6.4 (server.tool). Antes la lista tenía 11 de 25
// y dejaba fuera anchor_audit_record, que es el producto principal.
+// 28-nov-2026: desde nirium-mcp 0.7.0 las 11 de tesorería vienen apagadas (opt-in, solo testnet),
+// así que aquí solo van herramientas que carga por defecto (14).
const MCP_TOOLS = [
{ name: 'anchor_audit_record', desc_en: 'Anchor evidence to IPFS and get back a CID. Free', desc_es: 'Ancla evidencia en IPFS y regresa un CID. Gratis' },
- { name: 'get_reporting_summary', desc_en: 'Summary of settled payouts, x402 receipts and IPFS anchors for a period', desc_es: 'Resumen de pagos liquidados, recibos x402 y anclajes en IPFS de un periodo' },
+ { name: 'get_reporting_summary', desc_en: 'Summary of x402 receipts and IPFS anchors for a period', desc_es: 'Resumen de recibos x402 y anclajes en IPFS de un periodo' },
{ name: 'get_nodes', desc_en: 'Nirium nodes with live status, custody model and network. Free', desc_es: 'Nodos de Nirium con estado en vivo, modelo de custodia y red. Gratis' },
{ name: 'get_market_state', desc_en: 'XLM/USDC price, SDEX spread, base fee, Blend rate, CETES rate. Free', desc_es: 'Precio XLM/USDC, spread del SDEX, base fee, tasa de Blend y de CETES. Gratis' },
{ name: 'get_premium_market', desc_en: 'Market state with sourced reference rates, paid via x402 ($0.05 USDC). Data, not advice', desc_es: 'Estado de mercado con tasas y su fuente, pagado vía x402 ($0.05 USDC). Datos, no consejo' },
- { name: 'get_treasury_info', desc_en: 'What role Nirium holds on DeFindex vaults and what it cannot do. Free', desc_es: 'Qué rol tiene Nirium en las bóvedas de DeFindex y qué no puede hacer. Gratis' },
- { name: 'get_treasury_vault', desc_en: "A DeFindex vault's roles, assets and managed funds. Free", desc_es: 'Roles, activos y fondos de una bóveda de DeFindex. Gratis' },
- { name: 'execute_demo', desc_en: 'Dry-run a strategy via Soroban simulation, no real transaction. Free', desc_es: 'Simula una estrategia en Soroban, sin transacción real. Gratis' },
+ { name: 'get_wallet_info', desc_en: 'The wallet and payment setup of this MCP session. Free', desc_es: 'La wallet y la configuración de pagos de esta sesión MCP. Gratis' },
];
@@ -271,6 +266,12 @@ export default function DevelopersPage() {
pip ↗
+
+ {lang('On Solana or Avalanche? Charge, pay and bind the receipt to the transfer with ', '¿En Solana o Avalanche? Cobra, paga y liga el recibo a la transferencia con ')}
+ nirium-solana{lang(' or ', ' o ')}
+ nirium-avalanche{lang(': tested examples on ', ': ejemplos probados en ')}
+ /chains.
+
@@ -291,8 +292,8 @@ export default function DevelopersPage() {
{isMain
- ? lang('Read market data, list the nodes and anchor a receipt. Same code on mainnet with your API key; prices are on /pricing.',
- 'Lee datos de mercado, lista los nodos y ancla un recibo. El mismo código en mainnet con tu API key; los precios están en /pricing.')
+ ? lang('Anchor a receipt, read the Reporting summary and list the nodes. Same code on mainnet with your API key; prices are on /pricing.',
+ 'Ancla un recibo, lee el resumen de Reporting y lista los nodos. El mismo código en mainnet con tu API key; los precios están en /pricing.')
: t.developers_page.quickstart.subtitle}
@@ -361,8 +362,8 @@ export default function DevelopersPage() {
{lang('No facilitator', 'Sin facilitador')}
@@ -400,12 +401,6 @@ export default function DevelopersPage() {
avail: lang('Mainnet + testnet', 'Mainnet + testnet'),
why: null,
},
- {
- ep: 'POST /api/v1/premium/execute',
- price: '$0.25',
- avail: lang('Testnet only', 'Solo testnet'),
- why: lang('needs a signing key the mainnet box deliberately does not hold', 'necesita una llave firmante que el box de mainnet deliberadamente no tiene'),
- },
{
ep: 'GET /api/v1/mpp/signals',
price: '$0.02',
@@ -418,12 +413,6 @@ export default function DevelopersPage() {
avail: lang('testnet: verified 15 Oct 2026 · mainnet: not tested', 'testnet: verificado el 15-oct-2026 · mainnet: sin probar'),
why: lang('settled payments on Horizon testnet; for paid access on mainnet, use x402', 'pagos liquidados en Horizon testnet; para acceso pagado en mainnet, usa x402'),
},
- {
- ep: 'POST /api/v1/mpp/execute',
- price: '$0.25',
- avail: lang('Testnet only; implemented, not tested', 'Solo testnet; implementado, sin probar'),
- why: lang('no MPP payment has been sent to this route yet; use x402', 'todavía no se ha enviado un pago MPP a esta ruta; usa x402'),
- },
].map((row) => (
{row.ep}
@@ -514,7 +503,8 @@ export default function DevelopersPage() {
))}
@@ -537,7 +527,7 @@ export default function DevelopersPage() {
className="mb-6 px-4 py-1.5 rounded-full bg-stellar-teal/10 border border-stellar-teal/30 flex items-center gap-2"
>
- {lang('25 tools in nirium-mcp 0.6.13', '25 herramientas en nirium-mcp 0.6.13')}
+ {lang('14 tools in nirium-mcp 0.8.0', '14 herramientas en nirium-mcp 0.8.0')}
@@ -599,28 +589,6 @@ export default function DevelopersPage() {
{[
- {
- cat: language === 'es' ? 'Seguridad y Auth' : 'Auth & Security',
- icon: Lock,
- eps: [
- { m: 'POST', p: '/api/auth/token', d: 'Exchange credentials for a JWT', de: 'Cambia credenciales por un JWT', s: 'PUBLIC' },
- { m: 'POST', p: '/api/auth/keys', d: 'Issue an API key', de: 'Emite una API key', s: 'KEY' },
- { m: 'GET', p: '/health', d: 'Liveness probe', de: 'Comprueba que el nodo responde', s: 'PUBLIC' },
- { m: 'POST', p: '/api/public/authenticate', d: 'Wallet-signature verification', de: 'Verificación con firma de wallet', s: 'PUBLIC' },
- ]
- },
- {
- // Este loop es la demo de testnet (escanea y cotiza); el firmante real de
- // Treasury en mainnet es otro proceso y no se controla desde aquí.
- cat: language === 'es' ? 'Loop de escaneo (demo de testnet)' : 'Scan loop (testnet demo)',
- icon: Cpu,
- eps: [
- { m: 'POST', p: '/api/loop/start', d: 'Start the scan loop', de: 'Arranca el loop de escaneo', s: 'KEY' },
- { m: 'POST', p: '/api/loop/stop', d: 'Stop the scan loop', de: 'Detiene el loop de escaneo', s: 'KEY' },
- { m: 'POST', p: '/api/execute', d: 'Run one strategy step', de: 'Corre un paso de estrategia', s: 'KEY' },
- { m: 'GET', p: '/api/loop/status', d: 'Loop state and last decision', de: 'Estado del loop y última decisión', s: 'PUBLIC' },
- ]
- },
{
cat: language === 'es' ? 'Audit Trail y Reporting' : 'Audit Trail & Reporting',
icon: Shield,
@@ -630,26 +598,24 @@ export default function DevelopersPage() {
{ m: 'GET', p: '/api/reporting/summary', d: 'Summary by period and network', de: 'Resumen por periodo y red', s: 'PUBLIC' },
{ m: 'GET', p: '/api/reporting/info', d: 'What Reporting exposes and its limits', de: 'Qué expone Reporting y sus límites', s: 'PUBLIC' },
{ m: 'GET', p: '/api/reporting/export', d: 'Rows behind the summary, no CIDs', de: 'Filas detrás del resumen, sin CIDs', s: 'PUBLIC' },
+ { m: 'POST', p: '/api/audit/binding', d: 'Anchor a payer-signed receipt from Solana or Avalanche: a payment bound to its USDC transfer, or a policy decision. Since 27 Nov 2026', de: 'Ancla un recibo firmado por quien paga en Solana o Avalanche: un pago ligado a su transferencia de USDC, o una decisión de la política. Desde el 27 nov 2026', s: 'PUBLIC' },
]
},
{
- cat: language === 'es' ? 'Datos de mercado' : 'Market data',
- icon: TrendingUp,
+ cat: language === 'es' ? 'Seguridad y Auth' : 'Auth & Security',
+ icon: Lock,
eps: [
- { m: 'GET', p: '/api/market', d: 'Market state and reference rates', de: 'Estado del mercado y tasas de referencia', s: 'KEY' },
- { m: 'GET', p: '/api/tickers', d: 'CETES and Blend reference rates', de: 'Tasas de referencia de CETES y Blend', s: 'PUBLIC' },
- { m: 'GET', p: '/api/strategies', d: 'Built-in strategy catalog (testnet)', de: 'Catálogo de estrategias incluidas (testnet)', s: 'PUBLIC' },
- { m: 'GET', p: '/api/signals/recent', d: 'Recent signals from the scan loop (testnet)', de: 'Señales recientes del loop de escaneo (testnet)', s: 'PUBLIC' },
+ { m: 'POST', p: '/api/auth/token', d: 'Exchange credentials for a JWT', de: 'Cambia credenciales por un JWT', s: 'PUBLIC' },
+ { m: 'POST', p: '/api/auth/keys', d: 'Issue an API key', de: 'Emite una API key', s: 'KEY' },
+ { m: 'GET', p: '/health', d: 'Liveness probe', de: 'Comprueba que el nodo responde', s: 'PUBLIC' },
+ { m: 'POST', p: '/api/public/authenticate', d: 'Wallet-signature verification', de: 'Verificación con firma de wallet', s: 'PUBLIC' },
]
},
{
- cat: language === 'es' ? 'Payouts y nodos' : 'Payouts & nodes',
+ cat: language === 'es' ? 'Nodos' : 'Nodes',
icon: Send,
eps: [
{ m: 'GET', p: '/api/nodes', d: 'Node catalog', de: 'Catálogo de nodos', s: 'PUBLIC' },
- { m: 'POST', p: '/api/payroll/run', d: 'Build a batch payout (unsigned)', de: 'Arma una dispersión en lote (sin firmar)', s: 'KEY' },
- { m: 'POST', p: '/api/payroll/submit', d: 'Broadcast a signed payout', de: 'Transmite una dispersión firmada', s: 'KEY' },
- { m: 'POST', p: '/api/payroll/onboard', d: 'Self-signed USDC trustline', de: 'Trustline de USDC que firmas tú', s: 'KEY' },
]
},
].map((group, gIdx) => (
@@ -721,8 +687,6 @@ export default function DevelopersPage() {
{[
- { name: 'NiriumVault', id: 'CDMFURE6MYROTA2A6DLD4TN2S4QTN64L2FZ2I2RY2AREONX6DUQOI2S2', desc_en: 'Vaults and agent delegation; supports a 2-of-3 pause, no cosigners registered yet', desc_es: 'Bóvedas y delegación a agentes; soporta pausa 2-de-3, sin cosignatarios registrados todavía' },
- { name: 'CETES (testnet)', id: 'CC72F57YTPX76HAA64JQOEGHQAPSADQWSY5DWVBR66JINPFDLNCQYHIC', desc_en: 'Etherfuse CETES token used by the testnet Treasury strategies', desc_es: 'Token CETES de Etherfuse que usan las estrategias de Treasury en testnet' },
{ name: 'USDC (testnet SAC)', id: 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA', desc_en: 'USDC the x402 endpoints charge on testnet', desc_es: 'USDC que cobran los endpoints x402 en testnet' },
].map((contract) => (
@@ -783,7 +747,6 @@ export default function DevelopersPage() {
{[
{ k: 'x402Settlements', d: lang('Mainnet payments - totals, distinct payers, each labeled internal/external', 'Pagos mainnet - totales, pagadores distintos, cada uno etiquetado interno/externo') },
- { k: 'treasuryRebalances', d: lang('Treasury Node rebalance() calls, mainnet', 'Llamadas rebalance() del Treasury Node, mainnet') },
{ k: 'auditTrailAnchors', d: lang('IPFS anchor count from our own reporting API', 'Conteo de anclajes IPFS desde nuestra propia API de reportería') },
{ k: 'npm / pypi', d: lang('Download counts, read live from npmjs.org / pypistats.org', 'Descargas, leídas en vivo de npmjs.org / pypistats.org') },
{ k: 'externalMergedPRs', d: lang('PRs merged by maintainers we don’t control', 'PRs mergeadas por maintainers que no controlamos') },
diff --git a/apps/web/app/(app)/disclaimers/page.tsx b/apps/web/app/(app)/disclaimers/page.tsx
index fdfc6618..a2f21eaa 100644
--- a/apps/web/app/(app)/disclaimers/page.tsx
+++ b/apps/web/app/(app)/disclaimers/page.tsx
@@ -4,7 +4,6 @@ import type { ReactNode } from "react";
import { AlertTriangle } from "lucide-react";
import LegalDisclaimer from "@/components/legal/LegalDisclaimer";
import { useLanguage } from "@/context/LanguageContext";
-import { CETES_REFERENCE_RATE_PCT, CETES_REFERENCE_DATE_LABEL_EN, CETES_REFERENCE_DATE_LABEL_ES } from "@/lib/cetesReference";
function H2({ children }: { children: ReactNode }) {
return
{children}
;
@@ -25,7 +24,7 @@ export default function DisclaimersPage() {
{t("Legal Disclaimers", "Avisos legales")}
-
{t("Last updated: November 25, 2026", "Última actualización: 25 de noviembre de 2026")}
+
{t("Last updated: December 1, 2026", "Última actualización: 1 de diciembre de 2026")}
@@ -33,53 +32,42 @@ export default function DisclaimersPage() {
{t("Network Status", "Estado de las redes")}
{t(
-
Nirium runs across two Stellar networks. The non-custodial nodes - settlement (x402), audit anchoring and reporting - operate on Stellar Mainnet; these never hold or move client funds. Autonomous rebalancing runs on mainnet over DeFindex vaults structured so the client owns them (today’s live vault is Nirium’s own, self-funded), invite-only until we have a written legal opinion. NiriumVault, Nirium’s own contract, operates on Stellar Testnet, audit-gated, and will only reach mainnet after a formal external security audit. MPP Charge is experimental: verified on testnet, not tested on mainnet; for paid access on mainnet, use x402. The /ramp page is a demo on Etherfuse’s sandbox: the quote and the order are placed with Nirium’s test account at Etherfuse and no real money moves. To get real CETES, each person opens their own account at Etherfuse.
,
-
Nirium corre en dos redes de Stellar. Los nodos no custodiales (liquidación x402, anclaje de auditoría y reportes) operan en Stellar Mainnet; nunca guardan ni mueven fondos de clientes. El rebalanceo autónomo corre en mainnet sobre bóvedas de DeFindex pensadas para que sean del cliente (la bóveda activa hoy es de Nirium, con fondos propios), solo por invitación hasta tener una opinión legal por escrito. NiriumVault, el contrato propio de Nirium, opera en Stellar Testnet y solo llegará a mainnet después de una auditoría de seguridad externa formal. MPP Charge es experimental: verificado en testnet, sin probar en mainnet; para acceso pagado en mainnet, usa x402. La página /ramp es una demo en el sandbox de Etherfuse: la cotización y la orden se hacen con la cuenta de pruebas de Nirium en Etherfuse y no se mueve dinero real. Para tener CETES reales, cada persona abre su propia cuenta en Etherfuse.
+
Nirium runs on Stellar (mainnet and testnet), with first versions on Solana, Avalanche, Base and Arbitrum. On Stellar, the non-custodial nodes - charging for Nirium’s own x402 endpoints (an independent facilitator settles each payment), audit anchoring and reporting - operate on Stellar Mainnet; these never hold or move client funds. MPP Charge is experimental: verified on testnet, not tested on mainnet; for paid access on mainnet, use x402. Treasury, Payouts and the /ramp CETES demo, tested only with the team’s own funds, were discontinued on 30 Nov 2026.
,
+
Nirium corre en Stellar (mainnet y testnet), con primeras versiones en Solana, Avalanche, Base y Arbitrum. En Stellar, los nodos no custodiales (el cobro de los endpoints x402 propios de Nirium, cuya liquidación hace un facilitador independiente, el anclaje de auditoría y los reportes) operan en Stellar Mainnet; nunca guardan ni mueven fondos de clientes. MPP Charge es experimental: verificado en testnet, sin probar en mainnet; para acceso pagado en mainnet, usa x402. Tesorería, Payouts y la demo de CETES en /ramp, probados solo con fondos del propio equipo, se descontinuaron el 30-nov-2026.
)}
{t(
-
Update, 2026-10-04 (checked against the nirium 0.16.0 changelog that day): this section used to list MPP as part of the settlement running on mainnet and the treasury vault as testnet-only. Both were wrong: MPP Charge is experimental and not available on mainnet, and the treasury that runs on mainnet is DeFindex-based (testnet-only applies to NiriumVault). Testnet operations use test tokens with no real-world monetary value.
,
-
Actualización, 2026-10-04 (revisado ese día contra el changelog de nirium 0.16.0): esta sección decía que MPP era parte de la liquidación en mainnet y que la bóveda de tesorería era solo de testnet. Las dos cosas estaban mal: MPP Charge es experimental y no está disponible en mainnet, y la tesorería que corre en mainnet usa DeFindex (lo de solo testnet aplica a NiriumVault). Las operaciones en testnet usan tokens de prueba sin valor monetario real.
+
Solana and Avalanche (first versions, since November 2026). Nirium sells its own network-data endpoint for $0.01 in USDC per query on Solana mainnet and Avalanche C-Chain mainnet; PayAI, an independent facilitator, settles each payment straight to Nirium’s address. The Nirium node anchors payer-signed receipts from those chains and reports totals per chain. The libraries (nirium-solana, nirium-avalanche) run in the user’s own code, and the user’s own wallet signs. Treasury and Payouts were never offered on those chains. So far the only mainnet payments there are Nirium’s own tests; see /chains. Base and Arbitrum (since 1 Dec 2026): the same $0.01 network-data market runs on Base mainnet and Arbitrum One, PayAI settles each payment, and the node anchors and reports receipts from both; their libraries are not published yet, the only payments there are Nirium’s own tests, and Treasury and Payouts were never offered there. Update, 2026-11-27: this section said Nirium runs on two Stellar networks.
,
+
Solana y Avalanche (primeras versiones, desde noviembre de 2026). Nirium vende su propio endpoint de datos de la red por $0.01 en USDC por consulta en Solana mainnet y en Avalanche C-Chain mainnet; PayAI, un facilitador independiente, liquida cada pago directo a la dirección de Nirium. El nodo de Nirium ancla recibos firmados por quien paga en esas redes y reporta totales por red. Las librerías (nirium-solana, nirium-avalanche) corren en el código del propio usuario, y firma la wallet del propio usuario. Tesorería y Payouts nunca se ofrecieron en esas redes. Hasta ahora los únicos pagos en mainnet ahí son pruebas de Nirium; ver /chains. Base y Arbitrum (desde el 1-dic-2026): el mismo market de datos de la red por $0.01 corre en Base mainnet y Arbitrum One, PayAI liquida cada pago y el nodo ancla y reporta recibos de las dos; sus librerías todavía no se publican, los únicos pagos ahí son pruebas de Nirium, y Tesorería y Payouts nunca se ofrecieron ahí. Actualización, 27-nov-2026: esta sección decía que Nirium corre en dos redes de Stellar.
)}
-
-
{t("Rate Data and Displays", "Tasas y datos mostrados")}
{t(
-
All rate figures displayed within Nirium - the Blend supply rate, the Etherfuse CETES reference rate, network fees - are public protocol reference data, attributed to their source. They are not return projections, guarantees, financial promises, or a recommendation to buy, sell or hold anything.
,
-
Todas las tasas que muestra Nirium (la tasa de suministro de Blend, la tasa de referencia de CETES de Etherfuse, las comisiones de red) son datos públicos de referencia, atribuidos a su fuente. No son proyecciones de rendimiento, garantías, promesas financieras ni una recomendación para comprar, vender o mantener nada.
+
Update, 2026-12-01: two older notes on this page (4 Oct and 21 Nov 2026) described how Treasury’s vaults worked. They were removed after Treasury was discontinued. Testnet operations use test tokens with no real-world monetary value.
,
+
Actualización, 1-dic-2026: dos notas anteriores de esta página (4-oct y 21-nov-2026) describían cómo funcionaban las bóvedas de Tesorería. Se quitaron al descontinuarse Tesorería. Las operaciones en testnet usan tokens de prueba sin valor monetario real.
)}
-
- {t(
-
Blend Protocol Rate: Shown when the node can read it from Blend’s public smart contracts; a value of 0 means no data was available, not a 0% rate.
,
-
Tasa de Blend: Se muestra cuando el nodo puede leerla de los contratos públicos de Blend; un valor de 0 significa que no hubo datos, no una tasa de 0%.
- )}
- {t(
-
Etherfuse CETES Rate: The {CETES_REFERENCE_RATE_PCT}% shown is a fixed reference value read from app.etherfuse.com/b/cetes on {CETES_REFERENCE_DATE_LABEL_EN}. It is not updated live and may differ from the current rate.
,
-
Tasa de CETES de Etherfuse: El {CETES_REFERENCE_RATE_PCT}% que se muestra es un valor fijo de referencia leído de app.etherfuse.com/b/cetes en {CETES_REFERENCE_DATE_LABEL_ES}. No se actualiza en vivo y puede ser distinto de la tasa actual.
- )}
-
-
{t("These figures are provided strictly for informational and UI demonstration purposes.", "Estas cifras se muestran solo con fines informativos y de demostración de la interfaz.")}
-
{t("Non-Custodial Architecture", "Arquitectura no custodial")}
+
{t("Reference Data", "Datos de referencia")}
{t(
-
Nirium is purely a software infrastructure provider. We do not custody user funds. Client private keys never leave the client’s side, and signing happens with the client’s own wallet (for example, the Freighter extension). The only role Nirium can hold on a client’s DeFindex vault is the rebalance role: it can move funds between the vault’s own strategies or swap inside it (our code doesn’t send swaps), it cannot withdraw them, and the client can revoke it at any time. Outside that role, Nirium cannot access user funds or move them without a transaction the user signed. The one exception is NiriumVault’s emergency pause (testnet only): Nirium’s admin key can pause the contract, which freezes withdrawals until it is resumed, without moving any funds.
,
-
Nirium es solo un proveedor de infraestructura de software. No custodiamos fondos de usuarios. Las llaves privadas del cliente nunca salen de su lado, y la firma se hace con la wallet del propio cliente (por ejemplo, la extensión Freighter). El único rol que Nirium puede tener en una bóveda de DeFindex de un cliente es el de rebalanceo: puede mover fondos entre las estrategias de la misma bóveda o hacer swaps dentro de ella (nuestro código no los manda), no puede retirarlos, y el cliente puede revocarlo cuando quiera. Fuera de ese rol, Nirium no puede acceder a fondos de usuarios ni moverlos sin una transacción firmada por el usuario. La única excepción es la pausa de emergencia de NiriumVault (solo testnet): la llave admin de Nirium puede pausar el contrato, lo que congela los retiros hasta reanudarlo, sin mover fondos.
+
Nirium’s paid test endpoint (/api/v1/premium/market) returns public network data, such as the base fee and Blend’s rate when the node can read it, plus a fixed CETES reference read on 12 Nov 2026. These are public reference data, attributed to their source. They are not return projections, guarantees, financial promises, or a recommendation to buy, sell or hold anything. A Blend value of 0 means no data was available, not a 0% rate.
,
+
El endpoint de prueba de pago de Nirium (/api/v1/premium/market) devuelve datos públicos de la red, como la comisión base y la tasa de Blend cuando el nodo puede leerla, más una referencia fija de CETES leída el 12-nov-2026. Son datos públicos de referencia, atribuidos a su fuente. No son proyecciones de rendimiento, garantías, promesas financieras ni una recomendación para comprar, vender o mantener nada. Un valor de 0 en Blend significa que no hubo datos, no una tasa de 0%.
)}
+
+
{t("Non-Custodial Architecture", "Arquitectura no custodial")}
{t(
-
Update, 2026-11-21 (checked against /security and the DeFindex rebalance instructions that day): this paragraph said Nirium could not “freeze” user funds and described the rebalance role as moving funds between strategies only. The admin key can pause NiriumVault on testnet, which freezes withdrawals, and the DeFindex role also allows swaps inside the vault. Both are now stated.
,
-
Actualización, 2026-11-21 (revisado ese día contra /security y las instrucciones de rebalanceo de DeFindex): este párrafo decía que Nirium no podía “congelar” fondos de usuarios y describía el rol de rebalanceo solo como mover fondos entre estrategias. La llave admin puede pausar NiriumVault en testnet, lo que congela los retiros, y el rol de DeFindex también permite swaps dentro de la bóveda. Ahora se dicen las dos cosas.
+
Nirium is purely a software infrastructure provider. We do not custody user funds. Client private keys never leave the client’s side, and signing happens with the client’s own wallet (for example, the Freighter extension). Nirium cannot access user funds or move them without a transaction the user signed.
,
+
Nirium es solo un proveedor de infraestructura de software. No custodiamos fondos de usuarios. Las llaves privadas del cliente nunca salen de su lado, y la firma se hace con la wallet del propio cliente (por ejemplo, la extensión Freighter). Nirium no puede acceder a fondos de usuarios ni moverlos sin una transacción firmada por el usuario.
)}
{t("Restricted Jurisdictions and Sanctions", "Jurisdicciones restringidas y sanciones")}
{t(
-
Nirium Protocol operates from Mexico, run by its founders with no incorporated legal entity to date, and seeks not to offer services where they would constitute regulated activity without the corresponding authorization; that is why, until it has a written legal opinion, Payouts and Treasury on mainnet are invite-only. Access is prohibited from comprehensively sanctioned jurisdictions, jurisdictions subject to a Financial Action Task Force call for action, and mainland China. In the European Economic Area, the United Kingdom and the United States, pending a written legal opinion, Payouts and the Treasury node are not offered on mainnet; on testnet, where test tokens have no value, both stay available as a demonstration, and withdrawing from a vault you already own is never restricted there.
,
-
Nirium Protocol opera desde México, a cargo de sus fundadores y sin una persona moral constituida a la fecha, y busca no ofrecer servicios donde constituirían una actividad regulada sin la autorización correspondiente; por eso, mientras no tenga una opinión legal por escrito, Payouts y Tesorería en mainnet son solo por invitación. Se prohíbe el acceso desde jurisdicciones con sanciones integrales, jurisdicciones sujetas a un llamado a la acción del Grupo de Acción Financiera Internacional (GAFI) y China continental. En el Espacio Económico Europeo, el Reino Unido y Estados Unidos, mientras no haya una opinión legal por escrito, Payouts y el nodo de Tesorería no se ofrecen en mainnet; en testnet, donde los tokens de prueba no tienen valor, los dos siguen disponibles como demostración, y retirar de una bóveda que ya es tuya nunca está restringido ahí.
+
Nirium Protocol operates from Mexico, run by its founders with no incorporated legal entity to date, and seeks not to offer services where they would constitute regulated activity without the corresponding authorization. Access is prohibited from comprehensively sanctioned jurisdictions, jurisdictions subject to a Financial Action Task Force call for action, and mainland China.
,
+
Nirium Protocol opera desde México, a cargo de sus fundadores y sin una persona moral constituida a la fecha, y busca no ofrecer servicios donde constituirían una actividad regulada sin la autorización correspondiente. Se prohíbe el acceso desde jurisdicciones con sanciones integrales, jurisdicciones sujetas a un llamado a la acción del Grupo de Acción Financiera Internacional (GAFI) y China continental.
)}
{t(
Update, 2026-11-21: this paragraph said Nirium “does not offer its services into jurisdictions where those services would constitute regulated activity, regardless of how the software is built”. Read that way it claimed Nirium already knows its services are not regulated in Mexico, which is the open question below. It now says what Nirium does about it.
,
Actualización, 2026-11-21: este párrafo decía que Nirium “no ofrece sus servicios en jurisdicciones donde constituirían una actividad regulada, sin importar cómo esté construido el software”. Así leído, afirmaba que Nirium ya sabe que en México no es actividad regulada, que es justo la pregunta abierta de abajo. Ahora dice qué hace Nirium al respecto.
)}
{t(
-
By using any Nirium service you represent, on every occasion of use, that you are not located in or resident of a prohibited jurisdiction and are not a sanctioned person or acting for one. Nirium may block access by technical means, including IP geolocation, and may refuse or terminate service without notice. Because Nirium never holds funds, termination never strands assets: your keys, accounts and vaults remain fully usable without us.
,
-
Al usar cualquier servicio de Nirium declaras, cada vez que lo usas, que no estás ubicado ni resides en una jurisdicción prohibida y que no eres una persona sancionada ni actúas en nombre de una. Nirium puede bloquear el acceso por medios técnicos, incluida la geolocalización por IP, y puede negar o terminar el servicio sin aviso. Como Nirium nunca guarda fondos, terminar el servicio nunca deja activos atrapados: tus llaves, cuentas y bóvedas siguen funcionando sin nosotros.
+
By using any Nirium service you represent, on every occasion of use, that you are not located in or resident of a prohibited jurisdiction and are not a sanctioned person or acting for one. Nirium may block access by technical means, including IP geolocation, and may refuse or terminate service without notice. Because Nirium never holds funds, termination never strands assets: your keys and accounts remain fully usable without us.
,
+
Al usar cualquier servicio de Nirium declaras, cada vez que lo usas, que no estás ubicado ni resides en una jurisdicción prohibida y que no eres una persona sancionada ni actúas en nombre de una. Nirium puede bloquear el acceso por medios técnicos, incluida la geolocalización por IP, y puede negar o terminar el servicio sin aviso. Como Nirium nunca guarda fondos, terminar el servicio nunca deja activos atrapados: tus llaves y cuentas siguen funcionando sin nosotros.
)}
{t("The full policy governs: ", "La política completa es la que rige: ")}
@@ -91,14 +79,15 @@ export default function DisclaimersPage() {
{t("Open Source Licensing", "Licencias de código abierto")}
{t("The core components of the Nirium ecosystem are open-sourced to ensure transparency:", "Los componentes principales de Nirium son de código abierto, por transparencia:")}
-
{t("Smart Contracts, SDK, MCP, and Agent API:", "Contratos inteligentes, SDK, MCP y API del agente:")} {t("Licensed under the Apache License 2.0.", "Licencia Apache 2.0.")}
-
{t("Dashboard Interface:", "Interfaz del dashboard:")} {t("Licensed under the Apache 2.0 License.", "Licencia Apache 2.0.")}
+
{t("Smart contracts, the TypeScript and Python packages, the CLI, the MCP server and the Solana and Avalanche libraries:", "Contratos inteligentes, los paquetes de TypeScript y Python, el CLI, el servidor MCP y las librerías de Solana y Avalanche:")} {t("Apache License 2.0 (nirium-protocol on GitHub).", "Licencia Apache 2.0 (nirium-protocol en GitHub).")}
+
{t("Web interface:", "Interfaz web:")} {t("Apache License 2.0, published in nirium-protocol/nirium-core.", "Licencia Apache 2.0, publicada en nirium-protocol/nirium-core.")}
+
{t("Hosted node API:", "API de los nodos alojados:")} {t("not open source. The receipts it anchors can be checked without it.", "no es de código abierto. Los recibos que ancla se pueden comprobar sin ella.")}
{t("Ecosystem Participation", "Participación en el ecosistema")}
{t(
- "Nirium is an independent project in the Stellar developer ecosystem. It has received SCF Instaward grants for technical validation, completed under full KYC procedures. Amounts are not disclosed here. Nirium follows the Stellar Code of Conduct and builds transparently, with on-chain activity verifiable by anyone.",
- "Nirium es un proyecto independiente del ecosistema de desarrolladores de Stellar. Ha recibido Instawards del SCF para validación técnica, con el proceso completo de KYC. Los montos no se publican aquí. Nirium sigue el Código de Conducta de Stellar y construye de forma transparente, con actividad on-chain que cualquiera puede verificar."
+ "Nirium is an independent project in the Stellar developer ecosystem. Nirium follows the Stellar Code of Conduct and builds transparently, with on-chain activity verifiable by anyone.",
+ "Nirium es un proyecto independiente del ecosistema de desarrolladores de Stellar. Nirium sigue el Código de Conducta de Stellar y construye de forma transparente, con actividad on-chain que cualquiera puede verificar."
)}
{t("Stellar Code of Conduct", "Código de Conducta de Stellar")}
@@ -114,14 +103,14 @@ export default function DisclaimersPage() {
{t("Security Audits", "Auditorías de seguridad")}
{t(
-
Nirium’s own smart contracts (NiriumVault and NiriumProtocol) have not yet been formally audited by an independent third party. A full external audit is required before NiriumVault operates on mainnet. Until then, NiriumVault runs on testnet only; the non-custodial settlement, audit and reporting nodes - which never touch client funds - run on mainnet. The mainnet Treasury node runs on third-party contracts that do have independent audits: DeFindex (OtterSec, March 2025) and Blend (a Code4rena audit and two Certora reports, marked as draft). Those audits are theirs, not Nirium’s, and do not cover each deployed vault’s configuration.
,
-
Los contratos inteligentes propios de Nirium (NiriumVault y NiriumProtocol) todavía no tienen una auditoría formal de un tercero independiente. Se requiere una auditoría externa completa antes de que NiriumVault opere en mainnet. Mientras tanto, NiriumVault corre solo en testnet; los nodos no custodiales de liquidación, auditoría y reportes, que nunca tocan fondos de clientes, corren en mainnet. El nodo de Tesorería en mainnet corre sobre contratos de terceros que sí tienen auditorías independientes: DeFindex (OtterSec, marzo de 2025) y Blend (una auditoría de Code4rena y dos reportes de Certora, marcados como borrador). Esas auditorías son de ellos, no de Nirium, y no cubren la configuración de cada bóveda desplegada.
+
Nirium’s own smart contracts (NiriumVault and NiriumProtocol) have not yet been formally audited by an independent third party. NiriumVault ran on testnet only and was archived with Treasury on 30 Nov 2026; it will not reach mainnet. The non-custodial nodes - charging for Nirium’s own x402 endpoints, audit anchoring and reporting - never touch client funds and run on mainnet.
,
+
Los contratos inteligentes propios de Nirium (NiriumVault y NiriumProtocol) todavía no tienen una auditoría formal de un tercero independiente. NiriumVault solo corrió en testnet y se archivó junto con Tesorería el 30-nov-2026; no llegará a mainnet. Los nodos no custodiales (el cobro de los endpoints x402 propios de Nirium, el anclaje de auditoría y los reportes) nunca tocan fondos de clientes y corren en mainnet.
)}
{t("Mexico Legal & Regulatory Position", "Posición legal y regulatoria en México")}
{t(
-
Nirium provides software-only infrastructure. It is not authorized as a Financial Technology Institution (Institución de Tecnología Financiera - ITF), and it holds no client balance or electronic payment funds. It does not buy, sell or exchange virtual assets as its own business. The main open question is whether the autonomous Treasury rebalance and Payouts fall under fraction XVI of article 17 of the LFPIORPI, a vulnerable activity in force since 2019. Since 2019 that fraction has covered platforms that facilitate their clients’ purchases or sales of virtual assets or “provide means to [...] transfer” virtual assets; since July 2025 it also expressly includes operations with Mexican citizens from another jurisdiction. Article 24 Bis 4 of the SHCP’s General Rules under that law (added by Acuerdo 115/2026, applicable from November 30, 2026) defines that facilitation and says it applies even without control of the assets. If it applies, Nirium would be an Obligated Subject (Sujeto Obligado) for that activity. Nirium has not yet obtained a written legal opinion on it. Until it does, both stay invite-only on mainnet and Payouts collects client identification there. Audit anchoring, reporting and x402 settlement of Nirium’s own paid endpoints only record or report facts, or charge for Nirium’s own service. Nirium reads them as outside that question; no lawyer has confirmed it. A second, separate question is also open: whether a tokenized CETES counts as a security (valor) under Mexico’s Securities Market Law (see the Risk Disclosure). We do not provide financial advice, broker services, or custody of fiat or digital assets. Update, 2026-11-25: this paragraph said Nirium “does not operate as” an ITF and that anchoring, reporting and its own x402 endpoints “are not part of that question”. Those are legal conclusions no lawyer has reviewed.
,
-
Nirium ofrece infraestructura que es solo software. No está autorizada como Institución de Tecnología Financiera (ITF), y no guarda saldos de clientes ni fondos de pago electrónico. No compra, vende ni intercambia activos virtuales como negocio propio. La principal pregunta abierta es si el rebalanceo autónomo de Tesorería y Payouts caen en la fracción XVI del artículo 17 de la LFPIORPI, actividad vulnerable vigente desde 2019. Desde 2019 esa fracción cubre a las plataformas que facilitan compras o ventas de activos virtuales de sus clientes o que “provean medios para [...] transferir” activos virtuales; desde julio de 2025 incluye también, de forma expresa, las operaciones con ciudadanos mexicanos desde otra jurisdicción. El artículo 24 Bis 4 de las Reglas de Carácter General de la SHCP para esa ley (agregado por el Acuerdo 115/2026, aplicable desde el 30 de noviembre de 2026) define esa facilitación y dice que aplica aun sin tener el control de los activos. Si aplicara, Nirium sería Sujeto Obligado por esa actividad. Nirium todavía no tiene una opinión legal por escrito sobre esto. Mientras no la tenga, los dos siguen solo por invitación en mainnet y Payouts recaba la identificación del cliente ahí. El anclaje de auditoría, los reportes y la liquidación x402 de los endpoints de pago propios de Nirium solo registran o reportan hechos, o cobran por el servicio propio de Nirium. Nirium los lee como fuera de esa pregunta; ningún abogado lo ha confirmado. Hay una segunda pregunta abierta, aparte: si un CETES tokenizado cuenta como valor bajo la Ley del Mercado de Valores (ver el Aviso de riesgos). No damos asesoría financiera, servicios de intermediación ni custodia de dinero fiat o activos digitales. Actualización, 25-nov-2026: este párrafo decía que Nirium no “opera como” una ITF y que el anclaje, los reportes y sus propios endpoints x402 “no son parte de esa pregunta”. Son conclusiones legales que ningún abogado ha revisado.
+
Nirium provides software-only infrastructure. It is not authorized as a Financial Technology Institution (Institución de Tecnología Financiera - ITF), and it holds no client balance or electronic payment funds. It does not buy, sell or exchange virtual assets as its own business. The open question was whether the autonomous Treasury rebalance and Payouts fell under fraction XVI of article 17 of the LFPIORPI, a vulnerable activity in force since 2019. Since 2019 that fraction has covered platforms that facilitate their clients’ purchases or sales of virtual assets or “provide means to [...] transfer” virtual assets; since July 2025 it also expressly includes operations with Mexican citizens from another jurisdiction. Article 24 Bis 4 of the SHCP’s General Rules under that law (added by Acuerdo 115/2026, applicable since November 30, 2026) defines that facilitation and says it applies even without control of the assets. Nirium never obtained a written legal opinion on it; it paused both on mainnet (27 and 28 Nov 2026) and archived them on 30 Nov 2026, so they are not offered on any network. Audit anchoring (Solana, Avalanche, Base and Arbitrum receipts included), reporting and the charging of Nirium’s own paid x402 endpoints, including the Solana, Avalanche, Base and Arbitrum markets that sell their own network data for USDC on mainnet, only record or report facts, or charge for Nirium’s own service; an independent facilitator settles each payment. Nirium reads them as outside that question; no lawyer has confirmed it. We do not provide financial advice, broker services, or custody of fiat or digital assets. Update, 2026-11-25: this paragraph said Nirium “does not operate as” an ITF and that anchoring, reporting and its own x402 endpoints “are not part of that question”. Those are legal conclusions no lawyer has reviewed. Update, 2026-11-27: this paragraph spoke of “x402 settlement”; Nirium does not settle payments, it charges for its own endpoints and a facilitator settles. It now also covers Solana and Avalanche. Update, 2026-11-30: Treasury and Payouts were archived; this paragraph described them as paused, and also raised whether tokenized CETES count as securities, which only Treasury touched.
,
+
Nirium ofrece infraestructura que es solo software. No está autorizada como Institución de Tecnología Financiera (ITF), y no guarda saldos de clientes ni fondos de pago electrónico. No compra, vende ni intercambia activos virtuales como negocio propio. La pregunta abierta era si el rebalanceo autónomo de Tesorería y Payouts caían en la fracción XVI del artículo 17 de la LFPIORPI, actividad vulnerable vigente desde 2019. Desde 2019 esa fracción cubre a las plataformas que facilitan compras o ventas de activos virtuales de sus clientes o que “provean medios para [...] transferir” activos virtuales; desde julio de 2025 incluye también, de forma expresa, las operaciones con ciudadanos mexicanos desde otra jurisdicción. El artículo 24 Bis 4 de las Reglas de Carácter General de la SHCP para esa ley (agregado por el Acuerdo 115/2026, aplicable desde el 30 de noviembre de 2026) define esa facilitación y dice que aplica aun sin tener el control de los activos. Nirium nunca obtuvo una opinión legal por escrito sobre esto; pausó los dos en mainnet (27 y 28-nov-2026) y los archivó el 30-nov-2026, así que no se ofrecen en ninguna red. El anclaje de auditoría (también de recibos de Solana, Avalanche, Base y Arbitrum), los reportes y el cobro de los endpoints x402 propios de Nirium, incluidos los markets de Solana, Avalanche, Base y Arbitrum que venden sus propios datos por USDC en mainnet, solo registran o reportan hechos, o cobran por el servicio propio de Nirium; la liquidación de cada pago la hace un facilitador independiente. Nirium los lee como fuera de esa pregunta; ningún abogado lo ha confirmado. No damos asesoría financiera, servicios de intermediación ni custodia de dinero fiat o activos digitales. Actualización, 25-nov-2026: este párrafo decía que Nirium no “opera como” una ITF y que el anclaje, los reportes y sus propios endpoints x402 “no son parte de esa pregunta”. Son conclusiones legales que ningún abogado ha revisado. Actualización, 27-nov-2026: este párrafo hablaba de “la liquidación x402”; Nirium no liquida pagos, cobra por sus propios endpoints y un facilitador liquida. Ahora también cubre Solana y Avalanche. Actualización, 30-nov-2026: Tesorería y Payouts se archivaron; este párrafo los describía en pausa, y también planteaba si los CETES tokenizados cuentan como valores, algo que solo tocaba Tesorería.
)}
{t(
This is how Nirium reads its own position, not legal advice to anyone. Each user should consult their own counsel on the law that applies to them.
,
diff --git a/apps/web/app/(app)/docs/page.tsx b/apps/web/app/(app)/docs/page.tsx
index 19403826..10fb122a 100644
--- a/apps/web/app/(app)/docs/page.tsx
+++ b/apps/web/app/(app)/docs/page.tsx
@@ -14,7 +14,7 @@ import { useLanguage } from "@/context/LanguageContext";
// /docs — Audit Trail: Verifiable Receipts
// ═══════════════════════════════════════════════════════════════
//
-// Rewritten 29-oct-2026 as a single-focus reference for SCF Build Award #46
+// Rewritten 29-oct-2026 as a single-focus reference for
// reviewers: what a Nirium receipt is, how to get one, and how to check it
// yourself without trusting Nirium. Every command, hash and CID below was
// run live against nirium-agent.fly.dev (testnet) and
@@ -300,8 +300,8 @@ function DocsContent() {
)}
POST /api/audit/log{" "}
{lang(
- "currently accepts requests with no key at all during the open beta - rate-limited to 20 requests/minute per IP on each box - so this step is optional right now and will matter once audit pricing goes live. Payouts does require one. The x402 and MPP routes don't: the payment itself is the access.",
- "hoy acepta solicitudes sin ninguna key durante la beta abierta (con límite de 20 solicitudes por minuto por IP en cada servidor), así que este paso es opcional por ahora y va a importar cuando el cobro del audit entre en vigor. Payouts sí la requiere. Las rutas x402 y MPP no: el pago mismo es el acceso."
+ "currently accepts requests with no key at all during the open beta - rate-limited to 20 requests/minute per IP on each box - so this step is optional right now and will matter once audit pricing goes live. The x402 and MPP routes don't: the payment itself is the access.",
+ "hoy acepta solicitudes sin ninguna key durante la beta abierta (con límite de 20 solicitudes por minuto por IP en cada servidor), así que este paso es opcional por ahora y va a importar cuando el cobro del audit entre en vigor. Las rutas x402 y MPP no: el pago mismo es el acceso."
)}
@@ -502,6 +502,30 @@ CID: QmehRz7Xab8Cg27fypBiffVgW11Yoac6BJcgd3g1pH5V7m
signMessage{" "}
{lang("both work.", "de una wallet funcionan.")}
+
+ {lang(
+ "You don't have to build it by hand: ",
+ "No tienes que armarla a mano: "
+ )}
+ nirium 0.21.0 {lang("signs with ", "firma con ")}
+ anchorAuditRecord({ record, signer })
+ {lang(", the MCP tool ", ", la herramienta del MCP ")}
+ anchor_audit_record {lang("with ", "con ")}
+ sign: true (nirium-mcp 0.8.0)
+ {lang(", and the Pollar adapter with ", ", y el adaptador de Pollar con ")}
+ attester (0.7.0).{" "}
+ {lang(
+ "Put the context of the payment (order or quote id, amount, asset, who approved it) inside ",
+ "Pon el contexto del pago (id de orden o cotización, monto, activo, quién lo aprobó) dentro de "
+ )}
+ record
+ {lang(": ", ": ")}
+ txHash{lang(" and ", " y ")}tag
+ {lang(
+ " are node metadata, outside the hash and the signature.",
+ " son metadatos del nodo, fuera del hash y de la firma."
+ )}
+
@@ -613,6 +637,13 @@ $ npx nirium-cli verify QmaofB6naeySxZsgA4R4p8YWzz3fujTitAa1ndJ1PQjbme --evidenc
"Guarda tu propia copia. Un recibo sigue en IPFS solo mientras alguien lo mantenga fijado. Hoy Nirium fija cada recibo en Pinata; una segunda copia en Filebase ya está construida pero no está activa hasta que esa cuenta pase a un plan de pago (GET /api/audit/info muestra el estado en vivo). La respuesta del anclaje incluye el documento exacto que se fijó: nirium anchor --save receipt.json lo guarda, nirium cid receipt.json --expect muestra que es el original (nirium-cli 3.2.7 o más nuevo), y volver a subir esos bytes a IPFS da el mismo CID."
)}
+
+ {lang(
+ "Receipts from Solana, Avalanche, Base and Arbitrum (payments bound to the exact USDC transfer, and policy decisions) use their own format and verifier: check them on nirium.xyz/solana, nirium.xyz/avalanche, nirium.xyz/base and nirium.xyz/arbitrum, or with npx -p nirium-solana nirium-verify-svm and npx -p nirium-avalanche nirium-verify-evm. /verify recognizes them and sends you there.",
+ "Los recibos de Solana, Avalanche, Base y Arbitrum (pagos ligados a la transferencia exacta de USDC, y decisiones de la política) usan su propio formato y verificador: compruébalos en nirium.xyz/solana, nirium.xyz/avalanche, nirium.xyz/base y nirium.xyz/arbitrum, o con npx -p nirium-solana nirium-verify-svm y npx -p nirium-avalanche nirium-verify-evm. /verify los reconoce y te manda ahí."
+ )}{" "}
+ {lang("What works on each chain", "Qué funciona en cada red")}
+
{lang("Anchor from the terminal (nirium-cli 3.1.0+).", "Anclar desde la terminal (nirium-cli 3.1.0 o más nuevo).")}
{lang(
- "The Reporting node is a read-only summary of what the Nirium agent already records: Audit Trail anchors, payment receipts from Nirium's own x402 endpoint, and Payouts runs. It holds no funds and no keys, and it needs no API key. Requests are rate-limited.",
- "El nodo de Reporting es un resumen de solo lectura de lo que el agente de Nirium ya registra: anclajes de Audit Trail, recibos de pago del endpoint x402 propio de Nirium y corridas de Payouts. No guarda fondos ni llaves, y no necesita API key. Las peticiones tienen límite de frecuencia."
+ "The Reporting node is a read-only summary of what the Nirium agent already records: Audit Trail anchors, and payment receipts from Nirium's own x402 endpoint. It holds no funds and no keys, and it needs no API key. Requests are rate-limited.",
+ "El nodo de Reporting es un resumen de solo lectura de lo que el agente de Nirium ya registra: anclajes de Audit Trail, y recibos de pago del endpoint x402 propio de Nirium. No guarda fondos ni llaves, y no necesita API key. Las peticiones tienen límite de frecuencia."
)}
GET /api/reporting/summary - {lang("totals for a period: Payouts runs, payment receipts, anchors and when the last anchor happened.", "totales de un periodo: corridas de Payouts, recibos de pago, anclajes y cuándo fue el último anclaje.")}
-
GET /api/reporting/export?type=anchors|payments|payroll&format=csv|json - {lang("the rows behind those totals, as CSV or JSON. No CIDs and no Payouts run ids: those belong to whoever anchored or paid.", "las filas detrás de esos totales, en CSV o JSON. Sin CIDs ni ids de corrida de Payouts: son de quien ancló o pagó.")}
+
GET /api/reporting/summary - {lang("totals for a period: payment receipts, anchors and when the last anchor happened.", "totales de un periodo: recibos de pago, anclajes y cuándo fue el último anclaje.")}
+
GET /api/reporting/export?type=anchors|payments&format=csv|json - {lang("the rows behind those totals, as CSV or JSON. No CIDs: those belong to whoever anchored or paid.", "las filas detrás de esos totales, en CSV o JSON. Sin CIDs: son de quien ancló o pagó.")}
GET /api/reporting/info - {lang("node metadata and the list of endpoints.", "metadatos del nodo y la lista de endpoints.")}
@@ -868,8 +899,8 @@ app.use('/premium', x402Serve({
{lang("To test an x402 client against a real seller, point it at ", "Para probar un cliente x402 contra un vendedor real, apúntalo a ")}
GET /api/v1/premium/market
{lang(
- ". It answers 402 for 0.05 USDC and, once paid, returns Stellar network state: the base fee, the Blend rate when the node can read it, and the fixed CETES reference (read 12 Nov 2026). It is a test target, not a data product: much of what it returns is fixed or public. On testnet it costs test USDC; on mainnet it charges real USDC. Who has paid it so far is in Evidence (§9). The other two premium routes answer 501 on mainnet without charging, because that box runs no signal loop and holds no signing key.",
- ". Responde 402 por 0.05 USDC y, una vez pagado, devuelve el estado de la red Stellar: la comisión base, la tasa de Blend cuando el nodo puede leerla y la referencia fija de CETES (leída el 12 de noviembre de 2026). Es un endpoint de prueba, no un producto de datos: buena parte de lo que devuelve es fijo o público. En testnet cuesta USDC de prueba; en mainnet cobra USDC real. Quién lo ha pagado hasta hoy está en Evidencia (§9). Las otras dos rutas premium responden 501 en mainnet sin cobrar, porque ese servidor no corre el loop de señales ni tiene llave para firmar."
+ ". It answers 402 for 0.05 USDC and, once paid, returns Stellar network state: the base fee, the Blend rate when the node can read it, and the fixed CETES reference (read 12 Nov 2026). It is a test target, not a data product: much of what it returns is fixed or public. On testnet it costs test USDC; on mainnet it charges real USDC. Who has paid it so far is in Evidence (§9). On mainnet, signals answers 501 without charging, because that box runs no signal loop; execute is no longer available (410).",
+ ". Responde 402 por 0.05 USDC y, una vez pagado, devuelve el estado de la red Stellar: la comisión base, la tasa de Blend cuando el nodo puede leerla y la referencia fija de CETES (leída el 12 de noviembre de 2026). Es un endpoint de prueba, no un producto de datos: buena parte de lo que devuelve es fijo o público. En testnet cuesta USDC de prueba; en mainnet cobra USDC real. Quién lo ha pagado hasta hoy está en Evidencia (§9). En mainnet, signals responde 501 sin cobrar, porque ese servidor no corre el loop de señales; execute ya no está disponible (410)."
)}
{`
@@ -1048,13 +1079,15 @@ payment-required: eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOiJQYXltZW50IHJlcXVpcmVkIi...
{ proves: lang("Same integration, fifth receipt - TIA's second key, tag niriumtober", "Misma integración, quinto recibo - la segunda llave de TIA, etiqueta niriumtober"), ref: "QmPS1snVHEzXaQe9YmXyDFrm5XfCXLWLAD6v59chSJqZby", date: "2026-11-06", link: "https://gateway.pinata.cloud/ipfs/QmPS1snVHEzXaQe9YmXyDFrm5XfCXLWLAD6v59chSJqZby" },
{ proves: lang("Same integration, sixth receipt - same call, 2 s later, tag tia-route", "Misma integración, sexto recibo - misma llamada, 2 s después, etiqueta tia-route"), ref: "QmXT33ZyUvwxzamEMeGYyUxpAWt86bsPpRkFFu4D1fPkso", date: "2026-11-06", link: "https://gateway.pinata.cloud/ipfs/QmXT33ZyUvwxzamEMeGYyUxpAWt86bsPpRkFFu4D1fPkso" },
{ proves: lang("Same integration, seventh anchored receipt", "Misma integración, séptimo recibo anclado"), ref: "QmZ9bQxXLqoCvAQ6AtRChd18MS9YkjBF6MbT9k5e84PTTv", date: "2026-11-12", link: "https://gateway.pinata.cloud/ipfs/QmZ9bQxXLqoCvAQ6AtRChd18MS9YkjBF6MbT9k5e84PTTv" },
+ { proves: lang("Same integration, eighth receipt - 2 Nov, 22:02 UTC, tag tia-route. Found in our 25 Nov 2026 recount; earlier versions of this list showed seven", "Misma integración, octavo recibo - 2 nov, 22:02 UTC, etiqueta tia-route. Lo encontramos al recontar el 25 nov 2026; antes esta lista mostraba siete"), ref: "QmXnUQxWdzCBKN2rEi4JPYirVyhu3Rebt2mtyoXuJRAL18", date: "2026-11-02", link: "https://gateway.pinata.cloud/ipfs/QmXnUQxWdzCBKN2rEi4JPYirVyhu3Rebt2mtyoXuJRAL18" },
{ proves: lang("x402 payment, our own test of nirium 0.20.0 - the most recent of the 40", "Pago x402, prueba propia de nirium 0.20.0; el más reciente de los 40"), ref: "786db50b8cba033f56f987adb113e53d2dee7d8a08066ed9e5664fc41f3ec336", date: "2026-11-24", link: "https://stellar.expert/explorer/public/tx/786db50b8cba033f56f987adb113e53d2dee7d8a08066ed9e5664fc41f3ec336" },
{ proves: lang("AgentRail's receipt, signed with its own agent key, for a 0.001 XLM payment to its own treasury - a test by its founder", "Recibo de AgentRail, firmado con la llave de su agente, de un pago de 0.001 XLM a su propia tesorería; una prueba de su fundador"), ref: "QmdJowsxyyDjv8UxwgceawgpZN4zsDUDaKeSiqDpQX3p8a", date: "2026-11-24", link: "https://gateway.pinata.cloud/ipfs/QmdJowsxyyDjv8UxwgceawgpZN4zsDUDaKeSiqDpQX3p8a" },
+ { proves: lang("AgentRail's correction of that receipt: the record listed a wrong contractId; same transaction, same agent key, hash-only", "Corrección de AgentRail a ese recibo: el registro traía un contractId equivocado; misma transacción, misma llave del agente, solo hash"), ref: "QmSKQP8gHc7yQNs1dqhS8dTWYBj5MpF7V5NMkFKxeZ3mEe", date: "2026-11-30", link: "https://gateway.pinata.cloud/ipfs/QmSKQP8gHc7yQNs1dqhS8dTWYBj5MpF7V5NMkFKxeZ3mEe" },
{ proves: lang("Our own notice: the hash of our Restricted Jurisdictions policy v1.5, signed with a Nirium test key (own use)", "Aviso propio: el hash de nuestra política de Jurisdicciones Restringidas v1.5, firmado con una llave de pruebas de Nirium (uso propio)"), ref: "Qmd7yun1FUDZ3p2DK36BxRpLaAA2EQjjWfZ1S77R4Z1v4F", date: "2026-11-25", link: "https://gateway.pinata.cloud/ipfs/Qmd7yun1FUDZ3p2DK36BxRpLaAA2EQjjWfZ1S77R4Z1v4F" },
{ proves: lang("Trustless Work escrow, full lifecycle, own-funds test (0.50 USDC)", "Escrow de Trustless Work, ciclo completo, prueba con fondos propios (0.50 USDC)"), ref: "0c533088ab6326a78b9f79c197b7636ca4662a0d72562968ddea37f370a8192b", date: "2026-09-03", link: "https://stellar.expert/explorer/public/tx/0c533088ab6326a78b9f79c197b7636ca4662a0d72562968ddea37f370a8192b" },
]} />
- {lang("The seven TIA receipts are signed with two TIA keys: five by ", "Los siete recibos de TIA están firmados con dos llaves de TIA: cinco con ")}
+ {lang("The eight TIA receipts are signed with two TIA keys: six by ", "Los ocho recibos de TIA están firmados con dos llaves de TIA: seis con ")}
GATT3MOLOCTDOUGS3FDNZUYV3UKDLIQE4PN7JJ4JYZBYJOOXBVJV4KXI{" "}
{lang("(quotes and routes) and two by ", "(cotizaciones y rutas) y dos con ")}
GBMCX53NIDNHE6WL3FJGROYWTSGOQMWD6R7Y2ORBWR2G2SCLEKM376DY{" "}
@@ -1159,12 +1192,6 @@ payment-required: eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOiJQYXltZW50IHJlcXVpcmVkIi...
{lang("A free key from ", "Una key gratis de ")}/keys{" "}
{lang("is self-service and wallet-signed, scoped to the free tier by default.", "es de autoservicio y se firma con wallet, limitada al nivel gratis por default.")}
-
- {lang(
- "Free keys cannot trigger mainnet Payouts, or deploy, deposit into or rebalance a Treasury vault on mainnet - those stay invite-only (institutional/enterprise tier, assigned manually). Withdrawing from your own vault stays open to any key.",
- "Las keys gratis no pueden disparar Payouts en mainnet, ni desplegar, depositar o rebalancear una bóveda de Treasury en mainnet: eso se queda por invitación (nivel institucional/enterprise, asignado a mano). Retirar de tu propia bóveda sigue abierto para cualquier key."
- )}
-
{lang("Known limits, stated plainly:", "Límites conocidos, dichos de frente:")}
- {lang("Treasury and Payouts are separate, invite-only modules, not covered here.", "Treasury y Payouts son módulos aparte, por invitación, que no se cubren aquí.")}
-
{lang("Planned, not live:", "Planeado, no en vivo:")}{" "}
{lang(
- "batching anchored receipts into a Soroban registry contract, so a receipt's existence can be checked on-chain directly instead of only via an IPFS CID. No date set yet.",
- "agrupar recibos anclados en un contrato de registro en Soroban, para que la existencia de un recibo se pueda comprobar directo en cadena, no solo vía un CID de IPFS. Todavía sin fecha."
+ "a receipt bound to the payment: the verifier checks the receipt against the transfer on Stellar (a classic payment or a contract transfer event), and a classic payment can carry the receipt's hash as its memo, which gives the record the ledger's time instead of our server's clock. An on-chain registry contract is not planned until a user needs it.",
+ "un recibo ligado al pago: el verificador compara el recibo con la transferencia en Stellar (un pago clásico o el evento de transferencia de un contrato), y un pago clásico puede llevar el hash del recibo como memo, lo que le da al registro la hora del ledger y no la de nuestro servidor. Un contrato de registro en la cadena no está planeado hasta que un usuario lo necesite."
)}
@@ -1203,8 +1227,8 @@ payment-required: eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOiJQYXltZW50IHJlcXVpcmVkIi...
)}
ReceiptRegistry{" "}
{lang(
- "prototype was measured on testnet on 29 Oct 2026 - a cost check, not a launch: contract",
- "se midió en testnet el 29 de octubre de 2026, una revisión de costo, no un lanzamiento: contrato"
+ "prototype was measured on testnet on 29 Oct 2026 - a cost check, not a launch, and not on the plan above: contract",
+ "se midió en testnet el 29 de octubre de 2026, una revisión de costo, no un lanzamiento, y no está en el plan de arriba: contrato"
)}{" "}
CBK7GBTO32ZFARQP4D2LVPLR3AOFZZJZXQSMZJWRUPPU7OYIDFPIWQBG,{" "}
{lang(
diff --git a/apps/web/app/(app)/how-to-use/layout.tsx b/apps/web/app/(app)/how-to-use/layout.tsx
index be80a833..ed638dfe 100644
--- a/apps/web/app/(app)/how-to-use/layout.tsx
+++ b/apps/web/app/(app)/how-to-use/layout.tsx
@@ -3,7 +3,7 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/how-to-use",
title: "How to Use Nirium",
- description: "Getting started with Nirium: an API key, x402 payments, the invite-only Treasury rebalancer and Audit Trail receipts anyone can verify.",
+ description: "Getting started with Nirium: an API key, x402 payments and Audit Trail receipts anyone can verify.",
});
export default function HowToUseLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/keys/layout.tsx b/apps/web/app/(app)/keys/layout.tsx
index a53e1037..451c5412 100644
--- a/apps/web/app/(app)/keys/layout.tsx
+++ b/apps/web/app/(app)/keys/layout.tsx
@@ -3,7 +3,7 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/keys",
title: "API Keys",
- description: "Issue a free Nirium API key tied to your Stellar wallet, proven by signature. One key works on testnet and mainnet; mainnet Payouts and Treasury are invite-only.",
+ description: "Issue a free Nirium API key tied to your wallet, proven by signature. One key works on testnet and mainnet for audit anchoring and Reporting.",
});
export default function KeysLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/keys/page.tsx b/apps/web/app/(app)/keys/page.tsx
index 91ef35da..04285375 100644
--- a/apps/web/app/(app)/keys/page.tsx
+++ b/apps/web/app/(app)/keys/page.tsx
@@ -277,8 +277,8 @@ export default function KeysPage() {
API Keys
{lang(
- "Issue real API keys for the Nirium agent - audit anchoring, reporting and authenticated endpoints. One key works on testnet and mainnet for audit anchoring and reporting. On mainnet, Payouts and Treasury need a key Nirium authorizes (invite-only). Today anchoring and Reporting need no key (open beta); the key counts once Audit Trail pricing starts, and for Payouts and Treasury.",
- "Emite API keys reales del agente Nirium - anclaje de auditoría, reportería y endpoints autenticados. Una misma key funciona en testnet y mainnet para anclaje y reportería. En mainnet, Payouts y Treasury necesitan una key que Nirium autorice (por invitación). Hoy anclar y consultar Reporting no necesitan key (beta abierta); la key cuenta cuando entre el cobro de Audit Trail y para Payouts y Treasury.")}
+ "Issue real API keys for the Nirium agent - audit anchoring, reporting and authenticated endpoints. One key works on testnet and mainnet for audit anchoring and reporting. Today anchoring and Reporting need no key (open beta); the key counts once Audit Trail pricing starts.",
+ "Emite API keys reales del agente Nirium - anclaje de auditoría, reportería y endpoints autenticados. Una misma key funciona en testnet y mainnet para anclaje y reportería. Hoy anclar y consultar Reporting no necesitan key (beta abierta); la key cuenta cuando entre el cobro de Audit Trail.")}
{[
diff --git a/apps/web/app/(app)/manifesto/layout.tsx b/apps/web/app/(app)/manifesto/layout.tsx
index 00d24344..00dabb9e 100644
--- a/apps/web/app/(app)/manifesto/layout.tsx
+++ b/apps/web/app/(app)/manifesto/layout.tsx
@@ -3,7 +3,7 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/manifesto",
title: "Manifesto",
- description: "Why autonomous agents need payment, audit and execution rails, and why Nirium builds them on Stellar.",
+ description: "Why money that moves because of a document needs a signed record of that document anyone can check.",
noindex: true,
});
diff --git a/apps/web/app/(app)/payouts/layout.tsx b/apps/web/app/(app)/payouts/layout.tsx
index d9a31e55..4ffb7238 100644
--- a/apps/web/app/(app)/payouts/layout.tsx
+++ b/apps/web/app/(app)/payouts/layout.tsx
@@ -2,8 +2,8 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/payouts",
- title: "Payouts",
- description: "Pay up to 100 recipients per batch (99 if the batch carries a fee) from one company wallet in a single signed Stellar transaction. Nirium builds it, you sign it. Invite-only on mainnet.",
+ title: "Payouts (discontinued)",
+ description: "Payouts was tested only with the team's own funds and discontinued on 30 Nov 2026.",
});
export default function PayoutsLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/payouts/page.tsx b/apps/web/app/(app)/payouts/page.tsx
index 051f83da..24c497e2 100644
--- a/apps/web/app/(app)/payouts/page.tsx
+++ b/apps/web/app/(app)/payouts/page.tsx
@@ -1,476 +1,6 @@
-"use client";
+import { redirect } from "next/navigation";
-// ───────────────────────────────────────────────────────────────
-// Payroll / Disbursement Node - operator console
-//
-// Fan-out one treasury to many employees in a single signed batch payment.
-// Non-custodial: the agent builds the unsigned XDR from the CONNECTED wallet
-// (the treasury/source), the company signs it in Freighter, and every settled
-// run gets an IPFS receipt bound to LCP legal terms. Dual-network: testnet
-// (Box A) por default; MAINNET early access (Box B) mueve fondos reales y
-// exige aceptación explícita de los términos de payouts (gate 403 del agente).
-// i18n via the shared dictionaries (en/es).
-// ───────────────────────────────────────────────────────────────
-
-import { useCallback, useEffect, useState } from "react";
-import { useFreighter } from "@/hooks/useFreighter";
-import { useLanguage } from "@/context/LanguageContext";
-import { useNetwork } from "@/context/NetworkContext";
-
-const PASSPHRASES = {
- testnet: "Test SDF Network ; September 2015",
- mainnet: "Public Global Stellar Network ; September 2015",
-} as const;
-type Net = keyof typeof PASSPHRASES;
-
-type Recipient = { wallet: string; amount: string };
-type ClientInfo = { legalName: string; taxId: string; repName: string };
-type RecipientResult = { wallet: string; amount: string; status: "ok" | "skipped"; reason?: string };
-type Receipt = { txHash?: string; explorer?: string; cid?: string; totalAmount?: string; recipientCount?: number };
-type Run = {
- asset: string; totalAmount: string; recipientCount: number;
- txHash?: string; explorer?: string;
-};
-type LegalDoc = {
- terms: string; atrHash?: string;
- disputeResolution?: { source?: string; clauseId?: string };
-};
-
-const shorten = (s: string, n = 6) => (s.length > n * 2 ? `${s.slice(0, n)}…${s.slice(-n)}` : s);
-// El recibo se abre en /verify, que recalcula el hash (antes: JSON crudo en Pinata).
-const verifyUrl = (cid: string) => `/verify?cid=${encodeURIComponent(cid)}`;
-
-async function signXdr(
- signTransaction: (xdr: string, opts?: any) => Promise,
- xdr: string,
- address: string,
- passphrase: string,
-): Promise {
- // Pin the signer to the CONNECTED address: without this the wallet may sign
- // with whatever account is currently active, which won't match the tx source
- // (the treasury) → tx_bad_auth.
- const res = await signTransaction(xdr, { networkPassphrase: passphrase, address });
- const signed = typeof res === "string" ? res : (res as any).signedTxXdr;
- if (!signed) throw new Error("wallet returned no signed transaction");
- return signed;
-}
-
-export default function PayrollPage() {
- const { address, isConnected, connect, signTransaction, getAddress } = useFreighter();
- const { t, language } = useLanguage();
- const lang = (en: string, es: string) => (language === 'es' ? es : en);
- const p = t.payroll;
-
- const [asset, setAsset] = useState<"USDC" | "XLM">("USDC");
- // Red global (sidebar) - no un estado local: dos toggles independientes
- // (este y el del sidebar) es justo el bug que causaba que "Corridas
- // recientes" siguiera mostrando testnet tras cambiar a mainnet desde el
- // sidebar. Un solo lugar para cambiar de red, como treasury/vault/page.tsx.
- const { network, setNetwork } = useNetwork();
- // Blindaje legal: la corrida exige aceptación explícita de los términos
- // (el agente responde 403 sin acknowledgeTerms - en AMBAS redes).
- const [ackTerms, setAckTerms] = useState(false);
- // Identificación de cliente - solo mainnet, de cara a LFPIORPI fracc. XVI
- // (vigente desde 2019, no 2027 - ver NiriumMainnet.md §3.7). El agente responde 403 sin ella en mainnet.
- const [clientInfo, setClientInfo] = useState({ legalName: "", taxId: "", repName: "" });
- const [memo, setMemo] = useState("");
- const [recipients, setRecipients] = useState([{ wallet: "", amount: "" }]);
- const [phase, setPhase] = useState<"idle" | "building" | "signing" | "submitting">("idle");
- const [error, setError] = useState(null);
- const [skipped, setSkipped] = useState([]);
- const [receipt, setReceipt] = useState(null);
-
- const [onboardPhase, setOnboardPhase] = useState<"idle" | "working">("idle");
- const [onboardMsg, setOnboardMsg] = useState(null);
-
- const [runs, setRuns] = useState([]);
- const [legal, setLegal] = useState(null);
-
- // LCP discovery - read our own published .well-known file (same origin).
- useEffect(() => {
- fetch("/.well-known/legal-context.json", { cache: "no-store" })
- .then((r) => (r.ok ? r.json() : null))
- .then((d) => setLegal(d))
- .catch(() => { /* not published yet - banner hidden */ });
- }, []);
-
- const loadRuns = useCallback(async () => {
- try {
- const r = await fetch(`/api/payroll/runs?network=${network}`, { cache: "no-store" });
- const d = await r.json();
- setRuns(Array.isArray(d.runs) ? d.runs : []);
- } catch { /* agent offline - leave list as-is */ }
- }, [network]);
-
- useEffect(() => { loadRuns(); }, [loadRuns]);
-
- const busy = phase !== "idle";
- const clientInfoComplete = Boolean(clientInfo.legalName.trim() && clientInfo.taxId.trim() && clientInfo.repName.trim());
- const total = recipients.reduce((s, r) => s + (Number(r.amount) || 0), 0);
- const filledCount = recipients.filter((r) => r.wallet && r.amount).length;
-
- const setRow = (i: number, key: keyof Recipient, val: string) =>
- setRecipients((rs) => rs.map((r, j) => (j === i ? { ...r, [key]: val } : r)));
- const addRow = () => setRecipients((rs) => [...rs, { wallet: "", amount: "" }]);
- const removeRow = (i: number) => setRecipients((rs) => rs.length > 1 ? rs.filter((_, j) => j !== i) : rs);
-
- const actionLabel =
- phase === "building" ? p.actions.building
- : phase === "signing" ? p.actions.signing
- : phase === "submitting" ? p.actions.settling
- : p.actions.buildSign;
-
- async function runPayroll() {
- setError(null); setSkipped([]); setReceipt(null);
- if (!isConnected || !address) { await connect(); return; }
- const clean = recipients
- .map((r) => ({ wallet: r.wallet.trim(), amount: r.amount.trim() }))
- .filter((r) => r.wallet && r.amount);
- if (clean.length === 0) { setError(p.errors.needRecipient); return; }
- if (!ackTerms) { setError(p.errors.needTerms); return; }
- if (network === "mainnet" && !clientInfoComplete) { setError(p.errors.needClientInfo); return; }
-
- try {
- setPhase("building");
- // The treasury (tx source) is the connected account. If the wallet has
- // since switched to a different active account, signing would use that
- // account → tx_bad_auth. Guard explicitly instead of failing cryptically.
- const active = await getAddress();
- if (active && active !== address) { setPhase("idle"); setError(p.errors.accountMismatch); return; }
- const built = await fetch("/api/payroll/run", {
- method: "POST", headers: { "Content-Type": "application/json" },
- body: JSON.stringify({
- walletAddress: address, recipients: clean, asset, memo: memo || undefined, network, acknowledgeTerms: ackTerms,
- clientInfo: network === "mainnet" ? clientInfo : undefined,
- }),
- }).then((r) => r.json());
- if (built.error) throw new Error(built.error);
-
- const dropped: RecipientResult[] = (built.recipients || []).filter((r: RecipientResult) => r.status === "skipped");
- setSkipped(dropped);
- if (!built.xdr) { setPhase("idle"); setError(p.errors.noPayable); return; }
-
- setPhase("signing");
- const signedXdr = await signXdr(signTransaction, built.xdr, address, PASSPHRASES[network]);
-
- setPhase("submitting");
- const settled = await fetch("/api/payroll/submit", {
- method: "POST", headers: { "Content-Type": "application/json" },
- body: JSON.stringify({ walletAddress: address, runId: built.runId, signedXdr, network }),
- }).then((r) => r.json());
- if (settled.error) throw new Error(settled.error);
-
- setReceipt({
- txHash: settled.txHash, explorer: settled.explorer, cid: settled.cid,
- totalAmount: settled.totalAmount, recipientCount: settled.recipientCount,
- });
- loadRuns();
- } catch (e) {
- setError(e instanceof Error ? e.message : String(e));
- } finally {
- setPhase("idle");
- }
- }
-
- async function onboardWorker() {
- setOnboardMsg(null);
- if (!isConnected || !address) { await connect(); return; }
- try {
- setOnboardPhase("working");
- // Self-service: add the USDC trustline to the CONNECTED account (it signs
- // its own changeTrust - one signature). Guard against a wallet account
- // switch so we don't sign with the wrong account (tx_bad_auth).
- const active = await getAddress();
- if (active && active !== address) { setOnboardMsg(p.errors.accountMismatch); return; }
- const built = await fetch("/api/payroll/onboard", {
- method: "POST", headers: { "Content-Type": "application/json" },
- body: JSON.stringify({ walletAddress: address, employee: address, network }),
- }).then((r) => r.json());
- if (built.error) throw new Error(built.error);
- if (built.status === "skipped") { setOnboardMsg(`${built.reason}`); return; }
- if (!built.xdr) throw new Error("agent did not return a transaction to sign");
-
- const signedXdr = await signXdr(signTransaction, built.xdr, address, PASSPHRASES[network]);
- const settled = await fetch("/api/payroll/onboard/submit", {
- method: "POST", headers: { "Content-Type": "application/json" },
- body: JSON.stringify({ walletAddress: address, signedXdr, network }),
- }).then((r) => r.json());
- if (settled.error) throw new Error(settled.error);
- setOnboardMsg(`✅ TX ${shorten(settled.txHash || "", 5)}`);
- } catch (e) {
- setOnboardMsg(e instanceof Error ? e.message : String(e));
- } finally {
- setOnboardPhase("idle");
- }
- }
-
- return (
-
-
-
- {/* Precio - LICENCIA MENSUAL POR CAPACIDAD, $0 durante la Beta.
- Era "por destinatario" y contradecía los propios términos que
- el cliente acepta dos recuadros más abajo (§9: nunca un cargo
- por pago). Cobrar por pago procesado es como cobra un
- procesador de pagos, y la tesis entera es que no lo somos. */}
-
- {p.legal.label}
- {p.legal.terms}
- {legal.atrHash && (
- atrHash {legal.atrHash.replace("sha-256:", "").slice(0, 10)}…
- )}
- {legal.disputeResolution?.source && {p.legal.dispute} · {language === 'es' && legal.disputeResolution.source === 'Courts of Mexico City (arbitration only by written agreement)' ? 'Tribunales de la Ciudad de México (arbitraje solo por acuerdo escrito)' : legal.disputeResolution.source}}
-
-
- {/* Mainnet: sin formulario. El sitio pide al agente un token de nivel
- 'free' para cualquier wallet (/api/auth/token) y la corrida en
- mainnet exige nivel institucional (requirePayrollMainnetAccess),
- así que desde aquí siempre terminaba en 403, incluso para un
- invitado. Las empresas invitadas lo corren por API con su llave
- autorizada. Decidido el 8-nov-2026. */}
- {network === "mainnet" && (
-
-
-
-
- setMemo(e.target.value)} maxLength={28}
- placeholder={p.batch.memoPlaceholder}
- className="w-full h-11 px-3 mb-5 rounded-lg bg-black border border-white/10 font-mono text-sm text-white/90 placeholder:text-white/25 focus:border-stellar-teal/60 outline-none" />
-
-
-
- {/* La representación del usuario es la protección jurídica REAL - el
- bloqueo por IP se salta con una VPN, una declaración no. Va junto al
- botón que construye la corrida, no enterrada en un PDF, porque una
- declaración que nadie leyó no declara nada. */}
-
- {lang(
- 'By continuing you represent, on this and every occasion of use, that you are not located in or a resident of a prohibited jurisdiction, that you are not a sanctioned person or acting for one, and, on mainnet, that Payouts is offered where you are (today mainnet excludes the EEA, the UK and the US; testnet is open there as a demonstration). Nirium relies on this.',
- 'Al continuar declaras, en esta y en cada ocasión de uso, que no te encuentras ni resides en una jurisdicción prohibida, que no eres una persona sancionada ni actúas por cuenta de una, y, en mainnet, que Payouts se ofrece donde estás (hoy mainnet excluye al EEE, el Reino Unido y Estados Unidos; testnet está abierto ahí como demostración). Nirium confía en esta declaración.')}
-
- ) : (
- // Sin ID de corrida ni CID del recibo: el recibo es evidencia de la
- // empresa que pagó (misma regla que el Audit Trail del dashboard).
- // La tx sí, porque ya es pública en la cadena. El proxy
- // /api/payroll/runs tampoco devuelve esos dos campos.
-
-
- );
+// Archivado el 30-nov-2026 (decidido por Giovanny): Payouts. Redirige a /treasury, la página de archivo.
+export default function Page() {
+ redirect("/treasury");
}
diff --git a/apps/web/app/(app)/pollar-adapter-documentation/page.tsx b/apps/web/app/(app)/pollar-adapter-documentation/page.tsx
index a5079c30..a3b61c4a 100644
--- a/apps/web/app/(app)/pollar-adapter-documentation/page.tsx
+++ b/apps/web/app/(app)/pollar-adapter-documentation/page.tsx
@@ -91,7 +91,7 @@ export default function PollarAdapterDocumentationPage() {
npm
-
nirium-pollar-adapter@0.6.6
+
nirium-pollar-adapter@0.7.0
Peer requerido
@@ -140,6 +140,11 @@ export default function PollarAdapterDocumentationPage() {
El adaptador ya corre en la propia app de Nirium: el login social de Pollar está integrado en el navbar y en la consola de API keys, y cualquier persona puede probarlo hoy sin instalar nada.
+
+
+ Desde la 0.7.0 (29 de noviembre de 2026), el recibo de cada pago puede llevar adentro su contexto: qué orden, qué cotización, quién lo aprobó. Va dentro del registro firmado, no al lado, y si la app activa la opción y no da contexto, no se emite recibo. La app firma con su propia llave, nunca con la del usuario, y puede guardar el contexto para sí y poner en el recibo solo su huella. La propuesta para que cada app nueva de Pollar lo traiga por defecto está en{' '}
+ pollar-xyz/pollar#95.
+
{/* 03 · Lo que cambió */}
@@ -218,7 +223,7 @@ export default function PollarAdapterDocumentationPage() {
06 · Lo que ya está abierto
Sin acceso especial que pedir
- Audit Trail y Reporting ya son públicos en mainnet: cualquiera ancla y verifica recibos, y consulta los resúmenes, sin pedir acceso. Los recibos que ancla cada quien se quedan con quien los hizo; Nirium no los comparte con terceros. Treasury y Payouts siguen solo por invitación hasta tener una opinión legal por escrito.
+ Audit Trail y Reporting ya son públicos en mainnet: cualquiera ancla y verifica recibos, y consulta los resúmenes, sin pedir acceso. Los recibos que ancla cada quien se quedan con quien los hizo; Nirium no los comparte con terceros. Treasury y Payouts están en pausa en mainnet hasta tener una opinión legal por escrito.
@@ -229,7 +234,7 @@ export default function PollarAdapterDocumentationPage() {
GitHubnirium.xyz
diff --git a/apps/web/app/(app)/pricing/page.tsx b/apps/web/app/(app)/pricing/page.tsx
index a555942d..d03b11c2 100644
--- a/apps/web/app/(app)/pricing/page.tsx
+++ b/apps/web/app/(app)/pricing/page.tsx
@@ -11,18 +11,14 @@ import { useLanguage } from "@/context/LanguageContext";
type Feature = { en: string; es: string };
const FEATURES_FREE: Feature[] = [
- { en: 'Testnet vault (NiriumVault on Soroban)', es: 'Vault testnet (NiriumVault en Soroban)' },
{ en: 'Free API key: 10 requests/min and 100/day on keyed routes; anchoring and Reporting need no key today', es: 'API key gratis: 10 solicitudes/min y 100/día en rutas con key; anclar y Reporting hoy no piden key' },
{ en: 'Audit trail (SHA-256 · IPFS)', es: 'Audit trail (SHA-256 · IPFS)' },
- { en: 'Payouts node (batch disbursement)', es: 'Nodo de dispersiones (batch)' },
{ en: 'Package access (npm: nirium)', es: 'Acceso al paquete (npm: nirium)' },
{ en: 'MCP server (Claude/Cursor)', es: 'MCP server (Claude/Cursor)' },
// Estas dos cobran donde existe la capacidad, no donde queda mejor en el
// copy: la señal la produce el loop autónomo y la ejecución necesita una
// llave firmante. El box de mainnet no tiene ninguna de las dos y responde
// 501 sin cobrar, así que anunciarlas allá sería vender una puerta cerrada.
- { en: 'x402 snapshot - $0.02 per call (factual loop data, not a recommendation)', es: 'Snapshot x402 - $0.02 por llamada (datos del loop, no una recomendación)' },
- { en: 'x402 execute - $0.25 per call (execution needs a signing key; mainnet box holds none)', es: 'Execute x402 - $0.25 por llamada (ejecutar necesita llave firmante; el box de mainnet no tiene)' },
];
const FEATURES_MAINNET: Feature[] = [
@@ -38,12 +34,9 @@ const FEATURES_MAINNET: Feature[] = [
// pregunta de cualquiera que va a meter dinero en un contrato, y omitirla se
// lee como que la salida está gated. El costo va medido, no adjetivado.
// 9-nov-2026: fuera "~1.4 XLM, medido en mainnet": no se encontró la tx que lo respalde.
- // Los 12.5 XLM son de NiriumVault en testnet (DEPLOYMENT_FEE en nirium_vault.rs).
- { en: 'Treasury vault on DeFindex - deploy, deposit and withdraw, all with your own signature (deploying and depositing from this site are invite-only on mainnet until we have a written legal opinion); the vault is yours, Nirium can never withdraw from it, and you pay only the Stellar network fee, from your own wallet - Nirium charges nothing to deploy it', es: 'Bóveda de tesorería en DeFindex - desplegar, depositar y retirar, todo con tu propia firma (desplegar y depositar desde este sitio son solo por invitación en mainnet hasta tener una opinión legal por escrito); la bóveda es tuya, Nirium nunca puede retirar de ella, y solo pagas el fee de red de Stellar, desde tu propia wallet - Nirium no cobra nada por desplegarla' },
// El precio de payouts dejó de ser por-destinatario: cobrar por pago procesado
// es como cobra un procesador de pagos, y contradecía los propios términos.
// Ahora es licencia mensual por capacidad - misma economía, otra forma jurídica.
- { en: 'Batch payouts - monthly software licence by permitted volume ($99 up to 250 records/mo, $249 up to 1,000), never a per-payment charge and never a percentage of what you disburse; mainnet is private Beta, invite-only (early access: network fee only today)', es: 'Payouts en lote - licencia mensual de software por volumen permitido ($99 hasta 250 registros/mes, $249 hasta 1,000), nunca un cargo por pago ni un porcentaje de lo que dispersas; mainnet en Beta privada, solo por invitación (early access: hoy solo fee de red)' },
{ en: 'Audit anchoring - free during beta. Anchor hashes, not personal data: we can\'t guarantee anything is deleted from IPFS.', es: 'Anclaje de auditoría - gratis en beta. Ancla hashes, no datos personales: no podemos garantizar que algo se borre de IPFS.' },
{ en: 'Reporting API - free (read-only). Institutional format; what you file with a regulator remains yours to decide', es: 'API de reportería - gratis (lectura). Formato institucional; lo que presentes ante un regulador lo decides tú' },
{ en: 'Settled on-chain in USDC, per request', es: 'Liquidado on-chain en USDC, por request' },
@@ -52,31 +45,25 @@ const FEATURES_MAINNET: Feature[] = [
const FEATURES_GROWTH: Feature[] = [
{ en: 'Everything in Free', es: 'Todo lo de Free' },
- // Dos bóvedas distintas y hay que decirlo, o se lee como que la audit-gated
- // ya está viva: NiriumVault es contrato nuestro y espera auditoría; la de
- // DeFindex es contrato ajeno ya auditado y del cliente - por eso una puede
- // ir a mainnet hoy y la otra no.
- { en: 'Nirium’s own mainnet vault (planned, after an audit)', es: 'Vault propio de Nirium en mainnet (planeado, después de una auditoría)' },
- { en: 'Treasury node - autonomously moves idle capital into the yield strategy and back out, on a DeFindex vault structured for you to own (early access, no cost during beta - invite-only on mainnet until there is a written legal opinion)', es: 'Nodo de tesorería - mueve solo el capital ocioso hacia la estrategia de rendimiento y de regreso, sobre una bóveda DeFindex pensada para que sea tuya (early access, sin costo durante la beta - solo por invitación en mainnet hasta tener una opinión legal por escrito)' },
{ en: 'Higher API rate limits, set per account', es: 'Límites de API más altos, definidos por cuenta' },
{ en: 'Institutional-format exports (CSV/JSON)', es: 'Exportes formato institucional (CSV/JSON)' },
{ en: 'IPFS anchoring (Pinata)', es: 'Anclaje IPFS (Pinata)' },
{ en: 'x402 agentic payments', es: 'Pagos agénticos x402' },
- { en: 'Payouts / batch disbursement', es: 'Dispersiones / pagos por lote' },
{ en: 'LCP legal layer (planned, switched off today)', es: 'Capa legal LCP (planeada, hoy apagada)' },
- // 9-nov-2026: fuera "Cross-border USDC transfers" (ya lo cubre Payouts, no es
- // otro producto) y "Canal Slack dedicado" (Nirium no tiene Slack; tiene Discord).
- { en: 'CETES and USDC reference rates, attributed to their source', es: 'Tasas de referencia CETES y USDC, con su fuente' },
- { en: 'Visual Strategy Builder (drag & drop; saves drafts, does not execute)', es: 'Strategy Builder visual (drag & drop; guarda borradores, no ejecuta)' },
{ en: 'Priority support (response time by agreement)', es: 'Soporte prioritario (tiempo de respuesta por acuerdo)' },
{ en: 'Dedicated channel on the Nirium Discord', es: 'Canal dedicado en el Discord de Nirium' },
+ // Dos bóvedas distintas y hay que decirlo, o se lee como que la audit-gated
+ // ya está viva: NiriumVault es contrato nuestro y espera auditoría; la de
+ // DeFindex es contrato ajeno ya auditado y del cliente - por eso una puede
+ // ir a mainnet hoy y la otra no.
+ // 9-nov-2026: fuera "Cross-border USDC transfers" (ya lo cubre Payouts, no es
+ // otro producto) y "Canal Slack dedicado" (Nirium no tiene Slack; tiene Discord).
];
const FEATURES_ENTERPRISE: Feature[] = [
{ en: 'Everything in Growth', es: 'Todo lo de Growth' },
{ en: 'Volume API pricing', es: 'Precios por volumen de API' },
{ en: 'White-label option', es: 'Opción white-label' },
- { en: 'Custom Soroban vault logic', es: 'Lógica de vault Soroban custom' },
{ en: 'Audit-readiness support', es: 'Soporte de preparación para auditorías' },
{ en: 'Support SLA by agreement', es: 'SLA de soporte por acuerdo' },
{ en: 'Custom integrations (ERP, Core Banking)', es: 'Integraciones custom (ERP, Core Banking)' },
@@ -91,9 +78,7 @@ type ComparisonRow = {
};
const COMPARISON: ComparisonRow[] = [
- { feature: { en: 'Treasury vault', es: 'Bóveda de tesorería' }, free: { en: 'NiriumVault (testnet)', es: 'NiriumVault (testnet)' }, growth: { en: 'DeFindex (mainnet, invite-only)', es: 'DeFindex (mainnet, por invitación)' }, enterprise: 'Custom' },
{ feature: { en: 'API rate limit', es: 'Límite de API' }, free: { en: '10 req/min · 100/day (keyed routes)', es: '10 req/min · 100/día (rutas con key)' }, growth: { en: 'Higher, per account', es: 'Más alto, por cuenta' }, enterprise: { en: 'By agreement', es: 'Por acuerdo' } },
- { feature: { en: 'Signing model', es: 'Modelo de firma' }, free: { en: 'Your key withdraws; the agent spends up to a cap you set (NiriumVault)', es: 'Tu llave retira; el agente gasta hasta un tope que tú fijas (NiriumVault)' }, growth: { en: 'Your keys + revocable rebalance role', es: 'Tus llaves + rol de rebalanceo revocable' }, enterprise: { en: 'Configurable', es: 'Configurable' } },
{ feature: { en: 'Institutional export', es: 'Export institucional' }, free: '✓', growth: '✓', enterprise: '✓' },
{ feature: { en: 'IPFS anchoring', es: 'Anclaje IPFS' }, free: { en: 'Free during beta', es: 'Gratis en beta' }, growth: '✓', enterprise: '✓' },
{ feature: { en: 'x402', es: 'x402' }, free: { en: 'Testnet', es: 'Testnet' }, growth: '✓', enterprise: '✓' },
@@ -131,8 +116,8 @@ export default function PricingPage() {
{lang(
- 'Start free. On mainnet you pay per request - your agent settles in USDC on-chain, no card needed.',
- 'Empieza gratis. En mainnet pagas por request - tu agente liquida en USDC on-chain, sin tarjeta.')}
+ 'Start free. On mainnet you pay per request - your agent pays in USDC on-chain, no card needed.',
+ 'Empieza gratis. En mainnet pagas por request - tu agente paga en USDC on-chain, sin tarjeta.')}
@@ -173,13 +158,15 @@ export default function PricingPage() {
{lang('MPP Charge: experimental, untested on mainnet - for paid access, use x402.', 'MPP Charge: experimental, sin probar en mainnet; para acceso pagado usa x402.')}
-
+
+ {lang('Dated corrections (MPP Charge)', 'Correcciones con fecha (MPP Charge)')}
+
{lang('Update, 2026-10-04 (checked against the nirium 0.16.0 changelog that day):', 'Actualización, 2026-10-04 (verificado contra el changelog de nirium 0.16.0 ese día):')}{' '}
{lang(
'this card used to list MPP Charge as live on mainnet. That was wrong: MPP Charge has never been verified end to end against our hosted endpoints (the testnet one rejected the payment when tested on 2026-10-01; mainnet was never tested). Use x402 for paid access.',
'esta tarjeta listaba MPP Charge como en vivo en mainnet. Era incorrecto: MPP Charge nunca se verificó de punta a punta contra nuestros endpoints alojados (el de testnet rechazó el pago al probarlo el 2026-10-01; el de mainnet nunca se probó). Usa x402 para acceso pagado.')}
-
+
{lang('Update, 2026-10-15 (checked against Horizon testnet that day):', 'Actualización, 2026-10-15 (verificado contra Horizon testnet ese día):')}{' '}
{lang(
'the note above no longer holds for testnet. MPP Charge was verified on testnet on 2026-10-15 with the nirium SDK, in pull and push mode, both settled:',
@@ -188,6 +175,7 @@ export default function PricingPage() {
96d43d6f….{' '}
{lang('These were internal tests, not customer usage. Mainnet is untested.', 'Fueron pruebas internas, no uso de clientes. Mainnet sigue sin probarse.')}
+
- {lang('Software license - no % of capital', 'Licencia de software - sin % del capital')}
+ {lang('Software license', 'Licencia de software')}
{lang('By agreement - there is no in-app billing yet', 'Por acuerdo - todavía no hay cobro dentro del sitio')}
@@ -302,14 +290,14 @@ export default function PricingPage() {
{
label: lang('Nirium Software License', 'Licencia de Software Nirium'),
rows: [
- { who: lang('Platform fee (Growth)', 'Cuota plataforma (Growth)'), fee: '$299/mo', note: lang('Flat monthly - no % of capital', 'Mensual fijo - sin % del capital'), highlight: true, total: false },
+ { who: lang('Platform fee (Growth)', 'Cuota plataforma (Growth)'), fee: '$299/mo', note: lang('Flat monthly', 'Mensual fijo'), highlight: true, total: false },
// Antes una sola fila lumpeaba "execution, market, signals" bajo un
// rango $0.02-0.25 sin decir red - solo market corre en mainnet;
// signals y execute son testnet-only por diseño (ver FEATURES_FREE
// arriba). Separado en dos filas para que el fee no implique más
// disponibilidad de la real.
- { who: lang('x402 market state - mainnet', 'x402 market state - mainnet'), fee: '$0.05', note: lang('The only x402 endpoint that charges on mainnet (last settled payment 24 Nov 2026, our own test)', 'El único endpoint x402 que cobra en mainnet (último pago liquidado: 24 nov 2026, una prueba nuestra)'), highlight: false, total: false },
- { who: lang('x402 snapshot + execute - testnet only', 'x402 snapshot + execute - solo testnet'), fee: '$0.02 / $0.25', note: lang('Need the autonomous loop / a signing key the mainnet box does not hold', 'Necesitan el loop autónomo / una llave firmante que el box de mainnet no tiene'), highlight: false, total: false },
+ { who: lang('x402 market state - mainnet', 'x402 market state - mainnet'), fee: '$0.05', note: lang('The x402 endpoint that charges on Stellar mainnet (last settled payment 24 Nov 2026, our own test)', 'El endpoint x402 que cobra en Stellar mainnet (último pago liquidado: 24 nov 2026, una prueba nuestra)'), highlight: false, total: false },
+ { who: lang('x402 market - Solana, Avalanche, Base and Arbitrum mainnet', 'x402 market - Solana, Avalanche, Base y Arbitrum mainnet'), fee: '$0.01', note: lang('Network data of each chain, per query; PayAI settles each payment', 'Datos de cada red, por consulta; PayAI liquida cada pago'), highlight: false, total: false },
],
},
{
@@ -318,8 +306,6 @@ export default function PricingPage() {
// terceros reales son Etherfuse, DeFindex y la red.
label: lang('Third-party costs (not Nirium)', 'Costos de terceros (no Nirium)'),
rows: [
- { who: lang('Etherfuse (CETES issuance and redemption)', 'Etherfuse (emisión y canje de CETES)'), fee: 'etherfuse.com', feeLink: 'https://etherfuse.com', note: lang('Charged by Etherfuse under its own terms - Nirium does not receive or manage this fee', 'Lo cobra Etherfuse con sus propios términos - Nirium no recibe ni administra ese cobro'), highlight: false, total: false },
- { who: lang('DeFindex vault fee', 'Comisión de la bóveda DeFindex'), fee: lang('Set by the vault owner', 'La fija el dueño de la bóveda'), note: lang('0 on our evidence vault; DeFindex takes half of whatever the vault fee is', '0 en nuestra bóveda de evidencia; DeFindex se queda la mitad de lo que sea esa comisión'), highlight: false, total: false },
{ who: lang('Stellar network (gas)', 'Red Stellar (gas)'), fee: '<$0.01', note: lang('Per transaction', 'Por transacción'), highlight: false, total: false },
],
},
@@ -393,22 +379,16 @@ export default function PricingPage() {
{[
{
- q: lang('Why flat pricing instead of % of capital?', '¿Por qué precio fijo y no % del capital?'),
+ q: lang('Why a flat price?', '¿Por qué un precio fijo?'),
a: lang(
- 'Nirium is software, not a fund manager: we charge for the software, never a share of your money. Any cost tied to the assets themselves (issuing or redeeming CETES, a vault fee, network fees) is charged by that third party under its own terms, not by us.',
- 'Nirium es software, no una administradora de fondos: cobramos por el software, nunca una parte de tu dinero. Cualquier costo ligado a los activos (emitir o canjear CETES, la comisión de una bóveda, el fee de red) lo cobra ese tercero con sus propios términos, no nosotros.'),
+ 'Nirium is software: we charge for the software, never a share of your payments. Network fees are charged by each network, not by us.',
+ 'Nirium es software: cobramos por el software, nunca una parte de tus pagos. El fee de red lo cobra cada red, no nosotros.'),
},
{
q: lang('What is on mainnet today and how is it billed?', '¿Qué está en mainnet hoy y cómo se cobra?'),
a: lang(
- "Settlement (x402), audit anchoring and reporting run on Stellar mainnet now. MPP Charge is experimental and untested on mainnet; for paid access, use x402. Of the three x402 premium endpoints, only market state ($0.05) actually runs on mainnet - it only reads public rate data, so it needs neither a live signal loop nor a signing key. Snapshot signals ($0.02) and strategy execution ($0.25) run on testnet only, by design: signals need the autonomous loop, which does not run on the mainnet box (receive-only), and execution needs a signing key the mainnet box deliberately does not hold. Every mainnet call settles on-chain before the response - every payment is a verifiable transaction. Audit anchoring is free during beta; the reporting API is free read-only.",
- 'La liquidación (x402), el anclaje de auditoría y la reportería ya corren en Stellar mainnet. MPP Charge es experimental y no se ha probado en mainnet; para acceso pagado usa x402. De los tres endpoints premium x402, solo el market state ($0.05) corre de verdad en mainnet - solo lee datos públicos de tasas, así que no necesita ni el loop de señales ni una llave firmante. El snapshot de señales ($0.02) y la ejecución de estrategia ($0.25) corren solo en testnet, por diseño: las señales necesitan el loop autónomo, que no corre en el box de mainnet (receive-only), y la ejecución necesita una llave firmante que el box de mainnet deliberadamente no tiene. Cada llamada en mainnet liquida on-chain antes de responder - cada pago es una transacción verificable. El anclaje de auditoría es gratis en beta; el API de reportería es gratis en lectura.'),
- },
- {
- q: lang('What does the treasury node cost?', '¿Cuánto cuesta el nodo de tesorería?'),
- a: lang(
- 'On mainnet the vault is a DeFindex vault you own: deploying it pays nothing to Nirium, only the Stellar network fee, from your own wallet - the vault is yours from the first block. On mainnet, deploying and depositing through Nirium (this site or the API) is invite-only; withdrawing from your vault is always open. On testnet, creating a vault with NiriumVault, our own proof-of-concept contract, charges 12.5 testnet XLM that go to Nirium’s testnet treasury; testnet XLM has no value. Autonomous rebalancing is early access and carries no cost during the beta. On mainnet it is invite-only, and not because of a technical limit: the signer runs, but whether rebalancing someone else’s vault is regulated activity is an open question with no written legal opinion yet, so we do not open it before there is one. The vault fee is set by you as the vault owner; on our evidence vault it is 0, and DeFindex takes half of whatever that fee is, so today nobody takes a cut of the yield. Nirium never takes a percentage of your capital.',
- 'En mainnet la bóveda es una bóveda de DeFindex que es tuya: desplegarla no le paga nada a Nirium, solo el fee de red de Stellar, desde tu propia wallet - la bóveda es tuya desde el primer bloque. En mainnet, desplegar y depositar a través de Nirium (este sitio o la API) es solo por invitación; retirar de tu bóveda siempre está abierto. En testnet, crear una bóveda con NiriumVault, nuestro contrato de prueba de concepto, cobra 12.5 XLM de testnet que van a la tesorería de testnet de Nirium; el XLM de testnet no tiene valor. El rebalanceo autónomo es early access y no tiene costo durante la beta. En mainnet es solo por invitación, y no por un límite técnico: el firmante corre, pero si reacomodar la bóveda de otra persona es actividad regulada es una pregunta abierta, todavía sin opinión legal por escrito, así que no lo abrimos antes de tenerla. La comisión de la bóveda la fijas tú como dueño; en nuestra bóveda de evidencia es 0, y DeFindex se queda la mitad de esa comisión, así que hoy nadie se lleva una parte del rendimiento. Nirium nunca cobra un porcentaje de tu capital.'),
+ "Charging for Nirium's own x402 endpoints, audit anchoring and reporting run on Stellar mainnet now. MPP Charge is experimental and untested on mainnet; for paid access, use x402. On Stellar mainnet, the x402 endpoint that charges is market state ($0.05); it returns public or fixed reference data. On Solana, Avalanche, Base and Arbitrum mainnet, Nirium's markets charge $0.01 per query. Every paid mainnet call settles on-chain, through an independent facilitator, before the response - every payment is a verifiable transaction. Audit anchoring is free during beta; the reporting API is free read-only.",
+ 'El cobro de los endpoints x402 propios de Nirium, el anclaje de auditoría y Reporting ya corren en Stellar mainnet. MPP Charge es experimental y no se ha probado en mainnet; para acceso pagado usa x402. En Stellar mainnet, el endpoint x402 que cobra es market state ($0.05); devuelve datos públicos o fijos de referencia. En Solana, Avalanche, Base y Arbitrum mainnet, los markets de Nirium cobran $0.01 por consulta. Cada llamada pagada en mainnet se liquida on-chain, a través de un facilitador independiente, antes de responder - cada pago es una transacción verificable. El anclaje de auditoría es gratis en beta; el API de reportería es gratis en lectura.'),
},
{
q: lang('How do I pay $0.05 if there is no card on file?', '¿Cómo pago $0.05 si no hay tarjeta?'),
@@ -424,34 +404,11 @@ export default function PricingPage() {
'Your agent pays, not your finance team: the API replies 402, the SDK signs a USDC payment from your wallet, the facilitator settles it on-chain (network fees sponsored), and the API responds. One request, one payment, one receipt. That $0.05 call is market state - the endpoint that actually runs on mainnet. To try it without spending, the same market-state endpoint also runs on testnet with free faucet USDC.',
'Paga tu agente, no tu equipo de finanzas: el API responde 402, el SDK firma un pago USDC desde tu wallet, el facilitador lo liquida on-chain (fees de red patrocinados) y el API responde. Un request, un pago, un recibo. Esa llamada de $0.05 es market state - el endpoint que de verdad corre en mainnet. Para probarlo sin gastar, el mismo endpoint de market state también corre en testnet con USDC de faucet.'),
},
- {
- q: lang('When does the treasury vault reach mainnet?', '¿Cuándo llega el vault de tesorería a mainnet?'),
- // 21-nov-2026 (PRC3): "ya auditadas" iba sin fuente.
- a: (
- <>
- {lang(
- 'NiriumVault, Nirium’s own vault contract, stays on testnet until it clears a formal external Soroban audit - by design, not by limitation. Treasury rebalancing on mainnet runs over DeFindex vaults (third-party, ',
- 'NiriumVault, el contrato de bóveda propio de Nirium, permanece en testnet hasta pasar una auditoría externa formal de Soroban - por diseño, no por limitación. El rebalanceo de tesorería en mainnet corre sobre bóvedas de DeFindex (de terceros, ')}
-
- {lang('audited by OtterSec, March 2025', 'auditadas por OtterSec, marzo de 2025')}
-
- {lang(
- '), invite-only. The non-custodial nodes above did not need that gate because they never hold funds.',
- '), solo por invitación. Los nodos no custodiales de arriba no requieren esa compuerta porque nunca custodian fondos.')}
- >
- ),
- },
{
q: lang('Does Nirium custody my funds?', '¿Nirium custodia mis fondos?'),
a: lang(
- "No. Nirium never holds your keys and cannot withdraw your funds. The only role it can hold on your vault moves funds, or swaps them, inside that same vault - never out of it - and you can revoke it at any time.",
- 'No. Nirium nunca tiene tus llaves y no puede retirar tus fondos. El único rol que puede tener en tu bóveda mueve fondos, o hace swaps, dentro de esa misma bóveda - nunca hacia afuera - y puedes revocarlo cuando quieras.'),
- },
- {
- q: lang('Who charges the financial commissions?', '¿Quién cobra las comisiones financieras?'),
- a: lang(
- 'The third party that provides each asset or protocol, under its own terms: Etherfuse for issuing and redeeming tokenized CETES (see etherfuse.com), DeFindex and the vault owner for the vault fee, and the Stellar network for transaction fees. Nirium only charges software license fees, plus per-request x402 charges in USDC for its own API.',
- 'El tercero que da cada activo o protocolo, con sus propios términos: Etherfuse por emitir y canjear CETES tokenizados (ver etherfuse.com), DeFindex y el dueño de la bóveda por la comisión de la bóveda, y la red Stellar por el fee de cada transacción. Nirium solo cobra licencias de software, más cargos x402 por request en USDC por su propia API.'),
+ 'No. Nirium never holds your keys or your funds. An x402 payment settles from the payer straight to the seller through an independent facilitator, and a receipt is a signed record of a payment, not the payment itself.',
+ 'No. Nirium nunca tiene tus llaves ni tus fondos. Un pago x402 se liquida directo del pagador al vendedor a través de un facilitador independiente, y un recibo es un registro firmado de un pago, no el pago.'),
},
{
q: lang('Are there volume discounts?', '¿Hay descuentos por volumen?'),
@@ -477,9 +434,9 @@ export default function PricingPage() {
{language === 'es' ? (
- <>La liquidación x402, el anclaje de auditoría y los reportes corren en Stellar Mainnet; NiriumVault y algunas funciones siguen solo en testnet. Los precios son indicativos y pueden cambiar. La tasa de CETES que muestra el sitio es un valor de referencia fijo (12-nov-2026), no una lectura en vivo ni una garantía de Nirium. No es asesoría financiera.>
+ <>El cobro x402 de Nirium, el anclaje de auditoría y Reporting corren en Stellar Mainnet. Los precios son indicativos y pueden cambiar. No es asesoría financiera.>
) : (
- <>x402 settlement, audit anchoring and reporting run on Stellar Mainnet; NiriumVault and some features are still testnet-only. Prices are indicative and may change. The CETES rate shown on the site is a fixed reference value (12 Nov 2026), not a live reading or a Nirium guarantee. Not financial advice.>
+ <>Nirium's x402 charging, audit anchoring and reporting run on Stellar Mainnet. Prices are indicative and may change. Not financial advice.>
)}
diff --git a/apps/web/app/(app)/privacy/page.tsx b/apps/web/app/(app)/privacy/page.tsx
index ad5e28d7..2f49b6e9 100644
--- a/apps/web/app/(app)/privacy/page.tsx
+++ b/apps/web/app/(app)/privacy/page.tsx
@@ -38,12 +38,12 @@ function AvisoEs() {
Según el servicio que uses, tratamos:
Llaves de API: la dirección pública de tu wallet de Stellar, el nombre que le pongas a la llave y la propia llave guardada solo como hash.
-
Payouts en mainnet: la razón social, el RFC y el nombre del representante legal del cliente, y por cada corrida las direcciones de los destinatarios, los montos, el activo y el hash de la transacción.
-
Solicitudes de acceso y contacto: los datos que nos envíes para pedir acceso o escribirnos (por ejemplo empresa, RFC, nombre del representante, correo y teléfono).
-
Tesorería: las direcciones de las bóvedas y de sus responsables (Manager), para mostrarte tus bóvedas.
-
Demo de CETES (/ramp): la dirección de Stellar que escribes, que enviamos al ambiente de pruebas de Etherfuse, con la cuenta de prueba de Nirium, para pedir la cotización y la orden.
+
Payouts y Tesorería: se probaron solo con fondos del equipo y se descontinuaron el 30-nov-2026. Ya no se recaba nada; los registros de esas pruebas son del propio equipo.
+
Solicitudes de acceso y contacto: los datos que nos envíes para pedir acceso o escribirnos (por ejemplo empresa, nombre, correo, la dirección de tu wallet y tu mensaje).
Audit Trail: el hash que anclas y, en modo record, el JSON que envías (hasta 8 KB), que queda publicado en IPFS para cualquiera que tenga el CID. No incluyas datos personales en un registro.
Pagos x402 a la API de Nirium: la dirección de Stellar que paga, la ruta, el monto, la red, el hash de la transacción y, si se rechaza, el motivo.
+
Recibos de Solana, Avalanche, Base y Arbitrum: cuando un recibo de esas redes se ancla en el nodo de Nirium (un pago ligado a su transferencia de USDC, o una decisión de la política de quien paga), guardamos la dirección de quien paga, el monto, el activo, la red y el CID, para Reporting. El recibo completo, con las direcciones de quien paga y de quien cobra, queda publicado en IPFS. Los markets de Nirium en esas redes no guardan datos de quien compra; sus servidores (Fly.io) llevan registros de peticiones por un tiempo limitado.
+
Exploradores de Solana, Avalanche, Base y Arbitrum (nirium.xyz/solana, /avalanche, /base y /arbitrum): tu navegador baja los recibos directo de gateways públicos de IPFS y consulta el RPC público de cada red, o el que tú escribas; esos servicios ven tu dirección IP. Nirium no recibe esas consultas.
Datos técnicos: la dirección IP y algunos encabezados de tu navegador (como el user-agent y el idioma), que se combinan en una huella (hash) para limitar la frecuencia de uso; la huella se guarda solo en memoria y se descarta. La IP también se usa en el momento para aplicar las restricciones por jurisdicción; nuestros proveedores de alojamiento guardan registros de peticiones por un tiempo limitado. También medimos visitas de forma agregada (ver la sección 7).
No tratamos datos personales sensibles ni biométricos, y no custodiamos fondos: el software es no custodial y cada transacción la firma el propio cliente.
@@ -52,19 +52,17 @@ function AvisoEs() {
Usamos los datos para estas finalidades, todas necesarias para el servicio que solicitas, por lo que no requieren un consentimiento aparte:
Emitir y verificar tus llaves de API y autenticarte.
-
Construir, transmitir y registrar las corridas de Payouts que tú firmas.
Registrar y conciliar los cobros por el uso de la API de Nirium.
-
Identificar al cliente de Payouts en mainnet, por si esa actividad resulta sujeta a obligaciones de prevención de operaciones con recursos de procedencia ilícita (LFPIORPI).
Atender tus solicitudes de acceso y responder tus mensajes.
Limitar la frecuencia de uso, prevenir abusos y aplicar la política de jurisdicciones restringidas.
Hay una finalidad más que no es necesaria para el servicio: medir de forma agregada cuántas visitas recibe el sitio, para mejorarlo. Esa medición no usa cookies ni arma un perfil tuyo (ver la sección 7). Si aun así te opones, escríbenos a {CONTACT}.
4. Encargados y transferencias
-
No vendemos tus datos. Los tratan, por cuenta nuestra y solo para operar el servicio, estos proveedores (encargados), que pueden estar fuera de México: Supabase (base de datos), Fly.io (servidores del agente), Vercel (alojamiento del sitio y medición de visitas), Pinata (almacenamiento en IPFS), Filebase (lectura de IPFS), OpenZeppelin (facilitador de x402, verifica y liquida los pagos a la API de Nirium), QuickNode (acceso del agente a la red de Stellar), Etherfuse (su ambiente de pruebas, solo para la demo de CETES) y Google (el correo con el que nos escribes).
-
No transferimos tus datos a otros terceros. La única excepción sería una autoridad competente cuando una ley lo exija (artículo 36, fracción I, de la ley), por ejemplo los datos de identificación de un cliente de Payouts en mainnet; esa transferencia no requiere tu consentimiento.
-
Hay servicios de terceros que tratan tus datos como responsables independientes, bajo sus propios avisos: Pollar, si inicias sesión con correo o Google; Etherfuse, que hace su propio KYC si contratas CETES con ellos; y tu proveedor de wallet. Nirium no recibe tus datos de inicio de sesión ni tu KYC.
-
Información pública por naturaleza: las direcciones de wallet y las transacciones en Stellar son públicas, y lo que se ancla en IPFS queda disponible para cualquiera que tenga el CID. Nirium no puede modificarla, ni garantizar que se borre de IPFS, porque cualquiera con el CID puede haber guardado una copia.
+
No vendemos tus datos. Los tratan, por cuenta nuestra y solo para operar el servicio, estos proveedores (encargados), que pueden estar fuera de México: Supabase (base de datos), Fly.io (servidores del agente), Vercel (alojamiento del sitio y medición de visitas), Pinata (almacenamiento en IPFS), Filebase (lectura de IPFS), OpenZeppelin (facilitador de x402, verifica y liquida los pagos a la API de Nirium), PayAI (facilitador de x402 en Solana, Avalanche, Base y Arbitrum, verifica y liquida los pagos a los markets de Nirium en esas redes), QuickNode (acceso del agente a la red de Stellar) y Google (el correo con el que nos escribes).
+
No transferimos tus datos a otros terceros. La única excepción sería una autoridad competente cuando una ley lo exija (artículo 36, fracción I, de la ley); esa transferencia no requiere tu consentimiento.
+
Hay servicios de terceros que tratan tus datos como responsables independientes, bajo sus propios avisos: Pollar, si inicias sesión con correo o Google; y tu proveedor de wallet. Nirium no recibe tus datos de inicio de sesión.
+
Información pública por naturaleza: las direcciones de wallet y las transacciones en Stellar, Solana, Avalanche, Base y Arbitrum son públicas, y lo que se ancla en IPFS queda disponible para cualquiera que tenga el CID. Nirium no puede modificarla, ni garantizar que se borre de IPFS, porque cualquiera con el CID puede haber guardado una copia.
5. Opciones para limitar el uso o la divulgación
Puedes pedir que limitemos el uso o la divulgación de tus datos escribiendo a {CONTACT}. También puedes revocar tus llaves de API en cualquier momento desde nirium.xyz/keys.
@@ -80,6 +78,8 @@ function AvisoEs() {
8. Cambios a este aviso
Este aviso puede cambiar por nuevos requisitos legales, por cambios en nuestros servicios o por otras causas. Publicaremos cada versión en esta misma página, con su fecha de actualización arriba.
+
Cambios del 1 de diciembre de 2026: el aviso pedía como ejemplo RFC, representante y teléfono, que solo se pedían para Payouts en mainnet, que nunca se usó; y trataba Payouts y Tesorería por separado. Ahora los junta en una línea. Ese mismo día Nirium empezó a anclar y reportar recibos de Base y Arbitrum, y PayAI liquida los pagos a sus markets ahí; el aviso ahora nombra esas dos redes y sus exploradores.
+
Cambios del 27 de noviembre de 2026: el aviso no mencionaba los recibos de Solana y Avalanche que se anclan en el nodo de Nirium, ni a PayAI como encargado, ni que los exploradores de esas redes consultan gateways de IPFS y RPC públicos desde tu navegador. Ahora dice las tres cosas.
Cambios del 21 de noviembre de 2026: el aviso no mencionaba los datos de los pagos x402 a la API de Nirium, que sí se guardan, ni a OpenZeppelin como encargado; decía que solo se usaba la IP, cuando la huella para limitar la frecuencia también usa encabezados del navegador; y decía que Nirium no puede borrar lo publicado en IPFS, cuando lo preciso es que no puede garantizar que se borre. Ahora dice las cuatro cosas.
API keys: your Stellar wallet’s public address, the name you give the key, and the key itself stored only as a hash.
-
Payouts on mainnet: the client’s legal name, RFC (Mexican tax ID) and legal representative’s name, and for each run the recipients’ addresses, amounts, asset and transaction hash.
-
Access requests and contact: the data you send us to request access or write to us (for example company, RFC, representative’s name, email and phone).
-
Treasury: vault addresses and their Manager addresses, to show you your vaults.
-
CETES demo (/ramp): the Stellar address you type, which we send to Etherfuse's test environment, under Nirium's test account, to get the quote and the order.
+
Payouts and Treasury: tested only with the team’s own funds and discontinued on 30 Nov 2026. Nothing is collected anymore; the records from those tests are the team’s own.
+
Access requests and contact: the data you send us to request access or write to us (for example company, name, email, your wallet address and your message).
Audit Trail: the hash you anchor and, in record mode, the JSON you send (up to 8 KB), which is published on IPFS for anyone with the CID. Do not put personal data in a record.
x402 payments to Nirium’s API: the paying Stellar address, the route, the amount, the network, the transaction hash and, if it is rejected, the reason.
+
Solana, Avalanche, Base and Arbitrum receipts: when a receipt from those chains is anchored on the Nirium node (a payment bound to its USDC transfer, or a decision of the payer’s policy), we keep the paying address, the amount, the asset, the network and the CID, for Reporting. The full receipt, with the payer’s and the payee’s addresses, is published on IPFS. Nirium’s markets on those chains keep no data about buyers; their servers (Fly.io) keep request logs for a limited time.
+
Solana, Avalanche, Base and Arbitrum explorers (nirium.xyz/solana, /avalanche, /base and /arbitrum): your browser fetches receipts straight from public IPFS gateways and queries each chain’s public RPC, or the one you type; those services see your IP address. Nirium does not receive those requests.
Technical data: the IP address and some of your browser’s headers (such as the user-agent and language), combined into a fingerprint (hash) for rate limiting; the fingerprint is kept only in memory and discarded. The IP is also used at that moment to apply jurisdiction restrictions; our hosting providers keep request logs for a limited time. We also measure visits in aggregate (see section 7).
We do not process sensitive or biometric personal data, and we do not custody funds: the software is non-custodial and every transaction is signed by the client.
We use the data for these purposes, all necessary for the service you request, so they do not require separate consent:
Issuing and verifying your API keys and authenticating you.
-
Building, broadcasting and recording the Payouts runs you sign.
Recording and reconciling the charges for using Nirium’s API.
-
Identifying the Payouts client on mainnet, in case that activity is subject to Mexico’s anti-money-laundering law (LFPIORPI).
Handling your access requests and replying to your messages.
Rate limiting, abuse prevention and applying the restricted-jurisdictions policy.
One more purpose is not necessary for the service: measuring, in aggregate, how many visits the site gets, to improve it. That measurement uses no cookies and builds no profile of you (see section 7). If you still object, write to {CONTACT}.
4. Processors and transfers
-
We do not sell your data. These providers (processors), which may be located outside Mexico, process it on our behalf and only to run the service: Supabase (database), Fly.io (agent servers), Vercel (site hosting and visit measurement), Pinata (IPFS storage), Filebase (reading from IPFS), OpenZeppelin (x402 facilitator, verifies and settles payments to Nirium’s API), QuickNode (the agent's access to the Stellar network), Etherfuse (its test environment, only for the CETES demo) and Google (the email you write to us at).
-
We do not transfer your data to any other third party. The only exception would be a competent authority when a law requires it (article 36, section I, of the law), for example the identification data of a Payouts client on mainnet; that transfer does not need your consent.
-
Some third-party services process your data as independent controllers, under their own notices: Pollar, if you sign in with email or Google; Etherfuse, which runs its own KYC if you contract CETES with them; and your wallet provider. Nirium does not receive your sign-in data or your KYC.
-
Public by nature: wallet addresses and transactions on Stellar are public, and what is anchored on IPFS is available to anyone with the CID. Nirium cannot change it, nor guarantee that it is deleted from IPFS, because anyone with the CID may have kept a copy.
+
We do not sell your data. These providers (processors), which may be located outside Mexico, process it on our behalf and only to run the service: Supabase (database), Fly.io (agent servers), Vercel (site hosting and visit measurement), Pinata (IPFS storage), Filebase (reading from IPFS), OpenZeppelin (x402 facilitator, verifies and settles payments to Nirium’s API), PayAI (x402 facilitator on Solana, Avalanche, Base and Arbitrum, verifies and settles payments to Nirium’s markets there), QuickNode (the agent's access to the Stellar network) and Google (the email you write to us at).
+
We do not transfer your data to any other third party. The only exception would be a competent authority when a law requires it (article 36, section I, of the law); that transfer does not need your consent.
+
Some third-party services process your data as independent controllers, under their own notices: Pollar, if you sign in with email or Google; and your wallet provider. Nirium does not receive your sign-in data.
+
Public by nature: wallet addresses and transactions on Stellar, Solana, Avalanche, Base and Arbitrum are public, and what is anchored on IPFS is available to anyone with the CID. Nirium cannot change it, nor guarantee that it is deleted from IPFS, because anyone with the CID may have kept a copy.
5. Options to limit use or disclosure
You can ask us to limit the use or disclosure of your data by writing to {CONTACT}. You can also revoke your API keys at any time at nirium.xyz/keys.
This notice may change because of new legal requirements, changes to our services or other reasons. We will publish each version on this same page, with its update date at the top.
+
Changes on December 1, 2026: the notice listed RFC, representative and phone as examples, which were only asked for Payouts on mainnet, never used; and it covered Payouts and Treasury separately. It now covers them in one line. The same day Nirium began anchoring and reporting receipts from Base and Arbitrum, and PayAI settles payments to its markets there; the notice now names those two chains and their explorers.
+
Changes on November 27, 2026: the notice did not mention the Solana and Avalanche receipts anchored on the Nirium node, PayAI as a processor, or that the explorers for those chains query IPFS gateways and public RPCs from your browser. It now says all three.
Changes on November 21, 2026: the notice did not mention the data from x402 payments to Nirium’s API, which is stored, nor OpenZeppelin as a processor; it said only the IP was used, when the rate-limiting fingerprint also uses browser headers; and it said Nirium cannot delete what is published on IPFS, when the precise statement is that it cannot guarantee it is deleted. It now says all four.
>
);
@@ -167,7 +167,7 @@ export default function PrivacyPage() {
{es ? "Aviso de Privacidad" : "Privacy Notice"}
- {es ? "Última actualización: 21 de noviembre de 2026" : "Last updated: November 21, 2026"}
+ {es ? "Última actualización: 1 de diciembre de 2026" : "Last updated: December 1, 2026"}
diff --git a/apps/web/app/(app)/ramp/page.tsx b/apps/web/app/(app)/ramp/page.tsx
index e73cd3f6..133a7b6d 100644
--- a/apps/web/app/(app)/ramp/page.tsx
+++ b/apps/web/app/(app)/ramp/page.tsx
@@ -1,60 +1,6 @@
-'use client';
-import { motion } from 'framer-motion';
-import FiatRamp from "@/components/layout/FiatRamp";
-import { SectionBrandLogo } from "@/components/ui/SectionBrandLogo";
-import { useLanguage } from "@/context/LanguageContext";
+import { redirect } from "next/navigation";
-import { ComplianceBanner } from '@/components/ui/ComplianceBanner';
-
-export default function RampPage() {
- const { t } = useLanguage();
-
- return (
-
-
-
- {/* Background FX */}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 🏦
- {t.ramp.header.badge}
-
-
-
- {t.ramp.header.title}
-
-
- {t.ramp.header.subtitle}
-
-
-
-
-
-
-
-
-
- );
+// Archivado el 30-nov-2026 (decidido por Giovanny): la rampa de CETES vía Etherfuse. Redirige a /treasury, la página de archivo.
+export default function Page() {
+ redirect("/treasury");
}
diff --git a/apps/web/app/(app)/risk-disclosure/layout.tsx b/apps/web/app/(app)/risk-disclosure/layout.tsx
index 9c2eeafe..d20b2874 100644
--- a/apps/web/app/(app)/risk-disclosure/layout.tsx
+++ b/apps/web/app/(app)/risk-disclosure/layout.tsx
@@ -3,7 +3,7 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/risk-disclosure",
title: "Risk Disclosure",
- description: "The technical and operational risks of using Nirium's automation, smart contracts and the Stellar network.",
+ description: "The technical and operational risks of using Nirium: the pre-sign policy, smart contracts and the networks it runs on.",
});
export default function RiskDisclosureLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/risk-disclosure/page.tsx b/apps/web/app/(app)/risk-disclosure/page.tsx
index 6d2ba069..90f76615 100644
--- a/apps/web/app/(app)/risk-disclosure/page.tsx
+++ b/apps/web/app/(app)/risk-disclosure/page.tsx
@@ -11,8 +11,8 @@ export default function RiskDisclosurePage() {
const risk = t.risk_disclosure || {
title: "Risk Disclosure",
badge: "Risk notice",
- last_updated: "Last updated: November 19, 2026",
- mandatory: "Read this before using Nirium: it is experimental open-source software on Stellar.",
+ last_updated: "Last updated: December 1, 2026",
+ mandatory: "Read this before using Nirium: it is experimental software on Stellar; its packages are open source.",
sections: {},
footer: "Using Nirium means you have read these risks."
};
diff --git a/apps/web/app/(app)/security/layout.tsx b/apps/web/app/(app)/security/layout.tsx
index b5709764..86561832 100644
--- a/apps/web/app/(app)/security/layout.tsx
+++ b/apps/web/app/(app)/security/layout.tsx
@@ -3,7 +3,7 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/security",
title: "Security",
- description: "How Nirium stays non-custodial: who holds the keys, what the agent can and cannot sign, and how vaults are controlled.",
+ description: "How Nirium stays non-custodial: who holds the keys in each node, and what Nirium can and cannot sign.",
});
export default function SecurityLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/security/page.tsx b/apps/web/app/(app)/security/page.tsx
index 3248b484..8097de50 100644
--- a/apps/web/app/(app)/security/page.tsx
+++ b/apps/web/app/(app)/security/page.tsx
@@ -1,4 +1,4 @@
-/** Nirium Security - who holds the keys, on mainnet (DeFindex) and testnet (NiriumVault) **/
+/** Nirium Security - who holds the keys, node by node. 30-nov-2026: Treasury, Payouts y NiriumVault archivados; sus secciones salieron. **/
'use client';
// Revisado el 8-nov-2026 contra la cadena y el código:
@@ -85,8 +85,8 @@ const NODE_ROWS: NodeRow[] = [
node: 'x402',
en: "The buyer's own wallet signs each payment and a facilitator settles it on Stellar. If you sell with x402Serve, the USDC goes from the buyer straight to your account: Nirium is not in the path. If you pay Nirium's own API, Nirium is the seller and receives that payment.",
es: 'La wallet del comprador firma cada pago y un facilitador lo liquida en Stellar. Si vendes con x402Serve, el USDC va del comprador directo a tu cuenta: Nirium no está en medio. Si pagas la API de Nirium, Nirium es el vendedor y recibe ese pago.',
- mainEn: 'The mainnet API server (x402, Audit Trail, Reporting) has no Stellar signing key. The only key Nirium runs on mainnet is a separate rebalancer\'s, and it holds only the DeFindex rebalance role (see Treasury below).',
- mainEs: 'El servidor de la API en mainnet (x402, Audit Trail, Reporting) no tiene ninguna llave de Stellar. La única llave que Nirium corre en mainnet es la de un rebalanceador aparte, y solo tiene el rol de rebalanceo de DeFindex (ver Tesorería abajo).',
+ mainEn: 'The mainnet API server (x402, Audit Trail, Reporting) has no Stellar signing key. The rebalancer that held a DeFindex rebalance role is stopped and archived with Treasury.',
+ mainEs: 'El servidor de la API en mainnet (x402, Audit Trail, Reporting) no tiene ninguna llave de Stellar. El rebalanceador que tenía un rol de rebalanceo en DeFindex está detenido y archivado junto con Tesorería.',
testEn: 'The testnet agent holds its own test key to pay for demo calls.',
testEs: 'El agente de testnet tiene su propia llave de prueba para pagar las llamadas de demostración.',
},
@@ -111,31 +111,13 @@ const NODE_ROWS: NodeRow[] = [
},
{
node: 'Reporting',
- en: 'Read-only. It summarizes what is already recorded (payments, receipts, payout runs). It cannot sign or move anything.',
- es: 'Solo lectura. Resume lo que ya está registrado (pagos, recibos, lotes de pago). No puede firmar ni mover nada.',
+ en: 'Read-only. It summarizes what is already recorded (payments and receipts). It cannot sign or move anything.',
+ es: 'Solo lectura. Resume lo que ya está registrado (pagos y recibos). No puede firmar ni mover nada.',
mainEn: 'Public summary, no key needed.',
mainEs: 'Resumen público, sin llave.',
testEn: 'Public summary, no key needed.',
testEs: 'Resumen público, sin llave.',
},
- {
- node: 'Payouts',
- en: 'Nirium builds each batch as an unsigned transaction. The company signs it with its own wallet, and only then is it sent. Nirium never holds the funds being paid out.',
- es: 'Nirium arma cada lote como una transacción sin firmar. La empresa la firma con su propia wallet, y solo entonces se envía. Nirium nunca sostiene los fondos que se pagan.',
- mainEn: 'Invite-only, and every run requires accepting the Payouts Terms.',
- mainEs: 'Solo por invitación, y cada lote exige aceptar los Términos de Payouts.',
- testEn: 'Testnet only: on Trustless Work escrows, the agent can sign milestone approvals and releases with its own key, limited to allowlisted escrow contracts and authorized API keys.',
- testEs: 'Solo en testnet: en escrows de Trustless Work, el agente puede firmar la aprobación y liberación de milestones con su propia llave, limitado a contratos de escrow en la lista permitida y a API keys autorizadas.',
- },
- {
- node: 'Treasury',
- en: "The agent can only rebalance, never withdraw. Details for each network are in the sections below.",
- es: 'El agente solo puede rebalancear, nunca retirar. El detalle de cada red está en las secciones de abajo.',
- mainEn: 'Invite-only: a DeFindex vault you own, where the agent holds only the rebalance role. Deploying, depositing and asking for proposals through Nirium need an invited (institutional) key; withdrawing is always open.',
- mainEs: 'Solo por invitación: una bóveda de DeFindex que es tuya, donde el agente solo tiene el rol de rebalanceo. Desplegar, depositar y pedir propuestas a través de Nirium requiere una llave invitada (institucional); retirar siempre está abierto.',
- testEn: 'NiriumVault, source-verified: only your key withdraws.',
- testEs: 'NiriumVault, con código verificado: solo tu llave retira.',
- },
];
export default function SecurityPage() {
@@ -163,8 +145,8 @@ export default function SecurityPage() {
{lang(
- "Nirium never holds a key that can withdraw your funds, in any node. Below: who signs in each one, on the network you have selected, and then Payouts, Audit Trail and the treasury in detail.",
- 'Nirium nunca tiene una llave que pueda retirar tus fondos, en ningún nodo. Abajo: quién firma en cada uno, en la red que tienes elegida, y luego Payouts, Audit Trail y la tesorería a detalle.')}
+ "Nirium never holds a key that can withdraw your funds, in any node. Below: who signs in each one, on the network you have selected, and then Audit Trail in detail.",
+ 'Nirium nunca tiene una llave que pueda retirar tus fondos, en ningún nodo. Abajo: quién firma en cada uno, en la red que tienes elegida, y luego Audit Trail a detalle.')}
@@ -192,57 +174,14 @@ export default function SecurityPage() {
))}
-
-
-
- {/* PAYOUTS (11-nov-2026): antes solo tenía una tarjeta. */}
-
-
-
-
- {lang('Payouts · batches and milestone escrows', 'Payouts · lotes y escrows por milestone')}
-
-
-
- {lang('Payouts: the company signs, the receiver is fixed by a person', 'Payouts: la empresa firma, el receptor lo fija una persona')}
-
-
-
-
-
{lang('Batch payments: your wallet signs', 'Pagos por lote: firma tu wallet')}
-
- {lang(
- 'Nirium builds each batch as an unsigned transaction. The company signs it with its own wallet, and Nirium only sends the transaction it already signed. On mainnet it is invite-only: an authorized API key, the Payouts Terms accepted on every run, and the company identifies itself.',
- 'Nirium arma cada lote como una transacción sin firmar. La empresa la firma con su propia wallet, y Nirium solo envía la transacción que ella ya firmó. En mainnet es solo por invitación: una API key autorizada, los Términos de Payouts aceptados en cada lote y la empresa se identifica.')}
-
-
-
-
-
{lang('Milestone escrows: testnet only', 'Escrows por milestone: solo testnet')}
-
- {lang(
- "With Trustless Work escrows, a person signs the deployment, and that fixes who each milestone pays. If the escrow names Nirium's agent as approver or release signer, the agent can sign approvals and releases with its own key. Only for contracts on an allowlist that is empty by default and set on our server, and only for authorized API keys.",
- 'En los escrows de Trustless Work, una persona firma el despliegue, y eso fija a quién paga cada milestone. Si el escrow nombra al agente de Nirium como aprobador o firmante de liberación, el agente puede firmar aprobaciones y liberaciones con su propia llave. Solo en contratos de una lista permitida, vacía por default y fijada en nuestro servidor, y solo con API keys autorizadas.')}
-
-
-
-
-
{lang("Worst case if the agent's key leaks", 'El peor caso si se filtra la llave del agente')}
-
- {lang(
- 'Someone could approve or release milestones of allowlisted escrows early. They could not send the money anywhere new: the approve and release calls take a milestone number, never a receiver. This flow is not enabled on mainnet.',
- 'Alguien podría aprobar o liberar antes de tiempo milestones de escrows en la lista permitida. No podría mandar el dinero a otro lado: las llamadas de aprobar y liberar reciben un número de milestone, nunca un receptor. Este flujo no está activo en mainnet.')}
-
+ {/* 27-nov-2026: comprobado en Fly ese día: los dos markets no tienen ningún secreto y
+ el nodo de mainnet no guarda llaves de Solana ni de EVM. */}
+
+ {lang(
+ 'On Solana, Avalanche, Base and Arbitrum: whoever pays signs with their own wallet, and the Nirium node holds no key on those chains. The four x402 markets only receive payments, to an address whose key is not on the server.',
+ 'En Solana, Avalanche, Base y Arbitrum: quien paga firma con su propia wallet, y el nodo de Nirium no tiene ninguna llave en esas redes. Los cuatro markets x402 solo reciben pagos, a una dirección cuya llave no está en el servidor.')}{' '}
+ {lang('What works on each chain', 'Qué funciona en cada red')}
+
-
- {lang('Mainnet · invite-only', 'Mainnet · solo por invitación')}
-
-
-
- {lang('Treasury on mainnet: a DeFindex vault you own', 'Tesorería en mainnet: una bóveda de DeFindex que es tuya')}
-
-
- {[
- {
- t: lang('The agent can only rebalance', 'El agente solo puede rebalancear'),
- d: lang(
- "Nirium's agent holds DeFindex's RebalanceManager role, nothing else. Our code only sends Invest and Unwind. The contract's rebalance() also accepts two swap instructions, but none of the four takes a destination address: whatever they produce stays in the vault, so the role cannot send funds anywhere. Worst case if the agent's key leaked: someone could swap at a bad price inside the vault and lose value to slippage.",
- 'El agente de Nirium tiene el rol RebalanceManager de DeFindex y nada más. Nuestro código solo manda Invest y Unwind. El rebalance() del contrato también acepta dos instrucciones de swap, pero ninguna de las cuatro recibe una dirección de destino: lo que producen se queda en la bóveda, así que ese rol no puede mandar fondos a ningún lado. Peor caso si se filtrara la llave del agente: alguien podría hacer swaps a mal precio dentro de la bóveda y perder valor por slippage.'),
- },
- {
- t: lang('Withdrawals stay with the owner', 'Los retiros son del dueño'),
- d: lang(
- "The role that can withdraw (Manager) sits with the vault owner's key, separate from the agent's key. The owner can also replace the agent's role at any time.",
- 'El rol que puede retirar (Manager) está en la llave del dueño de la bóveda, separada de la del agente. El dueño además puede quitarle el rol al agente cuando quiera.'),
- },
- {
- t: lang('Audited, third-party contract', 'Contrato de terceros, auditado'),
- d: lang(
- 'The vault contract is DeFindex (PaltaLabs), audited by OtterSec in March 2025. Nirium did not write it.',
- 'El contrato de la bóveda es de DeFindex (PaltaLabs), auditado por OtterSec en marzo de 2025. Nirium no lo escribió.'),
- },
- ].map((c) => (
-
-
-
{c.t}
-
{c.d}
-
- ))}
-
-
- {lang(
- "Today the only live vault is Nirium's own, with its own funds: it proves the mechanism, not client use. Access for clients is invite-only until we have a written legal opinion.",
- 'Hoy la única bóveda en vivo es la de Nirium, con fondos propios: prueba el mecanismo, no uso de clientes. El acceso para clientes es solo por invitación hasta tener una opinión legal por escrito.')}
-
-
- {DEFINDEX_EVIDENCE.map((e) => (
-
- {lang(e.en, e.es)}
-
- ))}
-
- {lang('How to verify it yourself', 'Cómo verificarlo tú mismo')}
-
-
-
-
-
- {/* TESTNET: NIRIUMVAULT - two kinds of control */}
-
-
- {lang("Nirium's own contract: two kinds of control", 'El contrato propio de Nirium: dos tipos de control')}
-
-
-
-
-
-
-
{lang('Your vault: your key', 'Tu bóveda: tu llave')}
-
-
- {[
- lang('Only your key withdraws, and only to your own address', 'Solo tu llave retira, y solo a tu propia dirección'),
- lang('Only your key closes the vault (its balance must be 0)', 'Solo tu llave cierra la bóveda (su saldo debe ser 0)'),
- lang('You can delegate to the agent up to a cumulative cap you set (max_execution_amount)', 'Puedes delegar al agente hasta un tope acumulado que tú fijas (max_execution_amount)'),
- lang('You can revoke the agent at any time, even while the contract is paused', 'Puedes revocar al agente cuando quieras, incluso con el contrato en pausa'),
- ].map((x) => (
-
-
- {x}
-
- ))}
-
-
-
-
-
-
-
{lang('Emergency pause: Nirium', 'Pausa de emergencia: Nirium')}
-
-
- {[
- lang("Nirium's admin key can pause the whole contract (every vault) in an emergency", 'La llave admin de Nirium puede pausar todo el contrato (todas las bóvedas) en una emergencia'),
- lang('While paused, nobody can withdraw, deposit or close a vault, including you. Pausing never moves funds', 'En pausa, nadie puede retirar, depositar ni cerrar una bóveda, tampoco tú. Pausar nunca mueve fondos'),
- lang('The contract supports a 2-of-3 pause (admin plus one cosigner). It is not active yet: no cosigners are registered on contract CDMFURE6… (checked on-chain, 21 Nov 2026), so today the admin pauses alone. Registering them is planned', 'El contrato admite una pausa 2-de-3 (admin más un cosignatario). Todavía no está activa: no hay cosignatarios registrados en el contrato CDMFURE6… (revisado en la cadena, 21 nov 2026), así que hoy el admin pausa solo. Registrarlos está planeado'),
- lang('Cosigners are contract-wide and set by the admin, not by each vault owner', 'Los cosignatarios son de todo el contrato y los fija el admin, no cada dueño de bóveda'),
- ].map((x) => (
-
-
- {x}
-
- ))}
-
-
-
-
-
-
{/* WHAT NIRIUM CANNOT DO */}
@@ -434,10 +259,7 @@ export default function SecurityPage() {
{[
lang('Withdraw your funds, or send them to any address', 'Retirar tus fondos, o mandarlos a cualquier dirección'),
- lang('Spend more than the cap you set when delegating (NiriumVault)', 'Gastar más del tope que fijaste al delegar (NiriumVault)'),
lang('Access your private keys', 'Acceder a tus llaves privadas'),
- lang('Change who a milestone escrow pays: a person fixes that when deploying it', 'Cambiar a quién paga un escrow por milestone: eso lo fija una persona al desplegarlo'),
- lang('Change NiriumVault code once deployed: the live WASM has no upgrade function', 'Cambiar el código de NiriumVault una vez desplegado: el WASM en vivo no tiene función de actualización'),
].map((item) => (
))}
-
-
-
- {lang(
- "What Nirium CAN do on NiriumVault (testnet): pause the whole contract with its admin key. Today that takes no second signature. It freezes withdrawals until it is unpaused, but it cannot move funds.",
- 'Lo que Nirium SÍ puede hacer en NiriumVault (testnet): pausar todo el contrato con su llave admin. Hoy eso no requiere una segunda firma. Congela los retiros hasta que se reanude, pero no puede mover fondos.')}
-
-
-
-
-
- {/* THE CONTRACT */}
-
-
-
- {lang('The real contract', 'El contrato real')}
-
-
- {lang(
- 'NiriumVault is deployed on Stellar Testnet and is verifiable.',
- 'NiriumVault está desplegado en Stellar Testnet y es verificable.')}
-
- WASM hash
- {lang('verified on Stellar Expert, 9 Nov 2026', 'verificado en Stellar Expert, 9 nov 2026')}
-
- {VAULT_WASM}
-
- {lang(
- `GitHub built this WASM from the public repo (commit 8489481) and attested it, and that exact file is what was deployed. Stellar Expert matched it to the source and shows the contract as "verified". The code has no upgrade, migrate or set_wasm function and never calls update_current_contract_wasm, so it cannot be changed after deployment. Check it yourself: stellar contract fetch --id ${VAULT_ID} --network testnet, then compare its sha256 with the release file.`,
- `GitHub compiló este WASM desde el repo público (commit 8489481) y lo firmó, y ese archivo exacto es el que se desplegó. Stellar Expert lo comparó con el código y marca el contrato como "verified". El código no tiene función upgrade, migrate ni set_wasm y nunca llama a update_current_contract_wasm, así que no se puede cambiar después de desplegado. Compruébalo tú: stellar contract fetch --id ${VAULT_ID} --network testnet, y compara su sha256 con el archivo del release.`)}
-
{lang('Previous NiriumVault deployments (testnet)', 'Despliegues anteriores de NiriumVault (testnet)')}
-
- {lang(
- 'They stay on testnet and cannot be changed. nirium.xyz no longer uses them, so vault counts restart on the verified contract.',
- 'Siguen en testnet y no se pueden cambiar. nirium.xyz ya no los usa, así que el conteo de bóvedas empieza de nuevo en el contrato verificado.')}
-
{lang('Not built yet: withdrawals that need 2 of 3 people', 'Todavía no construido: retiros que piden a 2 de 3 personas')}
-
- {lang(
- "Today a withdrawal needs one signature: the vault owner's. The 2-of-3 in the contract only covers the emergency pause, and no cosigners are registered yet. A company that wants, say, its CFO, CEO and accountant to approve every withdrawal can get that from Stellar itself, without changing the contract: the vault owner is a Stellar account with three signers and a threshold of two. Soroban checks that account's signers against its medium threshold, so a withdrawal with a single signature is rejected by the network. What is missing is on our side: nirium.xyz signs with one wallet and cannot collect a second signature yet. Planned, not built.",
- 'Hoy un retiro pide una sola firma: la del dueño de la bóveda. El 2-de-3 del contrato solo cubre la pausa de emergencia, y todavía no hay cosignatarios registrados. Una empresa que quiera que, por ejemplo, su CFO, su CEO y su contador aprueben cada retiro puede obtenerlo de Stellar mismo, sin cambiar el contrato: el dueño de la bóveda es una cuenta de Stellar con tres firmantes y umbral de dos. Soroban revisa los firmantes de esa cuenta contra su umbral medio, así que la red rechaza un retiro con una sola firma. Lo que falta es de nuestro lado: nirium.xyz firma con una sola wallet y todavía no puede juntar una segunda firma. Planeado, no construido.')}
-
{lang('OtterSec, Mar 2025', 'OtterSec, mar 2025')}
-
{lang("Third-party contract; the audit is published by its authors (PaltaLabs) in their repo", 'Contrato de terceros; la auditoría la publican sus autores (PaltaLabs) en su repo')}
- {lang('No external audit yet: it stays on testnet until one is done', 'Sin auditoría externa todavía: se queda en testnet hasta que se haga')}
-
-
-
@@ -586,17 +282,16 @@ export default function SecurityPage() {
{lang('Your keys, your funds', 'Tus llaves, tus fondos')}
- {/* Antes llevaba a /build/niriumtober, que ya cerró. Las bóvedas de
- testnet se crean en el dashboard. */}
-
+ {/* 30-nov-2026: Tesorería archivada; el CTA lleva a verificar un recibo. */}
+
-
+
{lang(
- 'Every number below is fetched live when you load this page: from Horizon, npm, PyPI and GitHub, and, for Audit Trail and Payouts, from our own public reporting API (labeled on each card). No number is typed in by hand. Each card links to the exact query that produced it.',
- 'Cada número de abajo se lee en vivo al cargar esta página: de Horizon, npm, PyPI y GitHub y, para Audit Trail y Payouts, de nuestra propia API pública de reporting (marcado en cada tarjeta). Ningún número se escribe a mano. Cada tarjeta enlaza a la consulta exacta que lo produjo.')}
+ 'Every number below is fetched live when you load this page: from Horizon, npm, PyPI and GitHub, and, for Audit Trail, from our own public reporting API (labeled on each card). No number is typed in by hand. Each card links to the exact query that produced it.',
+ 'Cada número de abajo se lee en vivo al cargar esta página: de Horizon, npm, PyPI y GitHub y, para Audit Trail, de nuestra propia API pública de reporting (marcado en cada tarjeta). Ningún número se escribe a mano. Cada tarjeta enlaza a la consulta exacta que lo produjo.')}
{/* 15-nov-2026: el bloque de testnet ya no depende del selector TEST/MAIN.
NetworkContext arranca en 'testnet' y luego lee la elección guardada, así que
@@ -344,18 +333,6 @@ export default function StatsClient({ initialData }: { initialData: StatsRespons
}
/>
-
- {data?.treasuryRebalances && <>{lang('last', 'último')}: {fmtDate(rb.lastAt, lang)}>}
-
-
- }
- />
}
/>
- {lang('What the Payouts node registers (mainnet-labeled). Mainnet is invite-only.', 'Lo que el nodo de Payouts registra (etiquetado mainnet). Mainnet es solo por invitación.')}}
- />
)}
- {/* DELIVERY HISTORY */}
-
-
-
{lang('Delivery history', 'Historial de entrega')}
-
- {INSTAWARDS.map((iw) => (
-
-
- {lang(iw.label.en, iw.label.es)} - Stellar Community Fund
-
- {iw.hash}
-
- ))}
-
-
-
-
{/* METHODOLOGY */}
@@ -866,11 +816,11 @@ export default function StatsClient({ initialData }: { initialData: StatsRespons
anterior mientras se genera la nueva (medido: el snapshot del 8-nov traía
datos de 11 h antes). La hora de generación siempre se muestra arriba. */}
{lang('Every metric is fetched server-side from its source, never hand-edited. The page is regenerated at most every 30 minutes; the first visit after a quiet period can get the previous version while a new one is built - the time it was generated is shown at the top.', 'Cada métrica se obtiene del lado del servidor desde su fuente, nunca se edita a mano. La página se regenera como máximo cada 30 minutos; la primera visita después de un rato sin tráfico puede recibir la versión anterior mientras se genera la nueva - arriba se muestra a qué hora se generó.')}
-
{lang('x402 settlements and Treasury rebalances are counted directly from Horizon operations on the mainnet accounts - see the source link on each card.', 'Las liquidaciones x402 y los rebalanceos del Treasury se cuentan directo de las operaciones en Horizon sobre las cuentas de mainnet - ver el link de fuente en cada tarjeta.')}
+
{lang('x402 settlements are counted directly from Horizon operations on the mainnet accounts - see the source link on each card.', 'Las liquidaciones x402 se cuentan directo de las operaciones en Horizon sobre las cuentas de mainnet - ver el link de fuente en cada tarjeta.')}
{lang('GitHub-backed lists (external merged PRs, community contributions) are cached up to 1 hour to stay inside GitHub\u2019s unauthenticated rate limit. A request that fails is shown as a failure, never silently dropped.', 'Las listas que vienen de GitHub (PRs externos mergeados, contribuciones de la comunidad) se cachean hasta 1 hora para no pasarse del límite sin autenticación de GitHub. Una consulta que falla se muestra como falla, nunca se omite en silencio.')}
{lang('Testnet activity has its own section, labeled TESTNET, right after the main mainnet block. It includes automated development and testing traffic, so it is never counted in the mainnet numbers.', 'La actividad de testnet tiene su propia sección, marcada TESTNET, justo después del bloque principal de mainnet. Incluye tráfico automatizado de desarrollo y pruebas, así que nunca se suma a los números de mainnet.')}
{lang('Payers are read from the USDC transfer itself, not the transaction source (x402 routes every payment through a per-transaction facilitator account). A wallet counts as internal only with proof we hold its key, and as external only with its operator\u2019s own public statement; a third party\u2019s wallet that we coordinated and initially funded is listed apart as an integration test, not as an external payer. Who created or funded a wallet is never treated as proof of who controls it, and funding origin is disclosed.', 'Los pagadores se leen de la transferencia de USDC, no de la fuente de la transacción (x402 pasa cada pago por una cuenta de facilitador distinta). Una wallet cuenta como interna solo con prueba de que tenemos su llave, y como externa solo con declaración pública de su operador; la wallet de un tercero que coordinamos y fondeamos al inicio se lista aparte como prueba de integración, no como pagador externo. Quién creó o fondeó una wallet nunca se toma como prueba de quién la controla, y el origen del fondeo se revela.')}
-
{lang('Audit Trail and Payouts figures come from Nirium\u2019s own public reporting API, filtered to mainnet-labeled rows only - older rows with no network label are disclosed, not counted. It is not an independent third party: the link on each card lets you call it yourself and see the raw response.', 'Las cifras de Audit Trail y Payouts vienen de la API pública de reportería de Nirium, filtradas a filas etiquetadas mainnet - las filas antiguas sin etiqueta de red se revelan, no se cuentan. No es un tercero independiente: el link de cada tarjeta te deja llamarla tú mismo y ver la respuesta cruda.')}
+
{lang('Audit Trail figures come from Nirium\u2019s own public reporting API, filtered to mainnet-labeled rows only - older rows with no network label are disclosed, not counted. It is not an independent third party: the link on each card lets you call it yourself and see the raw response.', 'Las cifras de Audit Trail vienen de la API pública de reportería de Nirium, filtradas a filas etiquetadas mainnet - las filas antiguas sin etiqueta de red se revelan, no se cuentan. No es un tercero independiente: el link de cada tarjeta te deja llamarla tú mismo y ver la respuesta cruda.')}
{lang('This page is server-rendered, so the numbers are already in the HTML a crawler sees - not behind a client-only fetch. Once a day, a snapshot of this exact data is committed, hashed and published at ', 'Esta página se renderiza en el servidor, así que los números ya están en el HTML que ve un crawler - no detrás de un fetch solo del cliente. Una vez al día se comitea, hashea y publica un snapshot de estos mismos datos en ')}
/stats/history.json
diff --git a/apps/web/app/(app)/treasury/builder/CustomNode.tsx b/apps/web/app/(app)/treasury/builder/CustomNode.tsx
deleted file mode 100644
index 5fcc84af..00000000
--- a/apps/web/app/(app)/treasury/builder/CustomNode.tsx
+++ /dev/null
@@ -1,90 +0,0 @@
-'use client';
-
-import React, { memo } from 'react';
-import { Handle, Position, NodeProps } from '@xyflow/react';
-import { useLanguage } from "@/context/LanguageContext";
-import {
- LucideIcon, Plus, Play, Save, Box, Activity, Zap, ArrowRight, Trash2,
- Settings, Search, ZoomIn, ZoomOut, Undo, Redo,
- LayoutGrid, Cpu, History, Clock, Landmark, Coins, Shield, Database,
- Twitter, MessageSquare, Bell, Share2, BarChart3, Fingerprint, Lock, Repeat, RefreshCw,
- Layers, MousePointer2, Info, ChevronRight, Download, Bolt, KeyRound, TrendingUp, FlaskConical
-} from 'lucide-react';
-
-const ICON_MAP: any = {
- Plus, Play, Save, Box, Activity, Zap, ArrowRight, Trash2,
- Settings, Search, ZoomIn, ZoomOut, Undo, Redo,
- LayoutGrid, Cpu, History, Clock, Landmark, Coins, Shield, Database,
- Twitter, MessageSquare, Bell, Share2, BarChart3, Fingerprint, Lock, Repeat, RefreshCw,
- Layers, MousePointer2, Info, ChevronRight, Download,
- Bolt, KeyRound, TrendingUp, FlaskConical
-};
-
-const CustomNode = ({ data, selected }: NodeProps) => {
- const { t } = useLanguage();
- const Icon = typeof data.icon === 'string' ? ICON_MAP[data.icon] || Box : (data.icon as LucideIcon || Box);
- const gradColor = (data.color as string) || 'from-gray-500 to-gray-700';
-
- // Try to find localized label/desc based on node ID (key)
- const nodeKey = String(data.label).toLowerCase();
- const localizedData = t.treasury.nodes[nodeKey as keyof typeof t.treasury.nodes] || { label: data.label, desc: data.desc };
-
- return (
-
-
-
-
-
-
-
-
-
-
-
-
- {localizedData.label}
-
-
-
-
- {data.type as string}
-
-
- {!!localizedData.desc && (
-
- {localizedData.desc}
-
- )}
-
-
-
-
-
-
-
- {selected && (
-
- )}
-
- );
-};
-
-export default memo(CustomNode);
diff --git a/apps/web/app/(app)/treasury/builder/layout.tsx b/apps/web/app/(app)/treasury/builder/layout.tsx
index 9031cbb7..1d4def89 100644
--- a/apps/web/app/(app)/treasury/builder/layout.tsx
+++ b/apps/web/app/(app)/treasury/builder/layout.tsx
@@ -2,8 +2,8 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/treasury/builder",
- title: "Treasury Strategy Builder (preview)",
- description: "A preview canvas to compose a treasury strategy. Execution runs in the Treasury node.",
+ title: "Treasury (discontinued)",
+ description: "Treasury was tested only with the team's own funds and discontinued on 30 Nov 2026.",
});
export default function TreasuryBuilderLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/treasury/builder/page.tsx b/apps/web/app/(app)/treasury/builder/page.tsx
index c68a77ab..a3aac88a 100644
--- a/apps/web/app/(app)/treasury/builder/page.tsx
+++ b/apps/web/app/(app)/treasury/builder/page.tsx
@@ -1,884 +1,6 @@
-'use client';
+import { redirect } from "next/navigation";
-import React, { useState, useCallback, useRef, useEffect } from 'react';
-import {
- ReactFlow,
- MiniMap,
- Controls,
- Background,
- useNodesState,
- useEdgesState,
- addEdge,
- Panel,
- Connection,
- Edge,
- ReactFlowProvider,
- Node,
- BackgroundVariant,
-} from '@xyflow/react';
-import '@xyflow/react/dist/style.css';
-
-import Link from "next/link";
-import { SectionBrandLogo } from "@/components/ui/SectionBrandLogo";
-import { useLanguage } from "@/context/LanguageContext";
-import { useNetwork } from "@/context/NetworkContext";
-import {
- Plus, Play, Save, Box, Activity, Zap, ArrowRight, Trash2,
- Settings, Search, ZoomIn, ZoomOut, Undo, Redo,
- LayoutGrid, Cpu, History, Clock, Landmark, Coins, Shield, Database,
- Twitter, MessageSquare, Bell, Share2, BarChart3, Fingerprint, Lock, Repeat, RefreshCw,
- Layers, MousePointer2, Info, ChevronRight, Download, Upload, X, Menu, Bolt,
- FlaskConical, KeyRound, TrendingUp, Terminal, Mail, Send, Smartphone, ArrowLeftRight, CheckSquare
-} from "lucide-react";
-import { motion, AnimatePresence } from 'framer-motion';
-import { useFreighter } from "@/hooks/useFreighter";
-import { useRouter } from 'next/navigation';
-import { toast } from 'sonner';
-
-import CustomNode from './CustomNode';
-
-const nodeTypes: any = { niriumNode: CustomNode };
-
-const ICON_MAP: any = {
- Plus, Play, Save, Box, Activity, Zap, ArrowRight, Trash2,
- Settings, Search, ZoomIn, ZoomOut, Undo, Redo,
- LayoutGrid, Cpu, History, Clock, Landmark, Coins, Shield, Database,
- Twitter, MessageSquare, Bell, Share2, BarChart3, Fingerprint, Lock, Repeat, RefreshCw,
- Layers, MousePointer2, Info, ChevronRight, Download, Bolt, FlaskConical, KeyRound, TrendingUp,
- Mail, Send, Smartphone, ArrowLeftRight, CheckSquare
-};
-
-const initialNodes: Node[] = [
- {
- id: 'start-0',
- type: 'niriumNode',
- data: { label: 'START', icon: 'Play', type: 'trigger', color: 'from-stellar-teal to-blue-500' },
- position: { x: 100, y: 100 },
- },
-];
-
-const initialEdges: Edge[] = [];
-
-let id = 0;
-const getId = () => `node_${Date.now()}_${id++}`;
-
-function StrategyBuilderInner() {
- const { t, language } = useLanguage();
- const { network } = useNetwork();
- const reactFlowWrapper = useRef(null);
- const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes);
- const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);
- const [reactFlowInstance, setReactFlowInstance] = useState(null);
- const [strategyName, setStrategyName] = useState(t.treasury.header.title);
- const [strategyId, setStrategyId] = useState(null);
- const [isSaving, setIsSaving] = useState(false);
- const [searchQuery, setSearchQuery] = useState('');
- const [mounted, setMounted] = useState(false);
- const [showHistory, setShowHistory] = useState(false);
- const [history, setHistory] = useState([]);
- const [isLoadingHistory, setIsLoadingHistory] = useState(false);
- const [sidebarOpen, setSidebarOpen] = useState(true);
- const [selectedAsset, setSelectedAsset] = useState<'USDC' | 'CETES'>('USDC');
- const [draggedTemplate, setDraggedTemplate] = useState(null);
- const [dropHint, setDropHint] = useState<{ x: number, y: number, label: string, desc: string, targetNode?: string, position?: 'before' | 'after' } | null>(null);
-
- const { address: accountStr, isConnected } = useFreighter();
- const account = isConnected ? { address: accountStr, chains: ['stellar:testnet'] } : null;
- const router = useRouter();
-
- // PALETA RECONSTRUIDA SOBRE LO QUE CORRE (7-ago-2026).
- //
- // Se retiraron cinco bloques, y cuatro no por estar sin construir sino
- // porque contradecían la posición legal que el sitio publica:
- //
- // SPEI_DEPOSIT - Nirium no toca fiat, nunca. Es restricción dura.
- // KYC_VERIFY - no somos Sujeto Obligado y no hacemos KYC. Ofrecerlo
- // es declararse ejecutor de una función regulada.
- // OFAC_SCREENING - la política dice, con todas sus letras, que solo se
- // screenean las direcciones operativas propias y NUNCA
- // usuarios finales, "porque esto no es una institución
- // financiera y no debe actuar como una".
- // SOROSWAP_HEDGE / DEX_SWAP - los swaps se retiraron del nodo de tesorería
- // el 6-ago por la fracc. XVI de la LFPIORPI. Seguir
- // ofreciéndolos en el lienzo reintroduce el verbo.
- //
- // Ponerlos tras el plan de $299 sería peor, no mejor: pasaría de anunciar
- // una función regulada a cobrarla.
- //
- // Lo que queda es el flujo real de DeFindex, que además es mejor demo.
- const NODE_TEMPLATES = [
- {
- category: t.treasury.sidebar.categories.bank,
- color: 'from-blue-400 to-cyan-500',
- items: [
- { type: 'trigger', label: 'X402_SETTLEMENT', icon: 'Coins' },
- { type: 'trigger', label: 'MPP_CHARGE', icon: 'RefreshCw' },
- ]
- },
- {
- category: t.treasury.sidebar.categories.triggers,
- color: 'from-stellar-teal to-blue-500',
- items: [
- { type: 'trigger', label: 'RATE_THRESHOLD', icon: 'Activity' },
- { type: 'trigger', label: 'IDLE_MINIMUM', icon: 'Database' },
- { type: 'trigger', label: 'SCHEDULE', icon: 'Clock' },
- { type: 'trigger', label: 'BALANCE_CHECK', icon: 'LayoutGrid' },
- ]
- },
- {
- category: t.treasury.sidebar.categories.actions,
- color: 'from-emerald-400 to-green-600',
- items: [
- { type: 'action', label: 'VAULT_DEPLOY', icon: 'Box' },
- { type: 'action', label: 'VAULT_DEPOSIT', icon: 'TrendingUp' },
- { type: 'action', label: 'INVEST', icon: 'Zap' },
- { type: 'action', label: 'UNWIND', icon: 'History' },
- { type: 'action', label: 'MPP_FUNDING', icon: 'Send' },
- ]
- },
- {
- category: t.treasury.sidebar.categories.safety,
- color: 'from-purple-500 to-indigo-600',
- items: [
- { type: 'condition', label: 'CLIENT_SIGNATURE', icon: 'Shield' },
- { type: 'action', label: 'ONCHAIN_AUDIT', icon: 'Fingerprint' },
- ]
- },
- {
- category: t.treasury.sidebar.categories.alerts,
- color: 'from-orange-400 to-rose-500',
- items: [
- { type: 'action', label: 'TELEGRAM_ALERTS', icon: 'Send' },
- { type: 'action', label: 'EMAIL_REPORT', icon: 'Mail' },
- ]
- },
- ];
-
- useEffect(() => { setMounted(true); }, []);
-
- useEffect(() => {
- const handleResize = () => {
- if (window.innerWidth < 1024) setSidebarOpen(false);
- };
- handleResize();
- window.addEventListener('resize', handleResize);
- return () => window.removeEventListener('resize', handleResize);
- }, []);
-
- const onConnect = useCallback(
- (params: Connection) => setEdges((eds) => addEdge({ ...params, animated: true, style: { stroke: '#2DEBE8' } }, eds)),
- [setEdges]
- );
-
- const onDragStart = (event: React.DragEvent, nodeData: any) => {
- setDraggedTemplate(nodeData);
- event.dataTransfer.setData('application/reactflow', JSON.stringify(nodeData));
- event.dataTransfer.effectAllowed = 'move';
-
- // Custom drag ghost
- const ghost = document.createElement('div');
- ghost.style.opacity = '0';
- document.body.appendChild(ghost);
- event.dataTransfer.setDragImage(ghost, 0, 0);
- setTimeout(() => document.body.removeChild(ghost), 0);
- };
-
- const onDragOver = useCallback((event: React.DragEvent) => {
- event.preventDefault();
- event.dataTransfer.dropEffect = 'move';
-
- if (!draggedTemplate || !reactFlowInstance) return;
-
- const bounds = reactFlowWrapper.current?.getBoundingClientRect();
- if (!bounds) return;
-
- const position = reactFlowInstance.screenToFlowPosition({
- x: event.clientX,
- y: event.clientY,
- });
-
- // Find nearest node
- let nearestNode: Node | null = null;
- let minDistance = 150;
-
- nodes.forEach(node => {
- const dx = node.position.x - position.x;
- const dy = node.position.y - position.y;
- const distance = Math.sqrt(dx * dx + dy * dy);
- if (distance < minDistance) {
- minDistance = distance;
- nearestNode = node;
- }
- });
-
- if (nearestNode) {
- const isBefore = position.x < (nearestNode as Node).position.x;
- const locNode = t.treasury.nodes[draggedTemplate.label.toLowerCase() as keyof typeof t.treasury.nodes] || { label: draggedTemplate.label, desc: '' };
-
- setDropHint({
- x: event.clientX,
- y: event.clientY,
- label: locNode.label,
- desc: locNode.desc,
- targetNode: (nearestNode as Node).data.label as string,
- position: isBefore ? 'before' : 'after'
- });
- } else {
- const locNode = t.treasury.nodes[draggedTemplate.label.toLowerCase() as keyof typeof t.treasury.nodes] || { label: draggedTemplate.label, desc: '' };
- setDropHint({
- x: event.clientX,
- y: event.clientY,
- label: locNode.label,
- desc: locNode.desc
- });
- }
- }, [draggedTemplate, reactFlowInstance, nodes, t.treasury.nodes]);
-
- const onAddNode = useCallback((template: any) => {
- let position = { x: 300, y: 300 };
- if (reactFlowInstance) {
- const { x, y, zoom } = reactFlowInstance.getViewport();
- const wrapper = reactFlowWrapper.current?.getBoundingClientRect();
- if (wrapper) {
- position = {
- x: (wrapper.width / 2 - x) / zoom,
- y: (wrapper.height / 2 - y) / zoom,
- };
- }
- }
- const newId = getId();
- const newNode: Node = {
- id: newId,
- type: 'niriumNode',
- position,
- data: {
- label: template.label,
- icon: template.icon,
- type: template.type,
- color: NODE_TEMPLATES.find(c => c.items.some(i => i.label === template.label))?.color
- },
- };
- setNodes((nds) => {
- const lastNode = nds[nds.length - 1];
- if (lastNode) {
- setEdges((eds) => {
- const edgeId = `edge_${lastNode.id}_to_${newId}`;
- if (eds.some((e) => e.id === edgeId)) return eds;
- return [
- ...eds,
- {
- id: edgeId,
- source: lastNode.id,
- target: newId,
- animated: true,
- style: { stroke: '#2DEBE8' }
- }
- ];
- });
- }
- return [...nds, newNode];
- });
- toast.success(`${template.label}`);
- }, [reactFlowInstance, setNodes, setEdges]);
-
- const onDrop = useCallback(
- (event: React.DragEvent) => {
- event.preventDefault();
- setDraggedTemplate(null);
- setDropHint(null);
-
- const reactFlowBounds = reactFlowWrapper.current?.getBoundingClientRect();
- const rawData = event.dataTransfer.getData('application/reactflow');
- if (!rawData || !reactFlowBounds) return;
- const template = JSON.parse(rawData);
- const position = reactFlowInstance.screenToFlowPosition({
- x: event.clientX,
- y: event.clientY,
- });
-
- // Find nearest node for connection logic
- let nearestDropNode: Node | null = null;
- let minDistance = 150;
- nodes.forEach(node => {
- const dx = node.position.x - position.x;
- const dy = node.position.y - position.y;
- const distance = Math.sqrt(dx * dx + dy * dy);
- if (distance < minDistance) {
- minDistance = distance;
- nearestDropNode = node;
- }
- });
-
- const newId = getId();
- const newNode: Node = {
- id: newId,
- type: 'niriumNode',
- position,
- data: {
- label: template.label,
- icon: template.icon,
- type: template.type,
- color: NODE_TEMPLATES.find(c => c.items.some(i => i.label === template.label))?.color
- },
- };
- setNodes((nds) => {
- const lastNode = nearestDropNode || nds[nds.length - 1];
- if (lastNode) {
- setEdges((eds) => {
- const edgeId = `edge_${lastNode.id}_to_${newId}`;
- if (eds.some((e) => e.id === edgeId)) return eds;
- return [
- ...eds,
- {
- id: edgeId,
- source: lastNode.id,
- target: newId,
- animated: true,
- style: { stroke: '#2DEBE8' }
- }
- ];
- });
- }
- return [...nds, newNode];
- });
- },
- [reactFlowInstance, setNodes, setEdges, nodes]
- );
-
- // ─── Borradores: solo en este navegador (8-nov-2026) ───────────────────
- // Antes se escribían también en la tabla nirium_protocol_records, cuya política
- // es "Allow all for anon": cualquiera con la llave pública (va en el sitio) podía
- // leer, cambiar o borrar los borradores de cualquier wallet. Nada ejecuta estos
- // diagramas, así que no hace falta una tabla: se guardan aquí y se respaldan con
- // Exportar / Importar. No pide wallet: el dibujo vive en el navegador de quien lo hizo.
- const DRAFTS_KEY = 'nirium-builder-drafts';
- const readDrafts = (): any[] => {
- try {
- const own = JSON.parse(localStorage.getItem(DRAFTS_KEY) || '[]');
- // Borradores viejos guardados por wallet: se siguen mostrando para no perderlos.
- const legacy = account?.address
- ? JSON.parse(localStorage.getItem(`nirium-fleet-${account.address}`) || '[]')
- .filter((d: any) => d?.config?.nodes)
- : [];
- const seen = new Set();
- return [...(Array.isArray(own) ? own : []), ...legacy].filter((d: any) => {
- const k = d?.id || d?.strategy_id;
- if (!k || seen.has(k)) return false;
- seen.add(k);
- return true;
- });
- } catch { return []; }
- };
-
- const handleSave = async () => {
- setIsSaving(true);
- try {
- const flow = reactFlowInstance.toObject();
- const sid = strategyId || `custom-${Date.now()}`;
- if (!strategyId) setStrategyId(sid);
- const draft = {
- id: sid,
- strategy_id: sid,
- name: strategyName,
- emoji: '🏗️',
- status: 'DRAFT',
- rate: '-',
- asset: selectedAsset,
- created_at: new Date().toISOString(),
- config: flow,
- };
- const own = JSON.parse(localStorage.getItem(DRAFTS_KEY) || '[]');
- const rest = (Array.isArray(own) ? own : []).filter((d: any) => d.id !== sid);
- localStorage.setItem(DRAFTS_KEY, JSON.stringify([draft, ...rest].slice(0, 50)));
- toast.success(language === 'es'
- ? 'Guardado en este navegador. Usa Exportar para tener una copia.'
- : 'Saved in this browser. Use Export to keep a copy.');
- fetchHistory();
- } catch {
- toast.error(t.toasts.broadcast_failed);
- } finally {
- setIsSaving(false);
- }
- };
-
- const fetchHistory = async () => {
- setIsLoadingHistory(true);
- setHistory(readDrafts());
- setIsLoadingHistory(false);
- };
-
- const handleExport = () => {
- if (!reactFlowInstance) return;
- const flow = reactFlowInstance.toObject();
- const schema = {
- version: '0.0.7',
- exported_at: new Date().toISOString(),
- kernel_name: strategyName,
- kernel_id: strategyId || `custom-${Date.now()}`,
- asset: selectedAsset,
- node_count: flow.nodes?.length || 0,
- edge_count: flow.edges?.length || 0,
- flow,
- };
- const blob = new Blob([JSON.stringify(schema, null, 2)], { type: 'application/json' });
- const url = URL.createObjectURL(blob);
- const a = document.createElement('a');
- a.href = url;
- a.download = `${strategyName.toLowerCase().replace(/\s+/g, '_')}_kernel.json`;
- document.body.appendChild(a);
- a.click();
- URL.revokeObjectURL(url);
- document.body.removeChild(a);
- toast.success(t.marketplace.custom_builder.export);
- };
-
- // Lee un archivo hecho con Exportar. Solo acepta la forma que Exportar produce;
- // cualquier otra cosa se rechaza con un mensaje, no se intenta adivinar.
- const importInputRef = useRef(null);
- const handleImport = async (file: File) => {
- try {
- const schema = JSON.parse(await file.text());
- const flow = schema?.flow;
- if (!flow || !Array.isArray(flow.nodes) || !Array.isArray(flow.edges)) throw new Error('shape');
- setNodes(flow.nodes);
- setEdges(flow.edges);
- if (typeof schema.kernel_name === 'string') setStrategyName(schema.kernel_name);
- if (typeof schema.kernel_id === 'string') setStrategyId(schema.kernel_id);
- if (schema.asset === 'USDC' || schema.asset === 'CETES') setSelectedAsset(schema.asset);
- setTimeout(() => { reactFlowInstance?.fitView({ duration: 800 }); }, 100);
- toast.success(language === 'es' ? 'Esquema importado.' : 'Schema imported.');
- } catch {
- toast.error(language === 'es'
- ? 'Ese archivo no es un esquema exportado desde aquí.'
- : 'That file is not a schema exported from here.');
- }
- };
-
- // "Publicar" se quitó el 8-nov-2026: subía el diagrama por /api/pinata (abierto,
- // sin login ni límite) y lo listaba en un mercado de estrategias de testnet con
- // suscripción de 1 USDC. El contrato tenía 0 estrategias publicadas, y vender
- // estrategias por suscripción roza la asesoría de inversión que la política dice
- // que no damos.
-
- const loadKernel = (strat: any) => {
- if (strat.config && strat.config.nodes) {
- setNodes(strat.config.nodes || []);
- setEdges(strat.config.edges || []);
- setStrategyName(strat.name);
- setStrategyId(strat.strategy_id || strat.id);
- if (strat.asset === 'USDC' || strat.asset === 'CETES') setSelectedAsset(strat.asset);
- setShowHistory(false);
- toast.success(strat.name);
- setTimeout(() => { reactFlowInstance?.fitView({ duration: 800 }); }, 100);
- }
- };
-
- if (!mounted) return null;
-
- const filteredTemplates = NODE_TEMPLATES.map(cat => ({
- ...cat,
- items: cat.items.filter(i => {
- const loc = t.treasury.nodes[i.label.toLowerCase() as keyof typeof t.treasury.nodes] || { label: i.label };
- return loc.label.toLowerCase().includes(searchQuery.toLowerCase());
- })
- })).filter(cat => cat.items.length > 0);
-
- return (
-
-
- {/* Nada lee este diagrama: el agente decide con los umbrales de la bóveda
- (REBALANCE_VAULTS / rebalanceDecision.ts), no con lo que se dibuja aquí. */}
- {language === "es" ? "VISTA PREVIA · NO SE EJECUTA: EL AGENTE USA LOS UMBRALES DE TU BÓVEDA" : "PREVIEW · NOT EXECUTED: THE AGENT USES YOUR VAULT'S THRESHOLDS"}
-
- setStrategyName(e.target.value)}
- className="bg-transparent border-none focus:outline-none font-black text-sm sm:text-xl tracking-tighter text-white uppercase font-mono italic w-full truncate"
- />
- {/* 8-nov-2026: se quitaron "OPERATIVO" (con punto pulsante) y "Ética
- alineada". El lienzo no corre nada; eran decorado con forma de estado. */}
-
-
-
-
- {/* Apilado hasta 2xl: en pantallas medianas (sidebar del sitio
- + paleta del builder abiertos) los tres botones en fila no
- caben junto a la tarjeta del esquema y el último se corta. */}
-
-
- {/* "EJECUTAR" (8-nov-2026) no ejecutaba nada y "PUBLICAR" se quitó:
- ver el comentario junto a handleImport. */}
-
-
-
-
- { const f = e.target.files?.[0]; if (f) handleImport(f); e.target.value = ''; }}
- />
-
-
-
-
-
-
- {dropHint && (
-
-
-
- );
-}
-
-export default function StrategyBuilderPro() {
- const { t } = useLanguage();
-
- return (
- // w-full, no w-screen: la página vive dentro de AppLayout, que ya resta
- // el sidebar de 256px; 100vw empujaba los botones de la derecha fuera
- // de la pantalla. La altura deja aire para el TestnetBanner (no es
- // fixed) y para la barra superior en móvil, así la tarjeta de abajo y
- // los controles de zoom no quedan cortados.
- // 9-nov-2026: AppLayout ya baja la barra de mercado (pt-9) y el body baja el
- // aviso de red, así que el espaciador h-9 de aquí sobraba y dejaba un hueco.
- // La altura resta barra (2.25rem), aviso (--banner-h) y, en móvil, la barra
- // superior del layout (3.75rem).
-
-
- {/* Preview banner - mainnet is invite-only, not unlocked by a plan */}
-
-
- );
+// Archivado el 30-nov-2026 (decidido por Giovanny): el Strategy Builder de Tesorería. Redirige a /treasury, la página de archivo.
+export default function Page() {
+ redirect("/treasury");
}
diff --git a/apps/web/app/(app)/treasury/layout.tsx b/apps/web/app/(app)/treasury/layout.tsx
index 6782da21..bf9e23e2 100644
--- a/apps/web/app/(app)/treasury/layout.tsx
+++ b/apps/web/app/(app)/treasury/layout.tsx
@@ -2,8 +2,8 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/treasury",
- title: "Treasury Node",
- description: "Moves your own DeFindex vault's idle funds (USDC or CETES) into its Blend strategy and back when the yield crosses the thresholds you set. On mainnet, invite-only.",
+ title: "Treasury and Payouts (discontinued)",
+ description: "Treasury and Payouts were tested only with the team's own funds and discontinued on 30 Nov 2026.",
});
export default function TreasuryLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/treasury/page.tsx b/apps/web/app/(app)/treasury/page.tsx
index e5595f52..19a6575b 100644
--- a/apps/web/app/(app)/treasury/page.tsx
+++ b/apps/web/app/(app)/treasury/page.tsx
@@ -1,331 +1,32 @@
-/** Nirium Treasury - página del nodo de tesorería.
- * 8-nov-2026: "Cómo funciona" describe el rebalanceador real (rendimiento medido
- * on-chain contra los umbrales del dueño, firma del agente dentro de la bóveda).
- * Se quitó la sección cross-border (Treasury no mueve dinero entre países) y la
- * tasa fija de CETES (el agente no la usa). **/
+/** /treasury - 30-nov-2026 (decidido por Giovanny): Tesorería y Payouts se descontinuaron.
+ * Solo se probaron con fondos del equipo (Payouts nunca corrió en mainnet), así que esta
+ * página no habla de "tu bóveda" ni de retiros: lo dice una vez y manda a lo que sí existe.
+ * /treasury/vault sigue accesible por URL para cerrar las bóvedas de prueba, sin links. **/
'use client';
import Link from "next/link";
-import {
- Bot, TrendingUp, Coins, ArrowRight, ChevronRight,
- Sparkles, Activity, Zap, BarChart3, RefreshCw, AlertTriangle,
- CheckCircle2
-} from "lucide-react";
-import { Button } from "@/components/ui/Button";
+import { ArrowRight } from "lucide-react";
import { useLanguage } from "@/context/LanguageContext";
-import { ComplianceBanner } from "@/components/ui/ComplianceBanner";
-import TreasuryPlainTerms from "@/components/home/TreasuryPlainTerms";
-export default function TreasuryPage() {
- const { t, language } = useLanguage();
+export default function TreasuryDiscontinuedPage() {
+ const { language } = useLanguage();
const lang = (en: string, es: string) => (language === "es" ? es : en);
return (
- {/* HERO */}
-
-
-
+ {lang("Treasury and Payouts were discontinued", "Tesorería y Payouts se descontinuaron")}
+
+
+ {lang(
+ "They were tested only with the team's own funds and were discontinued on 30 Nov 2026, so Nirium can focus on receipts that tie a payment to the document behind it.",
+ "Solo se probaron con fondos del propio equipo y se descontinuaron el 30-nov-2026, para que Nirium se enfoque en recibos que ligan un pago con el documento que lo respalda.")}
+
+
+ {lang("Verify a receipt", "Verifica un recibo")}
+
-
);
}
diff --git a/apps/web/app/(app)/treasury/vault/layout.tsx b/apps/web/app/(app)/treasury/vault/layout.tsx
index 64251651..c4a36cee 100644
--- a/apps/web/app/(app)/treasury/vault/layout.tsx
+++ b/apps/web/app/(app)/treasury/vault/layout.tsx
@@ -2,8 +2,8 @@ import { pageMetadata } from "@/lib/pageMetadata";
export const metadata = pageMetadata({
path: "/treasury/vault",
- title: "Treasury Vault Console",
- description: "Deploy a DeFindex vault you own. Nirium only takes the RebalanceManager role: it moves funds between strategies inside your vault and nothing else.",
+ title: "Treasury (discontinued)",
+ description: "Treasury was tested only with the team's own funds and discontinued on 30 Nov 2026.",
});
export default function TreasuryVaultLayout({ children }: { children: React.ReactNode }) {
diff --git a/apps/web/app/(app)/treasury/vault/page.tsx b/apps/web/app/(app)/treasury/vault/page.tsx
index c1f5378b..46359639 100644
--- a/apps/web/app/(app)/treasury/vault/page.tsx
+++ b/apps/web/app/(app)/treasury/vault/page.tsx
@@ -148,10 +148,13 @@ export default function TreasuryVaultConsole() {
const [acknowledged, setAcknowledged] = useState(false);
// En mainnet el dueño decide a quién nombra encargado; el nodo no lo
// rellena. No es que no podamos -el firmante existe y corre- es que el
- // rebalanceo autónomo con dinero de terceros es invite-only mientras cierra
- // la revisión legal, y rellenar el campo prometería un servicio que hoy no
+ // rebalanceo autónomo con dinero de terceros es invite-only mientras no haya
+ // una opinión legal por escrito, y rellenar el campo prometería un servicio que hoy no
// se presta.
const nodeFillsRole = network !== 'mainnet';
+ // 30-nov-2026 (decidido por Giovanny): Tesorería archivada. En todas las redes
+ // esta página solo sirve para salir: revisar, retirar y quitarle el rol a Nirium.
+ const exitOnly = true;
// Bóvedas desplegadas desde ESTE navegador. No es un índice on-chain: el
// factory no permite listar por manager sin recorrer las ~200 existentes.
@@ -296,7 +299,7 @@ export default function TreasuryVaultConsole() {
};
const deposit = async () => {
- if (network === 'mainnet') { setError(lang('On mainnet, depositing from this page is invite-only until we have a written legal opinion.', 'En mainnet, depositar desde esta página es solo por invitación hasta tener una opinión legal por escrito.')); return; }
+ if (exitOnly) { setError(lang('Treasury is archived: depositing from this page is off. You can still check and withdraw.', 'Tesorería está archivada: depositar desde esta página está apagado. Todavía puedes revisar y retirar.')); return; }
if (!vault?.vault) return;
const stroops = toStroops(amount);
if (!stroops) { setError(lang('Enter a positive amount.', 'Escribe un monto positivo.')); return; }
@@ -387,7 +390,7 @@ export default function TreasuryVaultConsole() {
}, [network]);
const deploy = async () => {
- if (network === 'mainnet') { setError(lang('On mainnet, deploying a vault from this page is invite-only until we have a written legal opinion.', 'En mainnet, desplegar una bóveda desde esta página es solo por invitación hasta tener una opinión legal por escrito.')); return; }
+ if (exitOnly) { setError(lang('Treasury is archived: deploying a vault from this page is off.', 'Tesorería está archivada: desplegar una bóveda desde esta página está apagado.')); return; }
if (!isConnected || !address) { await connect(); return; }
setError(null); setDeployed(null);
try {
@@ -560,14 +563,21 @@ export default function TreasuryVaultConsole() {
}`}>{network}
- {network === 'mainnet'
+ {exitOnly
? lang(
- 'Check or withdraw from a DeFindex vault you own. On mainnet, deploying and depositing here are invite-only. Nirium takes only the RebalanceManager role - it can move funds between the strategies inside your vault, and nothing else.',
- 'Revisa o retira de una bóveda de DeFindex que es tuya. En mainnet, desplegar y depositar aquí es solo por invitación. Nirium toma únicamente el rol de RebalanceManager: puede mover fondos entre las estrategias de tu bóveda, y nada más.')
+ 'Treasury was discontinued on 30 Nov 2026. This page only checks a vault and withdraws from it.',
+ 'Tesorería se descontinuó el 30-nov-2026. Esta página solo revisa una bóveda y retira de ella.')
+ : network === 'mainnet'
+ ? lang(
+ 'Check or withdraw from a DeFindex vault you own. On mainnet, deploying and depositing here are paused. Nirium takes only the RebalanceManager role - it can move funds between the strategies inside your vault, and nothing else.',
+ 'Revisa o retira de una bóveda de DeFindex que es tuya. En mainnet, desplegar y depositar aquí está en pausa. Nirium toma únicamente el rol de RebalanceManager: puede mover fondos entre las estrategias de tu bóveda, y nada más.')
: lang(
'Deploy a DeFindex vault that you own. Nirium takes only the RebalanceManager role - it can move funds between the strategies inside your vault, and nothing else.',
'Despliega una bóveda de DeFindex que tú posees. Nirium toma únicamente el rol de RebalanceManager: puede mover fondos entre las estrategias de tu bóveda, y nada más.')}
+
+ {lang('Discontinued', 'Descontinuada')}
+
{/* Lo que el rol NO puede hacer, servido por el propio nodo. */}
@@ -603,18 +613,32 @@ export default function TreasuryVaultConsole() {
)}
{/* Desplegar. 16-nov-2026 (decidido por Giovanny): en mainnet, desplegar y
- fondear desde este sitio es solo por invitación, igual que Payouts, hasta
+ fondear desde este sitio está en pausa, igual que Payouts, hasta
tener una opinión legal por escrito. Retirar de una bóveda propia sigue
abierto siempre (política de jurisdicciones). Testnet sin cambios. */}
- {network === 'mainnet' ? (
+ {exitOnly ? (
+
+
+ {lang('Discontinued', 'Descontinuada')}
+
+
+ {lang(
+ 'Treasury was tested only with the team\'s own funds and discontinued on 30 Nov 2026.',
+ 'Tesorería solo se probó con fondos del propio equipo y se descontinuó el 30-nov-2026.')}
+
- {lang('Mainnet · invite-only', 'Mainnet · solo por invitación')}
+ {lang('Mainnet · paused', 'Mainnet · en pausa')}
{lang(
- 'On mainnet, deploying and funding a vault from this page is invite-only until we have a written legal opinion, the same as Payouts and autonomous rebalancing. On testnet everything stays open: switch to TEST in the menu to try it. If you already own a vault, you can always check it and withdraw below.',
- 'En mainnet, desplegar y fondear una bóveda desde esta página es solo por invitación hasta tener una opinión legal por escrito, igual que Payouts y el rebalanceo autónomo. En testnet todo sigue abierto: cambia a TEST en el menú para probarlo. Si ya tienes una bóveda, siempre puedes revisarla y retirar abajo.')}
+ 'On mainnet, deploying and funding a vault from this page is paused until we have a written legal opinion, as are Payouts and autonomous rebalancing. On testnet everything stays open: switch to TEST in the menu to try it. If you already own a vault, you can always check it and withdraw below.',
+ 'En mainnet, desplegar y fondear una bóveda desde esta página está en pausa hasta tener una opinión legal por escrito, igual que Payouts y el rebalanceo autónomo. En testnet todo sigue abierto: cambia a TEST en el menú para probarlo. Si ya tienes una bóveda, siempre puedes revisarla y retirar abajo.')}
)}
) : (
@@ -675,6 +752,9 @@ function VerifyContent() {
)}
+ {/* After a lookup the result stays right under the input, and the examples move below it. */}
+ {phase !== 'idle' &&
{examples}
}
+
{/* What a receipt proves vs. what Stellar already proves */}
+
{value}
{copied ? : }
@@ -790,3 +870,51 @@ export default function VerifyPage() {
);
}
+
+/** The sha-256 of a private context, when the record carries only that (adapter `contextDigestOnly`). */
+function contextDigestOf(record: unknown): string | null {
+ if (!record || typeof record !== 'object' || Array.isArray(record)) return null;
+ const v = (record as Record).contextSha256;
+ return typeof v === 'string' && /^[0-9a-f]{64}$/.test(v) ? v : null;
+}
+
+/** Hashes a context the issuer shows, in the browser, and compares it with contextSha256. Nothing is sent. */
+function PrivateContextCheck({ expected, tv }: { expected: string; tv: { result: Record } }) {
+ const [input, setInput] = useState('');
+ const [state, setState] = useState<'idle' | 'match' | 'mismatch' | 'invalid'>('idle');
+ const check = async () => {
+ let parsed: unknown;
+ try {
+ parsed = JSON.parse(input);
+ } catch {
+ setState('invalid');
+ return;
+ }
+ setState((await hashRecord(parsed)) === expected ? 'match' : 'mismatch');
+ };
+ return (
+
+
{tv.result.context_title}
+
{tv.result.context_intro}
+
+ );
+}
diff --git a/apps/web/app/api/chain-stats/route.ts b/apps/web/app/api/chain-stats/route.ts
new file mode 100755
index 00000000..a1a1c2c4
--- /dev/null
+++ b/apps/web/app/api/chain-stats/route.ts
@@ -0,0 +1,59 @@
+// Numbers for /chains (27-nov-2026): per chain, the mainnet receipts the Nirium node anchored and
+// the package's npm downloads of the last week. Chains other than Stellar; Stellar's numbers live in
+// /stats. Each chain is read on its own and never added to another. Read from the same origin
+// because the agent only allows CORS from nirium.xyz and npm's API is not in the page CSP.
+export const maxDuration = 30;
+export const dynamic = 'force-dynamic';
+
+const AGENT = 'https://nirium-agent-mainnet.fly.dev/api/reporting/summary';
+const NPM = 'https://api.npmjs.org/downloads/point/last-week';
+// Base and Arbitrum (1-dic-2026): their libraries are not on npm yet, so no package is read.
+const CHAINS = { solana: 'nirium-solana', avalanche: 'nirium-avalanche', base: null, arbitrum: null } as const;
+
+// Mainnet payer keys the team itself uses for self-tests, per chain (one each on 27-nov-2026: the
+// selftest payer, which also bought from the market). A payer beyond these is not a team key.
+// Update when the team adds a mainnet payer key.
+const TEAM_PAYERS = { solana: 1, avalanche: 1, base: 1, arbitrum: 1 } as const;
+
+type Chain = keyof typeof CHAINS;
+
+async function json(url: string, ttl: number): Promise {
+ try {
+ // Same as /api/reporting-summary: no data cache (it went stale there); the CDN keeps the
+ // response for s-maxage below. `ttl` is kept in the signature for the call sites.
+ void ttl;
+ const r = await fetch(url, { cache: 'no-store', signal: AbortSignal.timeout(20000) });
+ return r.ok ? await r.json() : null;
+ } catch {
+ return null;
+ }
+}
+
+async function one(chain: Chain) {
+ const [rep, npm] = await Promise.all([
+ json(`${AGENT}?chain=${chain}&network=mainnet`, 600),
+ CHAINS[chain] ? json(`${NPM}/${CHAINS[chain]}`, 3600) : Promise.resolve(null),
+ ]);
+ const r = rep?.receipts;
+ return {
+ package: CHAINS[chain],
+ reporting: r ? {
+ receipts: Number(r.receipts) || 0,
+ distinctPayers: Number(r.distinctPayers) || 0,
+ usdc: String(r.usdc?.total ?? '0'),
+ lastAnchoredAt: r.lastAnchoredAt ?? null,
+ } : null,
+ teamPayers: TEAM_PAYERS[chain],
+ // npm answers {error} for a package with no download data yet (the API runs a day or two behind).
+ npm: typeof npm?.downloads === 'number' ? { downloads: npm.downloads, start: npm.start, end: npm.end } : null,
+ sources: { reporting: `${AGENT}?chain=${chain}&network=mainnet`, npm: CHAINS[chain] ? `${NPM}/${CHAINS[chain]}` : null },
+ };
+}
+
+export async function GET() {
+ const [solana, avalanche, base, arbitrum] = await Promise.all([one('solana'), one('avalanche'), one('base'), one('arbitrum')]);
+ return Response.json(
+ { solana, avalanche, base, arbitrum, generatedAt: new Date().toISOString() },
+ { headers: { 'Cache-Control': 'public, max-age=0, s-maxage=600, stale-while-revalidate=3600' } },
+ );
+}
diff --git a/apps/web/app/api/reporting-summary/route.ts b/apps/web/app/api/reporting-summary/route.ts
index 184d4ed6..ff3caf9f 100644
--- a/apps/web/app/api/reporting-summary/route.ts
+++ b/apps/web/app/api/reporting-summary/route.ts
@@ -8,7 +8,10 @@ const AGENT = 'https://nirium-agent-mainnet.fly.dev/api/reporting/summary';
export async function GET(req: Request) {
const network = new URL(req.url).searchParams.get('network') === 'mainnet' ? 'mainnet' : 'testnet';
try {
- const r = await fetch(`${AGENT}?network=${network}`, { next: { revalidate: 300 }, signal: AbortSignal.timeout(25000) });
+ // 27-nov-2026: con `next: { revalidate: 300 }` la copia de mainnet se quedó en la del 24-nov
+ // (39 pagos en vez de 40): el agente tarda ~8 s y la renovación en segundo plano no llegaba.
+ // Ahora se pide siempre al agente y solo el CDN guarda la respuesta 5 min (s-maxage abajo).
+ const r = await fetch(`${AGENT}?network=${network}`, { cache: 'no-store', signal: AbortSignal.timeout(25000) });
if (!r.ok) return Response.json({ error: `agent ${r.status}`, source: `${AGENT}?network=${network}` }, { status: 502 });
const data = await r.json();
return Response.json(data, { headers: { 'Cache-Control': 'public, max-age=0, s-maxage=300, stale-while-revalidate=600' } });
diff --git a/apps/web/app/api/stats/statsData.ts b/apps/web/app/api/stats/statsData.ts
index 6615c632..fd32a1c4 100644
--- a/apps/web/app/api/stats/statsData.ts
+++ b/apps/web/app/api/stats/statsData.ts
@@ -894,48 +894,33 @@ async function getPollarIntegration(): Promise {
async function getNiriumPlayIntegration(): Promise {
const pageUrl = 'https://nirium.xyz/nirium-play/';
const gameUrl = 'https://nirium.xyz/nirium-play/game/';
- const gateBase = 'https://nirium-play-backend.fly.dev';
- const gateUrl = `${gateBase}/api/v1/actions/reveal-loot`;
-
const status = async (u: string) => {
try { return (await fetch(u, { signal: AbortSignal.timeout(8000), redirect: 'follow' })).status; } catch { return null; }
};
- const [pageStatus, gameStatus, gate, issue70, pr82] = await Promise.all([
+ const [pageStatus, gameStatus, issue70, pr82] = await Promise.all([
status(pageUrl),
status(gameUrl),
- (async () => {
- try {
- // Unauthenticated POST with no payment: the gate answers 402 and
- // advertises its network. No side effects.
- const r = await fetch(gateUrl, { method: 'POST', headers: { 'content-type': 'application/json' }, body: '{}', signal: AbortSignal.timeout(8000) });
- const header = r.headers.get('payment-required');
- const acc = header ? JSON.parse(Buffer.from(header, 'base64').toString('utf8'))?.accepts?.[0] : null;
- return { status: r.status, network: (acc?.network as string | undefined) ?? null, amount: acc?.amount as string | undefined };
- } catch { return { status: null as number | null, network: null as string | null, amount: undefined }; }
- })(),
ghJson('https://api.github.com/repos/nirium-protocol/nirium/issues/70'),
ghJson('https://api.github.com/repos/nirium-protocol/nirium/pulls/82'),
]);
- const network: Integration['network'] = gate.network === 'stellar:testnet' ? 'testnet' : gate.network === 'stellar:pubnet' ? 'mainnet' : 'unknown';
+ // 1-dic-2026: the payment gate (nirium-play-backend on Fly) was turned off on
+ // purpose on 27 Nov 2026, so it is no longer probed; the card says it is paused
+ // instead of showing a failed check. It always ran on testnet only.
+ const network: Integration['network'] = 'testnet';
const items: Check[] = [
{ label: 'public URL responds 200', ok: pageStatus === 200, detail: String(pageStatus) },
{ label: 'game build is served', ok: gameStatus === 200, detail: String(gameStatus) },
- {
- label: 'x402 gate answers 402 and advertises its network',
- ok: gate.status === 402 && network !== 'unknown',
- detail: gate.status === 402 ? `${gate.network}${gate.amount ? ` · ${(Number(gate.amount) / 1e7).toFixed(2)} USDC` : ''}` : String(gate.status),
- },
];
const issueStatus = issue70.ok ? `${issue70.data.state}${issue70.data.state_reason ? ` · ${issue70.data.state_reason}` : ''}` : null;
const prStatus = pr82.ok ? (pr82.data.merged ? `merged${pr82.data.user?.login ? ` · @${pr82.data.user.login}` : ''}` : pr82.data.state) : null;
return {
name: 'Nirium Play',
- description: 'A Unity game where each action goes through an x402 payment gate on Stellar.',
+ description: 'A Unity game where each action went through an x402 payment gate on Stellar testnet. The payment gate has been paused since 27 Nov 2026; the game page still loads.',
demoUrl: pageUrl,
badge: 'Built by Nirium · Stellar testnet',
network,
- links: [{ label: 'gate health', url: `${gateBase}/health` }],
+ links: [],
origin: {
text: 'The x402 gate for Unity came out of GrantFox campaign issue #70; the community PR that solved it was merged.',
links: [
diff --git a/apps/web/app/blocked/page.tsx b/apps/web/app/blocked/page.tsx
index 8776ad63..6fdd91da 100644
--- a/apps/web/app/blocked/page.tsx
+++ b/apps/web/app/blocked/page.tsx
@@ -31,7 +31,7 @@ export default async function BlockedPage({
title: 'Nirium is not available in your jurisdiction',
restricted: <>Access from {country ? {country} : 'your location'} is restricted under our Restricted Jurisdictions & Sanctions Policy. Nirium is a software provider operated from Mexico by its founders, and does not offer its services into comprehensively sanctioned jurisdictions, jurisdictions subject to a Financial Action Task Force call for action, or mainland China.>,
notYou: 'This is a restriction on who we serve, not a judgement about you, and it is not a statement that you have done anything wrong. If you believe it applies to you in error - geolocation is imperfect - write to us and we will look at it.',
- funds: 'Nirium never holds user funds. If you already hold a Stellar account, a DeFindex vault or any asset, it is entirely outside our control and remains fully usable without us. Nothing here strands anything of yours.',
+ funds: 'Nirium never holds user funds. If you already hold a Stellar account or any asset, it is entirely outside our control and remains fully usable without us. Nothing here strands anything of yours.',
policy: 'Read the full policy →',
},
{
@@ -39,7 +39,7 @@ export default async function BlockedPage({
title: 'Nirium no está disponible en tu jurisdicción',
restricted: <>El acceso desde {country ? {country} : 'tu ubicación'} está restringido por nuestra Política de Jurisdicciones Restringidas y Sanciones. Nirium es un proveedor de software que sus fundadores operan desde México, y no ofrece sus servicios en jurisdicciones con sanciones integrales, jurisdicciones sujetas a un llamado a la acción del Grupo de Acción Financiera Internacional (GAFI) ni en China continental.>,
notYou: 'Es una restricción sobre a quién atendemos, no un juicio sobre ti, y no dice que hayas hecho nada malo. Si crees que te aplica por error (la geolocalización no es perfecta), escríbenos y lo revisamos.',
- funds: 'Nirium nunca guarda fondos de usuarios. Si ya tienes una cuenta de Stellar, una bóveda de DeFindex o cualquier activo, está totalmente fuera de nuestro control y sigue funcionando sin nosotros. Nada de esto deja atrapado nada tuyo.',
+ funds: 'Nirium nunca guarda fondos de usuarios. Si ya tienes una cuenta de Stellar o cualquier activo, está totalmente fuera de nuestro control y sigue funcionando sin nosotros. Nada de esto deja atrapado nada tuyo.',
policy: 'Leer la política completa (en inglés) →',
},
];
diff --git a/apps/web/app/build/niriumtober/page.tsx b/apps/web/app/build/niriumtober/page.tsx
index 67a4c0be..f4d10296 100644
--- a/apps/web/app/build/niriumtober/page.tsx
+++ b/apps/web/app/build/niriumtober/page.tsx
@@ -87,17 +87,17 @@ const X402_SERVE_INSTALL = "npm i express @x402/express @x402/core @x402/stellar
// instalación limpia: NiriumVault (create_vault 8de99e3e..., deposit 8cee8b54...)
// y Treasury con API key de otra wallet (deploy 85bfba5b..., deposit ade89e6c...,
// propuesta firmada por el RebalanceManager e8032fa3...).
-const VAULT_TESTNET = "import { Keypair, Horizon, rpc, Contract, TransactionBuilder, Operation, Asset, Networks, nativeToScVal, scValToNative } from '@stellar/stellar-sdk';\n\nconst kp = Keypair.random(); // a new testnet key. Save kp.secret() to reuse it\nconst NET = Networks.TESTNET;\nconst horizon = new Horizon.Server('https://horizon-testnet.stellar.org');\nconst server = new rpc.Server('https://soroban-testnet.stellar.org');\nconst vaults = new Contract('CDMFURE6MYROTA2A6DLD4TN2S4QTN64L2FZ2I2RY2AREONX6DUQOI2S2'); // NiriumVault\nconst CETES = new Asset('CETES', 'GC3CW7EDYRTWQ635VDIGY6S4ZUF5L6TQ7AA4MWS7LEQDBLUSZXV7UPS4');\nconst addr = (a) => nativeToScVal(a, { type: 'address' });\n\nawait fetch(`https://friendbot.stellar.org?addr=${kp.publicKey()}`);\n// Testnet CETES from the DEX: trustline plus a 20 XLM swap, in one transaction\nconst swap = new TransactionBuilder(await horizon.loadAccount(kp.publicKey()), { fee: '1000', networkPassphrase: NET })\n .addOperation(Operation.changeTrust({ asset: CETES }))\n .addOperation(Operation.pathPaymentStrictSend({ sendAsset: Asset.native(), sendAmount: '20', destination: kp.publicKey(), destAsset: CETES, destMin: '1' }))\n .setTimeout(60).build();\nswap.sign(kp);\nawait horizon.submitTransaction(swap);\n\nasync function invoke(fn, ...args) {\n let tx = new TransactionBuilder(await server.getAccount(kp.publicKey()), { fee: '1000000', networkPassphrase: NET })\n .addOperation(vaults.call(fn, ...args)).setTimeout(60).build();\n tx = await server.prepareTransaction(tx);\n tx.sign(kp); // you sign every step\n const { hash } = await server.sendTransaction(tx);\n const done = await server.pollTransaction(hash);\n if (done.status !== 'SUCCESS') throw new Error(`${fn} failed: ${hash}`);\n console.log(fn, hash);\n return done.returnValue && scValToNative(done.returnValue);\n}\n\n// Creating the vault costs 12.5 testnet XLM, paid from your Friendbot XLM\nconst { vault_id } = await invoke('create_vault', addr(kp.publicKey()), addr(CETES.contractId(NET)),\n nativeToScVal('my niriumtober vault', { type: 'string' }), addr(Asset.native().contractId(NET)));\nawait invoke('deposit', nativeToScVal(vault_id, { type: 'u64' }), nativeToScVal(10_000_000n, { type: 'i128' })); // 1 CETES\n\n// Read your vault back (a simulation: no fee, nothing to sign)\nconst read = await server.simulateTransaction(new TransactionBuilder(await server.getAccount(kp.publicKey()), { fee: '100', networkPassphrase: NET })\n .addOperation(vaults.call('get_vault', nativeToScVal(vault_id, { type: 'u64' }))).setTimeout(30).build());\nconst vault = scValToNative(read.result.retval);\nconsole.log('Vault', String(vault.vault_id), 'balance:', Number(vault.balance) / 1e7, 'CETES');\nconsole.log('Your public key:', kp.publicKey());";
-const TREASURY_TESTNET = "import { Agent } from 'nirium';\nimport { Keypair, Horizon, TransactionBuilder, Operation, Asset, Networks } from '@stellar/stellar-sdk';\n\n// Two keys, both yours: the API rejects the same key as Manager and RebalanceManager.\nconst manager = Keypair.random(), rebalancer = Keypair.random(); // save both .secret() to reuse them\nconst NET = Networks.TESTNET;\nconst horizon = new Horizon.Server('https://horizon-testnet.stellar.org');\nconst CETES = new Asset('CETES', 'GC3CW7EDYRTWQ635VDIGY6S4ZUF5L6TQ7AA4MWS7LEQDBLUSZXV7UPS4');\nconst agent = new Agent({ apiKey: process.env.NIRIUM_API_KEY, baseUrl: 'https://nirium-agent.fly.dev' }); // key from nirium.xyz/keys\n\nawait Promise.all([manager, rebalancer].map((k) => fetch(`https://friendbot.stellar.org?addr=${k.publicKey()}`)));\n// Testnet CETES from the DEX for the Manager: trustline plus a 20 XLM swap\nconst swap = new TransactionBuilder(await horizon.loadAccount(manager.publicKey()), { fee: '1000', networkPassphrase: NET })\n .addOperation(Operation.changeTrust({ asset: CETES }))\n .addOperation(Operation.pathPaymentStrictSend({ sendAsset: Asset.native(), sendAmount: '20', destination: manager.publicKey(), destAsset: CETES, destMin: '1' }))\n .setTimeout(60).build();\nswap.sign(manager);\nawait horizon.submitTransaction(swap);\n\nconst signAndSubmit = (xdr, kp) => { const tx = TransactionBuilder.fromXDR(xdr, NET); tx.sign(kp); return agent.submitTreasuryTx(tx.toXDR()); };\n\nconst deploy = await agent.deployTreasuryVault({\n caller: manager.publicKey(), manager: manager.publicKey(), rebalanceManager: rebalancer.publicKey(),\n name: 'My Niriumtober vault', symbol: 'MNV',\n assets: [{ address: CETES.contractId(NET), strategies: [{ address: 'CCP4RBDWPRNO2LWO23XFU4BBLGA73J5N3BK7EHRJUHVN33YEMMFB2MBE', name: 'blend-autocompound' }] }],\n});\nconst { contract: vault, hash } = await signAndSubmit(deploy.xdr, manager);\nconsole.log('deploy', hash, 'vault', vault);\nconst deposit = await agent.depositToTreasuryVault({ vault, from: manager.publicKey(), amounts: ['10000000'] }); // 1 CETES\nconsole.log('deposit', (await signAndSubmit(deposit.xdr, manager)).hash);\n\n// Ask for a proposal; your RebalanceManager key decides whether to sign it\nconst proposal = await agent.proposeTreasuryRebalance({ vault, caller: rebalancer.publicKey(), enterAt: 2.5, exitAt: 2.0 });\nconsole.log('proposal', JSON.stringify(proposal.instructions));\nif (proposal.xdr) console.log('rebalance', (await signAndSubmit(proposal.xdr, rebalancer)).hash);\nconsole.log('Manager:', manager.publicKey(), 'RebalanceManager:', rebalancer.publicKey());";
// "Prepara tu cuenta", leído del archivo que se corrió en testnet el 22-oct-2026
// (trustlines y swaps en 27a8056b...; la rama sin ruta a USDC, en 03269cfb...).
-const SETUP_TESTNET = "import { Keypair, Horizon, TransactionBuilder, Operation, Asset, Networks } from '@stellar/stellar-sdk';\nimport { existsSync, readFileSync, writeFileSync } from 'node:fs';\n\nconst FILE = 'niriumtober-testnet.key';\nconst horizon = new Horizon.Server('https://horizon-testnet.stellar.org');\nconst USDC = new Asset('USDC', 'GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5'); // Circle\nconst CETES = new Asset('CETES', 'GC3CW7EDYRTWQ635VDIGY6S4ZUF5L6TQ7AA4MWS7LEQDBLUSZXV7UPS4');\n\n// 1. A new testnet key, saved next to this script (run it again and it reuses the same key)\nif (!existsSync(FILE)) writeFileSync(FILE, Keypair.random().secret(), { mode: 0o600 });\nconst kp = Keypair.fromSecret(readFileSync(FILE, 'utf8').trim());\n\n// 2. Testnet XLM from Friendbot\nconst funded = await horizon.loadAccount(kp.publicKey()).then(() => true, () => false);\nif (!funded) await fetch(`https://friendbot.stellar.org?addr=${kp.publicKey()}`);\n\n// 3. Trustlines for USDC and CETES, and 4. swap 20 XLM into each on the testnet DEX\nconst tx = new TransactionBuilder(await horizon.loadAccount(kp.publicKey()), { fee: '1000', networkPassphrase: Networks.TESTNET })\n .addOperation(Operation.changeTrust({ asset: USDC }))\n .addOperation(Operation.changeTrust({ asset: CETES }));\nconst toAsset = (a) => (a.asset_type === 'native' ? Asset.native() : new Asset(a.asset_code, a.asset_issuer));\nfor (const asset of [USDC, CETES]) {\n const [route] = (await horizon.strictSendPaths(Asset.native(), '20', [asset]).call()).records;\n if (!route) {\n console.log(asset === USDC ? 'No DEX route to USDC: now ask for USDC at https://faucet.circle.com' : 'No DEX route to CETES right now, try again later');\n continue;\n }\n tx.addOperation(Operation.pathPaymentStrictSend({\n sendAsset: Asset.native(), sendAmount: '20', destination: kp.publicKey(), destAsset: asset,\n destMin: (Number(route.destination_amount) * 0.9).toFixed(7), path: route.path.map(toAsset),\n }));\n}\nconst built = tx.setTimeout(60).build();\nbuilt.sign(kp);\nconsole.log('Transaction:', (await horizon.submitTransaction(built)).hash);\n\n// 5. What you have now\nconsole.log('Public key:', kp.publicKey());\nfor (const b of (await horizon.loadAccount(kp.publicKey())).balances) console.log(` ${b.asset_code ?? 'XLM'}: ${b.balance}`);\nconsole.log(`Secret key saved in ./${FILE}. Keep it out of git and never share it.`);";
+// 1-dic-2026: solo USDC (CETES salió con Tesorería). Corrido tal cual con nirium 0.21.0 y
+// @stellar/stellar-sdk 17.4.0 en una carpeta limpia: tx ee4bd785... (trustline + 20 XLM a USDC)
+// y, con la misma llave, dde03ce2... (solo el cambio). Las dos con successful: true en Horizon testnet.
+const SETUP_TESTNET = "import { Keypair, Horizon, TransactionBuilder, Operation, Asset, Networks } from '@stellar/stellar-sdk';\nimport { existsSync, readFileSync, writeFileSync } from 'node:fs';\n\nconst FILE = 'niriumtober-testnet.key';\nconst horizon = new Horizon.Server('https://horizon-testnet.stellar.org');\nconst USDC = new Asset('USDC', 'GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5'); // Circle\n\n// 1. A new testnet key, saved next to this script (run it again and it reuses the same key)\nif (!existsSync(FILE)) writeFileSync(FILE, Keypair.random().secret(), { mode: 0o600 });\nconst kp = Keypair.fromSecret(readFileSync(FILE, 'utf8').trim());\n\n// 2. Testnet XLM from Friendbot\nconst funded = await horizon.loadAccount(kp.publicKey()).then(() => true, () => false);\nif (!funded) await fetch(`https://friendbot.stellar.org?addr=${kp.publicKey()}`);\n\n// 3. USDC trustline, and 4. swap 20 XLM into USDC on the testnet DEX if there is a route\nconst account = await horizon.loadAccount(kp.publicKey());\nconst tx = new TransactionBuilder(account, { fee: '1000', networkPassphrase: Networks.TESTNET });\nconst hasTrust = account.balances.some((b) => b.asset_code === 'USDC' && b.asset_issuer === USDC.getIssuer());\nif (!hasTrust) tx.addOperation(Operation.changeTrust({ asset: USDC }));\nconst toAsset = (a) => (a.asset_type === 'native' ? Asset.native() : new Asset(a.asset_code, a.asset_issuer));\nconst [route] = (await horizon.strictSendPaths(Asset.native(), '20', [USDC]).call()).records;\nif (route) {\n tx.addOperation(Operation.pathPaymentStrictSend({\n sendAsset: Asset.native(), sendAmount: '20', destination: kp.publicKey(), destAsset: USDC,\n destMin: (Number(route.destination_amount) * 0.9).toFixed(7), path: route.path.map(toAsset),\n }));\n} else {\n console.log('No DEX route to USDC right now: ask for USDC at https://faucet.circle.com');\n}\nif (!hasTrust || route) {\n const built = tx.setTimeout(60).build();\n built.sign(kp);\n console.log('Transaction:', (await horizon.submitTransaction(built)).hash);\n}\n\n// 5. What you have now\nconsole.log('Public key:', kp.publicKey());\nfor (const b of (await horizon.loadAccount(kp.publicKey())).balances) console.log(` ${b.asset_code ?? 'XLM'}: ${b.balance}`);\nconsole.log(`Secret key saved in ./${FILE}. Keep it out of git and never share it.`);";
const FRIENDBOT_URL = "https://friendbot.stellar.org/?addr=";
const CIRCLE_FAUCET_URL = "https://faucet.circle.com";
const PUBKEY_RX = /^G[A-Z2-7]{55}$/;
const MPP_TESTNET = "import { Agent } from 'nirium';\n\nconst agent = new Agent({ baseUrl: 'https://nirium-agent.fly.dev' });\nagent.initMpp({ secretKey: process.env.STELLAR_SECRET, network: 'stellar:testnet', mode: 'pull' }); // needs testnet USDC\nconst res = await agent.mppFetch('https://nirium-agent.fly.dev/api/v1/mpp/signals'); // 0.02 testnet USDC\nconsole.log(res.status, res.headers.get('payment-receipt'));";
-const PAYOUTS_TESTNET = "import { Agent } from 'nirium';\nimport { Keypair, TransactionBuilder, Networks } from '@stellar/stellar-sdk';\n\nconst kp = Keypair.fromSecret(process.env.STELLAR_SECRET); // pays: needs testnet USDC\nconst agent = new Agent({ apiKey: process.env.NIRIUM_API_KEY, baseUrl: 'https://nirium-agent.fly.dev' }); // free key: nirium.xyz/keys\nconst run = await agent.createPayoutRun({ treasury: kp.publicKey(), acknowledgeTerms: true,\n recipients: [{ wallet: process.env.TO_1, amount: '0.5' }, { wallet: process.env.TO_2, amount: '0.5' }] }); // each needs a USDC trustline\nconst tx = TransactionBuilder.fromXDR(run.xdr, Networks.TESTNET); tx.sign(kp); // you sign, Nirium never does\nconst done = await agent.submitPayout(run.runId, tx.toXDR());\nconsole.log(done.txHash, done.cid);";
-const REPORTING_TESTNET = "import { Agent } from 'nirium';\n\nconst agent = new Agent({ baseUrl: 'https://nirium-agent.fly.dev' });\nconst summary = await agent.getReportingSummary({ network: 'testnet' }); // read-only, no key\nconsole.log('anchors:', summary.anchors.count, '| payments:', summary.payments.count, '| payouts:', summary.payroll.settledRuns);";
+const REPORTING_TESTNET = "import { Agent } from 'nirium';\n\nconst agent = new Agent({ baseUrl: 'https://nirium-agent.fly.dev' });\nconst summary = await agent.getReportingSummary({ network: 'testnet' }); // read-only, no key\nconsole.log('anchors:', summary.anchors.count, '| payments:', summary.payments.count);";
const AUDIT_MAINNET = `import { Agent } from 'nirium';
import { Keypair } from '@stellar/stellar-sdk';
@@ -165,20 +165,6 @@ const NODES: NodeRow[] = [
mainnet: "testnet_only",
note: ["Verified on testnet. Never tested on mainnet", "Verificado en testnet. Nunca probado en mainnet"],
},
- {
- name: "Payouts",
- endpoint: "POST /api/payroll/run",
- testnet: true,
- mainnet: "testnet_only",
- note: ["Testnet only for Niriumtober", "Solo testnet para Niriumtober"],
- },
- {
- name: "Treasury Rebalance",
- endpoint: "POST /api/treasury/rebalance/propose",
- testnet: true,
- mainnet: "testnet_only",
- note: ["Testnet only for Niriumtober", "Solo testnet para Niriumtober"],
- },
];
@@ -350,21 +336,6 @@ const ISSUES: Issue[] = [
"Un pago real al `/api/v1/mpp/signals` de testnet con su hash, más un test. La nota del README se actualiza en el mismo PR.",
],
},
- {
- number: 178,
- title: "Example: a Payouts run on testnet",
- area: "Payouts",
- paths: ["examples/", "packages/sdk-python/src/nirium/client.py"],
- status: "closed",
- desc: [
- "No example covers Payouts. Add one that builds a two-recipient run on testnet with `acknowledgeTerms`, signs it with a throwaway testnet key and submits it.",
- "Ningún ejemplo cubre Payouts. Agrega uno que arme una corrida de dos destinatarios en testnet con `acknowledgeTerms`, la firme con una llave desechable de testnet y la envíe.",
- ],
- done: [
- "Testnet tx hash in the PR. The example never asks for a mainnet key.",
- "Hash de la tx de testnet en el PR. El ejemplo nunca pide una llave de mainnet.",
- ],
- },
{
number: 179,
title: "Example: Reporting summary and CSV export",
@@ -411,21 +382,6 @@ const ISSUES: Issue[] = [
"`docs/research/aggregate-spending-caps.md` con al menos 3 diseños comparados, una política en pseudocódigo y los casos borde: reintentos, pagos simultáneos, un reinicio a mitad de la ventana.",
],
},
- {
- number: 182,
- title: "Research: a multi-asset DeFindex vault on testnet (USDC, XLM, CETES)",
- area: "Research · Treasury",
- paths: ["docs/research/"],
- status: "closed",
- desc: [
- "Can one DeFindex vault on testnet hold USDC, XLM and CETES at once? Find out, with sources.",
- "¿Una bóveda de DeFindex en testnet puede tener USDC, XLM y CETES a la vez? Averígualo, con fuentes.",
- ],
- done: [
- "`docs/research/defindex-multi-asset-testnet.md` with a table of testnet contract ids, each with a stellar.expert link or a read-only call, and a clear yes or no with what is missing.",
- "`docs/research/defindex-multi-asset-testnet.md` con una tabla de contract ids de testnet, cada uno con link a stellar.expert o una llamada de lectura, y un sí o no claro con lo que falta.",
- ],
- },
{
number: 183,
title: "Research: Audit Trail receipts vs W3C Verifiable Credentials and C2PA",
@@ -699,7 +655,7 @@ export default function NiriumtoberPage() {
const evidenceFields: [string, string][] = [
[lang("Project", "Proyecto"), lang("name and one line on what it does", "nombre y una línea de qué hace")],
[lang("Repo", "Repo"), lang("public URL where the integration lives. Optional for Builder, required for Mainnet Builder and Champion", "URL pública donde vive la integración. Opcional para Builder, obligatorio para Mainnet Builder y Champion")],
- [lang("Nodes used", "Nodos usados"), "Audit Trail, x402 Market, Payouts…"],
+ [lang("Nodes used", "Nodos usados"), "Audit Trail, x402 Market, Reporting…"],
[lang("Network", "Red"), "testnet / mainnet"],
[lang("CID(s) or tx hash(es)", "CID(s) o hash(es) de tx"), lang("one per line", "uno por línea")],
[lang("Public key", "Llave pública"), lang("the G... address that signed or paid", "la dirección G... que firmó o pagó")],
@@ -739,7 +695,7 @@ export default function NiriumtoberPage() {
// Sin versiones en el texto: se quedarían viejas. Las cifras vivas están en /stats.
const packages: { name: string; registry: "npm" | "PyPI" | "Skill"; href: string; install: string; what: string; note?: React.ReactNode; id?: string; chip?: string; links?: { label: string; href: string }[] }[] = [
- { name: "nirium", registry: "npm", href: "https://www.npmjs.com/package/nirium", install: INSTALL, what: lang("Add payments, receipts and payouts to your app or agent in TypeScript.", "Agrega pagos, recibos y payouts a tu app o agente en TypeScript.") },
+ { name: "nirium", registry: "npm", href: "https://www.npmjs.com/package/nirium", install: INSTALL, what: lang("Add payments and receipts to your app or agent in TypeScript.", "Agrega pagos y recibos a tu app o agente en TypeScript.") },
{ name: "nirium", registry: "PyPI", href: "https://pypi.org/project/nirium/", install: "pip install nirium", what: lang("The same, from Python.", "Lo mismo, desde Python.") },
{ name: "nirium-mcp", registry: "npm", href: "https://www.npmjs.com/package/nirium-mcp", install: "npx nirium-mcp", what: lang("Let Claude, Cursor or any MCP assistant use Nirium for you.", "Deja que Claude, Cursor o cualquier asistente con MCP use Nirium por ti."),
note: <>{lang("Set the environment variables from its ", "Configura las variables de entorno de su ")}README{lang(". The free tools work without them.", ". Las herramientas gratuitas funcionan sin ellas.")}> },
@@ -753,17 +709,12 @@ export default function NiriumtoberPage() {
// Solo nodos probados de punta a punta en testnet (21 y 22-oct-2026), cada
// uno con su CID o hash. Treasury entró tras el arreglo de /rebalance/propose (#45).
- const nodeCards: { name: string; what: string; nets: ("Testnet" | "Mainnet")[]; needs: string; points: string; code: string; run: string; label: string; keysLink?: boolean; tokens?: ("usdc" | "cetes")[]; notes?: string[] }[] = [
+ const nodeCards: { name: string; what: string; nets: ("Testnet" | "Mainnet")[]; needs: string; points: string; code: string; run: string; label: string; keysLink?: boolean; tokens?: "usdc"[]; notes?: string[] }[] = [
{ name: "Audit Trail", label: "node-audit", what: lang("Anchor a signed receipt of anything your agent did. Anyone can verify it.", "Ancla un recibo firmado de lo que hizo tu agente. Cualquiera lo puede verificar."), nets: ["Testnet", "Mainnet"], needs: lang("Free", "Gratis"), points: lang("Builder · +3 on mainnet", "Builder · +3 en mainnet"), code: AUDIT_TESTNET, run: "node receipt.mjs" },
{ name: "x402 Market", label: "node-x402", what: lang("Pay per request for market data, from your own key.", "Paga por consulta datos de mercado, desde tu propia llave."), nets: ["Testnet", "Mainnet"], needs: lang("Needs testnet USDC", "Pide USDC de testnet"), points: lang("Builder · +3 on mainnet", "Builder · +3 en mainnet"), code: X402_PAY_TESTNET, run: "STELLAR_SECRET=S... node pay.mjs", tokens: ["usdc"] },
- { name: "Payouts", label: "node-payouts", what: lang("Pay several people in one run. You sign it, Nirium never does.", "Paga a varias personas en una sola corrida. Tú firmas, Nirium nunca."), nets: ["Testnet"], needs: lang("Needs testnet USDC and a free API key", "Pide USDC de testnet y una API key gratis"), points: "Builder", code: PAYOUTS_TESTNET, run: "STELLAR_SECRET=S... NIRIUM_API_KEY=sk_... TO_1=G... TO_2=G... node payouts.mjs", keysLink: true, tokens: ["usdc"] },
{ name: "x402Serve", label: "node-x402serve", what: lang("Charge other people and agents for your own API.", "Cobra a otras personas y agentes por tu propia API."), nets: ["Testnet"], needs: lang("Needs testnet USDC and a free facilitator key", "Pide USDC de testnet y una llave gratuita de facilitador"), points: "Builder", code: X402_SERVE_TESTNET, run: `${X402_SERVE_INSTALL} && PAY_TO=G... FACILITATOR_KEY=... node serve.mjs`, tokens: ["usdc"] },
{ name: "MPP Charge", label: "node-mpp", what: lang("Pay per request with a USDC transfer signed inside the request.", "Paga por consulta con una transferencia de USDC firmada dentro de la petición."), nets: ["Testnet"], needs: lang("Needs testnet USDC. For now install nirium@0.19.8 @stellar/stellar-sdk@16: on nirium 0.20.0 the MPP client fails until @stellar/mpp supports stellar-sdk 17", "Pide USDC de testnet. Por ahora instala nirium@0.19.8 @stellar/stellar-sdk@16: en nirium 0.20.0 el cliente MPP falla hasta que @stellar/mpp soporte stellar-sdk 17"), points: "Builder", code: MPP_TESTNET, run: "STELLAR_SECRET=S... node mpp.mjs", tokens: ["usdc"] },
- { name: "NiriumVault", label: "node-niriumvault", what: lang("Create your own vault, deposit testnet CETES and read your balance. You sign everything.", "Crea tu propia bóveda, deposita CETES de testnet y lee tu saldo. Tú firmas todo."), nets: ["Testnet"], needs: lang("Testnet XLM and CETES", "XLM y CETES de testnet"), points: "Builder", code: VAULT_TESTNET, run: "node vault.mjs", tokens: ["cetes"],
- notes: [lang("Creating the vault costs 12.5 testnet XLM.", "Crear la bóveda cuesta 12.5 XLM de testnet."), lang("Testnet CETES from the DEX with Friendbot XLM, one transaction in the snippet.", "CETES de testnet desde el DEX con XLM de friendbot, una transacción en el snippet."), lang("Nirium's own contract, not externally audited.", "Contrato propio de Nirium, sin auditoría externa.")] },
- { name: "Treasury (DeFindex)", label: "node-treasury", what: lang("Deploy your vault, deposit and ask for a rebalance proposal. You sign everything with your two keys; Nirium holds no role in your vault.", "Despliega tu bóveda, deposita y pide una propuesta de rebalanceo. Tú firmas todo con tus dos llaves; Nirium no tiene ningún rol en tu bóveda."), nets: ["Testnet"], needs: lang("Testnet XLM, CETES and a free API key", "XLM y CETES de testnet y una API key gratis"), points: "Builder", code: TREASURY_TESTNET, run: "NIRIUM_API_KEY=sk_... node treasury.mjs", keysLink: true, tokens: ["cetes"],
- notes: [lang("Needs two keys of yours, Manager and RebalanceManager: the API rejects the same key for both.", "Necesita dos llaves tuyas, Manager y RebalanceManager: la API rechaza que sean la misma."), lang("The testnet CETES comes from the DEX, inside the snippet.", "El CETES de testnet sale del DEX, dentro del snippet.")] },
- { name: "Reporting", label: "node-reporting", what: lang("Read totals of anchors, payments and payouts.", "Lee los totales de anclajes, pagos y corridas."), nets: ["Testnet", "Mainnet"], needs: lang("Read-only", "Solo lectura"), points: lang("Read-only: no points on its own", "Solo lectura: no suma puntos por sí solo"), code: REPORTING_TESTNET, run: "node reporting.mjs" },
+ { name: "Reporting", label: "node-reporting", what: lang("Read totals of anchors and payments.", "Lee los totales de anclajes y pagos."), nets: ["Testnet", "Mainnet"], needs: lang("Read-only", "Solo lectura"), points: lang("Read-only: no points on its own", "Solo lectura: no suma puntos por sí solo"), code: REPORTING_TESTNET, run: "node reporting.mjs" },
];
const publishedIssues = [...FUN_ISSUES, ...ISSUES].filter((i) => i.number);
@@ -839,7 +790,7 @@ export default function NiriumtoberPage() {
-
{lang("17K+ package downloads on npm and PyPI as of 16 Nov 2026 · 2 SCF Instawards · Open source", "17K+ descargas de paquetes en npm y PyPI al 16 nov 2026 · 2 SCF Instawards · Open source")}
+
{lang("17K+ package downloads on npm and PyPI as of 16 Nov 2026 · Open source", "17K+ descargas de paquetes en npm y PyPI al 16 nov 2026 · Open source")}
{lang("No cash prizes. The Champion gets a hoodie.", "Sin premios en dinero. Champion se lleva una sudadera.")}
{lang("CETES has no faucet: it comes from the DEX, in the script.", "CETES no tiene faucet: sale del DEX, en el script.")}
{lang("Set up your account", "Prepara tu cuenta")}
- {lang("One run: it creates a key, funds it with Friendbot, adds the USDC and CETES trustlines and swaps 20 XLM into each on the testnet DEX. If the DEX has no USDC route, it adds the trustline and sends you to the Circle faucet.", "En una sola corrida: crea una llave, la fondea con Friendbot, agrega las trustlines de USDC y CETES y cambia 20 XLM por cada uno en el DEX de testnet. Si el DEX no tiene ruta a USDC, agrega la trustline y te manda al faucet de Circle.")}
+ {lang("One run: it creates a key, funds it with Friendbot, adds the USDC trustline and swaps 20 XLM into USDC on the testnet DEX. Run it again and it reuses the same key and swaps another 20 XLM. If the DEX has no USDC route, it adds the trustline and sends you to the Circle faucet.", "En una sola corrida: crea una llave, la fondea con Friendbot, agrega la trustline de USDC y cambia 20 XLM por USDC en el DEX de testnet. Si lo corres otra vez, usa la misma llave y cambia otros 20 XLM. Si el DEX no tiene ruta a USDC, agrega la trustline y te manda al faucet de Circle.")}
@@ -1221,7 +1171,7 @@ export default function NiriumtoberPage() {
@@ -1272,7 +1222,7 @@ export default function NiriumtoberPage() {
))}
{lang("API keys", "API keys")}
-
{lang("Some nodes (like Payouts) need a free API key. Get it in a minute.", "Algunos nodos (como Payouts) piden una API key gratis. La sacas en un minuto.")}
+
{lang("A free API key takes a minute. Anchoring and Reporting do not need one today.", "Una API key gratis se saca en un minuto. Anclar y Reporting hoy no la piden.")}
diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index 35e52c4b..4f669623 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -367,14 +367,13 @@ html[data-mobile-menu="open"] .nirium-chat {
display: none !important;
}
-/* 15-nov-2026 (option c): height of the fixed bars above the navbar (market ticker 2.25rem +
- network notice --banner-h). Same value as before by default, so desktop is unchanged.
+/* 15-nov-2026 (option c): height of the fixed bars above the navbar. Since 1-dec-2026 only the
+ network notice (--banner-h); the market ticker was removed with Treasury. Same value as before by default, so desktop is unchanged.
Below lg, once the page is scrolled (TopChromeAutoHide sets data-chrome="collapsed"), both
bars slide away and the navbar moves to the top. */
:root {
- --top-chrome: calc(2.25rem + var(--banner-h, 0px));
+ --top-chrome: var(--banner-h, 0px);
}
-.nirium-ticker,
.nirium-netbanner {
transition: transform 200ms ease;
}
@@ -382,10 +381,7 @@ html[data-mobile-menu="open"] .nirium-chat {
html[data-chrome="collapsed"] {
--top-chrome: 0px;
}
- html[data-chrome="collapsed"] .nirium-ticker {
- transform: translateY(-100%);
- }
html[data-chrome="collapsed"] .nirium-netbanner {
- transform: translateY(calc(-100% - 2.25rem));
+ transform: translateY(-100%);
}
}
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index 6d205a0f..c3c0f46f 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -16,11 +16,11 @@ const inconsolata = Inconsolata({ subsets: ["latin"], variable: "--font-inconsol
export const metadata: Metadata = {
metadataBase: new URL('https://nirium.xyz'),
title: {
- default: "Nirium | Payment, audit and execution rails on Stellar",
+ default: "Nirium | Money moves because of a document that can change",
template: "%s | Nirium"
},
- description: "Non-custodial payment, audit and execution rails for apps, backends and AI agents on Stellar. x402 per-request billing, verifiable receipts on IPFS and reporting. Your keys, your funds. Not financial advice.",
- keywords: ["Stellar", "x402", "MPP", "AI agents", "agent economy", "machine payments", "Soroban", "Nirium", "audit trail", "non-custodial", "Stellar mainnet", "micropayments"],
+ description: "Nirium records the document money moved on, signed by whoever declares it, so anyone can check which version it was. Audit Trail, Reporting and x402. Live on Stellar mainnet, first versions on Solana, Avalanche, Base and Arbitrum. Non-custodial. Not financial advice.",
+ keywords: ["Stellar", "x402", "MPP", "AI agents", "agent economy", "machine payments", "Soroban", "Nirium", "audit trail", "non-custodial", "Stellar mainnet", "micropayments", "Solana", "Avalanche", "Base", "Arbitrum", "verifiable receipts"],
authors: [{ name: "Nirium Core" }],
creator: "Nirium",
publisher: "Nirium Protocol",
@@ -44,8 +44,8 @@ export const metadata: Metadata = {
apple: "/brand/apple-icon.png",
},
openGraph: {
- title: "Nirium | Payment, audit and execution rails on Stellar",
- description: "Non-custodial payment, audit and execution rails for apps, backends and AI agents on Stellar. x402 per-request billing, verifiable receipts on IPFS and reporting. Your keys, your funds. Not financial advice.",
+ title: "Nirium | Money moves because of a document that can change",
+ description: "Nirium records the document money moved on, signed by whoever declares it, so anyone can check which version it was. Audit Trail, Reporting and x402. Live on Stellar mainnet, first versions on Solana, Avalanche, Base and Arbitrum. Non-custodial. Not financial advice.",
url: "https://nirium.xyz",
siteName: "Nirium",
images: [
@@ -61,14 +61,13 @@ export const metadata: Metadata = {
},
twitter: {
card: "summary_large_image",
- title: "Nirium | Payment, audit and execution rails on Stellar",
- description: "Non-custodial payment, audit and execution rails for apps, backends and AI agents on Stellar. x402 per-request billing, verifiable receipts on IPFS and reporting. Your keys, your funds. Not financial advice.",
+ title: "Nirium | Money moves because of a document that can change",
+ description: "Nirium records the document money moved on, signed by whoever declares it, so anyone can check which version it was. Audit Trail, Reporting and x402. Live on Stellar mainnet, first versions on Solana, Avalanche, Base and Arbitrum. Non-custodial. Not financial advice.",
creator: "@Niriumstellar",
images: [HOME_OG_IMAGE],
},
};
-import MarketTicker from "@/components/dashboard/MarketTicker";
import TestnetBanner from "@/components/layout/TestnetBanner";
import ChatBot from "@/components/ui/ChatBot";
import TopChromeAutoHide from "@/components/layout/TopChromeAutoHide";
@@ -86,7 +85,7 @@ export default function RootLayout({
"applicationCategory": "FinanceApplication",
"operatingSystem": "Web",
"url": "https://nirium.xyz",
- "description": "Non-custodial payment, audit and execution rails for apps, backends and AI agents on Stellar. x402 per-request billing, verifiable receipts on IPFS and reporting. Your keys, your funds. Not financial advice.",
+ "description": "Nirium records the document money moved on, signed by whoever declares it, so anyone can check which version it was. Audit Trail, Reporting and x402. Live on Stellar mainnet, first versions on Solana, Avalanche, Base and Arbitrum. Non-custodial. Not financial advice.",
"creator": {
"@type": "Organization",
"name": "Nirium Core"
@@ -123,7 +122,6 @@ export default function RootLayout({
-
{/* Background Layers */}
diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx
index 0fc6ec87..aca838ef 100644
--- a/apps/web/app/page.tsx
+++ b/apps/web/app/page.tsx
@@ -23,6 +23,7 @@ import { useLanguage } from "@/context/LanguageContext";
import LegalDisclaimer from "@/components/legal/LegalDisclaimer";
import NiriumtoberBanner from "@/components/home/NiriumtoberBanner";
import SocialProof from "@/components/home/SocialProof";
+import HeroSeal from "@/components/home/HeroSeal";
import { isNiriumtoberLive, niriumtoberHref } from "@/lib/niriumtober";
import { niriumtoberHit, trackFunnel } from "@/lib/attribution";
import { MAINNET_API_URL, PROOF_TX_HASH, PROOF_TX_URL } from "@/lib/constants";
@@ -105,6 +106,68 @@ const TIA_ANCHOR_URL = `/verify?cid=${TIA_ANCHOR_CID}`;
const REFUSED_ANCHOR_CID = 'QmS5q2NvZ2K2StLB3KCWRdkBtnZ5rHAJrQAez2PnKAPwTk';
const REFUSED_ANCHOR_URL = `/verify?cid=${REFUSED_ANCHOR_CID}`;
+// "¿A quién le sirve?" (27-nov-2026): one card per real case, each with a receipt anyone can open.
+// Every CID here was opened on /verify before writing this. Keep the labels honest: who made it,
+// testnet or mainnet, ours or a partner's.
+const USE_CASES = [
+ {
+ icon: Lock,
+ who: { en: 'Releasing an escrow', es: 'Quien libera un escrow' },
+ without: {
+ en: 'The approver releases funds on a link to the delivery, and that link can change after the money moved.',
+ es: 'Quien aprueba libera el dinero viendo un link a la entrega, y ese link puede cambiar después de que el dinero se movió.',
+ },
+ withNirium: {
+ en: 'The provider signs the exact delivery file; the approver releases only if the file received is that one.',
+ es: 'El proveedor firma el archivo exacto que entregó; quien aprueba solo libera si el archivo que recibió es ese.',
+ },
+ source: { en: 'Our testnet demo with Trustless Work’s own escrow contracts, 25 Nov 2026', es: 'Demo nuestra en testnet con los contratos de escrow de Trustless Work, 25 nov 2026' },
+ cid: 'QmT8BaJAp7xwoxPDdvEmxj3V2JzHaW6HV9rWnLm1B1J4Cd',
+ },
+ {
+ icon: ShieldCheck,
+ who: { en: 'An AI agent that pays on its own', es: 'Un agente de IA que paga solo' },
+ without: {
+ en: 'When its policy stops a payment, nothing reaches the chain, so there is no trace it was ever attempted.',
+ es: 'Cuando su política frena un pago, nada llega a la cadena, así que no queda rastro de que se intentó.',
+ },
+ withNirium: {
+ en: 'The refusal is recorded and signed: what it would have paid, to whom, and why it was blocked.',
+ es: 'El rechazo queda registrado y firmado: cuánto habría pagado, a quién y por qué se bloqueó.',
+ },
+ source: { en: 'AgentLedger’s own receipt, mainnet, 18 Nov 2026 (its founder joined Nirium in Oct 2026)', es: 'Recibo propio de AgentLedger, mainnet, 18 nov 2026 (su fundador se unió a Nirium en oct 2026)' },
+ cid: 'QmS5q2NvZ2K2StLB3KCWRdkBtnZ5rHAJrQAez2PnKAPwTk',
+ },
+ {
+ icon: FileCheck,
+ who: { en: 'A supplier that sends a quote', es: 'Un proveedor que manda una cotización' },
+ without: {
+ en: 'The quote lives in a PDF or a chat, and nobody can show later which version the payment followed.',
+ es: 'La cotización vive en un PDF o en un chat, y después nadie puede mostrar qué versión siguió el pago.',
+ },
+ withNirium: {
+ en: 'The quote is signed with the supplier’s own key, and anyone can check it was not changed.',
+ es: 'La cotización queda firmada con la llave del propio proveedor, y cualquiera puede comprobar que no cambió.',
+ },
+ source: { en: 'TIA’s own quote, signed with its key, mainnet', es: 'Cotización propia de TIA, firmada con su llave, mainnet' },
+ cid: 'QmVWZM1i9qusiTfNAT9QdSFYJNEwQUXtnWuSkrCqRAnGEu',
+ },
+ {
+ icon: Send,
+ who: { en: 'A shipment with several hands', es: 'Un envío que pasa por varias manos' },
+ without: {
+ en: 'Each step is written down by someone different, and a missing or out-of-order step is hard to spot.',
+ es: 'Cada paso lo apunta alguien distinto, y un paso que falta o va fuera de orden es difícil de ver.',
+ },
+ withNirium: {
+ en: 'Each party signs its own step with its own key, so a gap shows.',
+ es: 'Cada parte firma su propio paso con su propia llave, así que un hueco se nota.',
+ },
+ source: { en: 'Testnet demo by an outside contributor, the last of four signed steps', es: 'Demo en testnet de un contribuidor externo, el último de cuatro pasos firmados' },
+ cid: 'QmRX7SjLBbsPHnGVR3vrxrmi3MBdAeKa4b19KEWtBy4VMR',
+ },
+];
+
function CodeBlock({ code, filename, copyLabel, copiedLabel }: { code: string; filename: string; copyLabel: string; copiedLabel: string }) {
const [copied, setCopied] = useState(false);
return (
@@ -247,7 +310,8 @@ export default function Home() {
-
+
+
- {lang('Audit Trail + x402 on Stellar · testnet + mainnet', 'Audit Trail + x402 en Stellar · testnet + mainnet')}
+ {lang('Audit Trail · Reporting · x402', 'Audit Trail · Reporting · x402')}
{language === 'es' ? (
- <>Demuestra lo que la cadena no muestra.>
+ <>El dinero se mueve por un documento que puede cambiar.>
) : (
- <>Prove what the chain doesn't show.>
+ <>Money moves because of a document that can change.>
)}
+ {/* 27-nov-2026: dicho tal cual. Stellar tiene el producto completo y los socios; Solana y
+ Avalanche tienen días y, por ahora, solo pruebas del equipo (ver /chains). */}
+
+ {lang('Live on Stellar mainnet. ', 'En vivo en Stellar mainnet. ')}
+
+ {lang('First versions on Solana, Avalanche, Base and Arbitrum.', 'Primeras versiones en Solana, Avalanche, Base y Arbitrum.')}
+
+
+
{lang(
- 'The ledger already proves who paid, how much and when. Audit Trail records what it can\'t: what each payment was for, the payments your policy refused and never signed, off-chain records, and who stands behind them. Payment, audit and execution rails for apps, backends and AI agents. Non-custodial: your keys, your funds.',
- 'El ledger ya prueba quién pagó, cuánto y cuándo. Audit Trail registra lo que falta: para qué fue cada pago, los pagos que tu política rechazó y nunca firmó, los registros fuera de la cadena y quién responde por ellos. Rieles de pago, auditoría y ejecución para apps, backends y agentes de IA. No custodial: tus llaves, tus fondos.')}
+ 'An approved delivery releases an escrow, an accepted quote sets a payment, an agent\'s policy allows or blocks a spend. The payment stays on the ledger; the document is a link or a file that can change later. Nirium records that document, signed by whoever declares it, so anyone can check which version the money moved on. Non-custodial: your keys, your funds.',
+ 'Una entrega aprobada libera un escrow, una cotización aceptada fija un pago, la política de un agente permite o bloquea un gasto. El pago queda en el ledger; el documento es un link o un archivo que puede cambiar después. Nirium registra ese documento, firmado por quien lo declara, para que cualquiera compruebe con qué versión se movió el dinero. No custodial: tus llaves, tus fondos.')}
{ trackFunnel("cta_start", { source: "home_hero" }); niriumtoberHit("cta_home"); }}>
@@ -305,15 +378,104 @@ export default function Home() {
+ {/* 1-dic-2026: "the seal", the N joining a document to its receipt (components/home/HeroSeal.tsx). */}
+
+
+
+
+
+
+
+ {/* ¿A QUIÉN LE SIRVE? - casos reales, sin código (27-nov-2026) */}
+
+
+
{lang('Who it is for', '¿A quién le sirve?')}
+
+ {lang(
+ 'Four cases where money moved, or was stopped, because of a document. Each one has a receipt you can open and check yourself.',
+ 'Cuatro casos donde el dinero se movió, o se frenó, por un documento. Cada uno tiene un recibo que puedes abrir y comprobar tú.')}
+
+
+ {USE_CASES.map((u) => (
+
+
+
+
{lang(u.who.en, u.who.es)}
+
+
{lang('Without a receipt: ', 'Sin recibo: ')}{lang(u.without.en, u.without.es)}
+ {lang(
+ 'A receipt shows a record has not changed since it was anchored. It does not prove that what it says is true.',
+ 'Un recibo muestra que un registro no cambió desde que se ancló. No prueba que lo que dice sea verdad.')}
+
+
{/* UN PAGO, DE PUNTA A PUNTA - scrollytelling */}
+ {/* LOS TRES PRODUCTOS - en vivo en mainnet (27-nov-2026) */}
+
+
+
{lang('Three products, live on mainnet', 'Tres productos, en vivo en mainnet')}
+
+ {[
+ { icon: FileCheck, name: 'Audit Trail', href: '/verify',
+ en: 'Records the document behind a payment, signed by whoever declares it: the quote, the terms, the delivery, the decision. Only a hash has to be public.',
+ es: 'Registra el documento detrás de un pago, firmado por quien lo declara: la cotización, los términos, la entrega, la decisión. Solo el hash tiene que ser público.',
+ cta: { en: 'Verify a receipt', es: 'Verifica un recibo' } },
+ { icon: BarChart3, name: 'Reporting', href: '/analytics',
+ en: 'One summary of what was paid and what was recorded: payments received, receipts anchored and how many distinct signers, per network.',
+ es: 'Un resumen de lo que se pagó y lo que se registró: pagos recibidos, recibos anclados y cuántos firmantes distintos, por red.',
+ cta: { en: 'See the report', es: 'Ver el reporte' } },
+ { icon: Zap, name: 'x402', href: '#charge',
+ en: 'Charge or pay per request, with no accounts or subscriptions. Your own policy decides before anything is signed. On mainnet, only Nirium’s own endpoint today; for your API, testnet.',
+ es: 'Cobra o paga por consulta, sin cuentas ni suscripciones. Tu propia política decide antes de que se firme nada. En mainnet, hoy solo el endpoint propio de Nirium; para tu API, testnet.',
+ cta: { en: 'How it works', es: 'Cómo funciona' } },
+ ].map((p) => (
+
+
+
+
+
{/* LOS TRES VERBOS - un bloque por verbo, cada uno con código real, estado honesto y prueba */}
+
+
{lang('For developers', 'Para desarrolladores')}
+
{lang('The code, and what has run', 'El código, y lo que ya corrió')}
+
+
{/* Verbo 3 - Demuestra lo que la cadena no muestra */}
@@ -521,8 +683,8 @@ export default function Home() {
{lang('Legal notice', 'Aviso legal')} -{' '}
{lang(
- 'Nirium is B2B software-only infrastructure and never custodies funds; financial services (SPEI onramp, CETES custody) are operated by independent third parties, under their own terms.',
- 'Nirium es infraestructura de software B2B y nunca custodia fondos; los servicios financieros (onramp SPEI, custodia de CETES) los operan terceros independientes, bajo sus propios términos.')}
+ 'Nirium is B2B software-only infrastructure and never custodies funds.',
+ 'Nirium es infraestructura de software B2B y nunca custodia fondos.')}
{' '}
{lang('Read full legal notice →', 'Ver aviso legal completo →')}
@@ -535,7 +697,7 @@ export default function Home() {
- {lang('Set the policy, charge per call, prove what the chain doesn\'t show.', 'Define tu política, cobra por llamada, demuestra lo que la cadena no muestra.')}
+ {lang('Record the document, charge per request, keep the report.', 'Registra el documento, cobra por consulta, ten el reporte.')}
{lang('Start on testnet in five minutes. Nirium\'s own endpoint answers 402 on mainnet; third-party mainnet use is not something we promote until we have a written legal opinion.', 'Empieza en testnet en cinco minutos. El endpoint propio de Nirium responde 402 en mainnet; el uso en mainnet por terceros no lo promovemos hasta tener una opinión legal por escrito.')}
@@ -560,6 +722,15 @@ export default function Home() {
+
+ {/* OTRAS REDES - una línea; el detalle vive en /chains */}
+
+
+ {lang('The same receipts also run on Solana, Avalanche, Base and Arbitrum. ', 'Los mismos recibos también corren en Solana, Avalanche, Base y Arbitrum. ')}
+ {lang('What works on each chain', 'Qué funciona en cada red')}
+
+
+
{/* BUILT ON OPEN STANDARDS */}
@@ -570,16 +741,15 @@ export default function Home() {
MPP (testnet, nirium 0.19.8)•
{/* LCP salía aquí como "estándar abierto". Es la capa propia de Nirium,
- apagada mientras dura la revisión legal: no va en esta fila. */}
+ apagada y pendiente de una opinión legal por escrito: no va en esta fila. */}
Apache 2.0•
- Stellar Mainnet
- +
- Testnet
+ Stellar
+ •
+ Solana
+ •
+ Avalanche
-
- {lang('All rate data shown is protocol reference information only - not a return projection or guarantee.', 'Toda tasa mostrada es información de referencia del protocolo - no una proyección ni garantía de retorno.')}
-
diff --git a/apps/web/app/sitemap.ts b/apps/web/app/sitemap.ts
index 91366a8b..d27378c1 100644
--- a/apps/web/app/sitemap.ts
+++ b/apps/web/app/sitemap.ts
@@ -17,6 +17,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
'/dashboard',
'/docs',
'/verify',
+ '/chains',
'/ecosystem',
'/stats',
'/nirium-play',
@@ -24,8 +25,6 @@ export default function sitemap(): MetadataRoute.Sitemap {
'/analytics',
'/blog/audit-trail-verify-it-yourself',
'/blog/bbva-open-deal-room',
- '/blog/codigo-402-agentes-que-pagan',
- '/blog/treasury-node-verify-it-yourself',
'/blog/x402-outage-verify-it-yourself',
'/workshop-audit-trail-recap',
'/privacy',
@@ -38,13 +37,8 @@ export default function sitemap(): MetadataRoute.Sitemap {
'/developers',
'/disclaimers',
'/keys',
- '/payouts',
'/pricing',
- '/ramp',
'/security',
- '/treasury',
- '/treasury/builder',
- '/treasury/vault',
].map((route) => {
const changeFrequency: "daily" | "weekly" = route === '' || route === '/dashboard' || route === '/docs' ? 'daily' : 'weekly';
return {
diff --git a/apps/web/components/analytics/NodeActivity.tsx b/apps/web/components/analytics/NodeActivity.tsx
index 239895cd..af24d385 100644
--- a/apps/web/components/analytics/NodeActivity.tsx
+++ b/apps/web/components/analytics/NodeActivity.tsx
@@ -14,7 +14,6 @@
import { useEffect, useState } from "react";
import { ExternalLink, Loader2 } from "lucide-react";
import { useNetwork } from "@/context/NetworkContext";
-import { vaultGetVaultCount, CONTRACT_IDS } from "@/lib/sorobanContracts";
type Net = "mainnet" | "testnet";
type Summary = {
@@ -107,11 +106,6 @@ export default function NodeActivity({ language, network: fixed, breakdownBelow
);
} else {
work.push(readSummary());
- work.push(
- vaultGetVaultCount()
- .then((n) => { if (!cancelled) setVaults(n); })
- .catch(() => { if (!cancelled) setVaultsFailed(true); })
- );
}
Promise.allSettled(work).then(() => { if (!cancelled) setLoading(false); });
return () => { cancelled = true; };
@@ -164,8 +158,8 @@ export default function NodeActivity({ language, network: fixed, breakdownBelow
`Read live from public sources, the same data as /stats. Includes our own testing; the breakdown by payer is ${breakdownBelow ? "just below" : "on /stats"}. Switch to TEST in the sidebar to see testnet.`,
`Leído en vivo de fuentes públicas, el mismo dato que /stats. Incluye nuestras pruebas; el desglose por pagador está ${breakdownBelow ? "justo abajo" : "en /stats"}. Cambia a TEST en el menú para ver testnet.`)
: L(
- "Testnet, no real value. Payments, receipts and payout runs come from the public reporting API; vaults are read from the verified contract. Mostly our own tests and workshops." + (fixed ? "" : " Switch to MAIN to see mainnet."),
- "Testnet, sin valor real. Pagos, recibos y lotes vienen de la API pública de reporting; las bóvedas se leen del contrato verificado. Casi todo son pruebas nuestras y de talleres." + (fixed ? "" : " Cambia a MAIN para ver mainnet."))}
+ "Testnet, no real value. Payments and receipts come from the public reporting API. Mostly our own tests and workshops." + (fixed ? "" : " Switch to MAIN to see mainnet."),
+ "Testnet, sin valor real. Pagos y recibos vienen de la API pública de reporting. Casi todo son pruebas nuestras y de talleres." + (fixed ? "" : " Cambia a MAIN para ver mainnet."))}
{loading && (
);
diff --git a/apps/web/components/analytics/ReceiptsSettlements.tsx b/apps/web/components/analytics/ReceiptsSettlements.tsx
index 4d6cae52..542c418a 100755
--- a/apps/web/components/analytics/ReceiptsSettlements.tsx
+++ b/apps/web/components/analytics/ReceiptsSettlements.tsx
@@ -1,7 +1,7 @@
"use client";
/* Recibos, cobros y reporting (16-nov-2026). Va arriba en /dashboard y /analytics:
- * el producto que se pide en SCF #46 son los recibos, y antes estas páginas
+ * el producto principal son los recibos, y antes estas páginas
* eran casi solo Treasury.
*
* Mismas fuentes que NodeActivity, sin backend nuevo:
@@ -219,10 +219,13 @@ export default function ReceiptsSettlements({ language, children }: { language:
{L(
- "Public, read-only summaries of payments, receipts and payout runs. The numbers on this page come from them, and anyone can query the same endpoints.",
- "Resúmenes públicos, de solo lectura, de pagos, recibos y lotes de pago. Los números de esta página salen de ahí, y cualquiera puede consultar los mismos endpoints.")}
+ "Public, read-only summaries of payments and receipts. The numbers on this page come from them, and anyone can query the same endpoints.",
+ "Resúmenes públicos, de solo lectura, de pagos y recibos. Los números de esta página salen de ahí, y cualquiera puede consultar los mismos endpoints.")}
+ {L("Download payments · CSV · mainnet", "Descargar pagos · CSV · mainnet")}
+ {L("Download receipts · CSV · mainnet", "Descargar recibos · CSV · mainnet")}
+ {L("The same as JSON", "Lo mismo en JSON")}{L("Summary API · mainnet", "API de resumen · mainnet")}{L("Summary API · testnet", "API de resumen · testnet")}{L("Full breakdown on /stats", "Desglose completo en /stats")}
diff --git a/apps/web/components/dashboard/MarketTicker.tsx b/apps/web/components/dashboard/MarketTicker.tsx
deleted file mode 100644
index 5f47704a..00000000
--- a/apps/web/components/dashboard/MarketTicker.tsx
+++ /dev/null
@@ -1,255 +0,0 @@
-"use client";
-
-import React, { useEffect, useState, useRef } from 'react';
-import { motion } from 'framer-motion';
-
-// 19-nov-2026: el ticker muestra mercado (precio XLM, spread del SDEX) y el único mercado real es
-// mainnet. Leía NEXT_PUBLIC_AGENT_API_URL (el agente de testnet), cuyo libro daba un spread fijo de
-// 150.5 bps contra ~11 bps de mainnet. Misma regla que app/api/market/route.ts (12-nov).
-const API_URL = process.env.NEXT_PUBLIC_MARKET_AGENT_URL || 'https://nirium-agent-mainnet.fly.dev';
-const POLL_INTERVAL = 4_000;
-
-interface TickerItem {
- label: string;
- value: string;
- change: string;
- trend: 'up' | 'down' | 'neutral';
-}
-
-import { useLanguage } from '@/context/LanguageContext';
-
-// "07:23 UTC" a partir del timestamp que manda el agente con cada lectura.
-function asOfLabel(timestamp: string | null | undefined, t: any): string | null {
- if (!timestamp) return null;
- const d = new Date(timestamp);
- if (Number.isNaN(d.getTime())) return null;
- const hh = String(d.getUTCHours()).padStart(2, '0');
- const mm = String(d.getUTCMinutes()).padStart(2, '0');
- return `${t.common.tickers.as_of} ${hh}:${mm} UTC`;
-}
-
-function buildTickers(market: any, prev: any, t: any, timestamp?: string | null): TickerItem[] {
- const fmt = (n: number | null, decimals = 4) =>
- n != null ? n.toFixed(decimals) : '-';
-
- const trend = (curr: number | null, old: number | null): 'up' | 'down' | 'neutral' => {
- if (curr == null || old == null) return 'neutral';
- const diff = curr - old;
- if (Math.abs(diff) < 0.000001) return 'neutral';
- return diff > 0 ? 'up' : 'down';
- };
-
- const xlm = market?.xlmPrice ?? null;
- const prevXlm = prev?.xlmPrice ?? null;
- const spread = market?.sdexSpread ?? null;
- const prevSpread = prev?.sdexSpread ?? null;
- const baseFee = market?.baseFee ?? null;
- const blendApy = market?.blendSupplyApy ?? null;
- const prevBlend = prev?.blendSupplyApy ?? null;
- // Sin `?? 5.57`: ese default hacía que la tasa apareciera aunque la fuente
- // no hubiera respondido nunca. La tasa se muestra cuando el agente la
- // manda, y si no, em-dash.
- const cetesApy = market?.cetesRate ?? market?.cetesApy ?? null;
-
- // Sin dato no se inventa uno. Los fallbacks anteriores ('$0.1732', '5.57%',
- // '0.81bps', '+0.01%') hacían que el ticker siguiera mostrando cifras
- // creíbles cuando el agente no respondía - o sea, precisamente cuando el
- // usuario más necesita saber que no hay dato. Ahora dice em-dash.
- // La variación se calculaba contra la lectura de hace 4 s. El agente
- // actualiza el precio con menos frecuencia, así que casi siempre salía
- // "+0.000%": un número que parece dato pero solo dice "no pasaron 4 s
- // de mercado". Ahora la variación sale solo cuando el precio de verdad se
- // movió; si no, se muestra la hora de la última lectura del agente.
- const xlmMove = xlm != null && prevXlm != null && prevXlm !== 0
- ? (xlm - prevXlm) / prevXlm * 100
- : null;
- const xlmMoved = xlmMove != null && Math.abs(xlmMove) >= 0.001;
- const asOf = asOfLabel(timestamp, t);
-
- const items: TickerItem[] = [
- {
- label: "XLM/USDC",
- value: xlm != null ? `$${fmt(xlm)}` : '-',
- change: xlmMoved
- ? `${xlmMove! >= 0 ? '+' : ''}${xlmMove!.toFixed(3)}%`
- : (xlm != null && asOf ? asOf : '-'),
- trend: xlmMoved ? trend(xlm, prevXlm) : 'neutral',
- },
- {
- // La tasa está FIJA en 5.57 (stellarProvider.fetchEtherfuseApy la
- // devuelve constante, verificada contra Etherfuse en jun-2026), así
- // que no tiene variación que reportar. El código anterior forzaba
- // `trend` a 'up' cuando el cálculo daba 'neutral' - o sea, pintaba
- // flecha verde de subida sobre un número que nunca se mueve. En un
- // indicador de tasa eso no es un detalle de estilo.
- label: "🇲🇽 CETES",
- value: cetesApy != null && cetesApy > 0 ? `${cetesApy.toFixed(2)}%` : '-',
- change: t.common.tickers.cetes_fixed,
- trend: 'neutral',
- },
- {
- // Consulta real el order book de Horizon (XLM/USDC) - no es un
- // stub. El - es honesto: testnet no tiene liquidez real y el
- // proveedor descarta spreads sin sentido (>500bps) a propósito.
- // Se usa como contexto de mercado para el LLM, no para ejecutar
- // la conversión a CETES (esa corre off-chain vía Etherfuse).
- label: t.common.tickers.sdex_spread,
- value: spread != null ? `${spread.toFixed(2)}bps` : '-',
- change: prevSpread != null && spread != null
- ? `${spread >= prevSpread ? '+' : ''}${(spread - prevSpread).toFixed(2)}bps`
- : 'XLM/USDC book · thin liquidity',
- trend: spread != null ? trend(spread, prevSpread) : 'neutral',
- },
- {
- // "LCP v1.0" leía como capa activa. LCP está APAGADO
- // (LCP_ENABLED !== 'true') esperando revisión legal de los términos
- // que referencia, y el resto del sitio lo dice así. Un badge de
- // versión junto a la palabra COMPLIANCE es justo lo que alguien lee
- // como "esto ya cumple".
- // "LCP · in legal review" no le decía nada a quien no conoce el
- // proyecto. Lo que sí importa en esta barra es la postura: solo
- // software, sin custodia (igual que el aviso legal del footer).
- label: "COMPLIANCE",
- value: t.common.tickers.non_financial,
- change: t.common.tickers.software_only,
- trend: 'neutral',
- }
- ];
-
- // Sin spread no se muestra la casilla: un guion suelto en una barra de
- // datos se lee como algo roto, no como "no hay liquidez".
- return items.filter((item) => !(item.label === t.common.tickers.sdex_spread && spread == null));
-}
-
-const MarketTicker = () => {
- const { t } = useLanguage();
- const [tickers, setTickers] = useState([]);
- const prevMarket = useRef(null);
-
- // Estado inicial, antes de que llegue el primer dato. El comentario anterior
- // decía, literalmente, "placeholder tickers localized with real-looking data"
- // - y eso era exactamente el problema: precios, variaciones y flechas de
- // tendencia inventadas que se ven idénticas a las reales durante el primer
- // segundo de cada carga, y para siempre si el agente no responde.
- useEffect(() => {
- setTickers([
- { label: "XLM/USDC", value: '-', change: '-', trend: 'neutral' },
- { label: "🇲🇽 CETES", value: '-', change: t.common.tickers.cetes_fixed, trend: 'neutral' },
- { label: "COMPLIANCE", value: t.common.tickers.non_financial, change: t.common.tickers.software_only, trend: 'neutral' },
- ]);
- }, [t]);
-
- useEffect(() => {
- const fetchTickers = async () => {
- try {
- const res = await fetch(`${API_URL}/api/tickers`, {
- signal: AbortSignal.timeout(5000),
- });
-
- let data;
- if (res.ok) {
- data = await res.json();
- }
-
- // SIN CAPA DE SIMULACIÓN.
- //
- // Aquí vivía algo llamado "Institutional Simulation Layer" que,
- // cuando el API no respondía, generaba precios con Math.random()
- // partiendo de una base fija. Su propio comentario decía para qué:
- // "Enhanced volatility (0.1% range) to ensure colors are always
- // active" - o sea, existía para que las flechas parpadearan.
- //
- // Fabricaba también movimiento de la TASA DE CETES
- // (cetesApy + random), que es el número más sensible del sitio:
- // una tasa de referencia de deuda gubernamental, inventada con un
- // generador aleatorio y pintada como dato en vivo en la barra
- // superior de todas las páginas. El bloque catch hacía lo mismo,
- // comentado como "keep it alive".
- //
- // Un ticker que sigue moviéndose cuando la fuente está caída no
- // es una degradación elegante: es dato falso presentado como real,
- // y en una barra rotulada COMPLIANCE es lo peor que puede haber.
- // Si no hay dato, no hay dato.
- if (!data?.market || data.market.xlmPrice === null) {
- setTickers(buildTickers(null, null, t));
- return;
- }
-
- const built = buildTickers(data.market, prevMarket.current, t, data.timestamp);
- prevMarket.current = data.market;
- setTickers(built);
- } catch {
- // La fuente no respondió. Se dice, no se simula.
- setTickers(buildTickers(null, null, t));
- }
- };
-
- fetchTickers();
- const interval = setInterval(fetchTickers, POLL_INTERVAL);
- return () => clearInterval(interval);
- }, [t]);
-
- return (
-
- {/* Etiqueta de la barra. Decía "LIVE" con un punto pulsante, pero
- la barra mezcla datos en vivo (XLM) con una referencia fija
- (CETES, jun-2026). Ahora dice "MARKET" y el punto no pulsa. */}
-
- );
-};
-
-export default MarketTicker;
diff --git a/apps/web/components/home/BuiltWithEcosystem.tsx b/apps/web/components/home/BuiltWithEcosystem.tsx
index 9af508b2..55e9d912 100644
--- a/apps/web/components/home/BuiltWithEcosystem.tsx
+++ b/apps/web/components/home/BuiltWithEcosystem.tsx
@@ -45,11 +45,11 @@ const BUILT_WITH_GROUPS: BuiltWithGroup[] = [
name: 'Pollar',
logo: '/partners/pollar.png',
tone: 'experimental',
- badge: { en: 'v0.6.6, testnet proven', es: 'v0.6.6, probado en testnet' },
+ badge: { en: 'v0.7.0, testnet proven', es: 'v0.7.0, probado en testnet' },
tags: ['Wallets', 'Social login', 'x402'],
description: {
- en: "Social-login wallets (email/Google), no seed phrase. nirium-pollar-adapter v0.6.6 translates Pollar's signature into a SEP-43 auth entry to pay via x402, and can auto-anchor an Audit Trail receipt whenever a Pollar transaction settles. Checked live on testnet (2026-11-01): a real payment produced a verifiable receipt, with its transaction hash and IPFS CID both published. Before that, on 2026-08-30, Pollar's CTO paid 0.05 USDC via x402 from his own Pollar wallet through the testnet demo (tx 2ca4a89a...), and confirmed it in writing. No evidence it runs in Pollar's own production today. A letter of intent was signed on 2026-10-08: a statement of intent, not a pilot, and no paid use.",
- es: 'Wallets con login social (correo/Google), sin frase semilla. nirium-pollar-adapter v0.6.6 traduce su firma a un auth entry SEP-43 para pagar por x402, y puede anclar automáticamente un recibo de Audit Trail cada vez que una transacción de Pollar se liquida. Verificado en vivo en testnet (1-nov-2026): un pago real produjo un recibo verificable, con su hash de transacción y CID de IPFS publicados. Antes, el 30-ago-2026, el CTO de Pollar pagó 0.05 USDC por x402 desde su propia wallet de Pollar con el demo de testnet (tx 2ca4a89a...), y lo confirmó por escrito. Sin evidencia de que corra en producción de Pollar hoy. Se firmó una carta de intención el 2026-10-08: es una declaración de intención, no un piloto, y no hay uso de pago.',
+ en: "Social-login wallets (email/Google), no seed phrase. nirium-pollar-adapter v0.7.0 translates Pollar's signature into a SEP-43 auth entry to pay via x402, and can auto-anchor an Audit Trail receipt whenever a Pollar transaction settles, with the payment's context inside and signed with the app's own key (since 0.7.0, 29 Nov 2026). Checked live on testnet (2026-11-01): a real payment produced a verifiable receipt, with its transaction hash and IPFS CID both published. Before that, on 2026-08-30, Pollar's CTO paid 0.05 USDC via x402 from his own Pollar wallet through the testnet demo (tx 2ca4a89a...), and confirmed it in writing. No evidence it runs in Pollar's own production today. A letter of intent was signed on 2026-10-08: a statement of intent, not a pilot, and no paid use.",
+ es: 'Wallets con login social (correo/Google), sin frase semilla. nirium-pollar-adapter v0.7.0 traduce su firma a un auth entry SEP-43 para pagar por x402, y puede anclar automáticamente un recibo de Audit Trail cada vez que una transacción de Pollar se liquida, con el contexto del pago adentro y firmado con la llave de la propia app (desde la 0.7.0, 29-nov-2026). Verificado en vivo en testnet (1-nov-2026): un pago real produjo un recibo verificable, con su hash de transacción y CID de IPFS publicados. Antes, el 30-ago-2026, el CTO de Pollar pagó 0.05 USDC por x402 desde su propia wallet de Pollar con el demo de testnet (tx 2ca4a89a...), y lo confirmó por escrito. Sin evidencia de que corra en producción de Pollar hoy. Se firmó una carta de intención el 2026-10-08: es una declaración de intención, no un piloto, y no hay uso de pago.',
},
evidenceUrl: 'https://github.com/pollar-xyz/pollar-apps/pull/30',
evidenceLabel: { en: 'pollar-xyz/pollar-apps#30 - merged 2026-08-31', es: 'pollar-xyz/pollar-apps#30 - merged 2026-08-31' },
@@ -81,11 +81,11 @@ const BUILT_WITH_GROUPS: BuiltWithGroup[] = [
name: 'TIA',
logo: '/partners/tia.jpg',
tone: 'experimental',
- badge: { en: 'Audit Trail, 7 real anchors', es: 'Audit Trail, 7 anclajes reales' },
+ badge: { en: 'Audit Trail, 8 real anchors', es: 'Audit Trail, 8 anclajes reales' },
tags: ['Audit Trail', 'x402Serve'],
description: {
- en: "An external integrator (TIA) anchors a signed receipt of its quotes in the Audit Trail - 7 real anchors to date (2026-10-18, 2026-10-23, two on 2026-11-02, two on 2026-11-06 and one on 2026-11-12, mainnet), signed with two TIA keys of its own. It also sells with Nirium: its public backend charges 0.10 USDC per call on mainnet with x402Serve() (endpoint /premium/fx), paid straight to TIA's own account - Nirium is not in the path. The wallets behind its x402 payments are TIA's own test accounts, confirmed by its founder - not a real client. Charging on mainnet is TIA's decision and its compliance is its own; Nirium does not promote that for third parties until it has a written legal opinion. Its founder also contributes to Nirium through Stellar Wave and GrantFox.",
- es: 'Un integrador externo (TIA) ancla un recibo firmado de sus cotizaciones en el Audit Trail - 7 anclajes reales a la fecha (18-oct-2026, 23-oct-2026, dos el 2-nov-2026, dos el 6-nov-2026 y uno el 12-nov-2026, mainnet), firmados con dos llaves propias de TIA. También vende con Nirium: su backend público cobra 0.10 USDC por llamada en mainnet con x402Serve() (endpoint /premium/fx), y el pago llega directo a la cuenta de TIA, sin pasar por Nirium. Las wallets detrás de sus pagos x402 son cuentas de prueba propias de TIA, confirmadas por su fundador - no un cliente real. Cobrar en mainnet es decisión de TIA y su cumplimiento es suyo; Nirium no lo promueve para terceros hasta tener una opinión legal por escrito. Su fundador también contribuye a Nirium a través de Stellar Wave y GrantFox.',
+ en: "An external integrator (TIA) anchors a signed receipt of its quotes in the Audit Trail - 8 real anchors to date (2026-10-18, 2026-10-23, three on 2026-11-02, two on 2026-11-06 and one on 2026-11-12, mainnet), signed with two TIA keys of its own. It also sells with Nirium: its public backend charges 0.10 USDC per call on mainnet with x402Serve() (endpoint /premium/fx), paid straight to TIA's own account - Nirium is not in the path. The wallets behind its x402 payments are TIA's own test accounts, confirmed by its founder - not a real client. Charging on mainnet is TIA's decision and its compliance is its own; Nirium does not promote that for third parties until it has a written legal opinion. Its founder also contributes to Nirium through Stellar Wave and GrantFox.",
+ es: 'Un integrador externo (TIA) ancla un recibo firmado de sus cotizaciones en el Audit Trail - 8 anclajes reales a la fecha (18-oct-2026, 23-oct-2026, tres el 2-nov-2026, dos el 6-nov-2026 y uno el 12-nov-2026, mainnet), firmados con dos llaves propias de TIA. También vende con Nirium: su backend público cobra 0.10 USDC por llamada en mainnet con x402Serve() (endpoint /premium/fx), y el pago llega directo a la cuenta de TIA, sin pasar por Nirium. Las wallets detrás de sus pagos x402 son cuentas de prueba propias de TIA, confirmadas por su fundador - no un cliente real. Cobrar en mainnet es decisión de TIA y su cumplimiento es suyo; Nirium no lo promueve para terceros hasta tener una opinión legal por escrito. Su fundador también contribuye a Nirium a través de Stellar Wave y GrantFox.',
},
evidenceUrl: 'https://gateway.pinata.cloud/ipfs/QmZ9bQxXLqoCvAQ6AtRChd18MS9YkjBF6MbT9k5e84PTTv',
evidenceLabel: { en: 'CID QmZ9bQxX... - anchored 2026-11-12', es: 'CID QmZ9bQxX... - anclado 12-nov-2026' },
@@ -99,8 +99,8 @@ const BUILT_WITH_GROUPS: BuiltWithGroup[] = [
badge: { en: 'Audit Trail receipts, testnet + 1 mainnet test', es: 'Recibos de Audit Trail, testnet + 1 prueba en mainnet' },
tags: ['Agent payments', 'Audit Trail', 'Soroban'],
description: {
- en: "Scoped allowances and micro-settlement for AI agents on Soroban. Its library can anchor a receipt for a spend or a proof-of-task check in the Audit Trail: opt-in, off the payment path, and only the receipt's SHA-256 leaves the agent. Nirium wrote that receipts provider (AgentRail #68 and #70) and AgentRail's maintainer merged it; AgentRail then built its own on-chain pipeline on top (#71): a real testnet payment whose agent signs its own receipt (2026-11-19). On mainnet it has one receipt so far (2026-11-24), signed with its agent's key, for a 0.001 XLM payment to its own treasury: a test by its founder. The receipts code lives in the repo and is not in the npm release yet (0.1.0). A letter of intent was signed on 2026-11-04: a statement of intent, not a paid pilot. Its founder also contributes to Nirium through Stellar Wave.",
- es: 'Asignaciones acotadas y micro-liquidación para agentes de IA en Soroban. Su librería puede anclar en el Audit Trail un recibo de un gasto o de una prueba de tarea: opcional, fuera del camino del pago, y del agente solo sale el SHA-256 del recibo. Nirium escribió ese proveedor de recibos (AgentRail #68 y #70) y el mantenedor de AgentRail lo mergeó; después AgentRail construyó encima su propio pipeline en cadena (#71): un pago real en testnet cuyo agente firma su propio recibo (19-nov-2026). En mainnet tiene hasta ahora un recibo (24-nov-2026), firmado con la llave de su agente, de un pago de 0.001 XLM a su propia tesorería: una prueba de su fundador. El código de los recibos está en el repo y todavía no en la versión de npm (0.1.0). Se firmó una carta de intención el 4-nov-2026: una declaración de intención, no un piloto pagado. Su fundador también contribuye a Nirium a través de Stellar Wave.',
+ en: "Scoped allowances and micro-settlement for AI agents on Soroban. Its library can anchor a receipt for a spend or a proof-of-task check in the Audit Trail: opt-in, off the payment path, and only the receipt's SHA-256 leaves the agent. Nirium wrote that receipts provider (AgentRail #68 and #70) and AgentRail's maintainer merged it; AgentRail then built its own on-chain pipeline on top (#71): a real testnet payment whose agent signs its own receipt (2026-11-19). On mainnet it has one receipt so far (2026-11-24), signed with its agent's key, for a 0.001 XLM payment to its own treasury: a test by its founder. On 2026-11-30 it anchored a signed correction of that receipt, with the same key. The receipts code ships in its npm package (@sparkysolutions/agentrail 0.1.7, 2026-11-29). A letter of intent was signed on 2026-11-04: a statement of intent, not a paid pilot. Its founder also contributes to Nirium through Stellar Wave.",
+ es: 'Asignaciones acotadas y micro-liquidación para agentes de IA en Soroban. Su librería puede anclar en el Audit Trail un recibo de un gasto o de una prueba de tarea: opcional, fuera del camino del pago, y del agente solo sale el SHA-256 del recibo. Nirium escribió ese proveedor de recibos (AgentRail #68 y #70) y el mantenedor de AgentRail lo mergeó; después AgentRail construyó encima su propio pipeline en cadena (#71): un pago real en testnet cuyo agente firma su propio recibo (19-nov-2026). En mainnet tiene hasta ahora un recibo (24-nov-2026), firmado con la llave de su agente, de un pago de 0.001 XLM a su propia tesorería: una prueba de su fundador. El 30-nov-2026 ancló una corrección firmada de ese recibo, con la misma llave. El código de los recibos viene en su paquete de npm (@sparkysolutions/agentrail 0.1.7, 29-nov-2026). Se firmó una carta de intención el 4-nov-2026: una declaración de intención, no un piloto pagado. Su fundador también contribuye a Nirium a través de Stellar Wave.',
},
evidenceUrl: 'https://nirium.xyz/verify?cid=QmaYP7Lr2kRGLrdPHf1BYwLz7nSk9aC4xyU8s2ageGypm4',
evidenceLabel: { en: 'Receipt QmaYP7Lr... - signed by AgentRail\'s agent, 2026-11-19', es: 'Recibo QmaYP7Lr... - firmado por el agente de AgentRail, 19-nov-2026' },
@@ -132,38 +132,14 @@ const BUILT_WITH_GROUPS: BuiltWithGroup[] = [
evidenceUrl: 'https://stellar.expert/explorer/public/tx/786db50b8cba033f56f987adb113e53d2dee7d8a08066ed9e5664fc41f3ec336',
evidenceLabel: { en: 'mainnet tx 0f625077... - 2026-11-18', es: 'tx mainnet 0f625077... - 18-nov-2026' },
},
- {
- name: 'DeFindex',
- tone: 'gated',
- badge: { en: 'Mainnet, test vault only', es: 'Mainnet, bóveda de prueba' },
- tags: ['Treasury', 'Soroban vaults'],
- description: {
- en: "Yield vaults on Soroban, with roles separated by contract design. The agent holds only the RebalanceManager role of a vault structured for the client to own (today's is our own test vault) - that role can't withdraw funds or change roles, by contract. It can swap inside the vault; Nirium's code doesn't send swaps. 4 real rebalances, all on 2026-08-06, none since - mainnet, test vault only, no clients yet.",
- es: 'Bóvedas de rendimiento en Soroban, con roles separados por diseño de contrato. El agente sostiene solo el rol RebalanceManager de una bóveda pensada para que sea del cliente (hoy es nuestra bóveda de prueba) - ese rol no puede retirar fondos ni cambiar roles, por contrato. Puede hacer swaps dentro de la bóveda; el código de Nirium no los envía. 4 rebalanceos reales, todos el 6-ago-2026, ninguno desde entonces - mainnet, bóveda de prueba, sin clientes.',
- },
- evidenceUrl: 'https://nirium-agent-mainnet.fly.dev/api/treasury/vault/CAMDXG6L4LXLXXV675KZSHM3BMSETZ4NVMC7JYIQCZ2JTG54OMSK57MH',
- evidenceLabel: { en: 'vault roles, live API', es: 'roles de la bóveda, API en vivo' },
- },
- {
- name: 'Etherfuse',
- tone: 'gated',
- badge: { en: 'Test environment only', es: 'Solo entorno de pruebas' },
- tags: ['CETES', 'Onramp'],
- description: {
- en: "Issues tokenized CETES and runs the MXN -> CETES SPEI onramp. Test environment quotes power /ramp; the mainnet link is indirect, via DeFindex's own strategy - not a direct Nirium integration.",
- es: 'Emite CETES tokenizados y opera el onramp MXN -> CETES vía SPEI. Las cotizaciones del entorno de pruebas alimentan /ramp; la relación con mainnet es indirecta, vía la estrategia de DeFindex - no una integración directa de Nirium.',
- },
- evidenceUrl: 'https://api.etherfuse.com/lookup/stablebonds',
- evidenceLabel: { en: 'api.etherfuse.com/lookup/stablebonds - verified 2026-10-09', es: 'api.etherfuse.com/lookup/stablebonds - verificado 2026-10-09' },
- },
{
name: 'Trustless Work',
tone: 'gated',
badge: { en: 'Mixed, testnet proven', es: 'Mixto, probado en testnet' },
- tags: ['Escrow', 'Soroban', 'Payouts'],
+ tags: ['Escrow', 'Soroban', 'Audit Trail'],
description: {
- en: "Programmable milestone-based escrows on Soroban. 9 of our research PRs merged by their maintainer, plus a Multi-Release escrow integration for Payouts tested end to end on testnet. Deploy also tested on mainnet, but the automatic approve/release signer never ran there - full rollout on hold pending the same written legal opinion as Treasury, on fraction XVI of article 17 of the LFPIORPI (article 24 Bis 4 of its Rules defines facilitation). A letter of intent was signed in October 2026: a statement of intent, not a paid pilot. A testnet pilot gates milestone release on anchored evidence: an agent checks the record's hash, its milestone and the service provider's signature before approving and releasing, and refused one milestone that failed. Written up as a research note, backed by 6 on-chain testnet transaction hashes.",
- es: 'Escrows de pago programables en Soroban (milestone-based). 9 PRs de investigación propios mergeados por su maintainer, más una integración del escrow Multi-Release para Payouts probada de punta a punta en testnet. El deploy también se probó en mainnet, pero el firmante automático de approve/release nunca corrió ahí - rollout completo en pausa hasta tener la misma opinión legal por escrito que Treasury, sobre la fracción XVI del art. 17 de la LFPIORPI (el art. 24 Bis 4 de sus Reglas define la facilitación). Se firmó una carta de intención en octubre de 2026: es una declaración de intención, no un piloto de pago. Un piloto en testnet condiciona la liberación de milestones a evidencia anclada: un agente revisa el hash del registro, su milestone y la firma del proveedor de servicio antes de aprobar y liberar, y rechazó un milestone que no pasó. Documentado como nota de investigación, respaldada por 6 hashes de transacciones on-chain en testnet.',
+ en: "Programmable milestone-based escrows on Soroban. 9 of our research PRs merged by their maintainer. A letter of intent was signed in October 2026: a statement of intent, not a paid pilot. A testnet pilot gates milestone release on anchored evidence: an agent checks the record's hash, its milestone and the service provider's signature before approving and releasing, and refused one milestone that failed. Written up as a research note, backed by 6 on-chain testnet transaction hashes.",
+ es: 'Escrows de pago programables en Soroban (milestone-based). 9 PRs de investigación propios mergeados por su maintainer. Se firmó una carta de intención en octubre de 2026: es una declaración de intención, no un piloto de pago. Un piloto en testnet condiciona la liberación de milestones a evidencia anclada: un agente revisa el hash del registro, su milestone y la firma del proveedor de servicio antes de aprobar y liberar, y rechazó un milestone que no pasó. Documentado como nota de investigación, respaldada por 6 hashes de transacciones on-chain en testnet.',
},
evidenceUrl: 'https://github.com/Trustless-Work/agentic-escrow-research/pull/13',
evidenceLabel: { en: 'PRs #1-4 merged 2026-09-21, #9 merged 2026-11-02, #10-11 merged 2026-11-04, #12-13 merged 2026-11-05', es: 'PRs #1-4 mergeados 2026-09-21, #9 mergeado 2026-11-02, #10-11 mergeados 2026-11-04, #12-13 mergeados 2026-11-05' },
@@ -174,8 +150,8 @@ const BUILT_WITH_GROUPS: BuiltWithGroup[] = [
badge: { en: 'Testnet', es: 'Testnet' },
tags: ['MPP Charge', 'USDC'],
description: {
- en: 'MPP Charge on testnet: per-request USDC transfers the server verifies itself, no facilitator. Verified with settled payments on 2026-10-15; mainnet not tested. The MPP client fails on nirium 0.20.0 until this SDK supports stellar-sdk 17; use nirium 0.19.8.',
- es: 'MPP Charge en testnet: transferencias USDC por request que el propio servidor verifica, sin facilitador. Verificado con pagos liquidados el 2026-10-15; mainnet sin probar. El cliente MPP falla con nirium 0.20.0 hasta que este SDK soporte stellar-sdk 17; usa nirium 0.19.8.',
+ en: 'MPP Charge on testnet: per-request USDC transfers the server verifies itself, no facilitator. Verified with settled payments on 2026-10-15; mainnet not tested. The MPP client fails on nirium 0.20.0 and 0.21.0 until this SDK supports stellar-sdk 17; use nirium 0.19.8.',
+ es: 'MPP Charge en testnet: transferencias USDC por request que el propio servidor verifica, sin facilitador. Verificado con pagos liquidados el 2026-10-15; mainnet sin probar. El cliente MPP falla con nirium 0.20.0 y 0.21.0 hasta que este SDK soporte stellar-sdk 17; usa nirium 0.19.8.',
},
evidenceUrl: 'https://stellar.expert/explorer/testnet/tx/b8c4ed568f6eb41321b97d251d7f3727c57570a226d187e3675a9df03496e3ed',
evidenceLabel: { en: 'testnet tx b8c4ed56... - successful, 2026-10-15', es: 'tx testnet b8c4ed56... - successful, 2026-10-15' },
diff --git a/apps/web/components/home/HeroSeal.tsx b/apps/web/components/home/HeroSeal.tsx
new file mode 100755
index 00000000..7787b189
--- /dev/null
+++ b/apps/web/components/home/HeroSeal.tsx
@@ -0,0 +1,191 @@
+"use client";
+
+import { useEffect, useRef, useState } from "react";
+
+export type SealLabels = {
+ aria: string;
+ illustrative: string;
+ signed: string;
+ hashed: string;
+ anchored: string;
+ docs: [DocLabels, DocLabels, DocLabels];
+};
+type DocLabels = { title: string; sub: string; pill: string; chain1: string; chain2: string };
+
+/**
+ * "The seal": the Nirium N is one stroke through three dots. Here the stroke joins a document to its
+ * receipt. A document appears (a delivery, a quote, a policy decision); the N is drawn leg by leg and
+ * each dot lights as a step of the receipt: signed by whoever declares it, content hashed, anchored by
+ * CID. Then the receipt pill and what the chain shows. The third case is a payment the payer's policy
+ * refused: there is no transaction, and the receipt is the only record of the attempt.
+ *
+ * Pure SVG + CSS keyframes on transform and opacity, after the hero recipe on kumply.xyz. It is an
+ * illustration, not data: short example values, no counters, and an "illustrative example" note.
+ * Starts after window load, pauses off screen or when the tab is hidden; with prefers-reduced-motion
+ * it shows the first case sealed, still.
+ */
+export default function HeroSeal({ labels }: { labels: SealLabels }) {
+ const ref = useRef(null);
+ const [loaded, setLoaded] = useState(false);
+ const [visible, setVisible] = useState(true);
+ const [tabVisible, setTabVisible] = useState(true);
+
+ useEffect(() => {
+ if (document.readyState === "complete") setLoaded(true);
+ else {
+ const on = () => setLoaded(true);
+ window.addEventListener("load", on, { once: true });
+ return () => window.removeEventListener("load", on);
+ }
+ }, []);
+
+ useEffect(() => {
+ const el = ref.current;
+ if (!el || !("IntersectionObserver" in window)) return;
+ const io = new IntersectionObserver(([e]) => setVisible(e.isIntersecting), { threshold: 0.05 });
+ io.observe(el);
+ const onVis = () => setTabVisible(document.visibilityState === "visible");
+ document.addEventListener("visibilitychange", onVis);
+ return () => { io.disconnect(); document.removeEventListener("visibilitychange", onVis); };
+ }, []);
+
+ const running = loaded && visible && tabVisible;
+
+ return (
+
{thousands !== null && (
<>
@@ -38,8 +38,6 @@ export default function SocialProof() {
·
>
)}
- 2 SCF Instawards
- ·
{es ? "Uso en vivo: nirium.xyz/stats" : "Live usage: nirium.xyz/stats"}
diff --git a/apps/web/components/home/TreasuryPlainTerms.tsx b/apps/web/components/home/TreasuryPlainTerms.tsx
index a9822fe6..19a9d028 100644
--- a/apps/web/components/home/TreasuryPlainTerms.tsx
+++ b/apps/web/components/home/TreasuryPlainTerms.tsx
@@ -7,8 +7,7 @@
'use client';
import Link from "next/link";
-import { ArrowRight, Building2, ChevronRight, FileCheck, Lock, TrendingUp } from "lucide-react";
-import { Button } from "@/components/ui/Button";
+import { Building2, ChevronRight, FileCheck, Lock, TrendingUp } from "lucide-react";
import { useLanguage } from "@/context/LanguageContext";
export default function TreasuryPlainTerms() {
@@ -63,8 +62,8 @@ export default function TreasuryPlainTerms() {
{lang(
- 'No. Once your vault has autonomous rebalancing turned on, it works like a standing order at your bank: "if the yield goes above X, invest; if it drops below Y, pull it back". The agent checks every 10 minutes and every move is a public transaction anyone can look up. On mainnet it is invite-only today.',
- 'No. Cuando tu bóveda tiene el rebalanceo autónomo encendido, funciona como una orden permanente en tu banco: "si el rendimiento sube de X, invierte; si baja de Y, sácalo". El agente revisa cada 10 minutos y cada movimiento es una transacción pública que cualquiera puede consultar. En mainnet hoy es por invitación.')}
+ 'No. Once your vault has autonomous rebalancing turned on, it works like a standing order at your bank: "if the yield goes above X, invest; if it drops below Y, pull it back". The agent checks every 10 minutes and every move is a public transaction anyone can look up. On mainnet it is paused today.',
+ 'No. Cuando tu bóveda tiene el rebalanceo autónomo encendido, funciona como una orden permanente en tu banco: "si el rendimiento sube de X, invierte; si baja de Y, sácalo". El agente revisa cada 10 minutos y cada movimiento es una transacción pública que cualquiera puede consultar. En mainnet hoy está en pausa.')}
@@ -82,19 +81,7 @@ export default function TreasuryPlainTerms() {
-
-
- {lang(
- "Curious what this looks like for your specific case? We'll walk you through it in plain language - no blockchain knowledge required on your end.",
- '¿Quieres ver cómo aplica esto a tu caso? Te lo explicamos en español llano - no necesitas saber nada de blockchain de tu lado.')}
-
+ {/* 27-nov-2026: sin botón de venta mientras Tesorería está guardada (por invitación). */}
diff --git a/apps/web/components/layout/AppLayout.tsx b/apps/web/components/layout/AppLayout.tsx
index 8397b1b9..e34e3bb8 100644
--- a/apps/web/components/layout/AppLayout.tsx
+++ b/apps/web/components/layout/AppLayout.tsx
@@ -8,8 +8,8 @@ import {
LayoutDashboard, BarChart2,
Shield, ShieldCheck, Code2, BookOpen,
Menu, X, ChevronRight, ChevronDown, Activity, Zap, Globe, Mail,
- Cpu, Send, Building2
-, KeyRound, Home, FileCheck
+ Cpu
+, KeyRound, Home, FileCheck, Network
} from "lucide-react";
import { useFreighter } from "@/hooks/useFreighter";
import { usePollarBridge } from "@/context/PollarBridge";
@@ -33,28 +33,22 @@ export function AppSidebar({ onClose }: { onClose?: () => void }) {
{
label: "CORE",
items: [
+ // 27-nov-2026: Audit Trail, Reporting y redes primero. 30-nov-2026: Tesorería y Payouts archivados.
{ href: "/", label: t.nav.home, icon: Home, accent: "#3B82F6" },
{ href: "/verify", label: t.nav.verifyAudit, icon: FileCheck, accent: "#10B981" },
+ { href: "/compliance", label: t.nav.compliance, icon: Shield, accent: "#2DEBE8" },
+ { href: "/analytics", label: t.nav.analytics, icon: BarChart2, accent: "#2DEBE8" },
+ { href: "/chains", label: t.nav.chains, icon: Network, accent: "#9945FF" },
{ href: "/dashboard", label: t.nav.dashboard, icon: LayoutDashboard, accent: "#2DEBE8" },
- { href: "/analytics", label: t.nav.analytics, icon: BarChart2, accent: "#2DEBE8", badge: "BETA" },
{ href: "/agents", label: t.nav.agents, icon: Cpu, accent: "#FFD700" },
- { href: "/payouts", label: t.nav.payroll, icon: Send, accent: "#2DEBE8" },
{ href: "/security", label: t.nav.security, icon: ShieldCheck, accent: "#10B981" },
- { href: "/compliance", label: t.nav.compliance, icon: Shield, accent: "#2DEBE8" },
+ { href: "/ecosystem", label: t.nav.ecosystem, icon: Network, accent: "#9945FF" },
{ href: "/stats", label: t.nav.stats, icon: Activity, accent: "#10B981" },
]
},
+ // 30-nov-2026: el grupo de Tesorería se quitó (Tesorería y Payouts archivados; /treasury es la página de archivo).
{
- label: "TREASURY",
- items: [
- { href: "/treasury", label: t.nav.treasury, icon: Building2, accent: "#3B82F6" },
- { href: "/treasury/vault", label: t.nav.vault, icon: ShieldCheck, accent: "#2DEBE8" },
- { href: "/treasury/builder", label: t.nav.builder, icon: Zap, accent: "#A78BFA", badge: "BETA" },
- { href: "/ramp", label: t.nav.ramp, icon: Globe, accent: "#EC4899" },
- ]
- },
- {
- label: "DEVELOPER",
+ label: t.nav.group_developer,
items: [
{ href: "/docs", label: t.nav.docs, icon: BookOpen, accent: "#8B5CF6" },
{ href: "/developers", label: t.nav.developers, icon: Code2, accent: "#6366F1" },
@@ -139,7 +133,7 @@ export function AppSidebar({ onClose }: { onClose?: () => void }) {
{/* 9-nov-2026: aquí había una lista de qué corre en cada red. El aviso de red de
- arriba ya lo dice completo (Payouts y Treasury por invitación), así que
+ arriba ya lo dice completo (Payouts y Treasury en pausa), así que
queda solo el selector de red. */}
@@ -262,7 +256,7 @@ export default function AppLayout({ children }: { children: React.ReactNode }) {
{/* Desktop sidebar. --banner-h = altura del aviso de red (TestnetBanner),
0 si está cerrado; sin sumarla, el aviso tapaba el logo al hacer scroll. */}
-
+
@@ -290,9 +284,8 @@ export default function AppLayout({ children }: { children: React.ReactNode }) {
)}
- {/* Content. pt-9 = la barra de mercado (fixed, 2.25rem); el body ya baja
- --banner-h, pero no esa barra, y tapaba el borde de arriba de cada página. */}
-
+ {/* Content. El body ya baja --banner-h; la barra de mercado se quitó el 1-dic-2026. */}
+
{/* Mobile top bar */}
{children}
-
+ {/* /chains is shared with programs on other chains and has its own footer. */}
+ {pathname !== "/chains" && }
diff --git a/apps/web/components/layout/Footer.tsx b/apps/web/components/layout/Footer.tsx
index 191a8c1d..79d34fb2 100644
--- a/apps/web/components/layout/Footer.tsx
+++ b/apps/web/components/layout/Footer.tsx
@@ -1,7 +1,7 @@
"use client";
import Link from "next/link";
-import { ExternalLink, ShieldCheck, Github } from "lucide-react";
+import { ExternalLink, Github, Mail } from "lucide-react";
import LegalDisclaimer from "@/components/legal/LegalDisclaimer";
import { useLanguage } from "@/context/LanguageContext";
@@ -12,15 +12,15 @@ export default function Footer() {
return (
diff --git a/apps/web/components/ui/ChatBot.tsx b/apps/web/components/ui/ChatBot.tsx
index 57d9d971..c0ffeaf6 100644
--- a/apps/web/components/ui/ChatBot.tsx
+++ b/apps/web/components/ui/ChatBot.tsx
@@ -21,26 +21,17 @@ const ChatBot = () => {
const [isTyping, setIsTyping] = useState(false);
const scrollRef = useRef(null);
- // Initial greeting with SCF compliance disclaimer
+ // Greeting in the current language. 1-dic-2026: it was set only while the chat was empty, so
+ // switching EN/ES left it in the first language. Now the greeting (id 1) follows the language;
+ // answers already given stay as they were.
useEffect(() => {
- if (messages.length === 0) {
- let greeting = "";
- if (language === 'es') {
- greeting = "¡Hola! Soy Nirium Guide. Respondo con una base de respuestas preparadas, no soy un modelo de lenguaje. Te ayudo a encontrar lo que buscas en el sitio. Pregúntame por: verificar un recibo, Audit Trail, x402, Payouts, Treasury, precios o en qué países funciona. Recuerda: no doy asesoría financiera.";
- } else {
- greeting = "Hi! I'm Nirium Guide. I answer from a prepared set of responses, not a language model. I can help you find your way around the site. Ask me about: verifying a receipt, Audit Trail, x402, Payouts, Treasury, pricing or where it works. Remember: I do not provide financial advice.";
- }
-
- setMessages([
- {
- id: '1',
- role: 'assistant',
- content: greeting,
- timestamp: new Date()
- }
- ]);
- }
- }, [language, messages.length]);
+ const greeting = language === 'es'
+ ? "¡Hola! Soy Nirium Guide. Respondo con una base de respuestas preparadas, no soy un modelo de lenguaje. Te ayudo a encontrar lo que buscas en el sitio. Pregúntame por: verificar un recibo, Audit Trail, x402, Reporting, precios o en qué países funciona. Recuerda: no doy asesoría financiera."
+ : "Hi! I'm Nirium Guide. I answer from a prepared set of responses, not a language model. I can help you find your way around the site. Ask me about: verifying a receipt, Audit Trail, x402, Reporting, pricing or where it works. Remember: I do not provide financial advice.";
+ setMessages(prev => prev.length === 0
+ ? [{ id: '1', role: 'assistant', content: greeting, timestamp: new Date() }]
+ : prev.map(m => (m.id === '1' ? { ...m, content: greeting } : m)));
+ }, [language]);
// Auto-scroll to bottom
useEffect(() => {
@@ -87,66 +78,64 @@ const ChatBot = () => {
es: {
home: "El ledger de Stellar ya prueba quién pagó, cuánto y cuándo. **Audit Trail registra lo que falta**: para qué fue cada pago, los pagos que tu política rechazó y nunca firmó, los registros fuera de la cadena y quién responde por ellos.\n\nSon rieles de pago, auditoría y ejecución para apps, backends y agentes de IA. No custodial: tus llaves, tus fondos.\n\n→ [Verifica un recibo](/verify) · [Docs](/docs)",
verify: "Pega un CID en [/verify](/verify), sin cuenta. Comprueba que el registro **no cambió** desde que se ancló y, si viene firmado, **qué llave lo firmó**. No prueba que su contenido sea verdad. Si guardaste tu copia del recibo, `nirium cid recibo.json --expect ` demuestra que es el original.\n\nAhí hay un ejemplo de un pago que nunca ocurrió: su política lo bloqueó, no hay transacción, y solo el recibo guarda la decisión.\n\nCómo anclar los tuyos: [Docs](/docs).",
- payouts: "[Payouts](/payouts) paga hasta **100 destinatarios** (contratistas, freelancers, pagos B2B; no es nómina de empleados) desde la wallet de una empresa, en un solo lote que **tú firmas**. Cada corrida se ancla en IPFS.\n\nEn testnet está abierto. En mainnet es **solo por invitación**.",
+ payouts: "Eso ya no forma parte de Nirium. Hoy Nirium ofrece recibos verificables (Audit Trail), Reporting y cobros x402: [Verifica un recibo](/verify).",
pricing: "Planes y precios en [/pricing](/pricing). Nirium **nunca cobra un porcentaje** del dinero que mueves o guardas.",
x402: "Con **x402** una API cobra por request en Stellar: responde 402 con el precio, el cliente paga en USDC y repite la llamada.\n\nNirium tiene endpoints x402 en mainnet y SDKs para pagar o cobrar: [Developers](/developers) · [Docs > Vendedores x402](/docs#x402-sellers). MPP Charge es experimental: verificado en testnet, no en mainnet.",
- jurisdictions: "Audit Trail, Reporting y x402 corren en mainnet. **Payouts y Treasury en mainnet** son por invitación y no se ofrecen en el EEE, el Reino Unido ni EE.UU.; en **testnet** siguen abiertos ahí como demostración.\n\nEl acceso está bloqueado desde jurisdicciones con sanciones integrales, las que tienen un llamado a la acción del GAFI y China continental. Detalle en [Avisos legales](/disclaimers).",
+ jurisdictions: "Audit Trail, Reporting y x402 corren en mainnet.\n\nEl acceso está bloqueado desde jurisdicciones con sanciones integrales, las que tienen un llamado a la acción del GAFI y China continental. Detalle en [Avisos legales](/disclaimers).",
stats: "Las cifras en vivo están en [/stats](/stats), cada una con su fuente para que la compruebes.",
dashboard: "El [Dashboard](/dashboard) muestra el estado de cada nodo.\n\nLos datos salen en vivo de la API del agente, no de una maqueta.",
// 21-nov-2026 (CB5): números de packages/agent (rateLimit.ts 'aggressive' = 20/min en
// /api/audit/log; auth.ts TIER_QUOTAS.free = 10/min y 100/día).
limits: "Anclar un recibo (`POST /api/audit/log`) hoy no pide key: 20 por minuto por cliente, y cada respuesta trae `x-ratelimit-limit` y `x-ratelimit-remaining`. Con una key gratis, las rutas que la piden permiten 10 por minuto y 100 por día. Detalle: [Docs](/docs).",
- marketplace: "Un marketplace de plantillas de política para tesorería es solo una idea: **no está construido y no tiene fecha**.\n\nLo que sí existe hoy está en [Tesorería](/treasury).",
- treasury: "La sección de [Tesorería](/treasury) mueve el saldo ocioso de una bóveda de DeFindex pensada para que sea tuya (USDC o CETES, un solo activo por bóveda) hacia su estrategia y de regreso. Nuestro código nunca cambia un activo por otro; el rol de DeFindex también permite swaps dentro de la bóveda, nunca hacia afuera (Security).\n\nNirium solo tiene el rol de rebalanceo: no puede retirar fondos y tú puedes revocarlo. En mainnet es **solo por invitación** hasta tener una opinión legal por escrito; la bóveda activa hoy es de Nirium, con fondos propios.",
- builder: "El [Treasury Builder](/treasury/builder) es una **vista previa**: arma el esquema de la automatización, y la ejecución corre en el nodo. En mainnet es por invitación.",
+ marketplace: "Eso ya no forma parte de Nirium. Hoy Nirium ofrece recibos verificables (Audit Trail), Reporting y cobros x402: [Verifica un recibo](/verify).",
+ treasury: "Eso ya no forma parte de Nirium. Hoy Nirium ofrece recibos verificables (Audit Trail), Reporting y cobros x402: [Verifica un recibo](/verify).",
+ builder: "Eso ya no forma parte de Nirium. Hoy Nirium ofrece recibos verificables (Audit Trail), Reporting y cobros x402: [Verifica un recibo](/verify).",
analytics: "La sección de [Analytics](/analytics) enlaza transacciones reales de mainnet en Stellar Expert, junto a vistas de ejemplo marcadas como tales.",
- fiat: "Para obtener CETES tokenizados contratas directamente con **Etherfuse**, operador independiente: tú le transfieres a su CLABE y ellos emiten el token a tu wallet.\n\n**Nirium nunca recibe, sostiene ni convierte fiat** - solo muestra la instrucción y lee el saldo. El KYC lo hace Etherfuse. Hoy en entorno de pruebas: [ver flujo](/ramp).",
+ fiat: "Eso ya no forma parte de Nirium. Hoy Nirium ofrece recibos verificables (Audit Trail), Reporting y cobros x402: [Verifica un recibo](/verify).",
devs: "La sección de [Developers](/developers) expone una **API REST** (las rutas principales están listadas ahí), SDK TypeScript/Python, servidor MCP para Claude/Cursor, y soporte nativo para **x402** (cliente MPP Charge: experimental).",
docs: {
overview: "Documentación de Nirium: [Ver Documentación](/docs).",
api: "API: obtén una key gratis en [/keys](/keys) y sigue el [Inicio rápido](/docs#quickstart).",
architecture: "Qué es Nirium y cómo encaja cada pieza: [Docs > Resumen](/docs#what-it-is).",
- contracts: "Contrato y capacidades de la bóveda: [Security](/security).",
+ contracts: "Quién firma en cada nodo: [Security](/security).",
agent: "Estado real de cada nodo: [Agents](/agents).",
- builder: "Treasury Builder (vista previa): [/treasury/builder](/treasury/builder).",
frontend: "SDK y ejemplos de integración: [Developers](/developers).",
reporting: "Resúmenes y exportes de recibos anclados: [Docs > Reportes](/docs#reporting).",
security: "Seguridad y límites: [Docs > Seguridad y límites](/docs#security-limits)."
},
- scf: "Nirium ha recibido dos Instawards del SCF y sigue:\n\n**· Código de Conducta de Stellar**\n**· Sin garantías de rendimiento**\n\nMás info en [Código de Conducta](/coc).",
+ conduct: "Nirium sigue:\n\n**· Código de Conducta de Stellar**\n**· Sin garantías de rendimiento**\n\nMás info en [Código de Conducta](/coc).",
compliance: "La página de [Compliance](/compliance) reúne la evidencia verificable de Nirium.\n\nAnclar un registro es **opcional, por llamada**: hash SHA-256 del registro → anclado en IPFS → exportable JSON, con firma ed25519 opcional que muestra qué llave lo firmó. Cualquiera lo comprueba en [/verify](/verify).",
- default: "Soy Nirium Guide. Puedo llevarte a:\n\n[Verifica un recibo](/verify) · [Payouts](/payouts) · [Treasury](/treasury) · [Developers](/developers) · [Docs](/docs) · [Precios](/pricing)\n\n¿Qué necesitas?"
+ default: "Soy Nirium Guide. Puedo llevarte a:\n\n[Verifica un recibo](/verify) · [Redes](/chains) · [Developers](/developers) · [Docs](/docs) · [Precios](/pricing)\n\n¿Qué necesitas?"
},
en: {
home: "Stellar's ledger already proves who paid, how much and when. **Audit Trail records what it can't**: what each payment was for, the payments your policy refused and never signed, off-chain records, and who stands behind them.\n\nPayment, audit and execution rails for apps, backends and AI agents. Non-custodial: your keys, your funds.\n\n→ [Verify a receipt](/verify) · [Docs](/docs)",
verify: "Paste a CID at [/verify](/verify), no account needed. It checks the record **has not changed** since it was anchored and, if it is signed, **which key signed it**. It does not prove its contents are true. If you kept your copy of the receipt, `nirium cid receipt.json --expect ` proves it's the original.\n\nThere's an example of a payment that never happened: its policy blocked it, there is no transaction, and only the receipt records the decision.\n\nHow to anchor your own: [Docs](/docs).",
- payouts: "[Payouts](/payouts) pays up to **100 recipients** (contractors, freelancers, B2B payouts; not employee payroll) from one company wallet, in a single batch **you sign**. Every run is anchored to IPFS.\n\nOpen on testnet. On mainnet it is **invite-only**.",
+ payouts: "That is no longer part of Nirium. Today Nirium offers verifiable receipts (Audit Trail), Reporting and x402 billing: [Verify a receipt](/verify).",
pricing: "Plans and prices are at [/pricing](/pricing). Nirium **never charges a percentage** of the money you move or hold.",
x402: "With **x402** an API charges per request on Stellar: it answers 402 with the price, the client pays in USDC and retries.\n\nNirium runs x402 endpoints on mainnet and has SDKs to pay or charge: [Developers](/developers) · [Docs > x402 Sellers](/docs#x402-sellers). MPP Charge is experimental: verified on testnet, not on mainnet.",
- jurisdictions: "Audit Trail, Reporting and x402 run on mainnet. **Payouts and Treasury on mainnet** are invite-only and not offered in the EEA, the UK or the US; on **testnet** they stay open there as a demonstration.\n\nAccess is blocked from comprehensively sanctioned jurisdictions, those under a FATF call for action, and mainland China. Details in [Legal Disclaimers](/disclaimers).",
+ jurisdictions: "Audit Trail, Reporting and x402 run on mainnet.\n\nAccess is blocked from comprehensively sanctioned jurisdictions, those under a FATF call for action, and mainland China. Details in [Legal Disclaimers](/disclaimers).",
stats: "Live counts are at [/stats](/stats), each with its source so you can check it.",
dashboard: "The [Dashboard](/dashboard) shows the status of each node.\n\nThe data is pulled live from the agent's API, not a mock.",
limits: "Anchoring a receipt (`POST /api/audit/log`) needs no key today: 20 per minute per client, and every response carries `x-ratelimit-limit` and `x-ratelimit-remaining`. With a free key, the routes that ask for one allow 10 per minute and 100 per day. Details: [Docs](/docs).",
- marketplace: "A marketplace of treasury policy templates is only an idea: **it is not built and has no date**.\n\nWhat exists today is on [Treasury](/treasury).",
- treasury: "The [Treasury](/treasury) section moves a DeFindex vault's idle funds (USDC or CETES, one asset per vault) into its strategy and back. The vault is structured for you to own. Our code never swaps one asset for the other; the DeFindex role also allows swaps inside the vault, never out of it (Security).\n\nNirium holds only the rebalance role: it cannot withdraw funds and you can revoke it. On mainnet it is **invite-only** until we have a written legal opinion; today's live vault is Nirium's own, self-funded.",
- builder: "The [Treasury Builder](/treasury/builder) is a **preview**: it composes the automation schema, and execution runs in the node. Mainnet is invite-only.",
+ marketplace: "That is no longer part of Nirium. Today Nirium offers verifiable receipts (Audit Trail), Reporting and x402 billing: [Verify a receipt](/verify).",
+ treasury: "That is no longer part of Nirium. Today Nirium offers verifiable receipts (Audit Trail), Reporting and x402 billing: [Verify a receipt](/verify).",
+ builder: "That is no longer part of Nirium. Today Nirium offers verifiable receipts (Audit Trail), Reporting and x402 billing: [Verify a receipt](/verify).",
analytics: "The [Analytics](/analytics) section links real mainnet transactions on Stellar Expert, next to sample views that are labeled as such.",
- fiat: "To get tokenized CETES you contract directly with **Etherfuse**, an independent operator: you transfer to their CLABE and they issue the token to your wallet.\n\n**Nirium never receives, holds or converts fiat** - we only show the instruction and read the balance. KYC is done by Etherfuse. Test environment today: [see the flow](/ramp).",
+ fiat: "That is no longer part of Nirium. Today Nirium offers verifiable receipts (Audit Trail), Reporting and x402 billing: [Verify a receipt](/verify).",
devs: "The [Developers](/developers) section exposes a **REST API** (the main routes are listed there), TypeScript/Python SDK, MCP server for Claude/Cursor, and native **x402** support (MPP Charge client: experimental).",
docs: {
overview: "Nirium documentation: [View Documentation](/docs).",
api: "API: get a free key at [/keys](/keys) and follow the [Quickstart](/docs#quickstart).",
architecture: "What Nirium is and how the pieces fit: [Docs > Overview](/docs#what-it-is).",
- contracts: "Vault contract and capabilities: [Security](/security).",
+ contracts: "Who signs in each node: [Security](/security).",
agent: "Real status of each node: [Agents](/agents).",
- builder: "Treasury Builder (preview): [/treasury/builder](/treasury/builder).",
frontend: "SDK and integration examples: [Developers](/developers).",
reporting: "Summaries and exports of anchored receipts: [Docs > Reporting](/docs#reporting).",
security: "Security and limits: [Docs > Security & Limits](/docs#security-limits)."
},
- scf: "Nirium has received two SCF Instawards and follows:\n\n**· The Stellar Code of Conduct**\n**· No yield guarantees**\n\nRead more at [Code of Conduct](/coc).",
+ conduct: "Nirium follows:\n\n**· The Stellar Code of Conduct**\n**· No yield guarantees**\n\nRead more at [Code of Conduct](/coc).",
compliance: "The [Compliance](/compliance) page gathers Nirium's verifiable evidence.\n\nAnchoring a record is **opt-in, per call**: SHA-256 hash of the record → IPFS-anchored → JSON export, with an optional ed25519 signature attesting which key signed it. Anyone can check it at [/verify](/verify).",
- default: "I'm Nirium Guide. I can take you to:\n\n[Verify a receipt](/verify) · [Payouts](/payouts) · [Treasury](/treasury) · [Developers](/developers) · [Docs](/docs) · [Pricing](/pricing)\n\nWhat do you need?"
+ default: "I'm Nirium Guide. I can take you to:\n\n[Verify a receipt](/verify) · [Chains](/chains) · [Developers](/developers) · [Docs](/docs) · [Pricing](/pricing)\n\nWhat do you need?"
}
};
@@ -189,7 +178,7 @@ const ChatBot = () => {
if (has('dev', 'sdk', 'endpoint', 'mcp')) return currentKB.devs;
if (has('api', 'key', 'llave')) return currentKB.docs.api;
if (has('build', 'construir', 'visual')) return currentKB.docs.builder;
- if (has('scf', 'award', 'conducta', 'norma', 'rule', 'conduct')) return currentKB.scf;
+ if (has('conducta', 'norma', 'rule', 'conduct')) return currentKB.conduct;
if (has('qué es', 'que es', 'what is', 'nirium')) return currentKB.home;
return currentKB.default;
@@ -264,7 +253,7 @@ const ChatBot = () => {
initial={{ opacity: 0, y: 10, scale: 0.95 }}
animate={{ opacity: 1, y: 0, scale: 1 }}
exit={{ opacity: 0, y: 10, scale: 0.95 }}
- className="nirium-chat fixed bottom-20 sm:bottom-16 right-4 z-[100] w-[88vw] max-w-[280px] sm:w-[260px] h-[380px] sm:h-[320px] bg-[#0A0A0A]/98 backdrop-blur-2xl border border-white/10 rounded-xl shadow-2xl flex flex-col overflow-hidden"
+ className="nirium-chat fixed bottom-20 sm:bottom-16 right-4 z-[100] w-[88vw] max-w-[280px] sm:w-[260px] h-[380px] sm:h-[320px] max-h-[calc(100dvh-8rem)] bg-[#0A0A0A]/98 backdrop-blur-2xl border border-white/10 rounded-xl shadow-2xl flex flex-col overflow-hidden"
>
{/* Header */}
diff --git a/apps/web/components/ui/ComplianceBanner.tsx b/apps/web/components/ui/ComplianceBanner.tsx
index 83bc1b8d..1a8b8e66 100644
--- a/apps/web/components/ui/ComplianceBanner.tsx
+++ b/apps/web/components/ui/ComplianceBanner.tsx
@@ -1,5 +1,5 @@
'use client';
-import { Shield, CheckCircle, Heart } from 'lucide-react';
+import { Shield, CheckCircle } from 'lucide-react';
import { useLanguage } from "@/context/LanguageContext";
export function ComplianceBanner() {
@@ -19,7 +19,6 @@ export function ComplianceBanner() {
diff --git a/apps/web/dictionaries/en.json b/apps/web/dictionaries/en.json
index 7e06cfa2..fe744e92 100644
--- a/apps/web/dictionaries/en.json
+++ b/apps/web/dictionaries/en.json
@@ -6,9 +6,9 @@
"home": "Home",
"dashboard": "Dashboard",
"treasury": "Treasury",
- "analytics": "Analytics",
+ "analytics": "Reporting",
"ramp": "CETES via Etherfuse (demo)",
- "agents": "Execution Nodes",
+ "agents": "How it works",
"ecosystem": "Ecosystem",
"builder": "Strategy Builder (preview)",
"vault": "Vault Console",
@@ -31,10 +31,11 @@
"wallet_option_pollar": "Sign in",
"wallet_option_pollar_hint": "Email or Google - no extension needed",
"group_core": "CORE",
- "group_treasury": "TREASURY",
+ "group_treasury": "TREASURY · PAUSED ON MAINNET",
"group_developer": "DEVELOPER",
"product_menu": "Product",
"verifyAudit": "Verify receipt",
+ "chains": "Chains",
"stats": "Usage Stats"
},
"verifyAudit": {
@@ -67,7 +68,7 @@
"planned_label": "PLANNED · NOT BUILT YET",
"planned_title": "What verification will add",
"planned_items": [
- "Anchors on Stellar itself: each batch of receipts gets one Merkle root in a Soroban contract, so a receipt can be proven from Stellar alone and its time comes from the ledger, not our server clock",
+ "A receipt bound to the payment: the verifier checks the receipt against the transfer on Stellar, and with a hash memo the record gets the ledger's time instead of our server's clock",
"Policy-decision receipts built in: every ALLOW or DENY from the pre-sign hook anchored automatically, including payments that were refused and never signed (AgentLedger anchored five of its own by hand on 18 Nov 2026)",
"One receipt format for Stellar payments, x402 payments and escrow releases",
"Reconciliation that flags a payment with no receipt, or a receipt with no payment"
@@ -137,7 +138,16 @@
"field_tag": "Tag",
"field_schema": "Doc schema",
"field_tx": "Linked transaction",
- "tx_note": "The payment itself is proven by this transaction on Stellar.",
+ "tx_note": "The payment itself is proven by this transaction on Stellar. The link is node metadata: it is not covered by the record's hash or by the signature.",
+ "metadata_note": "Node metadata: not covered by the record's hash or by the signature.",
+ "agent_label": "Label",
+ "context_title": "Private context",
+ "context_intro": "This receipt carries only the sha-256 of its context (contextSha256). The issuer keeps the context. If they show it to you, paste it here exactly as they gave it: it is hashed in your browser and nothing is sent.",
+ "context_placeholder": "{\"orderId\": \"...\", \"quote\": \"...\"}",
+ "context_button": "Check context",
+ "context_match": "Matches: this is the context that was anchored.",
+ "context_mismatch": "Does not match: this is not the context that was anchored, or its fields are in a different order.",
+ "context_invalid": "That is not valid JSON.",
"no_record_note": "This anchor only declares a hash. The original evidence lives with whoever anchored it, not inside this document. There is nothing embedded here to recompute; if you have that evidence, compare it below without uploading it.",
"keep_copy_note": "Did you keep the full receipt with `nirium anchor --save receipt.json`? `nirium cid receipt.json --expect ` proves it's the original, even if IPFS lost it.",
"record_label": "Embedded record",
@@ -159,7 +169,7 @@
"badge": "Blog",
"heading_lead": "Field",
"heading_accent": "notes",
- "intro": "Field notes on building payment receipts, x402 and treasury infrastructure on Stellar - events, engineering, and the ecosystem.",
+ "intro": "Field notes on building payment receipts and x402 on Stellar - events, engineering, and the ecosystem.",
"read_article": "Read article",
"all_articles": "All articles",
"back_to_blog": "Back to blog",
@@ -171,61 +181,6 @@
"title": "Audit Trail on Stellar: verifiable payment receipts",
"excerpt": "Recap of the 30 October workshop: signed, independently verifiable receipts for payments made by apps, backends and AI agents on Stellar. See it work and verify it yourself."
},
- "codigo-402-agentes-que-pagan": {
- "tag": "Bootcamp",
- "title": "Código 402: the agents that pay - a free Stellar bootcamp",
- "excerpt": "Your code has never charged you a dime. A free, 5-session bootcamp with BAF, on Stellar, where you build an API that charges per call and an agent that pays on its own, on Stellar testnet.",
- "h1": "Your code has never charged you a dime. This changes that.",
- "hook": "Every time an AI agent calls your API and you don't charge it, you paid for it - the compute, the inference, the bandwidth. Free. Forever, until now.",
- "fact_date": "Nov 10-27",
- "fact_time": "6:00-7:15 PM CDMX",
- "fact_mode": "100% online",
- "fact_cost": "Free",
- "p_curiosity": "HTTP 402 - \"Payment Required\" - was reserved \"for future use\" in 1997, and it almost never got used. Until now.",
- "h_why": "Why this matters right now",
- "p_why1": "Until recently, the internet only knew how to charge humans: cards, subscriptions, checkouts. An AI agent doesn't have a card, doesn't open a cart, doesn't wait 3 days for an invoice to get approved. It needs to pay the instant it decides to use something, with no person watching.",
- "p_why2": "x402 is the protocol that finally solves that: an agent calls your API, your API answers \"402, this costs 0.02 USDC\", the agent pays right there, and gets its response in seconds. No account, no contract, no friction. It's already happening on mainnet.",
- "h_who": "Who this is for",
- "who_dev_title": "If you code",
- "who_dev_body": "You leave with a real repo: an API that charges, an agent that pays, and a verifiable receipt. Not notes - running code.",
- "who_nondev_title": "If you don't code yet",
- "who_nondev_body": "No session assumes you already know blockchain. If you follow basic logic, you'll understand every step - and see firsthand where the agent-run internet is headed.",
- "h_steps": "What you'll build",
- "step1_title": "Your API charges",
- "step1_body": "0.02 USDC before it answers a single request. No card, no invoice, no human in the loop.",
- "step2_title": "An agent pays",
- "step2_body": "on its own, inside a spending limit you set. Nobody approves each payment by hand.",
- "step3_title": "A receipt proves it",
- "step3_body": "signed and anchored, that anyone can verify - no one, including us, can fake it.",
- "p_risk": "100% on Stellar testnet. Test money, zero real risk. If you break something, nothing happens - that's the point of a sandbox.",
- "p_identity": "If you already know how to code - basic JavaScript, no blockchain background needed - you can do this. You don't leave with notes. You leave with your own public repo, working.",
- "h_learn": "What you'll actually learn, session by session",
- "learn1": "How a Stellar payment works end to end, with no middlemen",
- "learn2": "How to make any endpoint in your API charge per use, with the x402 protocol",
- "learn3": "How to give an AI agent a spending limit it can't go around",
- "learn4": "How to anchor a receipt anyone can verify, without trusting you",
- "learn5": "How to read and check a payment directly on the network, without a third-party dashboard",
- "h_sessions": "5 sessions + Demo Day",
- "p_sessions": "First Stellar payment. Charging for an API with x402. An agent that pays on its own, inside a spending limit it cannot go around. Verifying a payment via RPC or Horizon, with Nirium as the real case study. And a Demo Day where you show what you shipped.",
- "h_build": "What you could build next",
- "build1_title": "An API that pays for itself",
- "build1_body": "Any service of yours - data, compute, your own model - billed per call, no Stripe, no monthly plan.",
- "build2_title": "An autonomous buying agent",
- "build2_body": "A bot that finds the best price, pays, and delivers the result - with no human approving each transaction.",
- "build3_title": "A machine-to-machine marketplace",
- "build3_body": "Agents buying and selling services from other agents, 24/7, with no office or schedule.",
- "build4_title": "Verifiable invoicing for freelancers",
- "build4_body": "Receipts a client can check themselves, instead of just taking your word for it.",
- "build_cta_label": "Start building with Nirium",
- "where_label": "Who's behind it",
- "where_body": "Hosted by the Blockchain Acceleration Foundation, taught with Nirium - payment and audit-trail infrastructure for AI agents that has settled real x402 payments on Stellar mainnet (latest: 29 Sep 2026).",
- "cta_urgency": "In progress: Nov 10-27, 2026.",
- "cta_label": "See the event",
- "roadmap_label": "Coming soon",
- "roadmap_body": "A Soroban contract that batches these receipts into a single verifiable anchor. Not built yet - it is part of our roadmap.",
- "verify_body": "You do not have to take our word for it. Check a real receipt right now.",
- "verify_cta_label": "Verify a real receipt"
- },
"audit-trail-verify-it-yourself": {
"tag": "Audit Trail",
"title": "Anchor a receipt signed with your own Stellar key",
@@ -278,7 +233,7 @@
"bbva-open-deal-room": {
"tag": "Ecosystem",
"title": "Nirium at The Open Deal Room by Stellar - BBVA Tower, Mexico City",
- "excerpt": "We were one of six Stellar startups featured at La Arena inside BBVA Tower CDMX. Here is what we showed, who was in the room, and why an autonomous treasury agent belongs in front of institutional investors.",
+ "excerpt": "We were one of six Stellar startups featured at La Arena inside BBVA Tower CDMX. Here is what we showed and who was in the room.",
"h1": "Nirium at The Open Deal Room by Stellar",
"fact_date": "May 21, 2026",
"fact_place": "BBVA Tower, Mexico City",
@@ -300,51 +255,7 @@
"h_takeaway": "What we took away",
"takeaway_p1": "Beyond the pitch, the value of La Arena was the conversations it opened - with investors and ecosystem operators who understand both the Stellar stack and the Mexican regulatory context. Those are the relationships that turn a working testnet protocol into a funded, audited, mainnet product. We left with new threads to pull, and a clearer read on what institutional partners need to see next: verifiable adoption, not promises.",
"where_label": "Where we are",
- "where_body": "Nirium runs an autonomous agent on Stellar testnet and published TypeScript and Python SDKs. On mainnet, x402 payments, Audit Trail and Reporting already run, receive-only and non-custodial; MPP is experimental. NiriumVault, our own treasury contract, remains audit-gated. Backed by the Stellar ecosystem: two-time Stellar Community Fund Instawards recipient (via the Stellar Ambassador Program) and an active Stellar Mexico Ambassador. Updated 21 Oct 2026: 'regulated partners' now reads 'regulated third parties'. Updated 16 Nov 2026: 'regulated' now reads 'independent' where this post described Etherfuse and other third parties, because we have not checked their regulatory status ourselves. The product also changed since May: today the Treasury node moves a vault's funds into the vault's own strategy and back, one asset per vault, and does not convert USDC into CETES. Note, 21 Nov 2026: this describes what we presented in May. Today each vault holds one asset (USDC or CETES) and the agent only moves it between idle and the strategy, without converting one into the other; see /treasury. We also removed an unsourced \"roughly 10% a year to inflation\"."
- },
- "treasury-node-verify-it-yourself": {
- "tag": "Treasury",
- "title": "The Treasury Node on Mainnet: Don't Trust Us, Verify the Contract",
- "excerpt": "Nirium's agent holds the RebalanceManager role on a real DeFindex vault on Stellar mainnet - and the vault's own contract code makes withdrawal structurally impossible for that role, not just against our policy. Here is the transaction, the exact line of source code that proves it, and what it means for everyone involved.",
- "h1": "The Treasury Node on Mainnet: Don't Trust Us, Verify the Contract",
- "fact_date": "Aug 6, 2026",
- "fact_network": "Stellar mainnet",
- "fact_role": "RebalanceManager only",
- "p1": "Most \"non-custodial\" claims in this industry are a policy: a team says it won't move your funds, and you decide whether to believe them. Ours is a constraint enforced by a smart contract we don't control. This post walks through one real transaction that proves it, and what that proof is worth to everyone standing near it - DeFindex, Etherfuse, OtterSec, the Stellar ecosystem, the people who'd eventually trust an agent with real money, and Nirium itself.",
- "p2": "Nothing here is a summary you have to take on faith. Every hash, contract address, and line of code below is a link - go check it.",
- "h_fact": "The fact, in plain terms",
- "fact_p1": "On August 6, 2026 at 00:56:39 UTC, an address controlled by Nirium's agent called `rebalance()` on a live DeFindex vault on Stellar mainnet, with an `Invest` instruction, moving 1.0 CETES from the vault's idle balance into DeFindex's Etherfuse strategy. No human clicked anything. Transaction:",
- "fact_p2": "The address that signed this specific transaction has since rotated to a new key - routine operational hygiene, not a scandal. The vault's current RebalanceManager is itself a public, on-chain fact, readable by anyone by calling the vault's own `get_rebalance_manager()` view function - nothing about who holds this role is hidden behind our word.",
- "fact_p3": "Here's the part that actually matters: this isn't a policy Nirium chose to follow. It's what the vault contract's own code allows the RebalanceManager role to do, full stop. `rebalance()` accepts four instructions - `Unwind`, `Invest`, `SwapExactIn` and `SwapExactOut` - and none of them takes a destination address as an argument. (Corrected 12 Nov 2026: this post first said two; Nirium's own code only sends `Invest` and `Unwind`, but the role also allows the two swaps, whose output always goes back to the vault.) `Unwind` hardcodes the destination to `e.current_contract_address()`, the vault itself; `Invest` has no destination parameter at all, funds only ever move into a strategy the vault already trusts. Withdrawing to an arbitrary address isn't blocked by a check somewhere - there's no code path that accepts one. The real worst case with a leaked agent key is a swap at a bad price inside the vault, losing value to slippage. Every other real capability - pausing a strategy, rescuing funds, changing which address holds a role - belongs to the Manager, a role Nirium's agent does not hold.",
- "evidence_label": "Check it yourself",
- "evidence_tx_label": "The transaction (Stellar Expert)",
- "evidence_vault_label": "The vault contract",
- "evidence_strategy_label": "The Etherfuse strategy it invested into",
- "evidence_source_label": "The exact source code - rebalance(), Unwind and Invest",
- "evidence_roles_label": "DeFindex's own docs on vault roles",
- "evidence_audit_label": "OtterSec's audit of this vault contract family",
- "h_why": "Why this matters, beyond this one transaction",
- "why_p1": "\"We don't custody your funds\" is the most common sentence in DeFi, and by itself it's worth nothing - it's exactly what a team about to run off with your money would also say. What changes the calculus isn't the sentence, it's whether the claim is checkable by someone with no reason to trust you. A contract's source code is checkable. A team's intentions are not.",
- "why_p2": "That's the actual shift this transaction demonstrates: from \"trust us\" to \"here's the code, here's the transaction, go verify both yourself.\" The agent doesn't hold the role that could take custody - DeFindex's Manager role does, and on this vault that role sits with the vault owner's key, separate from the agent's key. Today that owner is our own team (a self-funded test vault), so this proves the mechanism, not client custody. The agent proposes and executes rebalancing; it structurally cannot walk away with the money.",
- "h_impact": "What this means, actor by actor",
- "impact_intro": "This isn't one story - it's a different, specific claim for each party near it, and none of them are ours to make unilaterally. Here's what each one can actually check.",
- "impact_defindex_h": "For DeFindex",
- "impact_defindex_p": "A vault architecture is only as strong as its worst integration. This is a real third party - not DeFindex's own documentation, not a synthetic test - putting real value through the RebalanceManager role exactly as designed, on mainnet, with the outcome publicly verifiable. That's a harder validation than any internal test suite can produce, and it's evidence DeFindex can point to, not just claim.",
- "impact_etherfuse_h": "For Etherfuse",
- "impact_etherfuse_p": "CETES on Stellar just gained one more real, automated, and now-verified path into it - capital moving into the Etherfuse Blend strategy without a human at a terminal, and without anyone having to trust the party operating that automation. That's a concrete answer to the question every potential integrator asks before connecting to a yield product: what happens if the thing sending me capital gets compromised? Here: nothing it isn't allowed to do, because the contract won't let it.",
- "impact_ottersec_h": "For OtterSec",
- "impact_ottersec_p": "An audit report proves code was reviewed. A real transaction, months later, behaving exactly the way that audited code says it should, is one more real data point that the contract behaves as documented, under an integration nobody wrote to pass a test. What the audit covered is OtterSec's to say, not ours.",
- "impact_stellar_h": "For Stellar as an ecosystem",
- "impact_stellar_p": "Non-custodial DeFi automation is a common pitch and a rare mainnet artifact. This is one concrete, dated, on-chain example of an autonomous agent moving real value between DeFi primitives on Stellar without ever holding custody of it - not a roadmap slide, not a testnet demo, a transaction anyone can decode themselves.",
- "impact_clients_h": "For the people who'd eventually trust an agent with real money",
- "impact_clients_p": "To be direct about where this stands today: the vault in this post is Nirium's own team proving the mechanism with its own funds, not an outside client's money yet - worth saying plainly, since the whole point of this post is not overstating what's verifiable. What it gives a future client isn't a promise that it'll work when it's their turn. It's something to check before they ever have to take our word for anything: the exact contract, the exact role, the exact transaction, all public, all today.",
- "impact_nirium_h": "For Nirium",
- "impact_nirium_p": "This is the kind of evidence that doesn't inflate under scrutiny - it's stronger the harder someone looks at it, which is the opposite of most claims made in this space. For the Stellar Community Fund and for any future partner evaluating whether the non-custodial claim is real, this transaction and the three lines of contract code behind it are the actual differentiator, not a line in a pitch deck.",
- "regulatory_map_p": "One more thing: each party near this flow answers for its own activity under its own rules - Circle for USDC, Etherfuse for its tokenized CETES, DeFindex for its contracts. Their regulatory status is theirs to state; ask them, not us.",
- "h_close": "Go check it",
- "close_p1": "Every link above resolves to something you don't have to take our word for - a live block explorer, a public GitHub repository, a documentation page DeFindex controls, not us. Decode the transaction. Read the contract. If something here doesn't hold up the way this post says it does, that's worth knowing - for you and for us.",
- "where_label": "Where we are",
- "where_body": "Nirium's Treasury Node runs on mainnet as the RebalanceManager on a DeFindex vault structured so a client would own it - invite-only pending a written legal opinion on a specific open question under Mexico's anti-money-laundering law (LFPIORPI art. 17 fraction XVI, as Art. 24 Bis 4 of its General Rules defines it) on virtual-asset intermediation, with a public, client-signed path (propose-and-sign) available to anyone today. x402 settles on both testnet and mainnet (latest mainnet settlement: 24 Nov 2026, our own test), and audit anchoring runs on both. Correction (20 Oct 2026): an earlier version of this post said MPP was live on mainnet. MPP Charge is verified on testnet only. Treasury rebalancing has run on mainnet 4 times, on 6 Aug 2026, with the team's own funds - today's vault is our own team's, self-funded, not an outside client's yet. Corrected 16 Nov 2026: this post described Etherfuse's and Circle's regulatory status, said this flow converts USDC to CETES, and called the transaction 'audited and confirmed in production'. Those passages were removed or reworded: we had not verified the third-party regulatory claims ourselves, the vault holds one asset and does not convert, and what an audit covered is the auditor's to say."
+ "where_body": "Update, 1 Dec 2026: this post describes what we presented in May. Treasury was tested only with the team's own funds and was discontinued on 30 Nov 2026. Today Nirium runs Audit Trail, Reporting and x402 on Stellar mainnet, receive-only and non-custodial; MPP is experimental. Updated 21 Oct 2026: 'regulated partners' now reads 'regulated third parties'. Updated 16 Nov 2026: 'regulated' now reads 'independent' where this post described Etherfuse and other third parties, because we have not checked their regulatory status ourselves. We also removed an unsourced \"roughly 10% a year to inflation\"."
},
"x402-outage-verify-it-yourself": {
"tag": "Settlement",
@@ -388,16 +299,13 @@
}
}
},
- "footer": {
- "scf_verified": "SCF INSTAWARD RECIPIENT"
- },
"home": {
"institutional_use_cases": {
"startup_ideas": {
"badge": "FOUNDERS · WEEKEND BUILDS",
"title": "What you can build",
"title_span": "with Nirium",
- "subtitle": "Twelve product ideas you can prototype on our stack. Most of the pieces run on Stellar Testnet today. Two (marked Invite-Only) touch an open legal question, with no written legal opinion yet, and are not open for general use.",
+ "subtitle": "Six product ideas you can prototype on our stack. Most of the pieces run on Stellar Testnet today.",
"items": {
"global_payroll": {
"name": "Global Contractor Payouts",
@@ -407,7 +315,7 @@
"Vault",
"Fiat Ramp (sandbox)"
],
- "time": "Non-Custodial"
+ "time": "Paused on mainnet"
},
"m2m_exchange": {
"name": "M2M Inference Market",
@@ -440,10 +348,9 @@
},
"grant_distributor": {
"name": "Autonomous Grants",
- "tagline": "Agents verify on-chain milestones and propose a release; the DAO's own vault and signers authorize it - same non-custodial pattern as Treasury Rebalance, where the agent can propose but structurally can't redirect funds.",
+ "tagline": "An agent checks a public milestone and proposes an unsigned payment from the DAO; two of its three signers sign it before it is sent. The agent can propose but never moves the funds.",
"stack": [
- "Vault",
- "Execute"
+ "Multisig"
],
"time": "Governance"
},
@@ -452,8 +359,7 @@
"tagline": "Pay logistics providers the moment a delivery is IoT-verified. Uses x402 for instant settlement on Stellar.",
"stack": [
"x402",
- "Webhooks",
- "Execute"
+ "Audit Trail"
],
"time": "B2B Hybrid"
},
@@ -462,19 +368,18 @@
"tagline": "M2M micro-payments between solar panels and storage units. Automates energy trading with x402 and IoT sensors.",
"stack": [
"x402",
- "Webhooks",
"mcp"
],
"time": "M2M Green"
},
"rwa_market": {
"name": "Institutional RWA",
- "tagline": "B2B infrastructure for sovereign-instrument routing (CETES via Etherfuse) - the operator sets the mandate; agents execute it within that mandate, never taking custody. This is the real Treasury Rebalance node - invite-only while it is an open question whether it falls under fraction XVI of article 17 of the LFPIORPI (as article 24 Bis 4 of its Reglas defines it), with no written legal opinion yet.",
+ "tagline": "B2B infrastructure for sovereign-instrument routing (CETES via Etherfuse) - the operator sets the mandate; agents execute it within that mandate, never taking custody. This is the real Treasury Rebalance node - paused while it is an open question whether it falls under fraction XVI of article 17 of the LFPIORPI (as article 24 Bis 4 of its Reglas defines it), with no written legal opinion yet.",
"stack": [
"Vault",
"Execute"
],
- "time": "Invite-Only"
+ "time": "Paused on Mainnet"
},
"defi_insurance": {
"name": "Risk Mitigation Vaults",
@@ -501,7 +406,6 @@
"tagline": "Agents that fetch real-world data and push it to Soroban smart contracts, monetizing their accuracy via x402 fees.",
"stack": [
"Skills",
- "Execute",
"x402"
],
"time": "Data Infra"
@@ -513,20 +417,20 @@
"Vault",
"Execute"
],
- "time": "Invite-Only"
+ "time": "Paused on Mainnet"
}
},
"stack_label": "Built on",
"time_label": "Time to ship",
"blueprint": "Read the docs",
"cta_title": "Have a different idea?",
- "cta_subtitle": "Every primitive is public. Mix vaults, agents, x402 and MPP however you need.",
+ "cta_subtitle": "Every primitive is public. Mix receipts, agents, x402 and MPP however you need.",
"cta_button": "Start building",
"cta_discord": "Talk to the team"
},
"api_hub": {
"title": "Build with Nirium",
- "subtitle": "Everything you need to ship on Stellar - APIs, SDKs, MCP servers and a visual studio.",
+ "subtitle": "Everything you need to ship on Stellar - APIs, SDKs and MCP servers.",
"badge": "DEVELOPER PLATFORM",
"endpoints_title": "Unified API",
"sdk_title": "Official SDKs",
@@ -564,7 +468,7 @@
},
"vault": {
"label": "Treasury Vaults",
- "desc": "Deploy, deposit, withdraw - client signs every tx. On mainnet, deploy and deposit are invite-only."
+ "desc": "Deploy, deposit, withdraw - client signs every tx. On mainnet, deploy and deposit are paused."
},
"audit": {
"label": "Audit Trail",
@@ -572,7 +476,7 @@
},
"payroll": {
"label": "Payouts",
- "desc": "Builds a batch payment you sign yourself."
+ "desc": "Build a batch payment that you sign. Paused on mainnet."
},
"webhooks": {
"label": "Webhooks",
@@ -584,7 +488,7 @@
"name": "TypeScript SDK",
"sub": "NPM · nirium",
"cmd": "npm install nirium",
- "badge": "v0.20.0"
+ "badge": "v0.21.0"
},
"py": {
"name": "Python SDK",
@@ -596,7 +500,7 @@
"name": "MCP Server",
"sub": "Claude Desktop · Cursor · any MCP client",
"cmd": "npx nirium-mcp",
- "badge": "v0.6.13"
+ "badge": "v0.8.0"
},
"rest": {
"name": "REST API",
@@ -608,7 +512,7 @@
"name": "Treasury Builder",
"sub": "No-code rebalance rule drafts",
"cmd": "Open in browser",
- "badge": "Beta"
+ "badge": "Paused on mainnet"
}
},
"code_tabs": {
@@ -631,7 +535,7 @@
},
"dashboard": {
"title": "OPERATOR DASHBOARD",
- "version_live": "v0.20.0",
+ "version_live": "v0.21.0",
"loading_dashboard": "Loading dashboard...",
"no_helpers": "No active execution nodes.",
"no_helpers_desc": "Initialize your vault and delegate the agent to activate autonomous rebalancing.",
@@ -744,8 +648,7 @@
"non_financial": "NON-FINANCIAL ADVICE // REFERENCE DATA",
"sdex_spread": "SDEX SPREAD"
},
- "non_custodial": "Non-Custodial",
- "scf_7": "TWO SCF INSTAWARDS"
+ "non_custodial": "Non-Custodial"
},
"toasts": {
"broadcast_failed": "Could not complete it"
@@ -753,44 +656,44 @@
"terms": {
"title": "Terms of Service",
"badge": "Terms of service",
- "last_updated": "Last updated: November 25, 2026",
+ "last_updated": "Last updated: December 1, 2026",
"footer": "If you use Nirium, these terms apply together with the Privacy Notice, the Risk Disclosure and the Legal Disclaimers. Nothing here limits the rights the law gives you.",
"sections": {
"nature": {
"title": "1. What Nirium is",
- "content": "Nirium is software. It runs nodes and an API on Stellar to charge per call (x402), anchor receipts (Audit Trail), report, build batch payouts that the client signs (Payouts) and rebalance the client's own vault (Treasury). Nirium never custodies client funds. Issuing, holding and redeeming real-world assets such as CETES is done by third parties under their own terms, such as Etherfuse."
+ "content": "Nirium is software. It runs nodes and an API on Stellar to charge per call (x402), anchor receipts (Audit Trail) and report. On Solana and Avalanche it offers first versions: libraries that run in your own code, receipts anchored on its node, and a market that sells each chain's network data through x402. On Base and Arbitrum, since 1 Dec 2026, it runs the same market and anchors and reports receipts from those chains. Nirium never custodies client funds. Update, 30 Nov 2026: Payouts and Treasury, tested only with the team's own funds, were discontinued. Update, 27 Nov 2026: this section spoke only of Stellar."
},
"no_guarantees": {
"title": "2. No guarantee of returns",
- "content": "Nirium does not guarantee returns or the liquidity of any asset or market. Rates and metrics shown on the site are for information only. Nirium is software and is not offered as an investment. Funds stay under the client's own keys."
+ "content": "Nirium does not guarantee returns or the liquidity of any asset or market. Reference data Nirium returns, such as network fees, and the site's metrics are for information only. Nirium is software and is not offered as an investment. Funds stay under the client's own keys."
},
"ai_liability": {
"title": "3. Automation",
- "content": "If you enable autonomous rebalancing, you authorize Nirium's agent to sign, with its own key, moves between your DeFindex vault and its strategies, following the thresholds you set. That role cannot withdraw funds, and you can revoke it at any time. The role you hand over also allows swaps inside the vault; Nirium's code does not send them, and no instruction allows taking funds out of the vault. Automated systems, data sources and external APIs can fail, be late or return wrong data; the risks are described in the Risk Disclosure."
+ "content": "Nirium's automation is limited to software you run or call: a pre-sign policy that runs in your own client and can only refuse to sign, and receipts you choose to anchor. Automated systems, data sources and external APIs can fail, be late or return wrong data; the risks are described in the Risk Disclosure. Update, 30 Nov 2026: this section described autonomous rebalancing of a DeFindex vault, archived with Treasury that day."
},
"rwa_disclaimer": {
- "title": "4. Tokenized assets (USDC, CETES)",
- "content": "USDC is issued by Circle; tokenized CETES are issued by Etherfuse. Their value and redemption depend on those issuers and, for CETES, on the Mexican government bonds that, according to Etherfuse, back them. Nirium does not issue, hold or redeem either. On mainnet, CETES exposure happens through DeFindex vaults the client owns (invite-only until there is a written legal opinion); on testnet, also through Nirium's own NiriumVault contract, as a proof of concept."
+ "title": "4. Tokenized assets (USDC)",
+ "content": "USDC is issued by Circle; its value and redemption depend on Circle. Nirium does not issue, hold or redeem it. Update, 30 Nov 2026: this section also covered tokenized CETES, which Nirium only reached through Treasury, archived that day."
},
"dispute": {
"title": "5. Governing law and disputes",
- "content": "These terms are governed by the federal laws of Mexico. Disputes go to the competent courts of Mexico City, unless both parties agree in writing to arbitration, in which case the written agreement names the institution and rules. For Payouts, its own terms apply. Nothing here takes away rights the law gives you as a consumer."
+ "content": "These terms are governed by the federal laws of Mexico. Disputes go to the competent courts of Mexico City, unless both parties agree in writing to arbitration, in which case the written agreement names the institution and rules. Nothing here takes away rights the law gives you as a consumer."
},
"infrastructure": {
"title": "6. Availability",
- "content": "The software is provided as is. We do not guarantee it is always available: it depends on the Stellar network and on providers such as Fly.io, Vercel, Supabase, IPFS gateways and the x402 facilitator. We are not liable for losses caused by failures of the network or of those third parties, except for intentional misconduct (dolo) or to the extent the law does not allow that liability to be excluded."
+ "content": "The software is provided as is. We do not guarantee it is always available: it depends on the Stellar, Solana, Avalanche, Base and Arbitrum networks and on providers such as Fly.io, Vercel, Supabase, IPFS gateways and the x402 facilitators (OpenZeppelin on Stellar, PayAI on Solana, Avalanche, Base and Arbitrum). We are not liable for losses caused by failures of the networks or of those third parties, except for intentional misconduct (dolo) or to the extent the law does not allow that liability to be excluded."
},
"reverse_solicitation": {
"title": "7. What Nirium does not do",
- "content": "Nirium holds no financial authorization. Whether autonomous rebalancing and Payouts fall under fraction XVI of article 17 of the LFPIORPI is an open question, and so is whether a tokenized CETES counts as a security (valor); there is no written legal opinion on either yet. Meanwhile autonomous rebalancing and Payouts are invite-only on mainnet. Each party complies, for its own clients, with the financial, sanctions and anti-money-laundering laws that apply to it. Update, 25 Nov 2026: this section said Nirium \"does not offer securities to the public\" and \"is not a financial entity\", and section 2 that it is not \"a security\". No lawyer has reviewed those statements, so they were removed."
+ "content": "Nirium holds no financial authorization. Treasury and Payouts, the two pieces whose fit under fraction XVI of article 17 of the LFPIORPI was an open question with no written legal opinion, were archived on 30 Nov 2026 and are not offered on any network. Each party complies, for its own clients, with the financial, sanctions and anti-money-laundering laws that apply to it. Update, 25 Nov 2026: this section said Nirium \"does not offer securities to the public\" and \"is not a financial entity\", and section 2 that it is not \"a security\". No lawyer has reviewed those statements, so they were removed."
},
"restricted_jurisdictions": {
"title": "8. Restricted jurisdictions and sanctions",
- "content": "Nirium Protocol operates from Mexico, run by its founders, with no incorporated legal entity to date, and seeks not to offer services where they would be regulated activity without the corresponding authorization; that is why, until it has a written legal opinion, Payouts and Treasury on mainnet are invite-only. Access is prohibited from comprehensively sanctioned jurisdictions, jurisdictions under a FATF call for action, and mainland China. In the European Economic Area, the United Kingdom and the United States, pending a written legal opinion, Payouts and the Treasury node are not offered on mainnet; on testnet both stay available as a demonstration, and withdrawing from a vault you already own is never restricted there. By using any Nirium service you represent, each time, that you are not located in or resident of a prohibited jurisdiction and are not a sanctioned person or acting for one. Nirium may block access by technical means, including IP geolocation, and may refuse or end service. Because Nirium never holds funds, ending service never strands assets: your keys, accounts and vaults keep working without us. The full policy governs: /legal/restricted-jurisdictions-v1.md.\n\nUpdate, 21 Nov 2026: this section said Nirium \"does not offer its services into jurisdictions where they would be regulated activity, however the software is built\". Read that way it claimed Nirium already knows its services are not regulated in Mexico, which is the open question in section 7. Section 3 also described the rebalance role without saying it allows swaps inside the vault."
+ "content": "Nirium Protocol operates from Mexico, run by its founders, with no incorporated legal entity to date, and seeks not to offer services where they would be regulated activity without the corresponding authorization. Access is prohibited from comprehensively sanctioned jurisdictions, jurisdictions under a FATF call for action, and mainland China. By using any Nirium service you represent, each time, that you are not located in or resident of a prohibited jurisdiction and are not a sanctioned person or acting for one. Nirium may block access by technical means, including IP geolocation, and may refuse or end service. Because Nirium never holds funds, ending service never strands assets: your keys and accounts keep working without us. The full policy governs: /legal/restricted-jurisdictions-v1.md.\n\nUpdate, 30 Nov 2026: Treasury and Payouts, tested only with the team's own funds, were discontinued; the sentences about their pause on mainnet were removed. Update, 21 Nov 2026: this section said Nirium \"does not offer its services into jurisdictions where they would be regulated activity, however the software is built\". Read that way it claimed Nirium already knows its services are not regulated in Mexico, which is the open question in section 7. Section 3 also described the rebalance role without saying it allows swaps inside the vault."
},
"intellectual_property": {
"title": "9. Open source and brand",
- "content": "Nirium's code (contracts, packages, MCP, agent API and the interface) is published under the Apache 2.0 license, which lets you use, modify and redistribute it on that license's terms. That license does not cover the Nirium name or logo. Using the nodes Nirium runs (API keys, hosted endpoints) is governed by these terms and can be limited or suspended for abuse, under the jurisdictions policy, or to protect the service."
+ "content": "Nirium's open-source code (contracts, packages, MCP and the interface) is published under the Apache 2.0 license, which lets you use, modify and redistribute it on that license's terms. That license does not cover the Nirium name or logo. Using the nodes Nirium runs (API keys, hosted endpoints) is governed by these terms and can be limited or suspended for abuse, under the jurisdictions policy, or to protect the service. The code of the nodes Nirium hosts is not public; the receipts they anchor can be checked without it. Update, 1 Dec 2026: this section listed the agent API as published under Apache 2.0."
},
"stellar_code": {
"title": "10. Stellar Code of Conduct",
@@ -805,7 +708,7 @@
"item_non_custodial": "You understand that Nirium is a software provider and never holds your keys or funds: custody stays with you or the provider you choose.",
"item_elo_historical": "You acknowledge that routing simulations do not imply or guarantee future settlement rates or availability.",
"item_systemic_risk": "You accept the systemic technological risk inherent in smart contracts, oracle latency, and third-party APIs (SLA).",
- "item_liability": "You release Nirium Software from all legal liability for network failures, bugs in automation logic, or interruptions in CETES settlement.",
+ "item_liability": "You release Nirium Software from all legal liability for network failures, bugs in automation logic, or interruptions in third-party settlement.",
"item_scf_coc": "The institution commits to respecting the Stellar Code of Conduct and the ecosystem's B2B transparency standards.",
"button_sign": "SIGN B2B SOFTWARE AGREEMENT",
"button_signing": "AWAITING WALLET SIGNATURE...",
@@ -815,24 +718,24 @@
"risk_disclosure": {
"title": "Risk Disclosure",
"badge": "Risk notice",
- "last_updated": "Last updated: November 21, 2026",
- "mandatory": "Read this before using Nirium: it is experimental open-source software on Stellar. You sign your own transactions, and you can lose funds.",
+ "last_updated": "Last updated: December 1, 2026",
+ "mandatory": "Read this before using Nirium: it is experimental software on Stellar, with first versions on Solana, Avalanche, Base and Arbitrum; its packages are open source. You sign your own transactions, and you can lose funds.",
"sections": {
"execution": {
- "title": "1. Autonomous rebalancing (Treasury)",
- "content": "If you enable autonomous rebalancing, you name Nirium's agent as the RebalanceManager of your own DeFindex vault. That role can only move funds between your vault and its strategies: it cannot withdraw them, and you can revoke it at any time. It can still act at a bad moment: the agent can decide wrongly, run late or stop, and the nodes that run it can go down. Someone who obtained the agent's key could move funds between your vault and its strategies, or swap inside the vault (the role allows it; Nirium's code never sends one), and lose value to slippage, but never take funds out of the vault. On mainnet this is invite-only, and so is deploying or funding a vault from this site; withdrawing from a vault you already own is never restricted."
+ "title": "1. Pre-sign policy and automation",
+ "content": "A pre-sign policy runs in your own client and decides whether your own wallet signs a payment. It can decide wrongly or fail: a payment it should have refused can be signed, or one it should have allowed can be refused. Test your rules before relying on them. Update, 30 Nov 2026: this section described autonomous rebalancing (Treasury), discontinued that day."
},
"contracts": {
"title": "2. Smart contracts and third-party protocols",
- "content": "Vaults are DeFindex contracts, and their strategies lend through Blend. Both have third-party audits (DeFindex by OtterSec, March 2025; Blend, a Code4rena audit and two Certora reports, marked as draft), but an audit does not remove risk and does not cover each vault's configuration. Taking funds out of a lending strategy depends on that pool having enough liquidity at that moment. Nirium's own contracts (NiriumVault, NiriumProtocol) are not audited and run on testnet only. On testnet, Nirium's admin key can pause NiriumVault in an emergency; while paused nobody can withdraw until it is resumed. Pausing moves no funds."
+ "content": "Payments use contracts and services Nirium does not control, such as the USDC contract on each network and third-party x402 facilitators; an audit, where one exists, does not remove risk. Nirium's own contracts (NiriumVault, NiriumProtocol) are not audited, ran on testnet only and are archived with Treasury. Update, 30 Nov 2026: this section described DeFindex vaults and Blend strategies, archived with Treasury that day."
},
"sovereign_assets": {
- "title": "3. Tokenized assets (USDC, CETES)",
- "content": "USDC is issued by Circle; tokenized CETES are issued by Etherfuse. Their value and redemption depend on those issuers and, for CETES, on the Mexican government bonds that, according to Etherfuse, back them. Nirium does not issue, hold or redeem either. Whether a tokenized CETES counts as a security (valor) under Mexico's Securities Market Law is an open legal question. Rates shown on this site are reference data, not a promise of return.\n\nUpdate, 21 Nov 2026: this section stated as fact that tokenized CETES are backed by bonds; it now attributes that to Etherfuse. Nirium does not answer for a third party's reserves."
+ "title": "3. Tokenized assets (USDC)",
+ "content": "USDC is issued by Circle; its value and redemption depend on Circle. Nirium does not issue, hold or redeem it. Reference data Nirium returns, such as network fees, is not a promise of return. Update, 30 Nov 2026: this section also covered tokenized CETES, which Nirium only reached through Treasury, archived that day."
},
"payments": {
- "title": "4. Payments and Payouts",
- "content": "Stellar transactions are final: a payment sent to a wrong address cannot be reversed by Nirium or by anyone else. You sign every payout with your own wallet, so check each recipient before signing. x402 payments settle through a third-party facilitator; if it is unavailable, the paid call fails. It can also happen the other way round: the payment settles on the network, the facilitator answers with an error, and the call is not delivered. We saw it with OpenZeppelin's facilitator on testnet on 9 Nov 2026. If it happens to you, the payment is visible on the network with its hash."
+ "title": "4. Payments",
+ "content": "Transactions on Stellar, Solana, Avalanche, Base and Arbitrum are final: a payment sent to a wrong address cannot be reversed by Nirium or by anyone else. You sign every payment with your own wallet, so check the recipient before signing. x402 payments settle through a third-party facilitator (OpenZeppelin on Stellar, PayAI on Solana, Avalanche, Base and Arbitrum); if it is unavailable, the paid call fails. It can also happen the other way round: the payment settles on the network, the facilitator answers with an error, and the call is not delivered. We saw it with OpenZeppelin's facilitator on testnet on 9 Nov 2026. If it happens to you, the payment is visible on the network with its hash. Update, 27 Nov 2026: this section spoke only of Stellar."
},
"data": {
"title": "5. Audit Trail records",
@@ -840,7 +743,7 @@
},
"governance": {
"title": "6. Legal and regulatory",
- "content": "Nirium provides software and does not custody funds. Whether autonomous rebalancing and Payouts fall under fraction XVI of article 17 of the LFPIORPI (virtual assets) is an open question, with no written legal opinion yet; both stay invite-only on mainnet until it is answered. Each party complies with the law for its own clients: this page does not move anyone's legal obligations onto someone else. Access is prohibited from comprehensively sanctioned jurisdictions, jurisdictions under a FATF call for action, and mainland China. In the EEA, the UK and the US, Payouts and Treasury are not offered on mainnet; on testnet they stay available as a demonstration. Full policy: /legal/restricted-jurisdictions-v1.md. This is not legal or financial advice."
+ "content": "Nirium provides software and does not custody funds. Treasury and Payouts, the pieces whose fit under fraction XVI of article 17 of the LFPIORPI (virtual assets) was an open question with no written legal opinion, were archived on 30 Nov 2026 and are not offered on any network. Each party complies with the law for its own clients: this page does not move anyone's legal obligations onto someone else. Access is prohibited from comprehensively sanctioned jurisdictions, jurisdictions under a FATF call for action, and mainland China. Full policy: /legal/restricted-jurisdictions-v1.md. This is not legal or financial advice."
}
},
"footer": "Using Nirium means you have read these risks. Nothing on this page limits the rights the law gives you."
@@ -999,18 +902,18 @@
},
"strategy_builder": {
"upgrade_banner": {
- "preview": "Preview mode - the canvas composes the schema; execution runs in the node. The autonomous treasury is already deployed on mainnet over a DeFindex vault structured for you to own (today's is our own, self-funded), invite-only until we have a written legal opinion. NiriumVault, our own contract, stays on testnet until the external audit.",
+ "preview": "Preview mode - the canvas composes the schema; execution runs in the node. The autonomous treasury is already deployed on mainnet over a DeFindex vault structured for you to own (today's is our own, self-funded), paused until we have a written legal opinion. NiriumVault, our own contract, stays on testnet until the external audit.",
"upgrade": "Request access"
},
"deploy_gate": {
- "title": "Preview only · mainnet is invite-only",
+ "title": "Preview only · mainnet is paused",
"plan": "Request access"
}
},
"ramp": {
"header": {
"badge": "CETES via Etherfuse - independent operator",
- "title": "Get CETES through Etherfuse",
+ "title": "CETES via Etherfuse · demo in its test environment",
"subtitle": "Transfer MXN via SPEI to a CLABE. Etherfuse - an independent operator - converts it to tokenized CETES on Stellar at the quote Etherfuse returns for each order. KYC/KYB required. Test environment active - no real funds are moved."
},
"component": {
@@ -1088,7 +991,7 @@
"hero": {
"title": "Audit Trail",
"tagline": "Receipts anyone can verify",
- "subtitle": "Any node action you choose to record gets a SHA-256 hash of its content and is anchored on IPFS when you ask (each Payouts run anchors its own receipt automatically). Anyone with the CID can check it on /verify, without an account."
+ "subtitle": "Any node action you choose to record gets a SHA-256 hash of its content and is anchored on IPFS when you ask. Anyone with the CID can check it on /verify, without an account."
},
"layers": {
"title": "Five pieces of every record",
@@ -1106,7 +1009,7 @@
},
"cnbv": {
"title": "Export (CSV or JSON)",
- "desc": "`nirium report export` lists payouts, payments and anchors with date and network, plus the transaction when there is one. The public export carries no CIDs: a record's CID belongs to whoever made it."
+ "desc": "`nirium report export` lists payments and anchors with date and network, plus the transaction when there is one. The public export carries no CIDs: a record's CID belongs to whoever made it."
},
"lcp": {
"title": "Legal context (LCP): not active yet",
@@ -1139,7 +1042,7 @@
"integrity": "Real output, mainnet, 21 Nov 2026",
"note": "The first three rows the command returned on 21 Nov 2026. The export carries no CIDs."
},
- "disclaimer": "Nirium solely provides the technical software infrastructure. We do not provide legal advice. The interpretation, generation, and submission of reports to regulatory authorities (such as the CNBV or the UIF) is the exclusive responsibility of the financial operator utilizing the API.",
+ "disclaimer": "Nirium solely provides the technical software infrastructure. We do not provide legal advice. The interpretation, generation, and submission of reports to regulatory authorities (such as the CNBV or the UIF) is the exclusive responsibility of whoever uses the API.",
"cta": {
"title": "Try it on testnet",
"subtitle": "Anchor a record, then check its CID on /verify.",
@@ -1154,7 +1057,7 @@
},
"quickstart": {
"title": "Quickstart",
- "subtitle": "Read market data, list the nodes and anchor a receipt. Free on testnet."
+ "subtitle": "Anchor a receipt, read the Reporting summary and list the nodes. Free on testnet."
},
"agentic_payments": {
"title": "Pay and charge per request",
@@ -1179,18 +1082,18 @@
},
"mcp": {
"title": "MCP server",
- "subtitle": "Connect Claude Desktop or Cursor to Nirium's nodes: market data, Audit Trail anchors, Reporting and Treasury tools. Free tools work without a key; Treasury and loop control need an API key, and autonomous rebalancing on mainnet is invite-only.",
- "tools_count": "25 tools (nirium-mcp 0.6.13)"
+ "subtitle": "Connect Claude Desktop or Cursor to Nirium's nodes: Audit Trail receipts, Reporting, market data and x402. Free tools work without a key. Listed in the official MCP Registry.",
+ "tools_count": "14 tools (nirium-mcp 0.8.0)"
},
"hub": {
"title": "API reference",
- "subtitle": "Every route below exists on both nodes, checked on 21 Nov 2026: 200 where it is public, 400 or 401 where it needs parameters or a key, 402 where it needs payment, 501 where the mainnet node does not offer it, 451 for Payouts and Treasury from a jurisdiction where they are not offered (for the EEA, the UK and the US, only on mainnet since 18 Nov 2026).",
+ "subtitle": "Every route below exists on both nodes, checked on 21 Nov 2026: 200 where it is public, 400 or 401 where it needs parameters or a key, 402 where it needs payment, 501 where the mainnet node does not offer it.",
"infrastructure": "Main routes",
"explorer": "By area"
},
"nodes": {
"title": "Testnet contracts",
- "subtitle": "Soroban contracts on Stellar testnet. The mainnet Treasury node runs on DeFindex vaults, not on these."
+ "subtitle": "The contract the x402 endpoints charge in on Stellar testnet."
},
"resources": {
"view_docs": "Open"
@@ -1206,8 +1109,8 @@
"badge": "A DeFindex vault you own",
"title": "Treasury Node",
"subtitle": "Moves your vault's idle funds (USDC or CETES) into its Blend strategy and back when the yield crosses the thresholds you set. The vault is yours; Nirium only holds the role that rebalances inside it.",
- "invite_note": "On mainnet, autonomous rebalancing and deploying or funding a vault from this site or the API are invite-only until we have a written legal opinion. On testnet you can deploy, deposit and ask for moves without an invitation.",
- "invite_badge": "Invite-only",
+ "invite_note": "On mainnet, autonomous rebalancing and deploying or funding a vault from this site or the API are paused until we have a written legal opinion. On testnet you can deploy, deposit and ask for moves without an invitation.",
+ "invite_badge": "Paused on mainnet",
"request_access": "Request access →"
},
"how_it_works": {
@@ -1222,7 +1125,7 @@
},
"step3": {
"title": "The agent signs inside your vault",
- "body": "When the yield crosses a threshold, the agent signs Invest or Unwind with its own key. Those calls only move money between the vault and its strategy: they take no destination address, so nothing can leave the vault. Our code only sends Invest and Unwind. The DeFindex role also allows swaps inside the vault, never out of it: see /security. On testnet you ask for it with a button in the console and the agent signs inside your vault; on mainnet it decides on its own, every 10 minutes, invite-only, in the vaults their owner authorized (today, one: ours)."
+ "body": "When the yield crosses a threshold, the agent signs Invest or Unwind with its own key. Those calls only move money between the vault and its strategy: they take no destination address, so nothing can leave the vault. Our code only sends Invest and Unwind. The DeFindex role also allows swaps inside the vault, never out of it: see /security. On testnet you ask for it with a button in the console and the agent signs inside your vault; on mainnet it decides on its own, every 10 minutes, in the vaults their owner authorized (today, one: ours), and it is paused there since 27 Nov 2026."
},
"step4": {
"title": "Settles on Stellar",
@@ -1259,7 +1162,7 @@
"title": "Two ways to use it",
"path1": {
"label": "Flow 1",
- "title": "Get CETES via Etherfuse",
+ "title": "CETES via Etherfuse (test environment)",
"desc": "If you start from pesos: you contract directly with Etherfuse, an independent operator, send MXN by SPEI and receive the token in your wallet. Nirium only shows you the instructions. Today this runs against Etherfuse's test environment.",
"item1": "KYC is performed by Etherfuse, not Nirium",
"item2": "You contract with and transfer directly to Etherfuse",
@@ -1268,7 +1171,7 @@
"path2": {
"label": "Flow 2",
"title": "If you already hold USDC or CETES",
- "desc": "Deploy your vault from the console, deposit, and hand the rebalance role to Nirium once you have access. Open on testnet; invite-only on mainnet. The node also has an API.",
+ "desc": "Deploy your vault from the console, deposit, and hand the rebalance role to Nirium once you have access. Open on testnet; paused on mainnet. The node also has an API.",
"item1": "You sign deposits and withdrawals",
"item2": "The agent only rebalances inside the vault",
"item3": "You can remove the agent at any time"
@@ -1298,15 +1201,15 @@
"ipfs": "IPFS receipt",
"lcp": "LCP · legal opinion pending",
"testnet": "Testnet",
- "mainnet": "Mainnet · invite-only"
+ "mainnet": "Mainnet · paused"
},
"network": {
"label": "Network",
"testnet": "Testnet",
"mainnet": "Mainnet",
- "earlyAccess": "invite-only",
+ "earlyAccess": "paused",
"freighterHint": "Mainnet uses real funds. Switch Freighter to the Public network before signing.",
- "privateAccessNote": "Payouts on mainnet uses real funds, signed by the company, and is invite-only. Invited companies run it through the API with an API key Nirium authorizes; it can't be run from this page. Recipients can still add their USDC trustline below."
+ "privateAccessNote": "Payouts on mainnet is paused since 28 Nov 2026, for every API key, until there is a written legal opinion. It can't be run from this page; you can try it on testnet. Recipients can still add their USDC trustline below."
},
"pricing": {
"label": "Pricing (after the beta)",
@@ -1419,9 +1322,9 @@
"external_title": "Recognized upstream, not just self-reported",
"external_note": "Four use-case contributions to Trustless Work's own escrow research repo, merged the same night - acknowledged directly by their CEO on GitHub.",
"tw1_title": "Bounded-authority milestone payouts + x402",
- "tw1_desc": "Use case: an agent that can release a milestone payment, but never redirect where it goes - the pattern behind Nirium's Payouts escrow integration, tested end to end on testnet.",
+ "tw1_desc": "Use case: an agent that can release a milestone payment but never redirect where it goes, tested end to end on testnet.",
"tw2_title": "Authority by missing parameter (Treasury rebalancing)",
- "tw2_desc": "Use case built from Nirium's own Treasury RebalanceManager role: DeFindex's rebalance() call has no destination parameter at all, so redirecting funds isn't restricted - it's unwritable.",
+ "tw2_desc": "Use case: DeFindex's rebalance() call has no destination parameter at all, so redirecting funds isn't restricted - it's unwritable.",
"tw3_title": "Direct x402 payment without escrow (verified live settlement)",
"tw3_desc": "Authored by Monse - cites Nirium Play's own live testnet settlement as evidence for when a milestone-based escrow is the wrong tool.",
"tw4_title": "Production evidence for the agent-facing tool schema",
diff --git a/apps/web/dictionaries/es.json b/apps/web/dictionaries/es.json
index 2e2918e2..63435150 100644
--- a/apps/web/dictionaries/es.json
+++ b/apps/web/dictionaries/es.json
@@ -6,9 +6,9 @@
"home": "Inicio",
"dashboard": "Dashboard",
"treasury": "Tesorería",
- "analytics": "Analytics",
+ "analytics": "Reporting",
"ramp": "CETES vía Etherfuse (demo)",
- "agents": "Nodos de Ejecución",
+ "agents": "Cómo funciona",
"ecosystem": "Ecosistema",
"builder": "Estrategias (vista previa)",
"vault": "Consola de Bóveda",
@@ -31,10 +31,11 @@
"wallet_option_pollar": "Entrar",
"wallet_option_pollar_hint": "Correo o Google - sin instalar nada",
"group_core": "CORE",
- "group_treasury": "TESORERÍA",
+ "group_treasury": "TESORERÍA · EN PAUSA EN MAINNET",
"group_developer": "DESARROLLADORES",
"product_menu": "Producto",
"verifyAudit": "Verificar recibo",
+ "chains": "Redes",
"stats": "Estadísticas de uso"
},
"verifyAudit": {
@@ -67,7 +68,7 @@
"planned_label": "PLANEADO · AÚN NO CONSTRUIDO",
"planned_title": "Lo que agregará la verificación",
"planned_items": [
- "Anclas en Stellar mismo: cada lote de recibos deja una raíz Merkle en un contrato de Soroban, así un recibo se prueba solo con Stellar y su hora viene del ledger, no del reloj de nuestro servidor",
+ "Recibo ligado al pago: el verificador compara el recibo con la transferencia en Stellar, y con un memo de hash el registro queda con la hora del ledger, no la de nuestro servidor",
"Recibos de decisiones de política integrados: cada ALLOW o DENY del hook anclado automáticamente, incluidos los pagos rechazados que nunca se firmaron (AgentLedger ancló cinco de las suyas a mano el 18 nov 2026)",
"Un solo formato de recibo para pagos en Stellar, pagos x402 y liberaciones de escrow",
"Conciliación que marca un pago sin recibo, o un recibo sin pago"
@@ -137,7 +138,16 @@
"field_tag": "Etiqueta",
"field_schema": "Esquema del documento",
"field_tx": "Transacción vinculada",
- "tx_note": "El pago en sí lo prueba esta transacción en Stellar.",
+ "tx_note": "El pago en sí lo prueba esta transacción en Stellar. El vínculo es un metadato del nodo: no lo cubren el hash del registro ni la firma.",
+ "metadata_note": "Metadato del nodo: no lo cubren el hash del registro ni la firma.",
+ "agent_label": "Etiqueta",
+ "context_title": "Contexto privado",
+ "context_intro": "Este recibo lleva solo el sha-256 de su contexto (contextSha256). Quien lo emitió guarda el contexto. Si te lo muestra, pégalo aquí tal como te lo dio: se calcula su hash en tu navegador y no se envía nada.",
+ "context_placeholder": "{\"orderId\": \"...\", \"quote\": \"...\"}",
+ "context_button": "Comprobar contexto",
+ "context_match": "Coincide: este es el contexto que se ancló.",
+ "context_mismatch": "No coincide: no es el contexto que se ancló, o sus campos están en otro orden.",
+ "context_invalid": "Eso no es JSON válido.",
"no_record_note": "Este anclaje solo declara un hash. La evidencia original vive con quien lo ancló, no dentro de este documento. No hay nada embebido aquí que recalcular; si tienes esa evidencia, compárala abajo sin subirla.",
"keep_copy_note": "¿Guardaste el recibo completo con `nirium anchor --save recibo.json`? `nirium cid recibo.json --expect ` demuestra que es el original, aunque IPFS lo haya perdido.",
"record_label": "Registro embebido",
@@ -159,7 +169,7 @@
"badge": "Blog",
"heading_lead": "Notas",
"heading_accent": "de campo",
- "intro": "Notas de campo sobre cómo construimos recibos de pago, x402 e infraestructura de tesorería sobre Stellar - eventos, ingeniería y ecosistema.",
+ "intro": "Notas de campo sobre cómo construimos recibos de pago y x402 sobre Stellar - eventos, ingeniería y ecosistema.",
"read_article": "Leer artículo",
"all_articles": "Todos los artículos",
"back_to_blog": "Volver al blog",
@@ -171,61 +181,6 @@
"title": "Audit Trail en Stellar: recibos de pago verificables",
"excerpt": "Resumen del taller del 30 de octubre: recibos firmados, que cualquiera puede verificar por su cuenta, para pagos hechos por apps, backends y agentes de IA en Stellar. Míralo funcionar y verifícalo tú."
},
- "codigo-402-agentes-que-pagan": {
- "tag": "Bootcamp",
- "title": "Código 402: Agentes que pagan - bootcamp gratis de Stellar",
- "excerpt": "Tu código nunca te ha cobrado nada. Un bootcamp gratis de 5 sesiones con BAF, en Stellar, donde construyes una API que cobra por uso y un agente que paga solo, en Stellar testnet.",
- "h1": "Tu código nunca te ha cobrado nada. Esto cambia eso.",
- "hook": "Cada vez que un agente de IA llama a tu API y no le cobras, el que pagó fuiste tú - el cómputo, la inferencia, el ancho de banda. Gratis. Para siempre, hasta ahora.",
- "fact_date": "10 al 27 de nov",
- "fact_time": "6:00-7:15 PM CDMX",
- "fact_mode": "100% online",
- "fact_cost": "Gratis",
- "p_curiosity": "El código HTTP 402 - \"Payment Required\" - quedó reservado \"para uso futuro\" en 1997, y casi nunca se usó. Hasta ahora.",
- "h_why": "Por qué esto importa ahora",
- "p_why1": "Hasta hace poco, el internet solo sabía cobrarle a humanos: tarjetas, suscripciones, checkouts. Un agente de IA no tiene tarjeta, no abre un carrito, no espera 3 días a que le aprueben una factura. Necesita pagar en el mismo instante en que decide usar algo, sin que una persona esté mirando.",
- "p_why2": "x402 es el protocolo que por fin resuelve eso: un agente llama tu API, tu API responde \"402, te cuesta 0.02 USDC\", el agente paga ahí mismo, y recibe su respuesta en segundos. Sin cuenta, sin contrato, sin fricción. Ya está pasando en mainnet.",
- "h_who": "¿A quién le sirve esto?",
- "who_dev_title": "Si programas",
- "who_dev_body": "Sales con un repo real: una API que cobra, un agente que paga, y un recibo verificable. No son apuntes, es código que corre.",
- "who_nondev_title": "Si no programas todavía",
- "who_nondev_body": "Ninguna sesión necesita que ya sepas blockchain. Si entiendes lógica básica, vas a entender qué está pasando en cada paso - y vas a ver de primera mano hacia dónde va el internet de los agentes.",
- "h_steps": "Qué vas a construir",
- "step1_title": "Tu API cobra",
- "step1_body": "0.02 USDC antes de responder una sola llamada. Sin tarjeta, sin factura, sin un humano de por medio.",
- "step2_title": "Un agente paga",
- "step2_body": "solo, dentro de un límite de gasto que tú defines. Nadie aprueba cada pago a mano.",
- "step3_title": "Un recibo lo prueba",
- "step3_body": "firmado y anclado, que cualquiera puede verificar - nadie, ni nosotros, puede falsificarlo.",
- "p_risk": "100% en Stellar testnet. Dinero de prueba, cero riesgo real. Si rompes algo, no pasa nada - para eso es la práctica.",
- "p_identity": "Si ya sabes programar - JavaScript básico, no necesitas saber de blockchain - ya puedes hacerlo. No sales con apuntes. Sales con tu propio repo público, funcionando.",
- "h_learn": "Lo que vas a aprender, sesión por sesión",
- "learn1": "Cómo funciona un pago en Stellar de principio a fin, sin intermediarios",
- "learn2": "Cómo hacer que cualquier endpoint de tu API cobre por uso, con el protocolo x402",
- "learn3": "Cómo darle a un agente de IA un límite de gasto que no puede saltarse",
- "learn4": "Cómo anclar un recibo que cualquiera puede verificar, sin confiar en ti",
- "learn5": "Cómo leer y comprobar un pago directo en la red, sin depender de un panel de terceros",
- "h_sessions": "5 sesiones + Demo Day",
- "p_sessions": "Tu primer pago en Stellar. Cobrar por una API con x402. Un agente que paga solo, dentro de un límite de gasto que no puede saltarse. Verificar un pago vía RPC u Horizon, con Nirium como caso de estudio real. Y un Demo Day donde muestras lo que construiste.",
- "h_build": "Qué podrías construir después",
- "build1_title": "Una API que se paga sola",
- "build1_body": "Cualquier servicio tuyo - datos, cómputo, un modelo propio - cobrando por llamada, sin Stripe, sin suscripción mensual.",
- "build2_title": "Un agente comprador autónomo",
- "build2_body": "Un bot que busca el mejor precio, paga, y entrega el resultado - sin que nadie apruebe cada transacción.",
- "build3_title": "Un mercado máquina a máquina",
- "build3_body": "Agentes que le compran y le venden servicios a otros agentes, las 24 horas, sin oficina ni horario.",
- "build4_title": "Facturación verificable para freelancers",
- "build4_body": "Recibos que un cliente puede comprobar él mismo, sin pedirte que se los jures.",
- "build_cta_label": "Empieza a construir con Nirium",
- "where_label": "Quién está detrás",
- "where_body": "Organizado por la Blockchain Acceleration Foundation, impartido con Nirium - infraestructura de pagos y auditoría para agentes de IA que ha liquidado pagos x402 reales en mainnet de Stellar (el más reciente: 29 sep 2026).",
- "cta_urgency": "En curso: del 10 al 27 de noviembre de 2026.",
- "cta_label": "Ver el evento",
- "roadmap_label": "Próximamente",
- "roadmap_body": "Un contrato en Soroban que agrupa estos recibos en un solo anclaje verificable. Todavía no existe - es parte de nuestro roadmap.",
- "verify_body": "No tienes que creernos. Verifica un recibo real ahora mismo.",
- "verify_cta_label": "Verificar un recibo real"
- },
"audit-trail-verify-it-yourself": {
"tag": "Audit Trail",
"title": "Ancla un recibo firmado con tu propia llave de Stellar",
@@ -278,7 +233,7 @@
"bbva-open-deal-room": {
"tag": "Ecosistema",
"title": "Nirium en The Open Deal Room by Stellar - Torre BBVA, Ciudad de México",
- "excerpt": "Fuimos una de seis startups de Stellar presentadas en La Arena dentro de la Torre BBVA CDMX. Esto es lo que mostramos, quién estaba en la sala y por qué un agente de tesorería autónomo merece estar frente a inversionistas institucionales.",
+ "excerpt": "Fuimos una de seis startups de Stellar presentadas en La Arena dentro de la Torre BBVA CDMX. Esto es lo que mostramos y quién estaba en la sala.",
"h1": "Nirium en The Open Deal Room by Stellar",
"fact_date": "21 de mayo, 2026",
"fact_place": "Torre BBVA, Ciudad de México",
@@ -300,51 +255,7 @@
"h_takeaway": "Lo que nos llevamos",
"takeaway_p1": "Más allá del pitch, el valor de La Arena fueron las conversaciones que abrió - con inversionistas y operadores del ecosistema que entienden tanto el stack de Stellar como el contexto regulatorio mexicano. Esas son las relaciones que convierten un protocolo funcionando en testnet en un producto financiado, auditado y en mainnet. Salimos con nuevos hilos que jalar y una lectura más clara de lo que los socios institucionales necesitan ver a continuación: adopción verificable, no promesas.",
"where_label": "Dónde estamos",
- "where_body": "Nirium opera un agente autónomo en la testnet de Stellar y tiene SDKs de TypeScript y Python publicados. En mainnet ya corren los pagos x402, el Audit Trail y Reporting, solo de recepción y sin custodia; MPP es experimental. NiriumVault, nuestro contrato de tesorería, sigue sujeto a auditoría. Respaldado por el ecosistema Stellar: dos Instawards del Stellar Community Fund (vía el Programa de Embajadores de Stellar) y Embajador activo de Stellar México. Actualizado el 21 oct 2026: 'socios regulados' ahora dice 'terceros regulados'. Actualizado el 16 nov 2026: 'regulado' ahora dice 'independiente' donde este post describía a Etherfuse y a otros terceros, porque no hemos comprobado nosotros su estatus regulatorio. El producto también cambió desde mayo: hoy el nodo de Treasury mueve los fondos de una bóveda a la estrategia de esa misma bóveda y de regreso, un activo por bóveda, y no convierte USDC en CETES. Nota, 21 nov 2026: esto describe lo que presentamos en mayo. Hoy cada bóveda tiene un solo activo (USDC o CETES) y el agente solo lo mueve entre quieto y la estrategia, sin convertir uno en otro; ver /treasury. También quitamos un \"cerca del 10% al año por inflación\" que iba sin fuente."
- },
- "treasury-node-verify-it-yourself": {
- "tag": "Tesorería",
- "title": "El Treasury Node en mainnet: no nos creas, verifica el contrato",
- "excerpt": "El agente de Nirium sostiene el rol RebalanceManager sobre un vault real de DeFindex en Stellar mainnet - y el propio código del contrato hace que retirar sea estructuralmente imposible para ese rol, no solo algo contrario a nuestra política. Aquí está la transacción, la línea exacta de código fuente que lo prueba, y qué significa para cada parte involucrada.",
- "h1": "El Treasury Node en mainnet: no nos creas, verifica el contrato",
- "fact_date": "6 ago 2026",
- "fact_network": "Stellar mainnet",
- "fact_role": "Solo RebalanceManager",
- "p1": "La mayoría de las afirmaciones de \"no somos custodios\" en esta industria son una política: un equipo dice que no va a mover tu dinero, y tú decides si le crees. La nuestra es una restricción que impone un contrato inteligente que nosotros no controlamos. Este post recorre una transacción real que lo demuestra, y qué vale esa prueba para cada actor cerca de ella - DeFindex, Etherfuse, OtterSec, el ecosistema Stellar, la gente que eventualmente confiaría dinero real a un agente, y Nirium mismo.",
- "p2": "Nada de esto es un resumen que tengas que creer por fe. Cada hash, dirección de contrato y línea de código de abajo es un link - ve a comprobarlo.",
- "h_fact": "El hecho, en simple",
- "fact_p1": "El 6 de agosto de 2026 a las 00:56:39 UTC, una dirección controlada por el agente de Nirium llamó a `rebalance()` sobre un vault real de DeFindex en Stellar mainnet, con una instrucción `Invest`, moviendo 1.0 CETES del saldo ocioso del vault hacia la estrategia de Etherfuse de DeFindex. Ningún humano hizo clic en nada. Transacción:",
- "fact_p2": "La dirección que firmó esta transacción específica ya rotó a una llave nueva - higiene operativa de rutina, no un escándalo. Quién sostiene el rol RebalanceManager hoy es en sí un hecho público, en cadena, que cualquiera puede leer llamando la propia función de lectura `get_rebalance_manager()` del vault - nada sobre quién sostiene este rol está escondido detrás de nuestra palabra.",
- "fact_p3": "Aquí está la parte que de verdad importa: esto no es una política que Nirium decidió seguir. Es lo que el propio código del contrato del vault le permite hacer al rol RebalanceManager, punto. `rebalance()` acepta cuatro instrucciones - `Unwind`, `Invest`, `SwapExactIn` y `SwapExactOut` - y ninguna recibe una dirección de destino como argumento. (Corregido el 12 de noviembre de 2026: este post decía dos; el código de Nirium solo manda `Invest` y `Unwind`, pero el rol también permite los dos swaps, cuyo resultado siempre regresa a la bóveda.) `Unwind` tiene el destino fijo en el código a `e.current_contract_address()`, el propio vault; `Invest` no tiene ningún parámetro de destino, el dinero solo puede moverse hacia una estrategia que el vault ya reconoce como propia. Retirar hacia una dirección arbitraria no está bloqueado por una validación en algún lado - no existe ninguna ruta de código que acepte una. El peor caso real con una llave del agente filtrada es un swap a mal precio dentro de la bóveda, que pierde valor por slippage. Cualquier otra capacidad real - pausar una estrategia, rescatar fondos, cambiar quién sostiene un rol - pertenece al Manager, un rol que el agente de Nirium no sostiene.",
- "evidence_label": "Compruébalo tú mismo",
- "evidence_tx_label": "La transacción (Stellar Expert)",
- "evidence_vault_label": "El contrato del vault",
- "evidence_strategy_label": "La estrategia de Etherfuse en la que invirtió",
- "evidence_source_label": "El código fuente exacto - rebalance(), Unwind e Invest",
- "evidence_roles_label": "La documentación de DeFindex sobre roles del vault",
- "evidence_audit_label": "La auditoría de OtterSec sobre esta familia de contratos de vault",
- "h_why": "Por qué importa, más allá de esta transacción",
- "why_p1": "\"No custodiamos tu dinero\" es la frase más común en DeFi, y por sí sola no vale nada - es exactamente lo que diría un equipo a punto de huir con tu dinero. Lo que cambia el cálculo no es la frase, es si la afirmación se puede comprobar sin tener que confiar en quien la dice. El código fuente de un contrato se puede comprobar. Las intenciones de un equipo no.",
- "why_p2": "Ese es el cambio real que demuestra esta transacción: de \"confía en nosotros\" a \"aquí está el código, aquí está la transacción, ve y verifica tú mismo los dos.\" El agente no tiene el rol que podría tomar custodia - ese rol es el Manager de DeFindex, y en este vault ese rol está en la llave del dueño del vault, separada de la llave del agente. Hoy ese dueño es nuestro propio equipo (un vault de prueba con fondos propios), así que esto prueba el mecanismo, no la custodia de un cliente. El agente propone y ejecuta el rebalanceo; estructuralmente no puede irse con el dinero.",
- "h_impact": "Qué significa esto, actor por actor",
- "impact_intro": "Esto no es una sola historia - es una afirmación distinta y específica para cada actor cerca de ella, y ninguna es nuestra para hacerla de forma unilateral. Esto es lo que cada uno puede comprobar de verdad.",
- "impact_defindex_h": "Para DeFindex",
- "impact_defindex_p": "La arquitectura de un vault es tan fuerte como su peor integración. Este es un tercero real - no la propia documentación de DeFindex, no una prueba sintética - moviendo valor real a través del rol RebalanceManager exactamente como fue diseñado, en mainnet, con el resultado verificable públicamente. Esa es una validación más dura que cualquier suite de pruebas interna, y es evidencia que DeFindex puede señalar, no solo afirmar.",
- "impact_etherfuse_h": "Para Etherfuse",
- "impact_etherfuse_p": "CETES en Stellar acaba de ganar un camino más - real, automatizado y ahora verificado - hacia su rendimiento: capital moviéndose hacia la estrategia de Etherfuse en Blend sin un humano frente a una terminal, y sin que nadie tenga que confiar en quien opera esa automatización. Esa es una respuesta concreta a la pregunta que cualquier integrador potencial hace antes de conectarse a un producto de rendimiento: ¿qué pasa si lo que me manda capital se ve comprometido? Aquí: nada que no esté permitido, porque el contrato no lo deja.",
- "impact_ottersec_h": "Para OtterSec",
- "impact_ottersec_p": "Un reporte de auditoría prueba que el código fue revisado. Una transacción real, meses después, comportándose exactamente como esa revisión dice que debería, es un dato real más de que el contrato se comporta como está documentado, bajo una integración que nadie escribió para pasar una prueba. Qué cubrió la auditoría lo dice OtterSec, no nosotros.",
- "impact_stellar_h": "Para Stellar como ecosistema",
- "impact_stellar_p": "La automatización DeFi no-custodial es un pitch común y un artefacto raro en mainnet. Este es un ejemplo concreto, fechado y en cadena de un agente autónomo moviendo valor real entre primitivas DeFi en Stellar sin sostener nunca custodia de él - no una diapositiva de roadmap, no una demo de testnet, una transacción que cualquiera puede decodificar por su cuenta.",
- "impact_clients_h": "Para quienes eventualmente confiarían dinero real a un agente",
- "impact_clients_p": "Para ser directos sobre dónde está esto hoy: el vault de este post es el propio equipo de Nirium probando el mecanismo con su propio dinero, todavía no el dinero de un cliente externo - vale decirlo con claridad, porque el punto entero de este post es no exagerar lo que es verificable. Lo que esto le da a un futuro cliente no es la promesa de que va a funcionar cuando le toque a él. Es algo que puede comprobar antes de tener que creer nuestra palabra sobre nada: el contrato exacto, el rol exacto, la transacción exacta, todo público, todo hoy.",
- "impact_nirium_h": "Para Nirium",
- "impact_nirium_p": "Este es el tipo de evidencia que no se infla bajo escrutinio - se vuelve más fuerte mientras más se le mire de cerca, que es lo contrario de la mayoría de las afirmaciones en este espacio. Para el Stellar Community Fund y para cualquier socio futuro evaluando si la afirmación de no-custodia es real, esta transacción y las tres líneas de código del contrato detrás de ella son el diferenciador real, no una línea en un pitch deck.",
- "regulatory_map_p": "Un dato más: cada actor cerca de este flujo responde por su propia actividad bajo sus propias reglas - Circle por USDC, Etherfuse por sus CETES tokenizados, DeFindex por sus contratos. Su estatus regulatorio les toca decirlo a ellos; pregúntales a ellos, no a nosotros.",
- "h_close": "Ve y compruébalo",
- "close_p1": "Cada link de arriba resuelve a algo que no tienes que creernos por nuestra palabra - un explorador de bloques en vivo, un repositorio público de GitHub, una página de documentación que controla DeFindex, no nosotros. Decodifica la transacción. Lee el contrato. Si algo aquí no resiste como este post dice que resiste, vale la pena saberlo - para ti y para nosotros.",
- "where_label": "Dónde estamos",
- "where_body": "El Treasury Node de Nirium corre en mainnet como RebalanceManager sobre un vault de DeFindex estructurado para que un cliente lo posea - invite-only mientras se resuelve una pregunta legal específica abierta bajo la ley mexicana de prevención de lavado de dinero (fracción XVI del art. 17 de la LFPIORPI, como la define el art. 24 Bis 4 de sus Reglas de Carácter General) sobre intermediación de activos virtuales, con un camino público firmado por el cliente (propose-and-sign) disponible para cualquiera hoy. x402 liquida en testnet y en mainnet (la liquidación más reciente en mainnet: 24 nov 2026, una prueba nuestra), y el anclaje de auditoría corre en las dos redes. Corrección (20 oct 2026): una versión anterior de este post decía que MPP estaba en vivo en mainnet. MPP Charge solo está verificado en testnet. El rebalanceo de Treasury ha corrido en mainnet 4 veces, el 6 ago 2026, con fondos del propio equipo - el vault de hoy es del propio equipo, autofinanciado, todavía no de un cliente externo. Corregido el 16 nov 2026: este post describía el estatus regulatorio de Etherfuse y de Circle, decía que este flujo convierte USDC en CETES y llamaba a la transacción 'auditada y confirmada en producción'. Esos pasajes se quitaron o se reescribieron: no habíamos verificado nosotros las afirmaciones regulatorias de terceros, la bóveda tiene un solo activo y no convierte, y qué cubrió una auditoría lo dice el auditor."
+ "where_body": "Actualización, 1 dic 2026: este post describe lo que presentamos en mayo. Tesorería se probó solo con fondos del equipo y se descontinuó el 30 nov 2026. Hoy Nirium corre Audit Trail, Reporting y x402 en Stellar mainnet, solo de recepción y sin custodia; MPP es experimental. Actualizado el 21 oct 2026: 'socios regulados' ahora dice 'terceros regulados'. Actualizado el 16 nov 2026: 'regulado' ahora dice 'independiente' donde este post describía a Etherfuse y a otros terceros, porque no hemos comprobado nosotros su estatus regulatorio. También quitamos un \"cerca del 10% al año por inflación\" que iba sin fuente."
},
"x402-outage-verify-it-yourself": {
"tag": "Liquidación",
@@ -388,16 +299,13 @@
}
}
},
- "footer": {
- "scf_verified": "BENEFICIARIO SCF INSTAWARD"
- },
"home": {
"institutional_use_cases": {
"startup_ideas": {
"badge": "FOUNDERS · PROYECTOS DE FIN DE SEMANA",
"title": "Qué puedes construir",
"title_span": "con Nirium",
- "subtitle": "Doce ideas de producto que puedes prototipar sobre nuestro stack. La mayoría de las piezas ya funcionan en Stellar Testnet. Dos (marcadas Solo Invitación) tocan una pregunta legal abierta, todavía sin opinión legal por escrito, y no están abiertas para uso general.",
+ "subtitle": "Seis ideas de producto que puedes prototipar sobre nuestro stack. La mayoría de las piezas ya funcionan en Stellar Testnet.",
"items": {
"global_payroll": {
"name": "Pagos globales a contratistas",
@@ -407,7 +315,7 @@
"Vault",
"Fiat Ramp (sandbox)"
],
- "time": "No Custodial"
+ "time": "Solo Invitación"
},
"m2m_exchange": {
"name": "Mercado de Inferencia M2M",
@@ -440,10 +348,9 @@
},
"grant_distributor": {
"name": "Grants Autónomos",
- "tagline": "Los agentes verifican hitos on-chain y proponen una liberación; la propia bóveda y firmantes de la DAO la autorizan - mismo patrón no-custodial que Treasury Rebalance, donde el agente puede proponer pero no puede redirigir fondos por diseño del contrato.",
+ "tagline": "Un agente revisa un hito público y propone un pago sin firmar desde la DAO; dos de sus tres firmantes lo firman antes de enviarlo. El agente puede proponer, pero nunca mueve los fondos.",
"stack": [
- "Vault",
- "Execute"
+ "Multisig"
],
"time": "Gobernanza"
},
@@ -452,8 +359,7 @@
"tagline": "Paga a proveedores logísticos al instante de verificar la entrega vía IoT. Usa x402 para liquidación inmediata sobre Stellar.",
"stack": [
"x402",
- "Webhooks",
- "Execute"
+ "Audit Trail"
],
"time": "Híbrido B2B"
},
@@ -462,14 +368,13 @@
"tagline": "Micropagos M2M entre paneles solares y unidades de almacenamiento. Automatiza el comercio de energía con x402 y sensores IoT.",
"stack": [
"x402",
- "Webhooks",
"mcp"
],
"time": "M2M Verde"
},
"rwa_market": {
"name": "Mercado RWA Institucional",
- "tagline": "Infraestructura B2B para ruteo de instrumentos soberanos (CETES vía Etherfuse) - el operador define el mandato; los agentes lo ejecutan dentro de ese mandato, sin tomar custodia jamás. Este es el nodo real de Treasury Rebalance - solo por invitación mientras siga abierta la pregunta de si cae en la fracción XVI del artículo 17 de la LFPIORPI (como la define el artículo 24 Bis 4 de sus Reglas), todavía sin opinión legal por escrito.",
+ "tagline": "Infraestructura B2B para ruteo de instrumentos soberanos (CETES vía Etherfuse) - el operador define el mandato; los agentes lo ejecutan dentro de ese mandato, sin tomar custodia jamás. Este es el nodo real de Treasury Rebalance - en pausa mientras siga abierta la pregunta de si cae en la fracción XVI del artículo 17 de la LFPIORPI (como la define el artículo 24 Bis 4 de sus Reglas), todavía sin opinión legal por escrito.",
"stack": [
"Vault",
"Execute"
@@ -501,7 +406,6 @@
"tagline": "Agentes que obtienen datos del mundo real y los envían a contratos de Soroban, monetizando su precisión con tarifas x402.",
"stack": [
"Skills",
- "Execute",
"x402"
],
"time": "Infra de Datos"
@@ -520,13 +424,13 @@
"time_label": "Tiempo para lanzar",
"blueprint": "Leer la documentación",
"cta_title": "¿Tienes otra idea?",
- "cta_subtitle": "Cada primitivo es público. Combina bóvedas, agentes, x402 y MPP como necesites.",
+ "cta_subtitle": "Cada primitivo es público. Combina recibos, agentes, x402 y MPP como necesites.",
"cta_button": "Empezar a construir",
"cta_discord": "Hablar con el equipo"
},
"api_hub": {
"title": "Construye con Nirium",
- "subtitle": "Todo lo que necesitas para lanzar en Stellar - APIs, SDKs, servidores MCP y un estudio visual.",
+ "subtitle": "Todo lo que necesitas para lanzar en Stellar - APIs, SDKs y servidores MCP.",
"badge": "PLATAFORMA PARA DEVS",
"endpoints_title": "API Unificada",
"sdk_title": "SDKs Oficiales",
@@ -564,7 +468,7 @@
},
"vault": {
"label": "Bóvedas de Tesorería",
- "desc": "Despliega, deposita, retira - el cliente firma cada tx. En mainnet, desplegar y depositar es solo por invitación."
+ "desc": "Despliega, deposita, retira - el cliente firma cada tx. En mainnet, desplegar y depositar está en pausa."
},
"audit": {
"label": "Audit Trail",
@@ -572,7 +476,7 @@
},
"payroll": {
"label": "Payouts",
- "desc": "Arma un pago en lote que firmas tú."
+ "desc": "Arma un pago en lote que firmas tú. En mainnet, en pausa."
},
"webhooks": {
"label": "Webhooks",
@@ -584,7 +488,7 @@
"name": "TypeScript SDK",
"sub": "NPM · nirium",
"cmd": "npm install nirium",
- "badge": "v0.20.0"
+ "badge": "v0.21.0"
},
"py": {
"name": "Python SDK",
@@ -596,7 +500,7 @@
"name": "Servidor MCP",
"sub": "Claude Desktop · Cursor · cualquier cliente MCP",
"cmd": "npx nirium-mcp",
- "badge": "v0.6.13"
+ "badge": "v0.8.0"
},
"rest": {
"name": "REST API",
@@ -608,7 +512,7 @@
"name": "Constructor de Tesorería",
"sub": "Borradores de reglas de rebalanceo sin código",
"cmd": "Abrir en navegador",
- "badge": "Beta"
+ "badge": "En pausa en mainnet"
}
},
"code_tabs": {
@@ -631,7 +535,7 @@
},
"dashboard": {
"title": "PANEL DEL OPERADOR",
- "version_live": "v0.20.0",
+ "version_live": "v0.21.0",
"loading_dashboard": "Cargando panel...",
"no_helpers": "No hay nodos de ejecución activos.",
"no_helpers_desc": "Inicializa tu bóveda y delega el agente para activar el rebalanceo autónomo.",
@@ -744,8 +648,7 @@
"non_financial": "SIN ASESORÍA FINANCIERA // DATOS DE REFERENCIA",
"sdex_spread": "SPREAD SDEX"
},
- "non_custodial": "No Custodial",
- "scf_7": "DOS SCF INSTAWARDS"
+ "non_custodial": "No Custodial"
},
"toasts": {
"broadcast_failed": "No se pudo completar"
@@ -753,44 +656,44 @@
"terms": {
"title": "Términos de servicio",
"badge": "Términos de servicio",
- "last_updated": "Última actualización: 25 de noviembre de 2026",
+ "last_updated": "Última actualización: 1 de diciembre de 2026",
"footer": "Si usas Nirium, aplican estos términos junto con el Aviso de privacidad, el Aviso de riesgos y los Avisos legales. Nada aquí limita los derechos que te da la ley.",
"sections": {
"nature": {
"title": "1. Qué es Nirium",
- "content": "Nirium es software. Opera nodos y una API sobre Stellar para cobrar por llamada (x402), anclar recibos (Audit Trail), reportar, armar pagos en lote que firma el cliente (Payouts) y rebalancear la bóveda del propio cliente (Tesorería). Nirium nunca custodia fondos de clientes. La emisión, custodia y canje de activos del mundo real como los CETES los hacen terceros bajo sus propios términos, por ejemplo Etherfuse."
+ "content": "Nirium es software. Opera nodos y una API sobre Stellar para cobrar por llamada (x402), anclar recibos (Audit Trail) y reportar. En Solana y Avalanche ofrece primeras versiones: librerías que corren en tu propio código, recibos que se anclan en su nodo y un market que vende datos de cada red por x402. En Base y Arbitrum, desde el 1 dic 2026, corre el mismo market y ancla y reporta recibos de esas redes. Nirium nunca custodia fondos de clientes. Actualización, 30 nov 2026: Payouts y Tesorería, probados solo con fondos del propio equipo, se descontinuaron. Actualización, 27 nov 2026: esta sección hablaba solo de Stellar."
},
"no_guarantees": {
"title": "2. Sin garantía de rendimientos",
- "content": "Nirium no garantiza rendimientos ni la liquidez de ningún activo o mercado. Las tasas y métricas del sitio son solo informativas. Nirium es software y no se ofrece como inversión. Los fondos siguen bajo las llaves del propio cliente."
+ "content": "Nirium no garantiza rendimientos ni la liquidez de ningún activo o mercado. Los datos de referencia que devuelve Nirium, como las comisiones de red, y las métricas del sitio son solo informativos. Nirium es software y no se ofrece como inversión. Los fondos siguen bajo las llaves del propio cliente."
},
"ai_liability": {
"title": "3. Automatización",
- "content": "Si activas el rebalanceo autónomo, autorizas al agente de Nirium a firmar, con su propia llave, movimientos entre tu bóveda de DeFindex y sus estrategias, según los umbrales que tú fijas. Ese rol no puede retirar fondos y puedes revocarlo cuando quieras. El rol que entregas también permite hacer swaps dentro de la bóveda; el código de Nirium no los envía, y ninguna instrucción permite sacar fondos de la bóveda. Los sistemas automatizados, las fuentes de datos y las APIs externas pueden fallar, retrasarse o dar datos erróneos; los riesgos están en el Aviso de riesgos."
+ "content": "La automatización de Nirium se limita a software que tú corres o llamas: una política antes de firmar que corre en tu propio cliente y solo puede negarse a firmar, y recibos que tú decides anclar. Los sistemas automatizados, las fuentes de datos y las APIs externas pueden fallar, retrasarse o dar datos erróneos; los riesgos están en el Aviso de riesgos. Actualización, 30 nov 2026: esta sección describía el rebalanceo autónomo de una bóveda de DeFindex, archivado ese día junto con Tesorería."
},
"rwa_disclaimer": {
- "title": "4. Activos tokenizados (USDC, CETES)",
- "content": "USDC lo emite Circle; los CETES tokenizados los emite Etherfuse. Su valor y su canje dependen de esos emisores y, en el caso de los CETES, de los bonos del gobierno de México que, según Etherfuse, los respaldan. Nirium no emite, guarda ni canjea ninguno de los dos. En mainnet, la exposición a CETES ocurre a través de bóvedas de DeFindex que son del cliente (solo por invitación hasta tener una opinión legal por escrito); en testnet, también a través del contrato propio de Nirium, NiriumVault, como prueba de concepto."
+ "title": "4. Activos tokenizados (USDC)",
+ "content": "USDC lo emite Circle; su valor y su canje dependen de Circle. Nirium no lo emite, guarda ni canjea. Actualización, 30 nov 2026: esta sección también cubría los CETES tokenizados, a los que Nirium solo llegaba a través de Tesorería, archivada ese día."
},
"dispute": {
"title": "5. Ley aplicable y controversias",
- "content": "Estos términos se rigen por las leyes federales de México. Las controversias se resuelven ante los tribunales competentes de la Ciudad de México, salvo que ambas partes acuerden por escrito un arbitraje; en ese caso, el acuerdo escrito indica la institución y las reglas. Para Payouts aplican sus propios términos. Nada de esto te quita derechos que la ley te dé como consumidor."
+ "content": "Estos términos se rigen por las leyes federales de México. Las controversias se resuelven ante los tribunales competentes de la Ciudad de México, salvo que ambas partes acuerden por escrito un arbitraje; en ese caso, el acuerdo escrito indica la institución y las reglas. Nada de esto te quita derechos que la ley te dé como consumidor."
},
"infrastructure": {
"title": "6. Disponibilidad",
- "content": "El software se ofrece tal cual. No garantizamos que esté disponible siempre: depende de la red Stellar y de proveedores como Fly.io, Vercel, Supabase, los gateways de IPFS y el facilitador de x402. No respondemos por pérdidas causadas por fallas de la red o de esos terceros, salvo dolo o en la medida en que la ley no permita excluir esa responsabilidad."
+ "content": "El software se ofrece tal cual. No garantizamos que esté disponible siempre: depende de las redes Stellar, Solana, Avalanche, Base y Arbitrum y de proveedores como Fly.io, Vercel, Supabase, los gateways de IPFS y los facilitadores de x402 (OpenZeppelin en Stellar, PayAI en Solana, Avalanche, Base y Arbitrum). No respondemos por pérdidas causadas por fallas de las redes o de esos terceros, salvo dolo o en la medida en que la ley no permita excluir esa responsabilidad."
},
"reverse_solicitation": {
"title": "7. Lo que Nirium no hace",
- "content": "Nirium no tiene autorización financiera. Si el rebalanceo autónomo y Payouts caen en la fracción XVI del artículo 17 de la LFPIORPI es una pregunta abierta, igual que si un CETES tokenizado cuenta como valor; todavía no hay opinión legal por escrito sobre ninguna. Mientras tanto, el rebalanceo autónomo y Payouts son solo por invitación en mainnet. Cada parte cumple, por sus propios clientes, las leyes financieras, de sanciones y antilavado que le apliquen. Actualización, 25 nov 2026: esta sección decía que Nirium \"no ofrece valores al público\" y \"no es una entidad financiera\", y la sección 2 que no es \"un valor\". Ningún abogado ha revisado esas afirmaciones, así que se quitaron."
+ "content": "Nirium no tiene autorización financiera. Tesorería y Payouts, las dos piezas sobre las que era una pregunta abierta si caían en la fracción XVI del artículo 17 de la LFPIORPI, sin opinión legal por escrito, se archivaron el 30-nov-2026 y no se ofrecen en ninguna red. Cada parte cumple, por sus propios clientes, las leyes financieras, de sanciones y antilavado que le apliquen. Actualización, 25 nov 2026: esta sección decía que Nirium \"no ofrece valores al público\" y \"no es una entidad financiera\", y la sección 2 que no es \"un valor\". Ningún abogado ha revisado esas afirmaciones, así que se quitaron."
},
"restricted_jurisdictions": {
"title": "8. Jurisdicciones restringidas y sanciones",
- "content": "Nirium Protocol opera desde México, a cargo de sus fundadores, sin persona moral constituida a la fecha, y busca no ofrecer servicios donde constituirían una actividad regulada sin la autorización correspondiente; por eso, mientras no tenga una opinión legal por escrito, Payouts y Tesorería en mainnet son solo por invitación. Se prohíbe el acceso desde jurisdicciones con sanciones integrales, jurisdicciones con llamado a la acción del GAFI y China continental. En el Espacio Económico Europeo, el Reino Unido y Estados Unidos, mientras no haya una opinión legal por escrito, Payouts y el nodo de Tesorería no se ofrecen en mainnet; en testnet los dos siguen disponibles como demostración, y retirar de una bóveda que ya es tuya nunca está restringido ahí. Al usar cualquier servicio de Nirium declaras, cada vez, que no estás ubicado ni resides en una jurisdicción prohibida y que no eres persona sancionada ni actúas por cuenta de una. Nirium puede bloquear el acceso por medios técnicos, incluida la geolocalización por IP, y puede negar o terminar el servicio. Como Nirium nunca guarda fondos, terminar el servicio nunca deja activos atrapados: tus llaves, cuentas y bóvedas siguen funcionando sin nosotros. Rige la política completa: /legal/restricted-jurisdictions-v1.md.\n\nActualización, 21 nov 2026: esta sección decía que Nirium \"no ofrece sus servicios en jurisdicciones donde constituirían actividad regulada, sin importar cómo esté construido el software\". Así leído, afirmaba que Nirium ya sabe que en México no es actividad regulada, que es la pregunta abierta de la sección 7. La sección 3 también describía el rol de rebalanceo sin decir que permite swaps dentro de la bóveda."
+ "content": "Nirium Protocol opera desde México, a cargo de sus fundadores, sin persona moral constituida a la fecha, y busca no ofrecer servicios donde constituirían una actividad regulada sin la autorización correspondiente. Se prohíbe el acceso desde jurisdicciones con sanciones integrales, jurisdicciones con llamado a la acción del GAFI y China continental. Al usar cualquier servicio de Nirium declaras, cada vez, que no estás ubicado ni resides en una jurisdicción prohibida y que no eres persona sancionada ni actúas por cuenta de una. Nirium puede bloquear el acceso por medios técnicos, incluida la geolocalización por IP, y puede negar o terminar el servicio. Como Nirium nunca guarda fondos, terminar el servicio nunca deja activos atrapados: tus llaves y cuentas siguen funcionando sin nosotros. Rige la política completa: /legal/restricted-jurisdictions-v1.md.\n\nActualización, 30 nov 2026: Tesorería y Payouts, probados solo con fondos del propio equipo, se descontinuaron; se quitaron las frases sobre su pausa en mainnet. Actualización, 21 nov 2026: esta sección decía que Nirium \"no ofrece sus servicios en jurisdicciones donde constituirían actividad regulada, sin importar cómo esté construido el software\". Así leído, afirmaba que Nirium ya sabe que en México no es actividad regulada, que es la pregunta abierta de la sección 7. La sección 3 también describía el rol de rebalanceo sin decir que permite swaps dentro de la bóveda."
},
"intellectual_property": {
"title": "9. Código abierto y marca",
- "content": "El código de Nirium (contratos, paquetes, MCP, API del agente y la interfaz) se publica bajo la licencia Apache 2.0, que te permite usarlo, modificarlo y redistribuirlo en los términos de esa licencia. Esa licencia no incluye el nombre ni el logo de Nirium. El uso de los nodos que opera Nirium (llaves de API, endpoints alojados) se rige por estos términos y puede limitarse o suspenderse por abuso, por la política de jurisdicciones o para proteger el servicio."
+ "content": "El código abierto de Nirium (contratos, paquetes, MCP y la interfaz) se publica bajo la licencia Apache 2.0, que te permite usarlo, modificarlo y redistribuirlo en los términos de esa licencia. Esa licencia no incluye el nombre ni el logo de Nirium. El uso de los nodos que opera Nirium (llaves de API, endpoints alojados) se rige por estos términos y puede limitarse o suspenderse por abuso, por la política de jurisdicciones o para proteger el servicio. El código de los nodos que aloja Nirium no es público; los recibos que anclan se pueden comprobar sin él. Actualización, 1 dic 2026: esta sección incluía la API del agente entre lo publicado bajo Apache 2.0."
},
"stellar_code": {
"title": "10. Código de Conducta de Stellar",
@@ -805,7 +708,7 @@
"item_non_custodial": "Entiende que Nirium es un proveedor de software y nunca tiene tus llaves ni tus fondos: la custodia es tuya o del proveedor que elijas.",
"item_elo_historical": "Reconoce que las simulaciones de ruteo no implican ni garantizan tasas de liquidación o disponibilidad futura.",
"item_systemic_risk": "Acepta el riesgo tecnológico sistémico inherente a los contratos inteligentes, latencia de oráculos y APIs de terceros (SLA).",
- "item_liability": "Libera a Nirium Software de toda responsabilidad legal por fallos de red, bugs en la lógica de automatización o interrupciones en la liquidación de CETES.",
+ "item_liability": "Libera a Nirium Software de toda responsabilidad legal por fallos de red, bugs en la lógica de automatización o interrupciones en la liquidación de terceros.",
"item_scf_coc": "La institución se compromete a respetar el Código de Conducta de Stellar y los estándares de transparencia B2B del ecosistema.",
"button_sign": "FIRMAR ACUERDO DE SOFTWARE B2B",
"button_signing": "ESPERANDO FIRMA DE LA WALLET...",
@@ -815,24 +718,24 @@
"risk_disclosure": {
"title": "Aviso de riesgos",
"badge": "Aviso de riesgos",
- "last_updated": "Última actualización: 21 de noviembre de 2026",
- "mandatory": "Lee esto antes de usar Nirium: es software de código abierto experimental en Stellar. Tú firmas tus propias transacciones y puedes perder fondos.",
+ "last_updated": "Última actualización: 1 de diciembre de 2026",
+ "mandatory": "Lee esto antes de usar Nirium: es software experimental en Stellar, con primeras versiones en Solana, Avalanche, Base y Arbitrum; sus paquetes son de código abierto. Tú firmas tus propias transacciones y puedes perder fondos.",
"sections": {
"execution": {
- "title": "1. Rebalanceo autónomo (Tesorería)",
- "content": "Si activas el rebalanceo autónomo, nombras al agente de Nirium como RebalanceManager de tu propia bóveda de DeFindex. Ese rol solo puede mover fondos entre tu bóveda y sus estrategias: no puede retirarlos, y puedes quitárselo cuando quieras. Aun así puede actuar en un mal momento: el agente puede decidir mal, llegar tarde o detenerse, y los nodos que lo corren pueden caerse. Alguien que obtuviera la llave del agente podría mover fondos entre tu bóveda y sus estrategias, o hacer un intercambio dentro de la bóveda (el rol lo permite; el código de Nirium nunca lo envía) y perder valor por deslizamiento, pero nunca sacar fondos de la bóveda. En mainnet esto es solo por invitación, igual que desplegar o fondear una bóveda desde este sitio; retirar de una bóveda que ya es tuya nunca está restringido."
+ "title": "1. Política antes de firmar y automatización",
+ "content": "Una política antes de firmar corre en tu propio cliente y decide si tu propia wallet firma un pago. Puede decidir mal o fallar: un pago que debía rechazar puede firmarse, o uno que debía permitir puede rechazarse. Prueba tus reglas antes de confiar en ellas. Actualización, 30 nov 2026: esta sección describía el rebalanceo autónomo (Tesorería), descontinuado ese día."
},
"contracts": {
"title": "2. Contratos inteligentes y protocolos de terceros",
- "content": "Las bóvedas son contratos de DeFindex, y sus estrategias prestan a través de Blend. Los dos tienen auditorías de terceros (DeFindex por OtterSec, marzo de 2025; Blend, una auditoría de Code4rena y dos reportes de Certora, marcados como borrador), pero una auditoría no elimina el riesgo ni cubre la configuración de cada bóveda. Sacar fondos de una estrategia de préstamo depende de que ese pool tenga liquidez suficiente en ese momento. Los contratos propios de Nirium (NiriumVault, NiriumProtocol) no están auditados y solo corren en testnet. En testnet, la llave admin de Nirium puede pausar NiriumVault en una emergencia; en pausa nadie puede retirar hasta reanudarlo. Pausar no mueve fondos."
+ "content": "Los pagos usan contratos y servicios que Nirium no controla, como el contrato de USDC de cada red y los facilitadores x402 de terceros; una auditoría, cuando existe, no elimina el riesgo. Los contratos propios de Nirium (NiriumVault, NiriumProtocol) no están auditados, solo corrieron en testnet y se archivaron junto con Tesorería. Actualización, 30 nov 2026: esta sección describía las bóvedas de DeFindex y las estrategias de Blend, archivadas ese día junto con Tesorería."
},
"sovereign_assets": {
- "title": "3. Activos tokenizados (USDC, CETES)",
- "content": "USDC lo emite Circle; los CETES tokenizados los emite Etherfuse. Su valor y su canje dependen de esos emisores y, en el caso de los CETES, de los bonos del gobierno de México que, según Etherfuse, los respaldan. Nirium no emite, guarda ni canjea ninguno de los dos. Si un CETES tokenizado cuenta como valor conforme a la Ley del Mercado de Valores es una pregunta legal abierta. Las tasas que muestra este sitio son datos de referencia, no una promesa de rendimiento.\n\nActualización, 21 nov 2026: esta sección afirmaba como hecho que los CETES tokenizados están respaldados por bonos; ahora lo atribuye a Etherfuse. Nirium no responde por las reservas de un tercero."
+ "title": "3. Activos tokenizados (USDC)",
+ "content": "USDC lo emite Circle; su valor y su canje dependen de Circle. Nirium no lo emite, guarda ni canjea. Los datos de referencia que devuelve Nirium, como las comisiones de red, no son una promesa de rendimiento. Actualización, 30 nov 2026: esta sección también cubría los CETES tokenizados, a los que Nirium solo llegaba a través de Tesorería, archivada ese día."
},
"payments": {
- "title": "4. Pagos y Payouts",
- "content": "Las transacciones en Stellar son definitivas: un pago enviado a una dirección equivocada no lo puede revertir Nirium ni nadie más. Tú firmas cada pago con tu propia wallet, así que revisa a cada destinatario antes de firmar. Los pagos x402 se liquidan a través de un facilitador de terceros; si no está disponible, la llamada pagada falla. También puede pasar al revés: que el pago se liquide en la red y el facilitador responda con error, y la llamada no se entregue. Lo vimos con el facilitador de OpenZeppelin en testnet el 9 nov 2026. Si te pasa, el pago es visible en la red con su hash."
+ "title": "4. Pagos",
+ "content": "Las transacciones en Stellar, Solana, Avalanche, Base y Arbitrum son definitivas: un pago enviado a una dirección equivocada no lo puede revertir Nirium ni nadie más. Tú firmas cada pago con tu propia wallet, así que revisa al destinatario antes de firmar. Los pagos x402 se liquidan a través de un facilitador de terceros (OpenZeppelin en Stellar, PayAI en Solana, Avalanche, Base y Arbitrum); si no está disponible, la llamada pagada falla. También puede pasar al revés: que el pago se liquide en la red y el facilitador responda con error, y la llamada no se entregue. Lo vimos con el facilitador de OpenZeppelin en testnet el 9 nov 2026. Si te pasa, el pago es visible en la red con su hash. Actualización, 27 nov 2026: esta sección hablaba solo de Stellar."
},
"data": {
"title": "5. Registros de Audit Trail",
@@ -840,7 +743,7 @@
},
"governance": {
"title": "6. Legal y regulatorio",
- "content": "Nirium ofrece software y no custodia fondos. Si el rebalanceo autónomo y Payouts caen en la fracción XVI del artículo 17 de la LFPIORPI (activos virtuales) es una pregunta abierta, todavía sin opinión legal por escrito; los dos siguen solo por invitación en mainnet hasta que se responda. Cada parte cumple la ley por sus propios clientes: esta página no le pasa a nadie las obligaciones legales de otro. Se prohíbe el acceso desde jurisdicciones con sanciones integrales, jurisdicciones con llamado a la acción del GAFI y China continental. En el Espacio Económico Europeo, el Reino Unido y Estados Unidos, Payouts y Tesorería no se ofrecen en mainnet; en testnet siguen disponibles como demostración. Política completa: /legal/restricted-jurisdictions-v1.md. Esto no es asesoría legal ni financiera."
+ "content": "Nirium ofrece software y no custodia fondos. Tesorería y Payouts, las piezas sobre las que era una pregunta abierta si caían en la fracción XVI del artículo 17 de la LFPIORPI (activos virtuales), sin opinión legal por escrito, se archivaron el 30-nov-2026 y no se ofrecen en ninguna red. Cada parte cumple la ley por sus propios clientes: esta página no le pasa a nadie las obligaciones legales de otro. Se prohíbe el acceso desde jurisdicciones con sanciones integrales, jurisdicciones con llamado a la acción del GAFI y China continental. Política completa: /legal/restricted-jurisdictions-v1.md. Esto no es asesoría legal ni financiera."
}
},
"footer": "Usar Nirium significa que leíste estos riesgos. Nada en esta página limita los derechos que te da la ley."
@@ -999,18 +902,18 @@
},
"strategy_builder": {
"upgrade_banner": {
- "preview": "Modo preview - el lienzo compone el esquema; la ejecución real corre en el nodo. La tesorería autónoma ya está desplegada en mainnet sobre una bóveda DeFindex pensada para que sea tuya (la de hoy es nuestra, con fondos propios), solo por invitación hasta tener una opinión legal por escrito. NiriumVault, el contrato propio, sigue en testnet hasta la auditoría externa.",
+ "preview": "Modo preview - el lienzo compone el esquema; la ejecución real corre en el nodo. La tesorería autónoma ya está desplegada en mainnet sobre una bóveda DeFindex pensada para que sea tuya (la de hoy es nuestra, con fondos propios), en pausa hasta tener una opinión legal por escrito. NiriumVault, el contrato propio, sigue en testnet hasta la auditoría externa.",
"upgrade": "Solicitar acceso"
},
"deploy_gate": {
- "title": "Solo vista previa · mainnet por invitación",
+ "title": "Solo vista previa · mainnet en pausa",
"plan": "Solicitar acceso"
}
},
"ramp": {
"header": {
"badge": "CETES vía Etherfuse - operador independiente",
- "title": "Obtén CETES con Etherfuse",
+ "title": "CETES vía Etherfuse · demo en su entorno de pruebas",
"subtitle": "Transfiere MXN vía SPEI a una CLABE. Etherfuse - un operador independiente - lo convierte en CETES tokenizados en Stellar a la cotización que Etherfuse devuelve en cada orden. KYC/KYB requerido. Entorno de pruebas activo - no se movilizan fondos reales."
},
"component": {
@@ -1088,7 +991,7 @@
"hero": {
"title": "Audit Trail",
"tagline": "Recibos que cualquiera puede verificar",
- "subtitle": "Cualquier acción del nodo que decidas registrar lleva un hash SHA-256 de su contenido y se ancla en IPFS cuando lo pides (cada lote de Payouts ancla su propio recibo de forma automática). Quien tenga el CID puede comprobarlo en /verify, sin cuenta."
+ "subtitle": "Cualquier acción del nodo que decidas registrar lleva un hash SHA-256 de su contenido y se ancla en IPFS cuando lo pides. Quien tenga el CID puede comprobarlo en /verify, sin cuenta."
},
"layers": {
"title": "Las cinco piezas de cada registro",
@@ -1106,7 +1009,7 @@
},
"cnbv": {
"title": "Exportación (CSV o JSON)",
- "desc": "`nirium report export` lista dispersiones (Payouts), pagos y anclajes con fecha y red, más la transacción cuando la hay. El export público no trae CIDs: el CID de un registro es de quien lo hizo."
+ "desc": "`nirium report export` lista pagos y anclajes con fecha y red, más la transacción cuando la hay. El export público no trae CIDs: el CID de un registro es de quien lo hizo."
},
"lcp": {
"title": "Contexto legal (LCP): todavía no activo",
@@ -1139,7 +1042,7 @@
"integrity": "Salida real, mainnet, 21 nov 2026",
"note": "Las tres primeras filas que dio el comando el 21 nov 2026. El exporte no trae CIDs."
},
- "disclaimer": "Nirium proporciona únicamente la infraestructura técnica de software. No proveemos asesoría legal. La interpretación, generación y presentación de reportes ante autoridades regulatorias (como la CNBV o la UIF) es responsabilidad exclusiva del operador financiero que utiliza la API.",
+ "disclaimer": "Nirium proporciona únicamente la infraestructura técnica de software. No proveemos asesoría legal. La interpretación, generación y presentación de reportes ante autoridades regulatorias (como la CNBV o la UIF) es responsabilidad exclusiva de quien utiliza la API.",
"cta": {
"title": "Pruébalo en testnet",
"subtitle": "Ancla un registro y revisa su CID en /verify.",
@@ -1154,7 +1057,7 @@
},
"quickstart": {
"title": "Inicio rápido",
- "subtitle": "Lee datos de mercado, lista los nodos y ancla un recibo. Gratis en testnet."
+ "subtitle": "Ancla un recibo, lee el resumen de Reporting y lista los nodos. Gratis en testnet."
},
"agentic_payments": {
"title": "Paga y cobra por request",
@@ -1179,18 +1082,18 @@
},
"mcp": {
"title": "Servidor MCP",
- "subtitle": "Conecta Claude Desktop o Cursor a los nodos de Nirium: datos de mercado, anclajes de Audit Trail, Reporting y herramientas de Treasury. Las herramientas gratis funcionan sin llave; Treasury y el control del loop piden API key, y el rebalanceo autónomo en mainnet es por invitación.",
- "tools_count": "25 herramientas (nirium-mcp 0.6.13)"
+ "subtitle": "Conecta Claude Desktop o Cursor a los nodos de Nirium: recibos de Audit Trail, Reporting, datos de mercado y x402. Las herramientas gratis funcionan sin llave. Está en el registro oficial de MCP.",
+ "tools_count": "14 herramientas (nirium-mcp 0.8.0)"
},
"hub": {
"title": "Referencia de la API",
- "subtitle": "Cada ruta de abajo existe en los dos nodos, revisado el 21 nov 2026: 200 donde es pública, 400 o 401 donde pide parámetros o llave, 402 donde pide pago, 501 donde el nodo de mainnet no la ofrece, 451 para Payouts y Tesorería desde una jurisdicción donde no se ofrecen (para el EEE, el Reino Unido y Estados Unidos, solo en mainnet desde el 18 nov 2026).",
+ "subtitle": "Cada ruta de abajo existe en los dos nodos, revisado el 21 nov 2026: 200 donde es pública, 400 o 401 donde pide parámetros o llave, 402 donde pide pago, 501 donde el nodo de mainnet no la ofrece.",
"infrastructure": "Rutas principales",
"explorer": "Por área"
},
"nodes": {
"title": "Contratos de testnet",
- "subtitle": "Contratos Soroban en Stellar testnet. El nodo de Treasury en mainnet corre sobre bóvedas de DeFindex, no sobre estos."
+ "subtitle": "El contrato en el que cobran los endpoints x402 en Stellar testnet."
},
"resources": {
"view_docs": "Abrir"
@@ -1206,8 +1109,8 @@
"badge": "Una bóveda DeFindex que es tuya",
"title": "Nodo de Tesorería",
"subtitle": "Mueve los fondos quietos de tu bóveda (USDC o CETES) a su estrategia de Blend y de regreso cuando el rendimiento cruza los umbrales que tú fijas. La bóveda es tuya; Nirium solo tiene el rol que reacomoda dentro de ella.",
- "invite_note": "En mainnet, el rebalanceo autónomo y desplegar o fondear una bóveda desde este sitio o la API son solo por invitación hasta tener una opinión legal por escrito. En testnet puedes desplegar, depositar y pedir movimientos sin invitación.",
- "invite_badge": "Solo por invitación",
+ "invite_note": "En mainnet, el rebalanceo autónomo y desplegar o fondear una bóveda desde este sitio o la API están en pausa hasta tener una opinión legal por escrito. En testnet puedes desplegar, depositar y pedir movimientos sin invitación.",
+ "invite_badge": "En pausa en mainnet",
"request_access": "Solicitar acceso →"
},
"how_it_works": {
@@ -1222,7 +1125,7 @@
},
"step3": {
"title": "El agente firma dentro de tu bóveda",
- "body": "Cuando el rendimiento cruza un umbral, el agente firma Invertir o Sacar de la estrategia con su propia llave. Esas llamadas solo mueven dinero entre la bóveda y su estrategia: no aceptan dirección de destino, así que nada puede salir de la bóveda. Nuestro código solo manda Invertir y Sacar. El rol de DeFindex también permite swaps dentro de la bóveda, nunca hacia afuera: ver /security. En testnet lo pides tú con un botón en la consola y el agente firma dentro de tu bóveda; en mainnet decide solo, cada 10 minutos, por invitación, en las bóvedas que su dueño autorizó (hoy, una: la nuestra)."
+ "body": "Cuando el rendimiento cruza un umbral, el agente firma Invertir o Sacar de la estrategia con su propia llave. Esas llamadas solo mueven dinero entre la bóveda y su estrategia: no aceptan dirección de destino, así que nada puede salir de la bóveda. Nuestro código solo manda Invertir y Sacar. El rol de DeFindex también permite swaps dentro de la bóveda, nunca hacia afuera: ver /security. En testnet lo pides tú con un botón en la consola y el agente firma dentro de tu bóveda; en mainnet decide solo, cada 10 minutos, en las bóvedas que su dueño autorizó (hoy, una: la nuestra), y ahí está en pausa desde el 27-nov-2026."
},
"step4": {
"title": "Se liquida en Stellar",
@@ -1259,7 +1162,7 @@
"title": "Dos formas de usarlo",
"path1": {
"label": "Flujo 1",
- "title": "Obtén CETES vía Etherfuse",
+ "title": "CETES vía Etherfuse (entorno de pruebas)",
"desc": "Si empiezas desde pesos: contratas directo con Etherfuse, operador independiente, envías MXN por SPEI y recibes el token en tu wallet. Nirium solo te muestra las instrucciones. Hoy funciona con el entorno de pruebas de Etherfuse.",
"item1": "El KYC lo hace Etherfuse, no Nirium",
"item2": "Tú contratas y transfieres directo a Etherfuse",
@@ -1268,7 +1171,7 @@
"path2": {
"label": "Flujo 2",
"title": "Si ya tienes USDC o CETES",
- "desc": "Despliega tu bóveda desde la consola, deposita y entrégale el rol de rebalanceo a Nirium cuando tengas acceso. Abierto en testnet; en mainnet, solo por invitación. El nodo también tiene API.",
+ "desc": "Despliega tu bóveda desde la consola, deposita y entrégale el rol de rebalanceo a Nirium cuando tengas acceso. Abierto en testnet; en mainnet, en pausa. El nodo también tiene API.",
"item1": "Tú firmas depósitos y retiros",
"item2": "El agente solo reacomoda dentro de la bóveda",
"item3": "Puedes quitar al agente cuando quieras"
@@ -1298,15 +1201,15 @@
"ipfs": "Recibo IPFS",
"lcp": "LCP · opinión legal pendiente",
"testnet": "Testnet",
- "mainnet": "Mainnet · solo por invitación"
+ "mainnet": "Mainnet · en pausa"
},
"network": {
"label": "Red",
"testnet": "Testnet",
"mainnet": "Mainnet",
- "earlyAccess": "solo por invitación",
+ "earlyAccess": "en pausa",
"freighterHint": "Mainnet usa fondos reales. Cambia Freighter a la red Pública antes de firmar.",
- "privateAccessNote": "Payouts en mainnet usa fondos reales, firmados por la empresa, y es solo por invitación. Las empresas invitadas lo corren por API con una API key que Nirium autoriza; no se puede correr desde esta página. Los destinatarios sí pueden agregar su trustline de USDC abajo."
+ "privateAccessNote": "Payouts en mainnet está en pausa desde el 28-nov-2026, para todas las API keys, hasta tener una opinión legal por escrito. No se puede correr desde esta página; puedes probarlo en testnet. Los destinatarios sí pueden agregar su trustline de USDC abajo."
},
"pricing": {
"label": "Precio (después de la beta)",
@@ -1419,9 +1322,9 @@
"external_title": "Reconocido río arriba, no solo autoreportado",
"external_note": "Cuatro contribuciones de casos de uso al propio repo de investigación de escrows de Trustless Work, mergeadas la misma noche - reconocidas directamente por su CEO en GitHub.",
"tw1_title": "Pagos de milestone con autoridad acotada + x402",
- "tw1_desc": "Caso de uso: un agente que puede liberar el pago de un milestone, pero nunca redirigir a dónde va - el patrón detrás de la integración de escrow de Payouts de Nirium, probado de punta a punta en testnet.",
+ "tw1_desc": "Caso de uso: un agente que puede liberar el pago de un milestone, pero nunca redirigir a dónde va, probado de punta a punta en testnet.",
"tw2_title": "Autoridad por parámetro ausente (rebalanceo de Tesorería)",
- "tw2_desc": "Caso de uso construido desde el propio rol de RebalanceManager de Tesorería de Nirium: la llamada rebalance() de DeFindex no tiene ningún parámetro de destino, así que redirigir fondos no está restringido - es inescribible.",
+ "tw2_desc": "Caso de uso: la llamada rebalance() de DeFindex no tiene ningún parámetro de destino, así que redirigir fondos no está restringido - es inescribible.",
"tw3_title": "Pago x402 directo sin escrow (liquidación en vivo verificada)",
"tw3_desc": "Escrito por Monse - cita la propia liquidación en vivo de testnet de Nirium Play como evidencia de cuándo un escrow basado en milestones es la herramienta equivocada.",
"tw4_title": "Evidencia de producción para el schema de herramientas del agente",
diff --git a/apps/web/lib/og/sections.ts b/apps/web/lib/og/sections.ts
index ecc957f8..dba4fedf 100644
--- a/apps/web/lib/og/sections.ts
+++ b/apps/web/lib/og/sections.ts
@@ -25,12 +25,12 @@ export const OG_SECTIONS: Record = {
// página; solo existe para servir /og/home. Texto tomado del hero de la home.
"/home": {
kind: "section",
- kicker: "x402 on Stellar",
- headline: "Payment, audit and execution rails on Stellar.",
- support: "For apps, backends and AI agents. Charge per request, prove what the chain doesn't show.",
- chips: ["Non-custodial: your keys, your funds", "Testnet + mainnet"],
+ kicker: "Audit Trail · Reporting · x402",
+ headline: "Money moves because of a document that can change.",
+ support: "Nirium records that document, signed, so anyone can check which version the money moved on.",
+ chips: ["Non-custodial", "Stellar · Solana · Avalanche · Base · Arbitrum"],
accent: "yellow",
- alt: "Nirium - payment, audit and execution rails on Stellar for apps, backends and AI agents",
+ alt: "Nirium - money moves because of a document that can change. Live on Stellar mainnet, first versions on Solana, Avalanche, Base and Arbitrum",
},
"/verify": {
kind: "section",
@@ -50,20 +50,29 @@ export const OG_SECTIONS: Record = {
accent: "violet",
alt: "Built with Nirium: Pollar and AgentLedger on testnet, TIA on mainnet",
},
+ "/chains": {
+ kind: "section",
+ kicker: "Chains",
+ headline: "One Nirium, five chains",
+ support: "What works on Stellar, Solana, Avalanche, Base and Arbitrum, feature by feature.",
+ chips: ["Stellar", "Solana", "Avalanche", "Base", "Arbitrum"],
+ accent: "teal",
+ alt: "One Nirium, five chains: what works on Stellar, Solana, Avalanche, Base and Arbitrum",
+ },
"/pricing": {
kind: "section",
kicker: "Pricing",
headline: "No surprises. No fine print.",
- support: "Start free. On mainnet, pay per request in USDC on Stellar.",
+ support: "Start free. On mainnet, pay per request in USDC, on-chain.",
chips: ["No card", "Free tier: 10 requests/min"],
accent: "yellow",
- alt: "Nirium pricing: start free, pay per request in USDC on mainnet",
+ alt: "Nirium pricing: start free, pay per request in USDC on mainnet, no card",
},
"/developers": {
kind: "section",
kicker: "Developers",
headline: "Build on Nirium",
- support: "TypeScript and Python packages, a REST API and an MCP server.",
+ support: "TypeScript and Python packages, a REST API and an MCP server. Also on Solana and Avalanche.",
chips: ["x402 per-request payments", "npm · PyPI"],
accent: "teal",
alt: "Build on Nirium: TypeScript and Python packages, REST API, MCP server",
@@ -81,59 +90,50 @@ export const OG_SECTIONS: Record = {
kind: "section",
kicker: "How to use",
headline: "Getting started with Nirium.",
- support: "An API key, x402 payments, the invite-only Treasury rebalancer and Audit Trail receipts.",
+ support: "An API key, x402 payments and Audit Trail receipts.",
accent: "sky",
alt: "How to use Nirium, step by step",
},
"/build": {
kind: "section",
kicker: "What you can build",
- headline: "Twelve product ideas to prototype on Nirium.",
+ headline: "Six product ideas to prototype on Nirium.",
support: "Most primitives run on Stellar testnet today.",
- chips: ["Invite-only items are marked"],
+ chips: ["Audit Trail · x402 · Reporting"],
accent: "yellow",
- alt: "Twelve product ideas you can prototype on Nirium",
+ alt: "Six product ideas you can prototype on Nirium",
},
"/keys": {
kind: "section",
kicker: "API Keys",
headline: "One API key for testnet and mainnet.",
- support: "Free, tied to your Stellar wallet, proven by signature.",
+ support: "Free, tied to your wallet and proven by signature. Or sign in with email or Google.",
accent: "teal",
- alt: "Issue a free Nirium API key tied to your Stellar wallet",
- },
- "/marketplace": {
- kind: "section",
- kicker: "Strategy Marketplace",
- headline: "Planned: auditable treasury policy templates.",
- support: "As Soroban contracts. Not live yet.",
- chips: ["Planned"],
- accent: "violet",
- alt: "Planned Nirium strategy marketplace, not live yet",
+ alt: "Issue a free Nirium API key tied to your wallet",
},
"/agents": {
kind: "section",
- kicker: "Execution Nodes",
+ kicker: "How it works",
headline: "What each node does, and what it may sign.",
support: "And on which network it runs.",
accent: "teal",
- alt: "Nirium execution nodes: role, signing scope and network",
+ alt: "How Nirium works: each node, what it may sign and its network",
},
"/analytics": {
kind: "section",
- kicker: "Network Telemetry",
- headline: "Agent activity, linked to its transactions.",
- support: "Panels with sample data are labeled.",
+ kicker: "Reporting",
+ headline: "Payments and receipts, read live.",
+ support: "Download them as CSV or JSON from public endpoints.",
accent: "sky",
- alt: "Nirium network telemetry: receipts, settlements and agent activity linked to transactions",
+ alt: "Nirium Reporting: payments and receipts, read live from public endpoints",
},
"/dashboard": {
kind: "section",
kicker: "Dashboard",
- headline: "Execution feed, vault state and receipts.",
- support: "The operator dashboard, on Stellar testnet.",
+ headline: "Node activity, receipts and settlements.",
+ support: "Audit Trail, Reporting and x402, read live.",
accent: "teal",
- alt: "Nirium operator dashboard on Stellar testnet",
+ alt: "Nirium dashboard: node activity, receipts and settlements on testnet and mainnet",
},
"/stats": {
kind: "section",
@@ -147,53 +147,26 @@ export const OG_SECTIONS: Record = {
"/treasury": {
kind: "section",
kicker: "Treasury",
- headline: "Treasury Node",
- support: "USDC and CETES inside a DeFindex vault structured for you to own.",
- chips: ["Autonomous rebalancing on mainnet: invite-only"],
+ headline: "Treasury and Payouts: discontinued",
+ support: "Tested only with the team's own funds; discontinued on 30 Nov 2026.",
+ chips: ["Discontinued"],
accent: "amber",
alt: "Nirium Treasury Node",
},
"/treasury/vault": {
kind: "section",
kicker: "Treasury",
- headline: "Treasury Vault Console",
- support: "Deploy a DeFindex vault you own. Nirium takes only the RebalanceManager role.",
- chips: ["Autonomous rebalancing on mainnet: invite-only"],
- accent: "amber",
- alt: "Nirium Treasury Vault Console",
- },
- "/treasury/builder": {
- kind: "section",
- kicker: "Treasury",
- headline: "Treasury Strategy Builder",
- support: "A preview canvas to compose a treasury strategy.",
- chips: ["Preview"],
- accent: "amber",
- alt: "Nirium Treasury Strategy Builder (preview)",
- },
- "/payouts": {
- kind: "section",
- kicker: "Disbursements",
- headline: "Payouts",
- support: "Up to 100 recipients in one Stellar transaction. Nirium builds it, you sign it.",
- chips: ["Invite-only on mainnet"],
- accent: "sky",
- alt: "Nirium Payouts",
- },
- "/ramp": {
- kind: "section",
- kicker: "SPEI onramp",
- headline: "MXN to CETES",
- support: "Through Etherfuse, an independent operator. Test environment: no real funds move.",
- chips: ["KYC/KYB required"],
+ headline: "Discontinued.",
+ support: "Tested only with the team's own funds; discontinued on 30 Nov 2026.",
+ chips: ["Discontinued"],
accent: "amber",
- alt: "MXN to CETES through Etherfuse, test environment",
+ alt: "Nirium Treasury (discontinued)",
},
"/security": {
kind: "section",
kicker: "Security",
headline: "Who holds the keys.",
- support: "What the agent can and cannot sign, and how vaults are controlled.",
+ support: "Who signs in each node, and what Nirium can never do.",
accent: "emerald",
alt: "Nirium security: who holds the keys",
},
@@ -247,22 +220,6 @@ export const OG_SECTIONS: Record = {
accent: "sky",
alt: "Nirium at The Open Deal Room by Stellar",
},
- "/blog/treasury-node-verify-it-yourself": {
- kind: "section",
- kicker: "Blog · Aug 6, 2026",
- headline: "The Treasury Node on mainnet: verify the contract.",
- support: "The agent's vault role can't withdraw funds, by the contract's own code.",
- accent: "amber",
- alt: "The Treasury Node on mainnet: verify the contract",
- },
- "/blog/codigo-402-agentes-que-pagan": {
- kind: "section",
- kicker: "Blog · Nov 6, 2026",
- headline: "Build an API that charges. An agent that pays.",
- support: "Free, 5-session Stellar bootcamp with BAF. Nov 10-27, 100% online.",
- accent: "teal",
- alt: "Codigo 402: free Stellar x402 bootcamp with BAF and Nirium",
- },
"/terms": legal("Terms of Service"),
"/privacy": legal("Privacy Policy"),
"/disclaimers": legal("Legal Disclaimers"),
@@ -273,7 +230,7 @@ export const OG_SECTIONS: Record = {
// URL de la imagen de una ruta, o undefined si la ruta no tiene tarjeta propia.
// El ?v= cambia la URL cuando cambia el diseño, para que Discord/X no sirvan la
// tarjeta vieja desde su caché.
-export const OG_VERSION = "2";
+export const OG_VERSION = "3";
export function ogImageUrl(path: string): string | undefined {
return OG_SECTIONS[path] ? `/og${path}?v=${OG_VERSION}` : undefined;
}
diff --git a/apps/web/lib/statsEs.ts b/apps/web/lib/statsEs.ts
index 7e97f9f5..8a3e7214 100644
--- a/apps/web/lib/statsEs.ts
+++ b/apps/web/lib/statsEs.ts
@@ -41,8 +41,8 @@ const ES: Record = {
'public URL responds 200': 'la URL pública responde 200',
'game build is served': 'el build del juego se sirve',
'x402 gate answers 402 and advertises its network': 'la compuerta x402 responde 402 y anuncia su red',
- 'A Unity game where each action goes through an x402 payment gate on Stellar.':
- 'Un juego en Unity donde cada acción pasa por una compuerta de pago x402 en Stellar.',
+ 'A Unity game where each action went through an x402 payment gate on Stellar testnet. The payment gate has been paused since 27 Nov 2026; the game page still loads.':
+ 'Un juego en Unity donde cada acción pasaba por una compuerta de pago x402 en Stellar testnet. La compuerta de pago está en pausa desde el 27 nov 2026; la página del juego sigue cargando.',
'Built by Nirium · Stellar testnet': 'Construido por Nirium · Stellar testnet',
'gate health': 'salud de la compuerta',
'The x402 gate for Unity came out of GrantFox campaign issue #70; the community PR that solved it was merged.':
diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts
index 0fd69b8a..1e3f5ede 100644
--- a/apps/web/middleware.ts
+++ b/apps/web/middleware.ts
@@ -107,6 +107,20 @@ export function middleware(request: NextRequest) {
'max-age=31536000; includeSubDomains; preload'
)
+ // The chain demos (nirium.xyz/solana, /avalanche, /base, /arbitrum, rewritten to their own Vercel
+ // projects) fetch receipts from public IPFS gateways and read the chains' RPCs, on Solana mainnet an
+ // RPC the visitor types, so they get their own policy. Same value as their block in vercel.json.
+ if (/^\/(solana|avalanche|base|arbitrum)(\/|$)/.test(path)) {
+ response.headers.set(
+ 'Content-Security-Policy',
+ "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; " +
+ "font-src 'self' data:; img-src 'self' data:; connect-src 'self' https:; " +
+ "frame-ancestors 'none'; base-uri 'self'; form-action 'self'"
+ )
+ response.headers.set('Permissions-Policy', 'camera=(), microphone=(), geolocation=(), interest-cohort=()')
+ return response
+ }
+
// Content Security Policy - Strict policy with necessary exceptions
response.headers.set(
'Content-Security-Policy',
diff --git a/apps/web/package.json b/apps/web/package.json
index 6fa6eba1..dce520ba 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -27,7 +27,7 @@
"framer-motion": "^11.18.2",
"lucide-react": "^0.563.0",
"next": "^15.5.28",
- "nirium-pollar-adapter": "^0.6.0",
+ "nirium-pollar-adapter": "^0.7.0",
"pinata": "^2.5.5",
"react": "^19.0.0",
"react-dom": "^19.0.0",
diff --git a/apps/web/public/legal/payouts-terms-v1.md b/apps/web/public/legal/payouts-terms-v1.md
index 65d9c51c..9973f1c3 100644
--- a/apps/web/public/legal/payouts-terms-v1.md
+++ b/apps/web/public/legal/payouts-terms-v1.md
@@ -1,6 +1,8 @@
-# Nirium Payouts - Terms of Use (v1.4)
+# Nirium Payouts - Terms of Use (v1.7, archived)
-**Effective:** July 10, 2026 · **Last updated:** November 18, 2026 · **Jurisdiction:** Mexico · **Stage:** Mainnet early access (invite-only)
+**Effective:** July 10, 2026 · **Last updated:** December 1, 2026 · **Jurisdiction:** Mexico · **Stage:** Archived on November 30, 2026 (paused on mainnet since November 28, 2026)
+
+> **Archived.** Payouts was tested only with the team's own funds and discontinued on 30 November 2026. It is not offered on any network, and no run can be built. These terms stay published as the record of what applied to those tests; there were never any runs on mainnet. They offer nothing.
By building or submitting a payout run through the Nirium Payouts / Disbursement node (`POST /api/payroll/run` with `acknowledgeTerms: true`), you (the "Client") accept these terms and the [Restricted Jurisdictions & Sanctions Policy](/legal/restricted-jurisdictions-v1.md), which forms part of this agreement.
@@ -8,9 +10,9 @@ By building or submitting a payout run through the Nirium Payouts / Disbursement
Nirium provides **software infrastructure only**. The node builds an **unsigned** Stellar transaction; the Client signs it with the Client's own wallet and broadcasts it. **Nirium never holds, custodies, transmits or has access to any funds.** No private key of the Client ever reaches Nirium.
-## 2. Nirium is not a regulated financial entity
+## 2. Nirium holds no financial authorization
-Nirium is **not** a Financial Technology Institution (Institución de Tecnología Financiera - ITF), **not** an Electronic Payment Funds Institution (IFPE), and **not** a money transmitter. Whether building the unsigned disbursement instruction on the Client's behalf counts as "facilitación o intermediación de activos virtuales" under LFPIORPI Article 17, Section XVI, and Article 24 Bis 4 of the General Rules issued under the LFPIORPI (Reglas de Carácter General, as amended by Acuerdo 115/2026, DOF 7 August 2026) - and so whether Nirium is an Obligated Subject (Sujeto Obligado) for that specific activity - is an open legal question, with no written legal opinion yet; it is precisely why §6 below requires client identification on mainnet, not because the question is already settled either way. Nirium provides **no financial, tax, investment, or labor advice**. Financial services (FX, custody, on/off-ramp) are provided by independent third parties under their own terms and licences.
+Nirium holds **no** authorization as a Financial Technology Institution (Institución de Tecnología Financiera - ITF) or as an Electronic Payment Funds Institution (IFPE), and no money-transmitter licence. Whether building the unsigned disbursement instruction on the Client's behalf counts as "facilitación o intermediación de activos virtuales" under LFPIORPI Article 17, Section XVI, and Article 24 Bis 4 of the General Rules issued under the LFPIORPI (Reglas de Carácter General, as amended by Acuerdo 115/2026, DOF 7 August 2026) - and so whether Nirium is an Obligated Subject (Sujeto Obligado) for that specific activity - is an open legal question, with no written legal opinion yet; it is precisely why §6 below requires client identification on mainnet, not because the question is already settled either way. Nirium provides **no financial, tax, investment, or labor advice**. Financial services (FX, custody, on/off-ramp) are provided by independent third parties under their own terms and licences.
## 3. Permitted use - independent service payments only
@@ -43,7 +45,7 @@ Under LFPIORPI Article 17, Section XVI (Mexico's anti-money-laundering law provi
Payouts is **not offered on any network** in the jurisdictions listed as Tier A in the [Restricted Jurisdictions & Sanctions Policy](/legal/restricted-jurisdictions-v1.md), and is **not offered on mainnet** in those listed as Tier B - today, among others, the European Economic Area, the United Kingdom and the United States. On testnet, where test tokens have no monetary value, Payouts is available in Tier B as a demonstration. By accepting these terms the Client makes each of the representations in §6 of that policy, on every occasion of use.
-Mainnet access is additionally **invite-only**: the Client's API key must be authorized by Nirium at institutional tier. Nirium may decline or withdraw that authorization at its discretion, without liability. Withdrawal never affects the Client's funds, which are never in Nirium's control.
+**Payouts is paused on mainnet since 28 November 2026**, for every Client and every jurisdiction, Mexico included, until Nirium has a written legal opinion: no run can be built on mainnet while the pause lasts. When it reopens, mainnet access will be **invite-only**: the Client's API key must be authorized by Nirium at institutional tier. Nirium may decline or withdraw that authorization at its discretion, without liability. Withdrawal never affects the Client's funds, which are never in Nirium's control.
## 8. Limitation of liability
@@ -67,4 +69,4 @@ These terms are governed by the federal laws of the United Mexican States. Any c
---
-*Version 1.4 - 18 November 2026. Changes from v1.3: §7 limits the Tier B exclusion to mainnet; on testnet, where test tokens have no monetary value, Payouts is available in Tier B as a demonstration, as the Treasury node already is. Version 1.3 - 16 November 2026. Changes from v1.2: §2 no longer says the open question is "under external review" (no lawyer has been engaged yet; it awaits a written legal opinion), and §2 and §9 no longer call third parties "regulated", since Nirium has not verified their regulatory status. Version 1.2 - 9 November 2026. Changes from v1.1: Article 24 Bis 4 cited to the General Rules (Acuerdo 115/2026) where it actually sits, not to the LFPIORPI itself (§2); in-force date of Article 17, Section XVI stated without "approximately" and its July 2025 amendment added (§6); dispute resolution set to the competent courts of Mexico City, with arbitration only where both parties agree in writing, the same rule as the site Terms and the Payouts / Disbursement Governing Terms (§10). Version 1.1 - 6 August 2026. Changes from v1.0: fee basis restated as a capacity-banded software licence (§9), eligibility and jurisdiction added (§7), liability cap added (§8), governing law added (§10), sanctions incorporated into prohibited uses (§4) and client responsibilities (§5). This document is versioned. Its SHA-256 hash may be referenced in audit receipts via the Legal Context Protocol once finalized. Not legal advice - the Client should consult its own counsel.*
+*Version 1.7 - 1 December 2026. Changes from v1.6: the archive notice says Payouts was tested only with the team's own funds. Version 1.6 - 30 November 2026. Changes from v1.5: Payouts is archived and no longer offered on any network; an archive notice opens the document; the rest stays as the record of what applied before. Version 1.5 - 28 November 2026. Changes from v1.4: Payouts is paused on mainnet in every jurisdiction, Mexico included (§7); testnet is unchanged; §2 says Nirium holds no ITF or IFPE authorization and no money-transmitter licence, instead of stating what Nirium is not; invite-only access is what applies when the pause ends. Version 1.4 - 18 November 2026. Changes from v1.3: §7 limits the Tier B exclusion to mainnet; on testnet, where test tokens have no monetary value, Payouts is available in Tier B as a demonstration, as the Treasury node already is. Version 1.3 - 16 November 2026. Changes from v1.2: §2 no longer says the open question is "under external review" (no lawyer has been engaged yet; it awaits a written legal opinion), and §2 and §9 no longer call third parties "regulated", since Nirium has not verified their regulatory status. Version 1.2 - 9 November 2026. Changes from v1.1: Article 24 Bis 4 cited to the General Rules (Acuerdo 115/2026) where it actually sits, not to the LFPIORPI itself (§2); in-force date of Article 17, Section XVI stated without "approximately" and its July 2025 amendment added (§6); dispute resolution set to the competent courts of Mexico City, with arbitration only where both parties agree in writing, the same rule as the site Terms and the Payouts / Disbursement Governing Terms (§10). Version 1.1 - 6 August 2026. Changes from v1.0: fee basis restated as a capacity-banded software licence (§9), eligibility and jurisdiction added (§7), liability cap added (§8), governing law added (§10), sanctions incorporated into prohibited uses (§4) and client responsibilities (§5). This document is versioned. Its SHA-256 hash may be referenced in audit receipts via the Legal Context Protocol once finalized. Not legal advice - the Client should consult its own counsel.*
diff --git a/apps/web/public/legal/restricted-jurisdictions-v1.md b/apps/web/public/legal/restricted-jurisdictions-v1.md
index 5b86ead5..1ba4291c 100644
--- a/apps/web/public/legal/restricted-jurisdictions-v1.md
+++ b/apps/web/public/legal/restricted-jurisdictions-v1.md
@@ -1,10 +1,12 @@
-# Nirium - Restricted Jurisdictions & Sanctions Policy (v1.5)
+# Nirium - Restricted Jurisdictions & Sanctions Policy (v1.10)
-**Effective:** August 6, 2026 · **Last updated:** November 25, 2026 (v1.5) · **Issuer:** Nirium Protocol Team (Mexico) · **Applies to:** every Nirium service, on every network
+**Effective:** August 6, 2026 · **Last updated:** December 1, 2026 (v1.10) · **Issuer:** Nirium Protocol Team (Mexico) · **Applies to:** every Nirium service, on every network
-This policy governs **who may use Nirium and from where**. It applies on top of, and together with, the [Payouts Terms of Use](/legal/payouts-terms-v1.md) and the site Terms. Where this policy is stricter, this policy prevails.
+This policy governs **who may use Nirium and from where**. It applies on top of, and together with, the site Terms. The [Payouts Terms of Use](/legal/payouts-terms-v1.md) stay published as a record; Payouts is archived. Where this policy is stricter, this policy prevails.
-Nirium is a **software provider established in Mexico**. It is not authorized as a financial institution, holds no client funds, and does not take possession or control of any asset. Those facts shape this policy; they are not a legal conclusion, and Nirium does not yet have a written legal opinion on its status. The restrictions below exist for the same reason: Nirium does not intend to offer a service into a country where it believes that service would be a regulated activity, however the software is built.
+**Treasury and Payouts archived, 30 November 2026.** **Payouts** and the **Treasury node** (deploying, depositing and rebalancing through Nirium), paused on mainnet since 27 and 28 November 2026, were tested only with the team's own funds and archived on 30 November 2026. They are **not offered on any network, in any jurisdiction**.
+
+Nirium is a **software provider established in Mexico**. It is not authorized as a financial institution, holds no client funds, and does not take possession or control of any asset. Those facts shape this policy; they are not a legal conclusion, and Nirium does not yet have a written legal opinion on its status. The restrictions below exist for the same reason: Nirium seeks not to offer a service where it would be a regulated activity without the corresponding authorization.
---
@@ -13,10 +15,10 @@ Nirium is a **software provider established in Mexico**. It is not authorized as
| Tier | What it means | Who is in it |
|---|---|---|
| **A. Prohibited** | No access to any Nirium service, testnet or mainnet, paid or free. | Comprehensively sanctioned jurisdictions, FATF call-for-action jurisdictions, jurisdictions under prudential restriction pending review, sanctioned persons, and the People's Republic of China (§2, §3) |
-| **B. Restricted** | **Payouts and the Treasury node are not offered on mainnet;** on testnet, where test tokens have no value, both remain available as a demonstration. Settlement, Audit and Reporting remain available. | European Economic Area, United Kingdom, United States (§4) |
-| **C. Available** | All services offered, subject to the applicable terms and any invite-only gate. | Everywhere else, including Mexico and the rest of Latin America (§5) |
+| **B. Restricted** | Nirium's own x402 endpoints, Audit and Reporting are available. Payouts and the Treasury node, which this tier excluded on mainnet, are archived everywhere. Public materials are not directed at UK persons (§4.2). | European Economic Area, United Kingdom, United States (§4) |
+| **C. Available** | All services offered, subject to the applicable terms. | Everywhere else, including Mexico and the rest of Latin America (§5) |
-Tier B is **not a statement that those services are unlawful there.** It is a statement that Nirium has not yet obtained the legal opinion it considers necessary before offering them into those markets, and will not offer them until it does. This document will be revised when that opinion is issued.
+Tier B is **not a statement that those services are unlawful there.** It recorded that Nirium had not obtained the legal opinion it considered necessary before offering Payouts and the Treasury node into those markets. Both were archived on 30 November 2026 instead.
---
@@ -33,7 +35,7 @@ Nirium does not offer, sell, or provide any service to any person located in, or
- **Russia**, **Belarus** and **Afghanistan** (prudential restriction, pending review)
- **The People's Republic of China** (see §3)
-**Cuba, Iran, North Korea, Syria,** and the listed **regions of Ukraine** reflect comprehensive sanctions programmes administered by the U.S. Office of Foreign Assets Control (OFAC) and mirrored, in substance, by the European Union and the United Nations Security Council. Mexico applies UN Security Council resolutions and its own asset-freeze regime under the LFPIORPI. Nirium applies the broadest of these standards rather than the narrowest.
+**Cuba, Iran, North Korea, Syria,** and the listed **regions of Ukraine** reflect comprehensive sanctions programmes administered by the U.S. Office of Foreign Assets Control (OFAC) and mirrored, in substance, by the European Union and the United Nations Security Council. Mexico is bound by UN Security Council sanctions and keeps its own list of blocked persons. Nirium applies the broadest of these standards rather than the narrowest.
**Myanmar** rests on a different basis: FATF has issued a public call for action against it (after the October 2026 plenary, the list is still the DPRK, Iran and Myanmar), not OFAC sanctions. **Russia, Belarus and Afghanistan** rest on a third, narrower basis: a prudential restriction pending Nirium's own review, not a sanctions programme or FATF listing. Nirium treats all three bases the same way operationally - no access to any service - but the legal basis for each differs, and this policy will revise the weaker two independently of the first if that review concludes differently.
@@ -45,15 +47,13 @@ That extraterritorial reach is why Nirium does not serve mainland China, and why
## 4. Tier B - Restricted, pending legal opinion
-In these jurisdictions Nirium offers **Settlement (x402)**, **Audit anchoring** and **Reporting**, which involve no movement of third-party assets. Nirium does **not** offer **Payouts** or the **Treasury node** on **mainnet**.
-
-Payouts and the Treasury node on **testnet** remain available in these jurisdictions as a demonstration: testnet tokens have no monetary value and cannot be exchanged for anything that does, so no crypto-asset or third-party funds are moved. The Payouts Terms of Use limit the Tier B exclusion to mainnet accordingly. Withdrawing from a vault you already own is never restricted outside Tier A: returning your own funds to you is not a service offered into that market.
+In these jurisdictions Nirium offers **its own paid x402 endpoints** (an independent facilitator settles each payment), **Audit anchoring** and **Reporting**, which involve no movement of third-party assets. **Payouts** and the **Treasury node**, which this section excluded on mainnet, were archived on 30 November 2026 and are not offered anywhere.
### 4.1 European Economic Area
-Regulation (EU) 2023/1114 (**MiCA**) lists as a regulated crypto-asset service the *"transfer service for crypto-assets on behalf of clients"*, defined as moving crypto-assets from one distributed-ledger address to another on behalf of a natural or legal person. **That definition does not require custody.** Nirium's Payouts node builds the instruction that disperses a client's funds to as many as one hundred recipients; although the client signs and broadcasts it and Nirium never holds the funds, Nirium is an identifiable intermediary constructing the transfer, and the MiCA recital concerning fully decentralised services without any intermediary does not cleanly apply.
+Regulation (EU) 2023/1114 (**MiCA**) lists as a regulated crypto-asset service the *"transfer service for crypto-assets on behalf of clients"*, defined as moving crypto-assets from one distributed-ledger address to another on behalf of a natural or legal person. **That definition does not require custody.** Nirium's Payouts node built the instruction that dispersed a client's funds to as many as one hundred recipients; although the client signed and broadcast it and Nirium never held the funds, Nirium was an identifiable intermediary constructing the transfer, and the MiCA recital concerning fully decentralised services without any intermediary does not cleanly apply.
-Nirium therefore does not offer Payouts or the Treasury node on mainnet in the EEA until it holds a written opinion on that point.
+Nirium therefore did not offer Payouts or the Treasury node on mainnet in the EEA; both are now archived.
### 4.2 United Kingdom
@@ -61,16 +61,15 @@ The UK financial-promotions regime for cryptoassets (in force 8 October 2023) re
### 4.3 United States
-The FinCEN guidance of 9 May 2019 on convertible virtual currencies excludes from money-transmission both providers of *"delivery, communication, or network access services"* and non-custodial wallet providers, on the basis that money transmission requires both acceptance **and** transmission of value. Nirium accepts nothing: it produces an unsigned transaction. Nirium's assessment is that it falls outside the federal definition.
+The FinCEN guidance of 9 May 2019 on convertible virtual currencies excludes from money-transmission both providers of *"delivery, communication, or network access services"* and non-custodial wallet providers, on the basis that money transmission requires both acceptance **and** transmission of value. Payouts only produced an unsigned transaction; whether that falls outside the federal definition was never confirmed by counsel.
-State money-transmitter regimes are not uniform, however, and Nirium has not obtained state-by-state advice. Pending that, Payouts and the Treasury node are not offered on mainnet to U.S. persons. Nirium also does not offer any service that would constitute investment advice; the Treasury node's rebalancing rule is deterministic, published in advance, and executed inside an account the client alone controls, but that analysis has not been tested against the Investment Advisers Act and Nirium will not rely on it commercially until it has been.
+State money-transmitter regimes are not uniform, however, and Nirium has not obtained state-by-state advice. Pending that, Payouts and the Treasury node were not offered on mainnet to U.S. persons; both are now archived. Nirium does not offer any service that would constitute investment advice.
## 5. Tier C - Available
All other jurisdictions, expressly including **Mexico** and the remainder of **Latin America**, subject to:
- the applicable terms of use for each service;
-- any invite-only gate Nirium operates (Payouts and autonomous rebalancing on mainnet are invite-only);
- the representations in §6; and
- local law, which remains the user's responsibility to observe.
@@ -85,7 +84,7 @@ By accessing or using any Nirium service, you represent and warrant, on each occ
3. You are not located in a Tier B jurisdiction for the purpose of using a service Nirium does not offer there;
4. You will not use the software to violate any sanctions, anti-money-laundering, export-control, tax, labour or securities law applicable to you;
5. Where you are a business, you are duly organised and the person accepting these terms is authorised to bind you; and
-6. All information you provide, including the client identification required for Payouts on mainnet, is true and complete.
+6. All information you provide is true and complete.
These representations are made afresh every time you use the service. Nirium relies on them.
@@ -93,20 +92,20 @@ These representations are made afresh every time you use the service. Nirium rel
Nirium may, without prior notice and without liability:
-- block network access from Tier A jurisdictions by technical means, including IP geolocation;
+- block network access from Tier A jurisdictions by technical means, including IP geolocation. Nirium does so on nirium.xyz, on every route of its API nodes except health checks, and on its x402 markets on Solana, Avalanche, Base and Arbitrum;
- refuse, suspend or terminate access to any account, API key or service;
- decline to build any transaction; and
- retain records of refused requests as required to demonstrate compliance.
**IP geolocation is imperfect.** Circumventing a geographic restriction - by virtual private network, proxy, false declaration or otherwise - is a breach of these terms and does not make the underlying use lawful. A user who does so bears sole responsibility, and Nirium's technical measures do not warrant that access from a Tier A jurisdiction is impossible, only that it is prohibited and actively discouraged.
-Nirium never holds user funds. Termination therefore never strands assets: a client's Stellar account, DeFindex vault and private keys are wholly outside Nirium's control at all times, and remain fully usable without Nirium.
+Nirium never holds user funds. Termination therefore never strands assets: a client's accounts and private keys are wholly outside Nirium's control at all times, and remain fully usable without Nirium.
## 8. Sanctions screening
-Nirium does not currently perform automated sanctions screening of counterparty wallet addresses, because it neither holds nor transmits funds and has not concluded that it is an Obligated Subject under the LFPIORPI - a question that still awaits a written legal opinion (see §2 of the Payouts Terms of Use). It relies on the representations in §6 and on geographic restriction.
+Nirium does not currently perform automated sanctions screening of counterparty wallet addresses, because it neither holds nor transmits funds and has not concluded that it is an Obligated Subject under the LFPIORPI - a question that was open for Payouts and the Treasury node, with no written legal opinion, until both were archived on 30 November 2026. It relies on the representations in §6 and on geographic restriction.
-This will change if Nirium's activity ever falls within Article 17, Section XVI of the LFPIORPI, which has been **in force since September 2019** (amended by decree published in the DOF on 16 July 2025) - not a future date. Nirium already collects client identification for mainnet Payouts in anticipation of a possible finding that it applies.
+This will change if Nirium's activity ever falls within Article 17, Section XVI of the LFPIORPI, which has been **in force since September 2019** (amended by decree published in the DOF on 16 July 2025) - not a future date. Payouts and the Treasury node, the services that raised that question, were archived on 30 November 2026.
## 9. Changes
@@ -114,8 +113,8 @@ Nirium may amend this policy at any time, including by adding jurisdictions, in
## 10. Governing law and disputes
-This policy is governed by the laws of the United Mexican States. Any dispute shall be resolved in accordance with the dispute-resolution provisions of the terms applicable to the service in question, and failing those, before the competent courts of Mexico City, each party waiving any other jurisdiction to which it might be entitled.
+This policy is governed by the laws of the United Mexican States. Any dispute shall be resolved in accordance with the dispute-resolution provisions of the terms applicable to the service in question, and failing those, before the competent courts of Mexico City, each party waiving any other jurisdiction to which it might be entitled. Nothing in this policy limits the rights the law gives a consumer.
---
-*Version 1.5 - 25 November 2026. Changes from 1.4, with no change to who may use Nirium: the introduction no longer says that Nirium is not a financial institution "in any jurisdiction" or that its posture makes it "lawful in most of the world". No lawyer has reviewed those statements, and §8 already treats Nirium's status as an open question. 19 November 2026, no change to who may use Nirium: the FATF reference in §2 now cites the October 2026 plenary (the call-for-action list did not change), and the header date, which still showed v1.3, now matches this version. Version 1.4 - 18 November 2026. Changes from 1.3: in Tier B, Payouts on testnet is available as a demonstration, as the Treasury node on testnet already was; mainnet stays closed for both (§1, §4, §4.1, §4.3). Version 1.3 - 16 November 2026. Changes from 1.2: §8 no longer describes the Obligated Subject question as "under external legal review"; no lawyer has been engaged yet, and the question awaits a written legal opinion. Version 1.2 - 9 November 2026. Changes from 1.1: Afghanistan moved from the FATF basis to the prudential basis, since FATF's call-for-action list is the DPRK, Iran and Myanmar (§2); MPP Charge removed from the Tier B offer, which is x402 settlement only (§4); §8 aligned with the Payouts Terms, which treat Obligated Subject status as an open question rather than a settled one; in-force date stated without "approximately". Version 1.1 - 8 November 2026: in Tier B, the Treasury node on testnet is available as a demonstration, and withdrawing from your own vault is not restricted (§1, §4). Version 1.0 - 6 August 2026. This document is versioned and its SHA-256 hash may be referenced in audit receipts. It is a statement of Nirium's own operating policy and is not legal advice to any user; each user should consult its own counsel on the law applicable to it.*
+*Version 1.10 - 1 December 2026. Changes from 1.9, with no change to who may use Nirium: §7 names the new x402 markets on Base and Arbitrum, which block Tier A from their first request. Version 1.9 - 1 December 2026. Changes from 1.8, with no change to who may use Nirium: the introduction and §4 no longer describe vault exits, since Payouts and the Treasury node were tested only with the team's own funds; §2 no longer says Mexico's asset freezes rest on the LFPIORPI, which has no such provision; §4.3 no longer says "Nirium accepts nothing" (Nirium is paid for its own x402 endpoints) or states its own reading of the federal definition as a conclusion; §7 no longer mentions a client's DeFindex vault; §10 says the policy does not limit a consumer's legal rights, as the site Terms do. Version 1.8 - 30 November 2026. Changes from 1.7, with no change to Tier A: Payouts and the Treasury node are archived on every network and in every jurisdiction; the client's own exits stay open; the introduction says Nirium seeks not to offer a service where it would be regulated activity without authorization, instead of saying it does not intend to offer one where it believes it would be regulated "however the software is built" (the same correction made on the site Terms on 21 November 2026); Tier B and Tier C no longer refer to a pause or an invite-only gate; §6 and §8 no longer refer to Payouts client identification. Version 1.7 - 28 November 2026. Changes from 1.6, with no change to Tier A: Payouts and the Treasury node are paused on mainnet in every jurisdiction, Mexico included, since 28 November 2026 (the autonomous rebalancer since 27 November); testnet is unchanged, and the client's own exits (withdraw, submit a signed transaction, change the rebalance manager) stay open; Tier B is kept for when the pause ends; §5 no longer calls the mainnet gate invite-only, and §9 no longer says identification is being collected. Version 1.6 - 27 November 2026. Changes from 1.5, with no change to who may use Nirium: the Tier B offer reads "Nirium's own x402 endpoints" instead of "Settlement (x402)", since Nirium charges for its own endpoints and an independent facilitator settles; §7 says where Tier A is blocked by IP, now including every route of the API nodes and the Solana and Avalanche markets, which until then accepted Tier A. This policy applies to every Nirium service on every network, Solana and Avalanche included. Version 1.5 - 25 November 2026. Changes from 1.4, with no change to who may use Nirium: the introduction no longer says that Nirium is not a financial institution "in any jurisdiction" or that its posture makes it "lawful in most of the world". No lawyer has reviewed those statements, and §8 already treats Nirium's status as an open question. 19 November 2026, no change to who may use Nirium: the FATF reference in §2 now cites the October 2026 plenary (the call-for-action list did not change), and the header date, which still showed v1.3, now matches this version. Version 1.4 - 18 November 2026. Changes from 1.3: in Tier B, Payouts on testnet is available as a demonstration, as the Treasury node on testnet already was; mainnet stays closed for both (§1, §4, §4.1, §4.3). Version 1.3 - 16 November 2026. Changes from 1.2: §8 no longer describes the Obligated Subject question as "under external legal review"; no lawyer has been engaged yet, and the question awaits a written legal opinion. Version 1.2 - 9 November 2026. Changes from 1.1: Afghanistan moved from the FATF basis to the prudential basis, since FATF's call-for-action list is the DPRK, Iran and Myanmar (§2); MPP Charge removed from the Tier B offer, which is x402 settlement only (§4); §8 aligned with the Payouts Terms, which treat Obligated Subject status as an open question rather than a settled one; in-force date stated without "approximately". Version 1.1 - 8 November 2026: in Tier B, the Treasury node on testnet is available as a demonstration, and withdrawing from your own vault is not restricted (§1, §4). Version 1.0 - 6 August 2026. This document is versioned and its SHA-256 hash may be referenced in audit receipts. It is a statement of Nirium's own operating policy and is not legal advice to any user; each user should consult its own counsel on the law applicable to it.*
diff --git a/apps/web/public/llms.txt b/apps/web/public/llms.txt
index 798fea4e..0c07c876 100644
--- a/apps/web/public/llms.txt
+++ b/apps/web/public/llms.txt
@@ -1,23 +1,21 @@
# Nirium
-> Payment, audit and execution rails on Stellar for apps, backends and AI agents.
+> Verifiable receipts, reporting and x402 payments on Stellar for apps, backends and AI agents.
> Non-custodial: your keys, your funds. Not financial advice.
## Network scope
- Stellar mainnet, open: x402 per-request billing, Audit Trail (receipts anchored on IPFS), Reporting.
-- Stellar mainnet, invite-only: Payouts, Treasury.
-- MPP Charge (Machine Payments Protocol): experimental, verified on testnet, untested on mainnet. For paid access on mainnet, use x402. The MPP client fails on nirium 0.20.0 until @stellar/mpp supports stellar-sdk 17; use nirium@0.19.8 for MPP (checked 23 Nov 2026).
-- NiriumVault, Nirium's own contract, stays on testnet until an external audit.
+- MPP Charge (Machine Payments Protocol): experimental, verified on testnet, untested on mainnet. For paid access on mainnet, use x402. The MPP client fails on nirium 0.20.0 and 0.21.0 until @stellar/mpp supports stellar-sdk 17; use nirium@0.19.8 for MPP (checked 29 Nov 2026).
-## Packages (versions checked 2026-11-25)
-- npm: nirium 0.20.0, nirium-mcp 0.6.13, nirium-cli 3.2.8, nirium-pollar-adapter 0.6.6
+## Packages (versions checked 2026-12-01)
+- npm: nirium 0.21.0, nirium-mcp 0.8.0, nirium-cli 3.2.8, nirium-pollar-adapter 0.7.0
- PyPI: nirium 0.13.0
## CLI (nirium-cli)
- `nirium anchor --hash | --file | --record `: anchor to IPFS via an Audit Trail node; `--sign --key-env ` adds an ed25519 attestation; `--save ` keeps your own copy of the anchored document (3.2.7+).
- `nirium verify `: checks hash and signature locally; tries several IPFS gateways in order. `--require-signature` (3.2.6+) fails any document without a valid agent signature.
- `nirium cid --expect `: recomputes a saved receipt's CID locally (3.2.7+); the same bytes re-added to IPFS give back the same CID.
-- `nirium report summary` / `nirium report export anchors|payments|payroll`: totals and rows of the whole node, including our own tests, without CIDs (not certified regulatory reporting).
+- `nirium report summary` / `nirium report export anchors|payments`: totals and rows of the whole node, including our own tests, without CIDs (not certified regulatory reporting).
## Links
- Website: https://nirium.xyz
diff --git a/apps/web/public/nirium-api.yaml b/apps/web/public/nirium-api.yaml
deleted file mode 100644
index 1f64203e..00000000
--- a/apps/web/public/nirium-api.yaml
+++ /dev/null
@@ -1,1509 +0,0 @@
-openapi: 3.1.0
-info:
- title: Nirium Protocol API
- version: 1.0.0
- description: |
- **Nirium Protocol** - Autonomous AI Agent Matrix on Stellar/Soroban
-
- This API provides access to:
- - Multi-asset vault management (XLM, USDC, CETES)
- - Autonomous agent orchestration
- - Real-time market data and signals
- - Strategy execution and testing
- - WebSocket subscriptions (the hosted stream did not accept connections when checked on 18 Nov 2026)
-
- ## Authentication
-
- Nirium supports multiple authentication methods:
-
- 1. **JWT Tokens** (short-lived, 24h)
- - Obtain via `/api/public/demo-auth` or `/api/auth/token`
- - Use header: `Authorization: Bearer `
-
- 2. **API Keys** (long-lived, institutional)
- - Request via `/api/sandbox/request` or `/api/auth/keys`
- - Use header: `x-api-key: `
-
- ## Rate Limiting
-
- Rate limits vary by tier:
-
- | Tier | Requests/Min | Requests/Day |
- |------|--------------|--------------|
- | Free | 10 | 100 |
- | Sandbox | 60 | 1,000 |
- | Institutional | 300 | 10,000 |
- | Enterprise | 1,000 | 100,000 |
-
- ## Base URLs
-
- - **Production:** `https://nirium-agent.fly.dev`
- - **Staging:** `https://api-staging.nirium.xyz`
- - **Local Dev:** `http://localhost:3001`
-
- ## Support
-
- - **Documentation:** https://docs.nirium.xyz
- - **Email:** niriumprotocol@gmail.com
- - **Discord:** https://discord.gg/gAAznKrSQZ
- contact:
- name: Nirium Protocol Support
- email: niriumprotocol@gmail.com
- url: https://nirium.xyz
- license:
- name: MIT
- url: https://github.com/nirium-protocol/nirium-core/blob/main/LICENSE
-
-servers:
- - url: https://nirium-agent.fly.dev
- description: Production Server
- - url: https://api-staging.nirium.xyz
- description: Staging Server
- - url: http://localhost:3001
- description: Local Development
-
-tags:
- - name: Public
- description: Public endpoints (no authentication required)
- - name: Authentication
- description: JWT tokens and API key management
- - name: Testnet
- description: Institutional sandbox accounts
- - name: Market Data
- description: Real-time market data and signals
- - name: Execution
- description: Strategy execution (production and demo)
- - name: Autonomous Loop
- description: Autonomous agent loop control
- - name: Webhooks
- description: HMAC-signed webhook management
- - name: Subscriptions
- description: WebSocket subscription management
- - name: Skills
- description: Plugin/skill marketplace and management
- - name: System
- description: Health checks and system configuration
-
-paths:
- # ========================================
- # PUBLIC ENDPOINTS
- # ========================================
-
- /health:
- get:
- tags: [Public]
- summary: Health check
- description: Simple health endpoint to verify API availability
- operationId: getHealth
- responses:
- '200':
- description: Service is operational
- content:
- application/json:
- schema:
- type: object
- properties:
- status:
- type: string
- example: operational
- version:
- type: string
- example: 0.1.0
- uptime:
- type: number
- description: Uptime in seconds
- example: 3600
- network:
- type: string
- enum: [testnet, mainnet]
- example: testnet
- timestamp:
- type: string
- format: date-time
-
- /api/info:
- get:
- tags: [Public]
- summary: API information
- description: Returns comprehensive API documentation and available endpoints
- operationId: getApiInfo
- responses:
- '200':
- description: API information
- content:
- application/json:
- schema:
- type: object
- properties:
- name:
- type: string
- version:
- type: string
- network:
- type: string
- documentation:
- type: string
- format: uri
- endpoints:
- type: object
- llm:
- type: object
- properties:
- active:
- type: string
- available:
- type: array
- items:
- type: string
-
- /api/public/demo-auth:
- post:
- tags: [Public, Authentication]
- summary: Generate demo token
- description: |
- Generate a demo JWT token without signature verification.
- Useful for testing and onboarding. Returns a free-tier token valid for 24 hours.
- operationId: postDemoAuth
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required: [walletAddress]
- properties:
- walletAddress:
- type: string
- pattern: '^G[A-Z0-9]{55}$'
- description: Valid Stellar wallet address
- example: GAAAA...
- responses:
- '200':
- description: Token generated successfully
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/TokenResponse'
- '400':
- $ref: '#/components/responses/BadRequest'
-
- /api/public/authenticate:
- post:
- tags: [Public, Authentication]
- summary: Wallet signature authentication
- description: |
- Authenticate using Stellar wallet signature.
- For production use with proper cryptographic verification.
- operationId: postAuthenticate
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required: [walletAddress, signature]
- properties:
- walletAddress:
- type: string
- pattern: '^G[A-Z0-9]{55}$'
- signature:
- type: string
- description: Base64-encoded signature
- message:
- type: string
- description: Message that was signed
- responses:
- '200':
- description: Authentication successful
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/TokenResponse'
- '400':
- $ref: '#/components/responses/BadRequest'
- '401':
- $ref: '#/components/responses/Unauthorized'
-
- /api/public/market-snapshot:
- get:
- tags: [Public, Market Data]
- summary: Public market snapshot
- description: Limited market data snapshot without authentication
- operationId: getMarketSnapshot
- responses:
- '200':
- description: Market snapshot
- content:
- application/json:
- schema:
- type: object
- properties:
- timestamp:
- type: string
- format: date-time
- network:
- type: string
- assets:
- type: array
- items:
- $ref: '#/components/schemas/AssetInfo'
- note:
- type: string
-
- /api/public/examples:
- get:
- tags: [Public]
- summary: Code examples
- description: Returns code examples in multiple languages (cURL, JavaScript, Python)
- operationId: getExamples
- responses:
- '200':
- description: Code examples
- content:
- application/json:
- schema:
- type: object
- properties:
- curl:
- type: object
- javascript:
- type: object
- python:
- type: object
-
- /api/public/quickstart:
- get:
- tags: [Public]
- summary: Quick start guide
- description: Step-by-step guide to get started with the API
- operationId: getQuickstart
- responses:
- '200':
- description: Quick start guide
- content:
- application/json:
- schema:
- type: object
- properties:
- title:
- type: string
- steps:
- type: array
- items:
- $ref: '#/components/schemas/QuickstartStep'
-
- # ========================================
- # SANDBOX ENDPOINTS
- # ========================================
-
- /api/sandbox/request:
- post:
- tags: [Testnet]
- summary: Request sandbox account
- description: |
- Request a new sandbox account for institutional testing.
- Returns API key (shown only once) and tier quotas.
- operationId: postSandboxRequest
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/SandboxRequest'
- responses:
- '200':
- description: Sandbox account created
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/SandboxAccountResponse'
- '400':
- $ref: '#/components/responses/BadRequest'
- '429':
- $ref: '#/components/responses/RateLimitExceeded'
-
- /api/sandbox/info:
- get:
- tags: [Testnet]
- summary: Sandbox program information
- description: Public information about sandbox tiers, quotas, and features
- operationId: getSandboxInfo
- responses:
- '200':
- description: Sandbox information
- content:
- application/json:
- schema:
- type: object
- properties:
- name:
- type: string
- description:
- type: string
- tiers:
- type: object
- features:
- type: array
- items:
- type: string
-
- /api/sandbox/status:
- get:
- tags: [Testnet]
- summary: Sandbox account status
- description: Get current sandbox account status, quotas, and usage
- operationId: getSandboxStatus
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- responses:
- '200':
- description: Sandbox status
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/SandboxStatus'
- '401':
- $ref: '#/components/responses/Unauthorized'
-
- /api/sandbox/accounts:
- get:
- tags: [Testnet]
- summary: List sandbox accounts (admin only)
- description: List all sandbox accounts with details
- operationId: getSandboxAccounts
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- responses:
- '200':
- description: List of sandbox accounts
- content:
- application/json:
- schema:
- type: object
- properties:
- total:
- type: number
- accounts:
- type: array
- items:
- $ref: '#/components/schemas/SandboxAccount'
- '401':
- $ref: '#/components/responses/Unauthorized'
- '403':
- $ref: '#/components/responses/Forbidden'
-
- # ========================================
- # AUTHENTICATION ENDPOINTS
- # ========================================
-
- /api/auth/token:
- post:
- tags: [Authentication]
- summary: Generate JWT token
- description: Generate a JWT token for wallet address
- operationId: postAuthToken
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required: [walletAddress]
- properties:
- walletAddress:
- type: string
- responses:
- '200':
- description: Token generated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/TokenResponse'
- '400':
- $ref: '#/components/responses/BadRequest'
-
- /api/auth/keys:
- post:
- tags: [Authentication]
- summary: Generate API key
- description: Generate a new API key for the authenticated user
- operationId: postApiKey
- security:
- - bearerAuth: []
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- name:
- type: string
- description: Friendly name for the key
- example: Production Key
- tier:
- type: string
- enum: [free, sandbox, institutional, enterprise]
- responses:
- '200':
- description: API key generated
- content:
- application/json:
- schema:
- type: object
- properties:
- success:
- type: boolean
- apiKey:
- type: string
- description: The API key (shown only once)
- name:
- type: string
- tier:
- type: string
- message:
- type: string
- '401':
- $ref: '#/components/responses/Unauthorized'
-
- get:
- tags: [Authentication]
- summary: List API keys
- description: Get all API keys for the authenticated user
- operationId: getApiKeys
- security:
- - bearerAuth: []
- responses:
- '200':
- description: List of API keys
- content:
- application/json:
- schema:
- type: object
- properties:
- keys:
- type: array
- items:
- $ref: '#/components/schemas/ApiKey'
- '401':
- $ref: '#/components/responses/Unauthorized'
-
- /api/auth/keys/{id}:
- delete:
- tags: [Authentication]
- summary: Revoke API key
- description: Revoke an API key by ID
- operationId: deleteApiKey
- security:
- - bearerAuth: []
- parameters:
- - name: id
- in: path
- required: true
- schema:
- type: string
- responses:
- '200':
- description: API key revoked
- content:
- application/json:
- schema:
- type: object
- properties:
- message:
- type: string
- '404':
- $ref: '#/components/responses/NotFound'
-
- # ========================================
- # MARKET DATA ENDPOINTS
- # ========================================
-
- /api/market:
- get:
- tags: [Market Data]
- summary: Get market data
- description: |
- Get comprehensive real-time market data from Stellar SDEX.
- Includes orderbook, spreads, volumes, and price movements.
- operationId: getMarket
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- responses:
- '200':
- description: Market data
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/MarketData'
- '401':
- $ref: '#/components/responses/Unauthorized'
- '429':
- $ref: '#/components/responses/RateLimitExceeded'
-
- /api/signals/recent:
- get:
- tags: [Market Data]
- summary: Get recent signals
- description: Get recent trading signals from autonomous agents
- operationId: getRecentSignals
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- parameters:
- - name: count
- in: query
- schema:
- type: number
- minimum: 1
- maximum: 100
- default: 20
- responses:
- '200':
- description: Recent signals
- content:
- application/json:
- schema:
- type: object
- properties:
- signals:
- type: array
- items:
- $ref: '#/components/schemas/Signal'
-
- # ========================================
- # EXECUTION ENDPOINTS
- # ========================================
-
- /api/execute:
- post:
- tags: [Execution]
- summary: Execute strategy (production)
- description: |
- Execute a trading strategy with real funds on Stellar network.
- Requires authentication and sufficient quotas.
- operationId: postExecute
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExecuteRequest'
- responses:
- '200':
- description: Execution result
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExecuteResponse'
- '400':
- $ref: '#/components/responses/BadRequest'
- '401':
- $ref: '#/components/responses/Unauthorized'
- '429':
- $ref: '#/components/responses/RateLimitExceeded'
-
- /api/execute-demo:
- post:
- tags: [Execution]
- summary: Execute strategy (demo/simulation)
- description: |
- Execute a trading strategy in simulation mode.
- No real funds are used. Great for testing and development.
- operationId: postExecuteDemo
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required: [strategy]
- properties:
- strategy:
- type: string
- example: scan
- asset:
- type: string
- example: XLM
- responses:
- '200':
- description: Demo execution result
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ExecuteResponse'
- '400':
- $ref: '#/components/responses/BadRequest'
-
- # ========================================
- # AUTONOMOUS LOOP ENDPOINTS
- # ========================================
-
- /api/loop/start:
- post:
- tags: [Autonomous Loop]
- summary: Start autonomous loop
- description: Start the autonomous trading loop with custom configuration
- operationId: postLoopStart
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- config:
- type: object
- properties:
- interval:
- type: number
- description: Loop interval in milliseconds
- example: 60000
- assets:
- type: array
- items:
- type: string
- example: [XLM, USDC]
- strategies:
- type: array
- items:
- type: string
- responses:
- '200':
- description: Loop started
- content:
- application/json:
- schema:
- type: object
- properties:
- success:
- type: boolean
- message:
- type: string
-
- /api/loop/stop:
- post:
- tags: [Autonomous Loop]
- summary: Stop autonomous loop
- description: Stop the running autonomous trading loop
- operationId: postLoopStop
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- responses:
- '200':
- description: Loop stopped
-
- /api/loop/status:
- get:
- tags: [Autonomous Loop]
- summary: Get loop status
- description: Get current status of autonomous loop
- operationId: getLoopStatus
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- responses:
- '200':
- description: Loop status
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/LoopStatus'
-
- /api/loop/scan:
- post:
- tags: [Autonomous Loop]
- summary: Perform manual scan
- description: Manually trigger a market scan
- operationId: postLoopScan
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- responses:
- '200':
- description: Scan result
- content:
- application/json:
- schema:
- type: object
- properties:
- success:
- type: boolean
- marketState:
- $ref: '#/components/schemas/MarketData'
-
- # ========================================
- # WEBHOOKS ENDPOINTS
- # ========================================
-
- /api/webhooks:
- post:
- tags: [Webhooks]
- summary: Register webhook
- description: Register a new HMAC-signed webhook for events
- operationId: postWebhook
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/WebhookRequest'
- responses:
- '200':
- description: Webhook registered
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Webhook'
- '400':
- $ref: '#/components/responses/BadRequest'
-
- get:
- tags: [Webhooks]
- summary: List webhooks
- description: Get all registered webhooks for the user
- operationId: getWebhooks
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- responses:
- '200':
- description: List of webhooks
- content:
- application/json:
- schema:
- type: object
- properties:
- webhooks:
- type: array
- items:
- $ref: '#/components/schemas/Webhook'
-
- /api/webhooks/{id}:
- delete:
- tags: [Webhooks]
- summary: Delete webhook
- description: Delete a registered webhook
- operationId: deleteWebhook
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- parameters:
- - name: id
- in: path
- required: true
- schema:
- type: string
- responses:
- '200':
- description: Webhook deleted
- '404':
- $ref: '#/components/responses/NotFound'
-
- /api/webhooks/{id}/test:
- post:
- tags: [Webhooks]
- summary: Test webhook
- description: Send a test event to webhook
- operationId: postWebhookTest
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- parameters:
- - name: id
- in: path
- required: true
- schema:
- type: string
- responses:
- '200':
- description: Test result
-
- # ========================================
- # SUBSCRIPTIONS ENDPOINTS
- # ========================================
-
- /api/subscriptions:
- post:
- tags: [Subscriptions]
- summary: Create subscription
- description: Create a new WebSocket subscription with filters
- operationId: postSubscription
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- filters:
- type: object
- responses:
- '200':
- description: Subscription created
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Subscription'
-
- get:
- tags: [Subscriptions]
- summary: List subscriptions
- description: Get all subscriptions for the user
- operationId: getSubscriptions
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- responses:
- '200':
- description: List of subscriptions
- content:
- application/json:
- schema:
- type: object
- properties:
- subscriptions:
- type: array
- items:
- $ref: '#/components/schemas/Subscription'
-
- /api/subscriptions/{id}:
- delete:
- tags: [Subscriptions]
- summary: Delete subscription
- description: Delete a WebSocket subscription
- operationId: deleteSubscription
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- parameters:
- - name: id
- in: path
- required: true
- schema:
- type: string
- responses:
- '200':
- description: Subscription deleted
- '404':
- $ref: '#/components/responses/NotFound'
-
- /api/subscriptions/stats:
- get:
- tags: [Subscriptions]
- summary: Get subscription stats
- description: Get statistics about active subscriptions
- operationId: getSubscriptionStats
- responses:
- '200':
- description: Subscription statistics
-
- # ========================================
- # SKILLS/PLUGINS ENDPOINTS
- # ========================================
-
- /api/skills:
- get:
- tags: [Skills]
- summary: List skills
- description: Get all loaded skills/plugins
- operationId: getSkills
- responses:
- '200':
- description: List of skills
- content:
- application/json:
- schema:
- type: object
- properties:
- skills:
- type: array
- items:
- $ref: '#/components/schemas/Skill'
- total:
- type: number
-
- /api/skills/marketplace:
- get:
- tags: [Skills]
- summary: Browse skill marketplace
- description: Get all available skills in marketplace
- operationId: getSkillsMarketplace
- responses:
- '200':
- description: Marketplace skills
-
- /api/skills/install:
- post:
- tags: [Skills]
- summary: Install skill
- description: Install a skill from GitHub or NiriumHub
- operationId: postSkillInstall
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required: [source]
- properties:
- source:
- type: string
- description: GitHub URL or NiriumHub slug
- example: https://github.com/user/skill-repo
- responses:
- '200':
- description: Skill installed
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Skill'
- '400':
- $ref: '#/components/responses/BadRequest'
-
- /api/skills/{slug}:
- delete:
- tags: [Skills]
- summary: Uninstall skill
- description: Uninstall a skill by slug
- operationId: deleteSkill
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- parameters:
- - name: slug
- in: path
- required: true
- schema:
- type: string
- responses:
- '200':
- description: Skill uninstalled
- '404':
- $ref: '#/components/responses/NotFound'
-
- /api/skills/{slug}/actions/{action}:
- post:
- tags: [Skills]
- summary: Execute skill action
- description: Execute a specific action from a skill
- operationId: postSkillAction
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- parameters:
- - name: slug
- in: path
- required: true
- schema:
- type: string
- - name: action
- in: path
- required: true
- schema:
- type: string
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- params:
- type: object
- context:
- type: object
- responses:
- '200':
- description: Action executed
-
- # ========================================
- # SYSTEM ENDPOINTS
- # ========================================
-
- /api/system/health:
- get:
- tags: [System]
- summary: Detailed health check
- description: Get detailed health status of all system components
- operationId: getSystemHealth
- responses:
- '200':
- description: System health
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/SystemHealth'
-
- /api/config/llm:
- post:
- tags: [System]
- summary: Configure LLM provider
- description: Update active LLM provider configuration
- operationId: postLlmConfig
- security:
- - bearerAuth: []
- - apiKeyAuth: []
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- provider:
- type: string
- enum: [openai, anthropic, gemini, grok, minimax, bedrock, openrouter, ollama]
- model:
- type: string
- apiKey:
- type: string
- ollamaUrl:
- type: string
- responses:
- '200':
- description: Configuration updated
-
-# ========================================
-# COMPONENTS
-# ========================================
-
-components:
- securitySchemes:
- bearerAuth:
- type: http
- scheme: bearer
- bearerFormat: JWT
- description: JWT token obtained from /api/public/demo-auth or /api/auth/token
-
- apiKeyAuth:
- type: apiKey
- in: header
- name: x-api-key
- description: Long-lived API key obtained from /api/sandbox/request or /api/auth/keys
-
- schemas:
- TokenResponse:
- type: object
- properties:
- success:
- type: boolean
- token:
- type: string
- description: JWT token
- expiresIn:
- type: string
- example: 24h
- userId:
- type: string
- tier:
- type: string
- enum: [free, sandbox, institutional, enterprise]
- quotas:
- $ref: '#/components/schemas/Quotas'
-
- Quotas:
- type: object
- properties:
- requestsPerMinute:
- type: number
- requestsPerDay:
- type: number
- maxStrategiesPerDay:
- type: number
-
- AssetInfo:
- type: object
- properties:
- code:
- type: string
- example: XLM
- name:
- type: string
- issuer:
- type: string
- status:
- type: string
- example: operational
-
- SandboxRequest:
- type: object
- required: [companyName, contactEmail, walletAddress]
- properties:
- companyName:
- type: string
- example: Institutional Partner SAPI de CV
- contactEmail:
- type: string
- format: email
- walletAddress:
- type: string
- pattern: '^G[A-Z0-9]{55}$'
- tier:
- type: string
- enum: [sandbox, institutional]
- default: sandbox
- message:
- type: string
-
- SandboxAccountResponse:
- type: object
- properties:
- success:
- type: boolean
- message:
- type: string
- account:
- $ref: '#/components/schemas/SandboxAccount'
- warning:
- type: string
-
- SandboxAccount:
- type: object
- properties:
- id:
- type: string
- companyName:
- type: string
- contactEmail:
- type: string
- walletAddress:
- type: string
- apiKey:
- type: string
- description: Only shown once upon creation
- tier:
- type: string
- quotas:
- $ref: '#/components/schemas/Quotas'
- createdAt:
- type: string
- format: date-time
- expiresAt:
- type: string
- format: date-time
- isActive:
- type: boolean
-
- SandboxStatus:
- type: object
- properties:
- account:
- type: object
- properties:
- userId:
- type: string
- tier:
- type: string
- permissions:
- type: array
- items:
- type: string
- quotas:
- $ref: '#/components/schemas/Quotas'
- usage:
- type: object
- properties:
- totalRequests:
- type: number
- dailyRequests:
- type: number
- lastReset:
- type: string
- format: date-time
- remainingToday:
- type: number
-
- ApiKey:
- type: object
- properties:
- id:
- type: string
- name:
- type: string
- tier:
- type: string
- permissions:
- type: array
- items:
- type: string
- isActive:
- type: boolean
- createdAt:
- type: string
- format: date-time
- expiresAt:
- type: string
- format: date-time
-
- MarketData:
- type: object
- properties:
- timestamp:
- type: string
- format: date-time
- assets:
- type: array
- items:
- $ref: '#/components/schemas/AssetInfo'
- orderbook:
- type: object
- spreads:
- type: object
- volumes:
- type: object
-
- Signal:
- type: object
- properties:
- id:
- type: string
- timestamp:
- type: string
- format: date-time
- asset:
- type: string
- signal:
- type: string
- enum: [buy, sell, hold]
- confidence:
- type: number
- minimum: 0
- maximum: 1
- reasoning:
- type: string
-
- ExecuteRequest:
- type: object
- required: [strategy, asset]
- properties:
- strategy:
- type: string
- example: buy
- asset:
- type: string
- example: XLM
- params:
- type: object
- properties:
- amount:
- type: number
- maxPrice:
- type: number
-
- ExecuteResponse:
- type: object
- properties:
- success:
- type: boolean
- txHash:
- type: string
- description: Stellar transaction hash
- strategy:
- type: string
- asset:
- type: string
- result:
- type: object
-
- LoopStatus:
- type: object
- properties:
- isRunning:
- type: boolean
- uptime:
- type: number
- lastScan:
- type: string
- format: date-time
- totalScans:
- type: number
-
- WebhookRequest:
- type: object
- required: [url, events]
- properties:
- url:
- type: string
- format: uri
- events:
- type: array
- items:
- type: string
- enum: [execution.started, execution.completed, execution.failed, signal.high_confidence]
- secret:
- type: string
- description: HMAC secret for signature validation
-
- Webhook:
- type: object
- properties:
- id:
- type: string
- url:
- type: string
- events:
- type: array
- items:
- type: string
- isActive:
- type: boolean
- createdAt:
- type: string
- format: date-time
-
- Subscription:
- type: object
- properties:
- id:
- type: string
- filters:
- type: object
- createdAt:
- type: string
- format: date-time
-
- Skill:
- type: object
- properties:
- id:
- type: string
- name:
- type: string
- slug:
- type: string
- version:
- type: string
- description:
- type: string
- author:
- type: string
- isBuiltIn:
- type: boolean
-
- SystemHealth:
- type: object
- properties:
- agent:
- type: object
- properties:
- healthy:
- type: boolean
- uptime:
- type: number
- horizon:
- type: object
- properties:
- healthy:
- type: boolean
- latency:
- type: number
- soroban:
- type: object
- properties:
- healthy:
- type: boolean
- latency:
- type: number
- websocket:
- type: object
- properties:
- healthy:
- type: boolean
- clients:
- type: number
- ipfs:
- type: object
- properties:
- gateway:
- type: string
- llm:
- type: object
- properties:
- provider:
- type: string
- model:
- type: string
-
- QuickstartStep:
- type: object
- properties:
- step:
- type: number
- title:
- type: string
- endpoint:
- type: string
- body:
- type: object
- headers:
- type: object
- note:
- type: string
-
- Error:
- type: object
- properties:
- error:
- type: string
- message:
- type: string
- code:
- type: string
-
- responses:
- BadRequest:
- description: Bad request - invalid parameters
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
-
- Unauthorized:
- description: Unauthorized - authentication required or invalid
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
-
- Forbidden:
- description: Forbidden - insufficient permissions
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
-
- NotFound:
- description: Resource not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
-
- RateLimitExceeded:
- description: Rate limit exceeded
- content:
- application/json:
- schema:
- type: object
- properties:
- error:
- type: string
- example: Too Many Requests
- retryAfter:
- type: number
- description: Seconds until rate limit resets
diff --git a/apps/web/vercel.json b/apps/web/vercel.json
index 8a5ced8d..5520f0d5 100644
--- a/apps/web/vercel.json
+++ b/apps/web/vercel.json
@@ -14,6 +14,38 @@
{
"source": "/nirium-play/game/",
"destination": "/nirium-play/game/index.html"
+ },
+ {
+ "source": "/solana",
+ "destination": "https://solana.nirium.xyz/solana"
+ },
+ {
+ "source": "/solana/:path*",
+ "destination": "https://solana.nirium.xyz/solana/:path*"
+ },
+ {
+ "source": "/avalanche",
+ "destination": "https://avalanche.nirium.xyz/avalanche"
+ },
+ {
+ "source": "/avalanche/:path*",
+ "destination": "https://avalanche.nirium.xyz/avalanche/:path*"
+ },
+ {
+ "source": "/base",
+ "destination": "https://base.nirium.xyz/base"
+ },
+ {
+ "source": "/base/:path*",
+ "destination": "https://base.nirium.xyz/base/:path*"
+ },
+ {
+ "source": "/arbitrum",
+ "destination": "https://arbitrum.nirium.xyz/arbitrum"
+ },
+ {
+ "source": "/arbitrum/:path*",
+ "destination": "https://arbitrum.nirium.xyz/arbitrum/:path*"
}
],
"headers": [
@@ -42,7 +74,7 @@
]
},
{
- "source": "/(.*)",
+ "source": "/:path((?!solana|avalanche).*)",
"headers": [
{
"key": "Content-Security-Policy",
@@ -73,6 +105,72 @@
"value": "1; mode=block"
}
]
+ },
+ {
+ "source": "/:chain(solana|avalanche|base|arbitrum)",
+ "headers": [
+ {
+ "key": "Content-Security-Policy",
+ "value": "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data:; connect-src 'self' https:; frame-ancestors 'none'; base-uri 'self'; form-action 'self'"
+ },
+ {
+ "key": "X-Frame-Options",
+ "value": "DENY"
+ },
+ {
+ "key": "X-Content-Type-Options",
+ "value": "nosniff"
+ },
+ {
+ "key": "Referrer-Policy",
+ "value": "strict-origin-when-cross-origin"
+ },
+ {
+ "key": "Permissions-Policy",
+ "value": "camera=(), microphone=(), geolocation=(), payment=()"
+ },
+ {
+ "key": "Strict-Transport-Security",
+ "value": "max-age=63072000; includeSubDomains; preload"
+ },
+ {
+ "key": "X-XSS-Protection",
+ "value": "1; mode=block"
+ }
+ ]
+ },
+ {
+ "source": "/:chain(solana|avalanche|base|arbitrum)/:path*",
+ "headers": [
+ {
+ "key": "Content-Security-Policy",
+ "value": "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data:; connect-src 'self' https:; frame-ancestors 'none'; base-uri 'self'; form-action 'self'"
+ },
+ {
+ "key": "X-Frame-Options",
+ "value": "DENY"
+ },
+ {
+ "key": "X-Content-Type-Options",
+ "value": "nosniff"
+ },
+ {
+ "key": "Referrer-Policy",
+ "value": "strict-origin-when-cross-origin"
+ },
+ {
+ "key": "Permissions-Policy",
+ "value": "camera=(), microphone=(), geolocation=(), payment=()"
+ },
+ {
+ "key": "Strict-Transport-Security",
+ "value": "max-age=63072000; includeSubDomains; preload"
+ },
+ {
+ "key": "X-XSS-Protection",
+ "value": "1; mode=block"
+ }
+ ]
}
]
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index dc9ba0ea..c936fa6d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -142,8 +142,8 @@ importers:
specifier: ^15.5.28
version: 15.5.28(@types/node@20.19.39)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)
nirium-pollar-adapter:
- specifier: ^0.6.0
- version: 0.6.5(@pollar/core@0.12.0)
+ specifier: ^0.7.0
+ version: 0.7.0(@pollar/core@0.12.0)
pinata:
specifier: ^2.5.5
version: 2.5.5(react-dom@19.2.5(react@19.2.5))(react@19.2.5)
@@ -5409,8 +5409,8 @@ packages:
sass:
optional: true
- nirium-pollar-adapter@0.6.5:
- resolution: {integrity: sha512-tQlOIKFXqVyeW3tpo3SZ4iKr+Srg9sAqh0qqlB1AuNYgnhWZv5Jxz4VuvjFNY1f5A+czu1JElgQbuOdwstCojw==}
+ nirium-pollar-adapter@0.7.0:
+ resolution: {integrity: sha512-ggsa9AI+Tzn7DCFnrLeZYCasT34BWz6FhXdlaypUF2AA1iMpxpFNDLgoy6guYSU5P/zxoceSqQzZLFvw7hpWuA==}
engines: {node: '>=22.12.0'}
peerDependencies:
'@pollar/core': '>=0.11.4 <0.13.0'
@@ -14020,7 +14020,7 @@ snapshots:
- '@types/node'
- babel-plugin-macros
- nirium-pollar-adapter@0.6.5(@pollar/core@0.12.0):
+ nirium-pollar-adapter@0.7.0(@pollar/core@0.12.0):
dependencies:
'@stellar/stellar-sdk': 16.4.1
'@x402/core': 2.31.0
From f8b99ee941cdf818c7ca7cb153b8524396609df3 Mon Sep 17 00:00:00 2001
From: Eras256 <219895655+Eras256@users.noreply.github.com>
Date: Wed, 2 Dec 2026 22:18:34 -0600
Subject: [PATCH 2/2] fix(deps): ws 7.5.14 / 8.23.1 and cross-spawn 7.1.2
The Node supply-chain audit on this PR failed on advisories published
after the last green run on main (25 Nov), none of them from the synced
files: ws memory exhaustion via automatic pong responses (<7.5.14,
<8.23.0) and cross-spawn command injection on Windows batch files
(<7.1.0). Bumped through the existing pnpm overrides; pnpm audit
--audit-level=high passes locally and the web build still passes.
Co-Authored-By: Claude Opus 5.5
---
package.json | 7 +-
pnpm-lock.yaml | 171 +++++++++++++++++++++++++------------------------
2 files changed, 90 insertions(+), 88 deletions(-)
diff --git a/package.json b/package.json
index 9f32abf9..d8438818 100644
--- a/package.json
+++ b/package.json
@@ -42,14 +42,15 @@
"smol-toml": ">=1.7.1",
"undici@6": "6.29.1",
"undici@8": "8.12.2",
- "ws@7": "7.5.11",
- "ws@8": "8.21.3",
+ "ws@7": "7.5.14",
+ "ws@8": "8.23.1",
"source-map-js": ">=1.2.2",
"proxy-addr": ">=2.0.8",
"follow-redirects": ">=1.16.2",
"@modelcontextprotocol/sdk": ">=1.31.0",
"zod@4": "^4.6.6",
- "body-parser": ">=2.4.0"
+ "body-parser": ">=2.4.0",
+ "cross-spawn@7": "7.1.2"
},
"auditConfig": {
"ignoreGhsas": [
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c936fa6d..127cbcaa 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -25,14 +25,15 @@ overrides:
smol-toml: '>=1.7.1'
undici@6: 6.29.1
undici@8: 8.12.2
- ws@7: 7.5.11
- ws@8: 8.21.3
+ ws@7: 7.5.14
+ ws@8: 8.23.1
source-map-js: '>=1.2.2'
proxy-addr: '>=2.0.8'
follow-redirects: '>=1.16.2'
'@modelcontextprotocol/sdk': '>=1.31.0'
zod@4: ^4.6.6
body-parser: '>=2.4.0'
+ cross-spawn@7: 7.1.2
importers:
@@ -89,7 +90,7 @@ importers:
dependencies:
'@creit.tech/stellar-wallets-kit':
specifier: ^2.0.0
- version: 2.1.0(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(@stellar/stellar-sdk@14.6.1)(@trezor/connect@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(@types/react@19.2.14)(@vercel/blob@2.3.3)(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(near-api-js@5.1.1)(react@19.2.5)(tslib@2.8.1)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.5))(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))(zod@3.25.76)
+ version: 2.1.0(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(@stellar/stellar-sdk@14.6.1)(@trezor/connect@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(@types/react@19.2.14)(@vercel/blob@2.3.3)(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(near-api-js@5.1.1)(react@19.2.5)(tslib@2.8.1)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.5))(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))(zod@3.25.76)
'@pollar/core':
specifier: ^0.12.0
version: 0.12.0
@@ -266,8 +267,8 @@ importers:
specifier: ^14.0.3
version: 14.0.3
ws:
- specifier: 8.21.3
- version: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ specifier: 8.23.1
+ version: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
devDependencies:
'@types/cors':
specifier: ^2.8.17
@@ -395,8 +396,8 @@ importers:
specifier: ^2.55.19
version: 2.56.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@6.0.6)(zod@4.6.7)
ws:
- specifier: 8.21.3
- version: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ specifier: 8.23.1
+ version: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
devDependencies:
'@types/jest':
specifier: ^30.0.0
@@ -2200,7 +2201,7 @@ packages:
engines: {node: '>=20.18.0'}
peerDependencies:
typescript: '>=5.3.3'
- ws: 8.21.3
+ ws: 8.23.1
'@solana/rpc-subscriptions-channel-websocket@5.5.1':
resolution: {integrity: sha512-7tGfBBrYY8TrngOyxSHoCU5shy86iA9SRMRrPSyBhEaZRAk6dnbdpmUTez7gtdVo0BCvh9nzQtUycKWSS7PnFQ==}
@@ -3900,8 +3901,8 @@ packages:
cross-fetch@4.1.0:
resolution: {integrity: sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw==}
- cross-spawn@7.0.6:
- resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
+ cross-spawn@7.1.2:
+ resolution: {integrity: sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==}
engines: {node: '>= 8'}
crossws@0.3.5:
@@ -4737,12 +4738,12 @@ packages:
isomorphic-ws@4.0.1:
resolution: {integrity: sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==}
peerDependencies:
- ws: 7.5.11
+ ws: 7.5.14
isows@1.0.7:
resolution: {integrity: sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==}
peerDependencies:
- ws: 7.5.11
+ ws: 7.5.14
istanbul-lib-coverage@3.2.2:
resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==}
@@ -6830,8 +6831,8 @@ packages:
resolution: {integrity: sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
- ws@7.5.11:
- resolution: {integrity: sha512-zS54Oen9bITtp7kp2XM3AydrCIq1D+HwJOuH+c+e4LfpL/lotP5osijd+UoMnxwAam1GN8R4KtLAyIrIcBNpiA==}
+ ws@7.5.14:
+ resolution: {integrity: sha512-u9Oi2nQ8SZnTUAf6spLLKF5TyqoG3Nbbrd4ai6Sjo4P24bycDewhQqtNMIg4bFpnpH/TD4qk4IuAVhT0HIIqug==}
engines: {node: '>=8.3.0'}
peerDependencies:
bufferutil: ^4.0.1
@@ -6842,8 +6843,8 @@ packages:
utf-8-validate:
optional: true
- ws@8.21.3:
- resolution: {integrity: sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==}
+ ws@8.23.1:
+ resolution: {integrity: sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==}
engines: {node: '>=10.0.0'}
peerDependencies:
bufferutil: ^4.0.1
@@ -7212,7 +7213,7 @@ snapshots:
- utf-8-validate
optional: true
- '@creit.tech/stellar-wallets-kit@2.1.0(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(@stellar/stellar-sdk@14.6.1)(@trezor/connect@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(@types/react@19.2.14)(@vercel/blob@2.3.3)(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(near-api-js@5.1.1)(react@19.2.5)(tslib@2.8.1)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.5))(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))(zod@3.25.76)':
+ '@creit.tech/stellar-wallets-kit@2.1.0(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(@stellar/stellar-sdk@14.6.1)(@trezor/connect@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(@types/react@19.2.14)(@vercel/blob@2.3.3)(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(near-api-js@5.1.1)(react@19.2.5)(tslib@2.8.1)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.5))(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))(zod@3.25.76)':
dependencies:
'@albedo-link/intent': 0.12.0
'@creit.tech/xbull-wallet-connect': 0.4.0
@@ -7225,8 +7226,8 @@ snapshots:
'@reown/appkit': 1.8.19(@types/react@19.2.14)(@vercel/blob@2.3.3)(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.5))(utf-8-validate@6.0.6)(zod@3.25.76)
'@stellar/freighter-api': 6.0.0
'@stellar/stellar-base': 14.0.1
- '@trezor/connect-plugin-stellar': 9.2.6(@stellar/stellar-sdk@14.6.1)(@trezor/connect@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(tslib@2.8.1)
- '@trezor/connect-web': 9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@trezor/connect-plugin-stellar': 9.2.6(@stellar/stellar-sdk@14.6.1)(@trezor/connect@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(tslib@2.8.1)
+ '@trezor/connect-web': 9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@twind/core': 1.1.3(typescript@5.9.3)
'@twind/preset-autoprefix': 1.0.7(@twind/core@1.1.3(typescript@5.9.3))(typescript@5.9.3)
'@twind/preset-tailwind': 1.1.4(@twind/core@1.1.3(typescript@5.9.3))(typescript@5.9.3)
@@ -8019,7 +8020,7 @@ snapshots:
ajv-formats: 3.0.1(ajv@8.18.0)
content-type: 1.0.5
cors: 2.8.6
- cross-spawn: 7.0.6
+ cross-spawn: 7.1.2
eventsource: 3.0.7
eventsource-parser: 3.0.6
express: 5.2.1
@@ -8043,7 +8044,7 @@ snapshots:
ajv-formats: 3.0.1(ajv@8.18.0)
content-type: 1.0.5
cors: 2.8.6
- cross-spawn: 7.0.6
+ cross-spawn: 7.1.2
eventsource: 3.0.7
eventsource-parser: 3.0.6
express: 5.2.1
@@ -8929,31 +8930,31 @@ snapshots:
dependencies:
'@sinonjs/commons': 3.0.1
- '@solana-program/compute-budget@0.8.0(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))':
+ '@solana-program/compute-budget@0.8.0(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))':
dependencies:
- '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
- '@solana-program/stake@0.2.1(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))':
+ '@solana-program/stake@0.2.1(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))':
dependencies:
- '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@solana-program/system@0.10.0(@solana/kit@5.5.1(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@6.0.6))':
dependencies:
'@solana/kit': 5.5.1(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@6.0.6)
optional: true
- '@solana-program/system@0.7.0(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))':
+ '@solana-program/system@0.7.0(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))':
dependencies:
- '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
- '@solana-program/token-2022@0.4.2(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))':
+ '@solana-program/token-2022@0.4.2(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))':
dependencies:
- '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@solana/sysvars': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
- '@solana-program/token@0.5.1(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))':
+ '@solana-program/token@0.5.1(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))':
dependencies:
- '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@solana-program/token@0.9.0(@solana/kit@5.5.1(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@6.0.6))':
dependencies:
@@ -9185,7 +9186,7 @@ snapshots:
- fastestsmallesttextencoderdecoder
optional: true
- '@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
+ '@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
dependencies:
'@solana/accounts': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@solana/addresses': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
@@ -9198,11 +9199,11 @@ snapshots:
'@solana/rpc': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@solana/rpc-parsed-types': 2.3.0(typescript@5.9.3)
'@solana/rpc-spec-types': 2.3.0(typescript@5.9.3)
- '@solana/rpc-subscriptions': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana/rpc-subscriptions': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@solana/rpc-types': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@solana/signers': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@solana/sysvars': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
- '@solana/transaction-confirmation': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana/transaction-confirmation': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@solana/transaction-messages': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@solana/transactions': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
typescript: 5.9.3
@@ -9415,14 +9416,14 @@ snapshots:
- fastestsmallesttextencoderdecoder
optional: true
- '@solana/rpc-subscriptions-channel-websocket@2.3.0(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
+ '@solana/rpc-subscriptions-channel-websocket@2.3.0(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
dependencies:
'@solana/errors': 2.3.0(typescript@5.9.3)
'@solana/functional': 2.3.0(typescript@5.9.3)
'@solana/rpc-subscriptions-spec': 2.3.0(typescript@5.9.3)
'@solana/subscribable': 2.3.0(typescript@5.9.3)
typescript: 5.9.3
- ws: 7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)
'@solana/rpc-subscriptions-channel-websocket@5.5.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@6.0.6)':
dependencies:
@@ -9430,7 +9431,7 @@ snapshots:
'@solana/functional': 5.5.1(typescript@5.9.3)
'@solana/rpc-subscriptions-spec': 5.5.1(typescript@5.9.3)
'@solana/subscribable': 5.5.1(typescript@5.9.3)
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
optionalDependencies:
typescript: 5.9.3
transitivePeerDependencies:
@@ -9456,7 +9457,7 @@ snapshots:
typescript: 5.9.3
optional: true
- '@solana/rpc-subscriptions@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
+ '@solana/rpc-subscriptions@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
dependencies:
'@solana/errors': 2.3.0(typescript@5.9.3)
'@solana/fast-stable-stringify': 2.3.0(typescript@5.9.3)
@@ -9464,7 +9465,7 @@ snapshots:
'@solana/promises': 2.3.0(typescript@5.9.3)
'@solana/rpc-spec-types': 2.3.0(typescript@5.9.3)
'@solana/rpc-subscriptions-api': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
- '@solana/rpc-subscriptions-channel-websocket': 2.3.0(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana/rpc-subscriptions-channel-websocket': 2.3.0(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@solana/rpc-subscriptions-spec': 2.3.0(typescript@5.9.3)
'@solana/rpc-transformers': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@solana/rpc-types': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
@@ -9658,7 +9659,7 @@ snapshots:
transitivePeerDependencies:
- fastestsmallesttextencoderdecoder
- '@solana/transaction-confirmation@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
+ '@solana/transaction-confirmation@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
dependencies:
'@solana/addresses': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@solana/codecs-strings': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
@@ -9666,7 +9667,7 @@ snapshots:
'@solana/keys': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@solana/promises': 2.3.0(typescript@5.9.3)
'@solana/rpc': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
- '@solana/rpc-subscriptions': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana/rpc-subscriptions': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@solana/rpc-types': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@solana/transaction-messages': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@solana/transactions': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
@@ -9969,7 +9970,7 @@ snapshots:
'@supabase/phoenix': 0.4.0
'@types/ws': 8.18.1
tslib: 2.8.1
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -10067,13 +10068,13 @@ snapshots:
- supports-color
- utf-8-validate
- '@trezor/blockchain-link@2.6.1(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
+ '@trezor/blockchain-link@2.6.1(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
dependencies:
- '@solana-program/compute-budget': 0.8.0(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
- '@solana-program/stake': 0.2.1(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
- '@solana-program/token': 0.5.1(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
- '@solana-program/token-2022': 0.4.2(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))
- '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana-program/compute-budget': 0.8.0(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
+ '@solana-program/stake': 0.2.1(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
+ '@solana-program/token': 0.5.1(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
+ '@solana-program/token-2022': 0.4.2(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))
+ '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@solana/rpc-types': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)
'@stellar/stellar-sdk': 14.2.0
'@trezor/blockchain-link-types': 1.5.0(tslib@2.8.1)
@@ -10121,16 +10122,16 @@ snapshots:
- expo-localization
- react-native
- '@trezor/connect-plugin-stellar@9.2.6(@stellar/stellar-sdk@14.6.1)(@trezor/connect@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(tslib@2.8.1)':
+ '@trezor/connect-plugin-stellar@9.2.6(@stellar/stellar-sdk@14.6.1)(@trezor/connect@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(tslib@2.8.1)':
dependencies:
'@stellar/stellar-sdk': 14.6.1
- '@trezor/connect': 9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@trezor/connect': 9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@trezor/utils': 9.5.0(tslib@2.8.1)
tslib: 2.8.1
- '@trezor/connect-web@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
+ '@trezor/connect-web@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
dependencies:
- '@trezor/connect': 9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@trezor/connect': 9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@trezor/connect-common': 0.5.1(tslib@2.8.1)
'@trezor/utils': 9.5.0(tslib@2.8.1)
'@trezor/websocket-client': 1.3.0(bufferutil@4.1.0)(tslib@2.8.1)(utf-8-validate@6.0.6)
@@ -10149,7 +10150,7 @@ snapshots:
- utf-8-validate
- ws
- '@trezor/connect@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
+ '@trezor/connect@9.7.2(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))':
dependencies:
'@ethereumjs/common': 10.1.1
'@ethereumjs/tx': 10.1.1
@@ -10157,12 +10158,12 @@ snapshots:
'@mobily/ts-belt': 3.13.1
'@noble/hashes': 1.8.0
'@scure/bip39': 1.6.0
- '@solana-program/compute-budget': 0.8.0(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
- '@solana-program/system': 0.7.0(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
- '@solana-program/token': 0.5.1(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
- '@solana-program/token-2022': 0.4.2(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))
- '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
- '@trezor/blockchain-link': 2.6.1(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@solana-program/compute-budget': 0.8.0(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
+ '@solana-program/system': 0.7.0(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
+ '@solana-program/token': 0.5.1(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))
+ '@solana-program/token-2022': 0.4.2(@solana/kit@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))
+ '@solana/kit': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ '@trezor/blockchain-link': 2.6.1(@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(bufferutil@4.1.0)(fastestsmallesttextencoderdecoder@1.0.22)(tslib@2.8.1)(typescript@5.9.3)(utf-8-validate@6.0.6)(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
'@trezor/blockchain-link-types': 1.5.1(tslib@2.8.1)
'@trezor/blockchain-link-utils': 1.5.2(bufferutil@4.1.0)(tslib@2.8.1)(utf-8-validate@6.0.6)
'@trezor/connect-analytics': 1.4.0(tslib@2.8.1)
@@ -10288,7 +10289,7 @@ snapshots:
dependencies:
'@trezor/utils': 9.5.0(tslib@2.8.1)
tslib: 2.8.1
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -10839,7 +10840,7 @@ snapshots:
'@walletconnect/jsonrpc-utils': 1.0.8
'@walletconnect/safe-json': 1.0.2
events: 3.3.0
- ws: 7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -11358,7 +11359,7 @@ snapshots:
dependencies:
'@noble/hashes': 1.8.0
eventemitter3: 5.0.1
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -12002,7 +12003,7 @@ snapshots:
cross-env@7.0.3:
dependencies:
- cross-spawn: 7.0.6
+ cross-spawn: 7.1.2
cross-fetch@3.2.0:
dependencies:
@@ -12016,7 +12017,7 @@ snapshots:
transitivePeerDependencies:
- encoding
- cross-spawn@7.0.6:
+ cross-spawn@7.1.2:
dependencies:
path-key: 3.1.1
shebang-command: 2.0.0
@@ -12321,7 +12322,7 @@ snapshots:
'@types/node': 22.7.5
aes-js: 4.0.0-beta.5
tslib: 2.7.0
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -12359,7 +12360,7 @@ snapshots:
execa@5.1.1:
dependencies:
- cross-spawn: 7.0.6
+ cross-spawn: 7.1.2
get-stream: 6.0.1
human-signals: 2.1.0
is-stream: 2.0.1
@@ -12505,7 +12506,7 @@ snapshots:
foreground-child@3.3.1:
dependencies:
- cross-spawn: 7.0.6
+ cross-spawn: 7.1.2
signal-exit: 4.1.0
form-data@4.0.6:
@@ -12871,13 +12872,13 @@ snapshots:
isexe@2.0.0: {}
- isomorphic-ws@4.0.1(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)):
+ isomorphic-ws@4.0.1(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)):
dependencies:
- ws: 7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)
- isows@1.0.7(ws@8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)):
+ isows@1.0.7(ws@8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)):
dependencies:
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
istanbul-lib-coverage@3.2.2: {}
@@ -12958,11 +12959,11 @@ snapshots:
delay: 5.0.0
es6-promisify: 5.0.0
eyes: 0.1.8
- isomorphic-ws: 4.0.1(ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ isomorphic-ws: 4.0.1(ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6))
json-stringify-safe: 5.0.1
stream-json: 1.9.1
uuid: 8.3.2
- ws: 7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6)
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -14040,7 +14041,7 @@ snapshots:
'@x402/stellar': 2.28.0
mppx: 0.6.31(@modelcontextprotocol/sdk@1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7))(express@5.2.1)(hono@4.13.5)(typescript@5.9.3)(viem@2.56.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@6.0.6)(zod@4.6.7))
viem: 2.56.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@6.0.6)(zod@4.6.7)
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
transitivePeerDependencies:
- '@modelcontextprotocol/sdk'
- bufferutil
@@ -14708,7 +14709,7 @@ snapshots:
buffer: 6.0.3
eventemitter3: 5.0.4
uuid: 11.1.1
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
optionalDependencies:
bufferutil: 4.1.0
utf-8-validate: 6.0.6
@@ -15485,9 +15486,9 @@ snapshots:
'@scure/bip32': 1.7.0
'@scure/bip39': 1.6.0
abitype: 1.2.3(typescript@5.9.3)(zod@3.25.76)
- isows: 1.0.7(ws@8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ isows: 1.0.7(ws@8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6))
ox: 0.14.30(typescript@5.9.3)(zod@3.25.76)
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
optionalDependencies:
typescript: 5.9.3
transitivePeerDependencies:
@@ -15502,9 +15503,9 @@ snapshots:
'@scure/bip32': 1.7.0
'@scure/bip39': 1.6.0
abitype: 1.2.3(typescript@5.9.3)(zod@3.22.4)
- isows: 1.0.7(ws@8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ isows: 1.0.7(ws@8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6))
ox: 0.14.34(typescript@5.9.3)(zod@3.22.4)
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
optionalDependencies:
typescript: 5.9.3
transitivePeerDependencies:
@@ -15519,9 +15520,9 @@ snapshots:
'@scure/bip32': 1.7.0
'@scure/bip39': 1.6.0
abitype: 1.2.3(typescript@5.9.3)(zod@3.25.76)
- isows: 1.0.7(ws@8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ isows: 1.0.7(ws@8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6))
ox: 0.14.34(typescript@5.9.3)(zod@3.25.76)
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
optionalDependencies:
typescript: 5.9.3
transitivePeerDependencies:
@@ -15536,9 +15537,9 @@ snapshots:
'@scure/bip32': 1.7.0
'@scure/bip39': 1.6.0
abitype: 1.2.3(typescript@5.9.3)(zod@4.6.7)
- isows: 1.0.7(ws@8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))
+ isows: 1.0.7(ws@8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6))
ox: 0.14.34(typescript@5.9.3)(zod@4.6.7)
- ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6)
+ ws: 8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6)
optionalDependencies:
typescript: 5.9.3
transitivePeerDependencies:
@@ -15610,12 +15611,12 @@ snapshots:
imurmurhash: 0.1.4
signal-exit: 4.1.0
- ws@7.5.11(bufferutil@4.1.0)(utf-8-validate@6.0.6):
+ ws@7.5.14(bufferutil@4.1.0)(utf-8-validate@6.0.6):
optionalDependencies:
bufferutil: 4.1.0
utf-8-validate: 6.0.6
- ws@8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6):
+ ws@8.23.1(bufferutil@4.1.0)(utf-8-validate@6.0.6):
optionalDependencies:
bufferutil: 4.1.0
utf-8-validate: 6.0.6