Skip to content

Contracts & Addresses

Network: Stellar Testnet (Test SDF Network ; September 2015). Everything below is live and verifiable on stellar.expert.

Current contracts

ContractAddress / hash
Treasury v3.2 wasm (current — every in-app create instantiates this)475cfbe2ca79d7977c8e4d29438ae70b9d95a12cb2bfcd9fed4e4f7a26d798b2
Treasury Registry (cross-device backup)CBEPVXK6…4ZE7
Compliance Verifier (ZK, hardened)CCOLX7NE…DBRH
Eunomia Policy (OpenZeppelin ComplianceHooks)CBWMYGL7E663UON6ER5KQX2JZZA4UDZZD4RIFEHGXXF2HMMBRAN7BLQF

Treasury version history (v1 demo → v2 reputation+escrow → v3 sessions+lifecycle → v3.1 audit hardening → v3.2 storage-TTL hardening) is recorded with upload transactions in DEPLOYMENT.md.

Live on-chain proofs

ClaimProof
ZK compliance attested on-chaintx 4438c949…cac2aComplianceAttested
Replay of the same period rejectedsecond verify traps (already attested)
Rogue payment to an unapproved address rejectedError(Contract, #2) — funds never moved
Session key as sole spender, root key refused while Leash activeverified on the M2 smoke treasury
Reputation-gated payment (payee not approved, score ≥ threshold)tx 8d62132f…

Contract test suites: treasury 51/51 · registry 3/3 · verifier 6/6 · policy 2/2 (cargo test, run in CI).

Error codes

A rejected payment is the product working — these are the reasons a call reverts:

#ErrorMeaning
1InvalidAmountZero/negative amount
2PayeeNotWhitelistedDestination was never approved
3ExceedsTaskLimitAbove the per-payment cap
4ExceedsDailyLimitAbove what's left of the rolling 24h cap
5BelowReputationThresholdReputation gate not cleared
6InsufficientFreeBalanceEscrow-locked funds can't be spent
7-8EscrowNotFound / DeadlineNotReachedEscrow lifecycle guards
9PausedOwner froze spending (withdraw still works)
10ExceedsSessionLimitAbove the Leash's own cap
11InvalidLimitsRules must satisfy 0 < per-payment ≤ daily
12InvalidDeadlineEscrow deadline in the past

ERC-8004 registries (integration target)

Production reputation targets trionlabs/stellar-8004 (SDK: @trionlabs/8004-sdk; agent id: stellar:testnet:{identityRegistry}#{agentId}):

RegistryTestnet address
IdentityCDE3K4COIAGWNNJQQLL26SYI3KBJF5FUDHXG5FA6GYDJCG7T5V7FIWZH
ReputationCBZEAGIEI3HXMDRLF44KLQJQQOH6LCYWWSGJVSYQYQO2HQ6DDGZ7HT55
ValidationCC5USZRO26MOIAVNYTTJDS63C2OBBLREOAOET4CPF2EZWO3YFKLMO3SL