Smart Contracts
On-chain settlement on casper-test
AgentVault deploys two Odra contract packages to Casper testnet. Escrow handles job funding and release. Attestation stores RWA data hashes and reputation scores.
Deployed packages
Package hashes are configured for the deployment environment. The dashboard normalizes the hash- prefix automatically.
| Contract | Configuration | Entry points |
|---|---|---|
| Escrow | Escrow package hash | init, verify_and_release |
| Attestation | Attestation package hash | init, update_reputation |
Escrow module
Manages job-scoped payment state. On init, the caller becomes owner and stores recipient plus amount. verify_and_release is owner-gated and flips the verified flag before completing payout.
Attestation module
Records compliance metadata for RWA workflows. init captures issuer, data_hash, block timestamp, and initial_score. update_reputation allows score revisions after verification — the path RWA Verify uses in the dashboard.
Transaction payment
Contract package calls reserve 5_000_000_000 motes (5 CSPR) per transaction. Wallets need sufficient testnet balance for multiple actions.
Trace transactions