Returns the current owner.
fn owner(env: soroban_sdk::Env) -> soroban_sdk::Address
Returns the number of decimals for the answer.
fn decimals(env: soroban_sdk::Env) -> u32
Returns the current operator.
fn operator(env: soroban_sdk::Env) -> soroban_sdk::Address
Returns the aggregator description.
fn description(env: soroban_sdk::Env) -> soroban_sdk::String
Accepts ownership transfer. Only callable by the pending owner.
fn accept_owner(env: soroban_sdk::Env)
Returns the latest round number.
fn latest_round(env: soroban_sdk::Env) -> u64
Sets a new operator. Only callable by the owner.
fn set_operator(env: soroban_sdk::Env, new_operator: soroban_sdk::Address)
Initializes the aggregator with owner, operator, description, and decimals.
fn __constructor(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
operator: soroban_sdk::Address,
description: soroban_sdk::String,
decimals: u32,
)
Returns the latest answer value.
fn latest_answer(env: soroban_sdk::Env) -> i128
Returns the pending owner, if any.
fn pending_owner(env: soroban_sdk::Env) -> Option
Updates the answer, creating a new round. Only callable by the operator.
fn update_answer(env: soroban_sdk::Env, new_answer: i128)
Returns the data for a specific round.
fn get_round_data(env: soroban_sdk::Env, round_id: u64) -> RoundData
Proposes a new owner. Only callable by the current owner.
The new owner must call accept_owner to complete the transfer.
fn transfer_owner(env: soroban_sdk::Env, new_owner: soroban_sdk::Address)
Returns the latest update timestamp.
fn latest_timestamp(env: soroban_sdk::Env) -> u64
Returns the latest round data.
fn latest_round_data(env: soroban_sdk::Env) -> RoundData