Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IPragmaABIDispatcherImpl

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl

Part of the group: dispatchers

impl IPragmaABIDispatcherImpl of IPragmaABIDispatcherTrait<IPragmaABIDispatcher>;

Impl functions

get_decimals

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_decimals

fn get_decimals(self: IPragmaABIDispatcher, data_type: DataType) -> u32

get_data_median

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_data_median

fn get_data_median(self: IPragmaABIDispatcher, data_type: DataType) -> PragmaPricesResponse

get_data_median_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_data_median_for_sources

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

get_data

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_data

fn get_data(
    self: IPragmaABIDispatcher, data_type: DataType, aggregation_mode: AggregationMode,
) -> PragmaPricesResponse

get_data_median_multi

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_data_median_multi

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

get_data_entry

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_data_entry

fn get_data_entry(
    self: IPragmaABIDispatcher, data_type: DataType, source: felt252,
) -> PossibleEntries

get_data_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_data_for_sources

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

get_data_entries

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_data_entries

fn get_data_entries(self: IPragmaABIDispatcher, data_type: DataType) -> Span<PossibleEntries>

get_data_entries_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_data_entries_for_sources

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

get_last_checkpoint_before

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_last_checkpoint_before

fn get_last_checkpoint_before(
    self: IPragmaABIDispatcher,
    data_type: DataType,
    timestamp: u64,
    aggregation_mode: AggregationMode,
) -> (Checkpoint, u64)

get_data_with_USD_hop

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_data_with_USD_hop

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

get_publisher_registry_address

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_publisher_registry_address

fn get_publisher_registry_address(self: IPragmaABIDispatcher) -> ContractAddress

get_latest_checkpoint_index

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_latest_checkpoint_index

fn get_latest_checkpoint_index(
    self: IPragmaABIDispatcher, data_type: DataType, aggregation_mode: AggregationMode,
) -> (u64, bool)

get_latest_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_latest_checkpoint

fn get_latest_checkpoint(
    self: IPragmaABIDispatcher, data_type: DataType, aggregation_mode: AggregationMode,
) -> Checkpoint

get_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_checkpoint

fn get_checkpoint(
    self: IPragmaABIDispatcher,
    data_type: DataType,
    checkpoint_index: u64,
    aggregation_mode: AggregationMode,
) -> Checkpoint

get_sources_threshold

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_sources_threshold

fn get_sources_threshold(self: IPragmaABIDispatcher) -> u32

get_admin_address

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_admin_address

fn get_admin_address(self: IPragmaABIDispatcher) -> ContractAddress

get_implementation_hash

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::get_implementation_hash

fn get_implementation_hash(self: IPragmaABIDispatcher) -> ClassHash

publish_data

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::publish_data

fn publish_data(self: IPragmaABIDispatcher, new_entry: PossibleEntries)

publish_data_entries

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::publish_data_entries

fn publish_data_entries(self: IPragmaABIDispatcher, new_entries: Span<PossibleEntries>)

set_admin_address

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::set_admin_address

fn set_admin_address(self: IPragmaABIDispatcher, new_admin_address: ContractAddress)

update_publisher_registry_address

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::update_publisher_registry_address

fn update_publisher_registry_address(
    self: IPragmaABIDispatcher, new_publisher_registry_address: ContractAddress,
)

add_currency

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::add_currency

fn add_currency(self: IPragmaABIDispatcher, new_currency: Currency)

update_currency

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::update_currency

fn update_currency(self: IPragmaABIDispatcher, currency_id: felt252, currency: Currency)

add_pair

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::add_pair

fn add_pair(self: IPragmaABIDispatcher, new_pair: Pair)

set_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::set_checkpoint

fn set_checkpoint(
    self: IPragmaABIDispatcher, data_type: DataType, aggregation_mode: AggregationMode,
)

set_checkpoints

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::set_checkpoints

fn set_checkpoints(
    self: IPragmaABIDispatcher, data_types: Span<DataType>, aggregation_mode: AggregationMode,
)

set_sources_threshold

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::set_sources_threshold

fn set_sources_threshold(self: IPragmaABIDispatcher, threshold: u32)

upgrade

Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherImpl::upgrade

fn upgrade(self: IPragmaABIDispatcher, impl_hash: ClassHash)