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 base(env: soroban_sdk::Env) -> Asset
fn decimals(env: soroban_sdk::Env) -> u32
fn assets(env: soroban_sdk::Env) -> soroban_sdk::Vec
fn lastprice(env: soroban_sdk::Env, asset: Asset) -> Option
Initialize the contract with the admin and the oracle configurations
admin - The address of the adminbase - The base assetassets - The list of supported assetsasset_configs - The list of oracle configurations for each assetAlreadyInitialized - The contract has already been initializedInvalidAssets - The asset array is invalidInvalidOracleConfig - The oracle config array is invalidfn initialize(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
base: Asset,
assets: soroban_sdk::Vec,
asset_configs: soroban_sdk::Vec,
decimals: u32,
)
Fetch the confugration of an asset
fn config(env: soroban_sdk::Env, asset: Asset) -> OracleConfig
(Admin only) Block an asset
asset - The asset to blockAssetNotFound - The asset is not foundfn block(env: soroban_sdk::Env, asset: Asset)
(Admin only) Unblock an asset
asset - The asset to unblockAssetNotFound - The asset is not foundfn unblock(env: soroban_sdk::Env, asset: Asset)