Constructs the adapter contract.
Assets are fixed at construction — no post-deploy mutations. To change the set of supported assets, deploy a new contract instance.
admin - contract's administratorbase_asset - asset that will be the result of the base() endpoint calldecimals - number of decimals in the output pricefeeds - token address → RedStone price feed contract address mappingfn __constructor(
env: soroban_sdk::Env,
base_asset: Asset,
decimals: u32,
feeds: soroban_sdk::Map,
)
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