Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IPragmaABISafeDispatcherImpl

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl

Part of the group: dispatchers

impl IPragmaABISafeDispatcherImpl of IPragmaABISafeDispatcherTrait<IPragmaABISafeDispatcher>;

Impl functions

get_decimals

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_decimals

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

get_data_median

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_data_median

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

get_data_median_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_data_median_for_sources

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

get_data

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_data

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

get_data_median_multi

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_data_median_multi

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

get_data_entry

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_data_entry

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

get_data_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_data_for_sources

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

get_data_entries

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_data_entries

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

get_data_entries_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_data_entries_for_sources

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

get_last_checkpoint_before

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_last_checkpoint_before

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

get_data_with_USD_hop

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_data_with_USD_hop

fn get_data_with_USD_hop(
    self: IPragmaABISafeDispatcher,
    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::IPragmaABISafeDispatcherImpl::get_publisher_registry_address

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

get_latest_checkpoint_index

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_latest_checkpoint_index

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

get_latest_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_latest_checkpoint

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

get_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_checkpoint

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

get_sources_threshold

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_sources_threshold

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

get_admin_address

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_admin_address

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

get_implementation_hash

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::get_implementation_hash

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

publish_data

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::publish_data

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

publish_data_entries

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::publish_data_entries

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

set_admin_address

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::set_admin_address

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

update_publisher_registry_address

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::update_publisher_registry_address

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

add_currency

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::add_currency

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

update_currency

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::update_currency

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

add_pair

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::add_pair

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

set_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::set_checkpoint

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

set_checkpoints

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::set_checkpoints

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

set_sources_threshold

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::set_sources_threshold

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

upgrade

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherImpl::upgrade

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