Expand description
Chio settlement runtime over the official web3 contract family.
chio-settle turns approved Chio capital instructions into real contract
calls, projects on-chain state back into the frozen web3 receipt family, and
exposes the bounded Solana-native settlement model used for Ed25519-first
parity checks.
Modules§
Structs§
- Approval
Binding - Approval-bound settlement parameters the caller MUST supply.
- Bond
Lifecycle Observation - Bond
Lock Request - Ccip
Delivery Observation - Ccip
Lane Config - Ccip
Reconciliation Outcome - Ccip
Settlement Message - Ccip
Settlement Payload - Circle
Nanopayment Policy - Commitment
Consistency Report - Dead
Letter Record - Permanent record persisted in the
settle_dead_letterstable. - Devnet
Contracts - Devnet
Mocks - Dual
Sign Release Input - Eip3009
Domain - Erc4337
Paymaster Policy - Escrow
Dispatch Request - Escrow
Execution Projection - Escrow
Snapshot - EvmBond
Snapshot - EvmLog
Entry - EvmSignature
- EvmTransaction
Receipt - Execution
Projection Input - InMemory
Eip3009 Nonce Store - Process-local single-use EIP-3009 nonce store.
- Local
Devnet Deployment - Offchain
Settlement Receipt Artifact - Prepare-only off-chain settlement receipt binding the EIP-3009 authorization digest to a governed receipt.
- Prepared
Authorized Channel Merkle Release V1 - Prepared
Bond Expiry - Prepared
Bond Impair - Prepared
Bond Lock - Prepared
Bond Release - Prepared
Circle Nanopayment - Prepared
Dual Sign Release - Prepared
Erc20 Approval - Prepared
Escrow Create - Prepared
Escrow Refund - Prepared
EvmCall - Prepared
Merkle Release - Prepared
Paymaster Compatibility - Prepared
Root Publication - Prepared
Solana Settlement - Prepared
Transfer With Authorization - Rail
Binding - Resolved EVM rail parameters sourced from operator config.
- Retry
Policy - Bounded retry envelope for settlement routing.
- Settlement
Amount Tier - Settlement
Anchor Content Binding - Settlement
Attempt Claim - Persisted row and lease state required to commit a settlement transition.
- Settlement
Automation Execution - Settlement
Chain Config - Settlement
Commitment - Settlement
Control Change Record - Settlement
Control State - Settlement
Emergency Controls - Settlement
Evidence Config - Settlement
Failure Code Parse Error - Unknown durable settlement failure code.
- Settlement
Failure Reason - Bounded failure reason safe for durable storage and telemetry labels.
- Settlement
Finality Assessment - Settlement
Idempotency Key - Durable identity and claim fence for one at-least-once hook invocation.
- Settlement
Incident Alert - Settlement
Indexer Cursor - Settlement
Indexer Cursor Input - Settlement
Lane Runtime Status - Settlement
Lane Runtime Status Input - Settlement
Observation - Observation handed to a
SettlementHookby the kernel observer slot once a receipt has been signed and persisted. The structure is deliberately storage-agnostic: it carries the finalized-receipt identity plus the financial coordinates required to route the settlement throughchio-settle/ops.rs. - Settlement
Oracle Config - Settlement
Policy Config - Settlement
Recovery Record - Settlement
Runtime Report - Settlement
Store Binding - Opaque identity shared by receipt and outcome views of one durable writer.
- Settlement
Watchdog Job - Solana
Settlement Config - Solana
Settlement Request - Transfer
With Authorization Input - X402
Payment Requirements
Enums§
- Bond
Lifecycle Status - Ccip
Message Status - Escrow
Execution Amount - Escrow
Lifecycle Status - Evidence
Substrate Mode - Nonce
Outcome - Outcome of a
Eip3009NonceStore::record_if_freshcall. - Prepared
Bond Proof Root - Retry
Decision - Decision returned by
classify_attempt. - Retry
Policy Error - Invalid bounded retry policy.
- Settlement
Alert Severity - Settlement
Automation Outcome - Settlement
Automation Trigger Kind - Settlement
Claim Validation Error - Invalid settlement claim parameters.
- Settlement
Emergency Mode - Settlement
Error - Settlement
Failure Class - Retry disposition for a settlement failure.
- Settlement
Failure Code - Closed settlement failure taxonomy.
- Settlement
Finality Status - Settlement
Hook Error - Errors that may surface from a
SettlementHook. All variants are fail-closed: the paired observer runtime preserves their typed disposition for durable routing, while the dispatch path is never rolled back. - Settlement
Indexer Status - Settlement
Operation Kind - Settlement
Oracle Authority - Settlement
Outcome - Outcome returned by a settlement hook.
- Settlement
Recovery Action - Settlement
Route - Result of atomically recording a claimed settlement outcome.
- Settlement
Route Error - Failure returned by the durable settlement router.
- Settlement
Route Error Class - Bounded class for settlement routing failures.
- Settlement
Routing Input - Normalized outcome accepted by durable settlement routing.
- Settlement
Runtime Status - Settlement
Skip Reason - Closed reason for an observation that requires no settlement work.
- Settlement
Watchdog Kind - X402
Settlement Mode
Constants§
- CHIO_
CCIP_ SETTLEMENT_ MESSAGE_ SCHEMA - CHIO_
OFFCHAIN_ SETTLEMENT_ RECEIPT_ SCHEMA - Versioned schema identifier for off-chain settlement receipts.
- CHIO_
SETTLEMENT_ AUTOMATION_ JOB_ SCHEMA - CHIO_
SETTLE_ RUNTIME_ REPORT_ SCHEMA - DEFAULT_
BACKOFF_ CAP_ MS - Hard cap on a single backoff interval (avoids unbounded growth).
- DEFAULT_
BACKOFF_ MULTIPLIER - Multiplier applied to the previous backoff to produce the next.
- DEFAULT_
INITIAL_ BACKOFF_ MS - Initial backoff for the first retry attempt.
- DEFAULT_
MAX_ EIP3009_ NONCE_ ENTRIES - Default hard capacity for retained EIP-3009 authorization nonces.
- DEFAULT_
MAX_ RETRIES - Bound on the number of retries before a transient failure is
downgraded to a permanent dead-letter row. The total attempt count
is
max_retries + 1(the original call plus the retries). - MAX_
SETTLEMENT_ CLAIM_ BATCH - Maximum number of rows returned by one settlement claim.
- MAX_
SETTLEMENT_ LEASE_ MS - Maximum settlement claim lease duration in milliseconds.
- MAX_
SETTLEMENT_ WORKER_ ID_ BYTES - Maximum UTF-8 byte length of a settlement worker identifier.
- SETTLEMENT_
COMPLETION_ FLOW_ ROW_ ID_ PREFIX - SETTLEMENT_
OBSERVATION_ SCHEMA - Schema string emitted on the wire for
SettlementObservationframes. - SETTLEMENT_
OUTCOME_ SCHEMA - Schema string emitted on the wire for
SettlementOutcomeframes. - SETTLE_
DEAD_ LETTER_ SCHEMA - Schema string emitted on the wire for
DeadLetterRecordframes. - SOLANA_
ED25519_ PROGRAM_ ID
Traits§
- Eip3009
Nonce Store - Single-use nonce store for EIP-3009 authorization replay resistance.
- Prepared
EvmSubmission - Settlement
Hook - Hook routing finalized receipts through
chio-settle/ops.rs. - Settlement
Outcome Store - Atomic leased store for settlement outcomes.
Functions§
- approval_
binding_ from_ governed - Bridge a verified
GovernedApprovalTokenand a resolvedRailBindinginto anApprovalBindingsuitable forprepare_transfer_with_authorization. - assess_
watchdog_ execution - build_
bond_ watchdog_ job - build_
failure_ receipt - build_
reversal_ receipt - build_
settlement_ watchdog_ job - build_
x402_ payment_ requirements - classify_
attempt - Classify one attempt’s outcome under the supplied policy.
- classify_
settlement_ lane - compare_
commitments - confirm_
transaction - ensure_
settlement_ operation_ allowed - estimate_
call_ gas - evaluate_
circle_ nanopayment - finalize_
bond_ lock - finalize_
escrow_ dispatch - inspect_
finality - inspect_
finality_ for_ receipt - observe_
bond - prepare_
authorized_ channel_ merkle_ release - prepare_
bond_ expiry - prepare_
bond_ impair - prepare_
bond_ lock - prepare_
bond_ proof_ root_ publication - prepare_
bond_ release - prepare_
ccip_ settlement_ message - prepare_
dual_ sign_ release - prepare_
erc20_ approval - prepare_
escrow_ refund - prepare_
merkle_ release - prepare_
merkle_ release_ root_ publication - prepare_
paymaster_ compatibility - prepare_
solana_ settlement - prepare_
transfer_ with_ authorization - Prepare an EIP-3009
transferWithAuthorizationdigest, enforcing the money-safety invariants before any signature is broadcast: - prepare_
web3_ escrow_ dispatch - project_
escrow_ execution_ receipt - read_
bond_ snapshot - read_
escrow_ snapshot - reconcile_
ccip_ delivery - scale_
chio_ amount_ to_ token_ minor_ units - scale_
token_ minor_ units_ to_ chio_ amount - settlement_
completion_ flow_ receipt_ id - settlement_
completion_ flow_ row_ id - settlement_
devnet_ rpc_ egress_ contract - static_
validate_ call - submit_
call - validate_
offchain_ settlement_ receipt - Validate an
OffchainSettlementReceiptArtifactfor structural integrity. - validate_
settlement_ claim - Validate parameters shared by settlement claim operations.
- verify_
solana_ binding_ and_ receipt