Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IPragmaABISafeDispatcherTrait

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait

Part of the group: dispatchers

trait IPragmaABISafeDispatcherTrait<T>

Trait functions

get_decimals

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_decimals

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

get_data_median

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_data_median

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

get_data_median_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_data_median_for_sources

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

get_data

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_data

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

get_data_median_multi

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_data_median_multi

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

get_data_entry

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_data_entry

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

get_data_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_data_for_sources

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

get_data_entries

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_data_entries

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

get_data_entries_for_sources

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_data_entries_for_sources

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

get_last_checkpoint_before

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_last_checkpoint_before

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

get_data_with_USD_hop

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_data_with_USD_hop

fn get_data_with_USD_hop(
    self: T,
    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::IPragmaABISafeDispatcherTrait::get_publisher_registry_address

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

get_latest_checkpoint_index

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_latest_checkpoint_index

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

get_latest_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_latest_checkpoint

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

get_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_checkpoint

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

get_sources_threshold

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_sources_threshold

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

get_admin_address

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_admin_address

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

get_implementation_hash

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::get_implementation_hash

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

publish_data

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::publish_data

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

publish_data_entries

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::publish_data_entries

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

set_admin_address

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::set_admin_address

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

update_publisher_registry_address

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::update_publisher_registry_address

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

add_currency

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::add_currency

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

update_currency

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::update_currency

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

add_pair

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::add_pair

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

set_checkpoint

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::set_checkpoint

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

set_checkpoints

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::set_checkpoints

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

set_sources_threshold

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::set_sources_threshold

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

upgrade

Fully qualified path: pragma_lib::abi::IPragmaABISafeDispatcherTrait::upgrade

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