Modules§
- circuit_
breaker - Circuit breaker state machine for
safe_oracle(Phase 5.1).
Structs§
- Liquidity
Registry Client - LiquidityRegistryClient is a client for calling the contract defined in “LiquidityRegistry”.
- Liquidity
Snapshot - Mirror of
liquidity-registry::LiquiditySnapshot. - Price
Data - Reflector
Client - ReflectorClient is a client for calling the contract defined in “Reflector”.
- Safe
Oracle Config - Configuration for the safe_oracle library — the per-pool tuning surface.
Enums§
- Asset
- Config
Error - Errors returned by
SafeOracleConfig::validatewhen a config field has an out-of-range value that would silently disable a guardrail or produce nonsensical behavior at runtime. - Oracle
Safety Violation - Reasons a guardrail has rejected a price; the
Errpayload of every safe_oracle public API. - Price
Result - Result type for
lastprice()that allows auto-halt to commit even on guardrail violations.
Constants§
- MAX_
CIRCUIT_ BREAKER_ HALT_ LEDGERS - Maximum allowed circuit breaker halt duration in ledgers.
- REFLECTOR_
DECIMALS_ EXPECTED - Expected
decimals()value for the primary Reflector oracle contract.
Statics§
- __
SPEC_ XDR_ TYPE_ ASSET - __
SPEC_ XDR_ TYPE_ CONFIGERROR - __
SPEC_ XDR_ TYPE_ ORACLESAFETYVIOLATION - __
SPEC_ XDR_ TYPE_ PRICEDATA - __
SPEC_ XDR_ TYPE_ PRICERESULT - __
SPEC_ XDR_ TYPE_ SAFEORACLECONFIG
Functions§
- lastprice
- Validates oracle output against five layered guardrails before returning a price, wrapped by the circuit breaker (Phase 5.2 v2).