fn __constructor(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
parent_oracle: soroban_sdk::Address,
asset: Asset,
decimals: u32,
resolution: u32,
base: Asset,
) -> Result<(), ContractError>
fn set_decimals(env: soroban_sdk::Env, decimals: u32) -> Result<(), ContractError>
Signature matches the OpenZeppelin Upgradeable trait shape
(upgrade(env, new_wasm_hash, operator)) so this adapter is
forward-compatible with stellar-contract-utils adoption later.
fn upgrade(
env: soroban_sdk::Env,
new_wasm_hash: soroban_sdk::BytesN<32>,
operator: soroban_sdk::Address,
) -> Result<(), ContractError>
fn extend_ttl(env: soroban_sdk::Env)
fn decommission(env: soroban_sdk::Env)
fn config(env: soroban_sdk::Env) -> Option
fn renounce_ownership(env: soroban_sdk::Env)
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)
fn base(env: soroban_sdk::Env) -> Asset
fn assets(env: soroban_sdk::Env) -> soroban_sdk::Vec
fn decimals(env: soroban_sdk::Env) -> u32
fn resolution(env: soroban_sdk::Env) -> u32
fn price(env: soroban_sdk::Env, asset: Asset, timestamp: u64) -> Option
fn prices(
env: soroban_sdk::Env,
asset: Asset,
records: u32,
) -> Option>
fn lastprice(env: soroban_sdk::Env, asset: Asset) -> Option