Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IPragmaABISafeLibraryDispatcherImpl

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl

Part of the group: dispatchers

impl IPragmaABISafeLibraryDispatcherImpl of IPragmaABISafeDispatcherTrait<
    IPragmaABISafeLibraryDispatcher,
>;

Impl functions

get_decimals

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_decimals

fn get_decimals(
    self: IPragmaABISafeLibraryDispatcher, data_type: DataType,
) -> Result<u32, Array<felt252>>

get_data_median

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_data_median

fn get_data_median(
    self: IPragmaABISafeLibraryDispatcher, data_type: DataType,
) -> Result<PragmaPricesResponse, Array<felt252>>

get_data_median_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_data_median_for_sources

fn get_data_median_for_sources(
    self: IPragmaABISafeLibraryDispatcher, data_type: DataType, sources: Span<felt252>,
) -> Result<PragmaPricesResponse, Array<felt252>>

get_data

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_data

fn get_data(
    self: IPragmaABISafeLibraryDispatcher, data_type: DataType, aggregation_mode: AggregationMode,
) -> Result<PragmaPricesResponse, Array<felt252>>

get_data_median_multi

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_data_median_multi

fn get_data_median_multi(
    self: IPragmaABISafeLibraryDispatcher, data_types: Span<DataType>, sources: Span<felt252>,
) -> Result<Span<PragmaPricesResponse>, Array<felt252>>

get_data_entry

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_data_entry

fn get_data_entry(
    self: IPragmaABISafeLibraryDispatcher, data_type: DataType, source: felt252,
) -> Result<PossibleEntries, Array<felt252>>

get_data_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_data_for_sources

fn get_data_for_sources(
    self: IPragmaABISafeLibraryDispatcher,
    data_type: DataType,
    aggregation_mode: AggregationMode,
    sources: Span<felt252>,
) -> Result<PragmaPricesResponse, Array<felt252>>

get_data_entries

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_data_entries

fn get_data_entries(
    self: IPragmaABISafeLibraryDispatcher, data_type: DataType,
) -> Result<Span<PossibleEntries>, Array<felt252>>

get_data_entries_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_data_entries_for_sources

fn get_data_entries_for_sources(
    self: IPragmaABISafeLibraryDispatcher, data_type: DataType, sources: Span<felt252>,
) -> Result<(Span<PossibleEntries>, u64), Array<felt252>>

get_last_checkpoint_before

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_last_checkpoint_before

fn get_last_checkpoint_before(
    self: IPragmaABISafeLibraryDispatcher,
    data_type: DataType,
    timestamp: u64,
    aggregation_mode: AggregationMode,
) -> Result<(Checkpoint, u64), Array<felt252>>

get_data_with_USD_hop

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_data_with_USD_hop

fn get_data_with_USD_hop(
    self: IPragmaABISafeLibraryDispatcher,
    base_currency_id: felt252,
    quote_currency_id: felt252,
    aggregation_mode: AggregationMode,
    typeof: SimpleDataType,
    expiration_timestamp: Option<u64>,
) -> Result<PragmaPricesResponse, Array<felt252>>

get_publisher_registry_address

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_publisher_registry_address

fn get_publisher_registry_address(
    self: IPragmaABISafeLibraryDispatcher,
) -> Result<ContractAddress, Array<felt252>>

get_latest_checkpoint_index

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_latest_checkpoint_index

fn get_latest_checkpoint_index(
    self: IPragmaABISafeLibraryDispatcher, data_type: DataType, aggregation_mode: AggregationMode,
) -> Result<(u64, bool), Array<felt252>>

get_latest_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_latest_checkpoint

fn get_latest_checkpoint(
    self: IPragmaABISafeLibraryDispatcher, data_type: DataType, aggregation_mode: AggregationMode,
) -> Result<Checkpoint, Array<felt252>>

get_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_checkpoint

fn get_checkpoint(
    self: IPragmaABISafeLibraryDispatcher,
    data_type: DataType,
    checkpoint_index: u64,
    aggregation_mode: AggregationMode,
) -> Result<Checkpoint, Array<felt252>>

get_sources_threshold

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_sources_threshold

fn get_sources_threshold(self: IPragmaABISafeLibraryDispatcher) -> Result<u32, Array<felt252>>

get_admin_address

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_admin_address

fn get_admin_address(
    self: IPragmaABISafeLibraryDispatcher,
) -> Result<ContractAddress, Array<felt252>>

get_implementation_hash

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::get_implementation_hash

fn get_implementation_hash(
    self: IPragmaABISafeLibraryDispatcher,
) -> Result<ClassHash, Array<felt252>>

publish_data

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::publish_data

fn publish_data(
    self: IPragmaABISafeLibraryDispatcher, new_entry: PossibleEntries,
) -> Result<(), Array<felt252>>

publish_data_entries

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::publish_data_entries

fn publish_data_entries(
    self: IPragmaABISafeLibraryDispatcher, new_entries: Span<PossibleEntries>,
) -> Result<(), Array<felt252>>

set_admin_address

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::set_admin_address

fn set_admin_address(
    self: IPragmaABISafeLibraryDispatcher, new_admin_address: ContractAddress,
) -> Result<(), Array<felt252>>

update_publisher_registry_address

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::update_publisher_registry_address

fn update_publisher_registry_address(
    self: IPragmaABISafeLibraryDispatcher, new_publisher_registry_address: ContractAddress,
) -> Result<(), Array<felt252>>

add_currency

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::add_currency

fn add_currency(
    self: IPragmaABISafeLibraryDispatcher, new_currency: Currency,
) -> Result<(), Array<felt252>>

update_currency

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::update_currency

fn update_currency(
    self: IPragmaABISafeLibraryDispatcher, currency_id: felt252, currency: Currency,
) -> Result<(), Array<felt252>>

add_pair

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::add_pair

fn add_pair(self: IPragmaABISafeLibraryDispatcher, new_pair: Pair) -> Result<(), Array<felt252>>

set_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::set_checkpoint

fn set_checkpoint(
    self: IPragmaABISafeLibraryDispatcher, data_type: DataType, aggregation_mode: AggregationMode,
) -> Result<(), Array<felt252>>

set_checkpoints

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::set_checkpoints

fn set_checkpoints(
    self: IPragmaABISafeLibraryDispatcher,
    data_types: Span<DataType>,
    aggregation_mode: AggregationMode,
) -> Result<(), Array<felt252>>

set_sources_threshold

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::set_sources_threshold

fn set_sources_threshold(
    self: IPragmaABISafeLibraryDispatcher, threshold: u32,
) -> Result<(), Array<felt252>>

upgrade

Fully qualified path: pragma_lib::abi::IPragmaABISafeLibraryDispatcherImpl::upgrade

fn upgrade(
    self: IPragmaABISafeLibraryDispatcher, impl_hash: ClassHash,
) -> Result<(), Array<felt252>>