Contract 024551eb8f3eacdd07ed1948b433d9001327732d6f445fd139a115bb0a1695e3

← Back to Index 📥 Download WASM

Meta

cliver 25.1.0#a048a57a75762458b487052e0021ea704a926bee
rssdkver 23.5.2#347f71141ddf69ef1873527c94ac98e79215f125
rsver 1.94.0
source_repo https://github.com/copter-exchange/stellar_stablecoin

Instances

  • CDJZVQS23A5QJI74PAVEMRLLOMA4WIIXZY7VAQW7DXRMIEM3OEAKOW77

Interface

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

Imports

WebAssembly Text (WAT) ▶