fn __constructor(env: soroban_sdk::Env, governance: soroban_sdk::Address, base: Asset)
Owner-only runtime upgrade. Signature matches the OpenZeppelin
stellar-contract-utils::upgradeable::Upgradeable trait's
fn upgrade(env, new_wasm_hash, operator). The contract isn't
pulled in directly (see "Known Limits" in the soroban README for
the toolchain × sdk version blocker), but matching the shape now
means migrating to the trait later is a no-op at the ABI level.
Does not accept a migrate payload — avoids widening the owner's
authority surface beyond a typed code swap.
fn upgrade(
env: soroban_sdk::Env,
new_wasm_hash: soroban_sdk::BytesN<32>,
operator: soroban_sdk::Address,
) -> Result<(), ContractError>
fn set_proxy(
env: soroban_sdk::Env,
asset: Asset,
config: ProxyConfig,
) -> Result<(), ContractError>
fn remove_proxy(env: soroban_sdk::Env, asset: Asset) -> Result<(), ContractError>
fn configure_breakers(
env: soroban_sdk::Env,
asset: Asset,
sample_interval_secs: u64,
history_len: u32,
) -> Result<(), ContractError>
fn add_breaker(
env: soroban_sdk::Env,
asset: Asset,
breaker: CircuitBreakerConfig,
) -> Result
fn remove_breaker(
env: soroban_sdk::Env,
asset: Asset,
breaker_id: u32,
) -> Result<(), ContractError>
fn rearm(
env: soroban_sdk::Env,
asset: Asset,
breaker_id: u32,
config: RearmConfig,
) -> Result<(), ContractError>
fn set_enforced(
env: soroban_sdk::Env,
asset: Asset,
breaker_id: u32,
config: SetEnforcedConfig,
) -> Result<(), ContractError>
fn set_manual_trip(
env: soroban_sdk::Env,
asset: Asset,
is_manually_tripped: bool,
metadata: Option,
) -> Result<(), ContractError>
fn get_proxy(env: soroban_sdk::Env, asset: Asset) -> Option
fn get_cached(env: soroban_sdk::Env, asset: Asset) -> Option
fn get_breaker_set_view(
env: soroban_sdk::Env,
asset: Asset,
) -> Option
fn refresh(env: soroban_sdk::Env, asset: Asset) -> RefreshStatus
fn extend_ttl(env: soroban_sdk::Env, asset: Asset) -> Result<(), ContractError>
Returns Some(Address) if ownership is set, or None if ownership has
been renounced.
e - Access to the Soroban environment.fn get_owner(env: soroban_sdk::Env) -> Option
Initiates a 2-step ownership transfer to a new address.
Requires authorization from the current owner. The new owner must later
call accept_ownership() to complete the transfer.
e - Access to the Soroban environment.new_owner - The proposed new owner.live_until_ledger - Ledger number until which the new owner can
accept. A value of 0 cancels any pending transfer.OwnableError::OwnerNotSet] - If the owner is not set.crate::role_transfer::RoleTransferError::NoPendingTransfer] - If
trying to cancel a transfer that doesn't exist.crate::role_transfer::RoleTransferError::InvalidLiveUntilLedger] -
If the specified ledger is in the past.crate::role_transfer::RoleTransferError::InvalidPendingAccount] -
If the specified pending account is not the same as the provided new
address.fn transfer_ownership(
env: soroban_sdk::Env,
new_owner: soroban_sdk::Address,
live_until_ledger: u32,
)
Accepts a pending ownership transfer.
e - Access to the Soroban environment.crate::role_transfer::RoleTransferError::NoPendingTransfer] - If
there is no pending transfer to accept.["ownership_transfer_completed"][new_owner: Address]fn accept_ownership(env: soroban_sdk::Env)
Renounces ownership of the contract.
Permanently removes the owner, disabling all functions gated by
#[only_owner].
e - Access to the Soroban environment.OwnableError::TransferInProgress] - If there is a pending ownership
transfer.OwnableError::OwnerNotSet] - If the owner is not set.fn renounce_ownership(env: soroban_sdk::Env)
fn aggregated_latest(env: soroban_sdk::Env, asset: Asset) -> Option
fn aggregated_history(
env: soroban_sdk::Env,
asset: Asset,
records: u32,
) -> Option>
fn source_base(env: soroban_sdk::Env) -> Option
Assets with a registered proxy config. Used by off-chain indexers and adapter deployer tooling.
fn registered_assets(
env: soroban_sdk::Env,
) -> Result, ContractError>