IPragmaABIDispatcherTrait
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait
Part of the group: dispatchers
trait IPragmaABIDispatcherTrait<T>
Trait functions
get_decimals
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_decimals
fn get_decimals(self: T, data_type: DataType) -> u32
get_data_median
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_data_median
fn get_data_median(self: T, data_type: DataType) -> PragmaPricesResponse
get_data_median_for_sources
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_data_median_for_sources
fn get_data_median_for_sources(
self: T, data_type: DataType, sources: Span<felt252>,
) -> PragmaPricesResponse
get_data
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_data
fn get_data(self: T, data_type: DataType, aggregation_mode: AggregationMode) -> PragmaPricesResponse
get_data_median_multi
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_data_median_multi
fn get_data_median_multi(
self: T, data_types: Span<DataType>, sources: Span<felt252>,
) -> Span<PragmaPricesResponse>
get_data_entry
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_data_entry
fn get_data_entry(self: T, data_type: DataType, source: felt252) -> PossibleEntries
get_data_for_sources
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_data_for_sources
fn get_data_for_sources(
self: T, data_type: DataType, aggregation_mode: AggregationMode, sources: Span<felt252>,
) -> PragmaPricesResponse
get_data_entries
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_data_entries
fn get_data_entries(self: T, data_type: DataType) -> Span<PossibleEntries>
get_data_entries_for_sources
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_data_entries_for_sources
fn get_data_entries_for_sources(
self: T, data_type: DataType, sources: Span<felt252>,
) -> (Span<PossibleEntries>, u64)
get_last_checkpoint_before
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_last_checkpoint_before
fn get_last_checkpoint_before(
self: T, data_type: DataType, timestamp: u64, aggregation_mode: AggregationMode,
) -> (Checkpoint, u64)
get_data_with_USD_hop
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::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>,
) -> PragmaPricesResponse
get_publisher_registry_address
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_publisher_registry_address
fn get_publisher_registry_address(self: T) -> ContractAddress
get_latest_checkpoint_index
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_latest_checkpoint_index
fn get_latest_checkpoint_index(
self: T, data_type: DataType, aggregation_mode: AggregationMode,
) -> (u64, bool)
get_latest_checkpoint
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_latest_checkpoint
fn get_latest_checkpoint(
self: T, data_type: DataType, aggregation_mode: AggregationMode,
) -> Checkpoint
get_checkpoint
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_checkpoint
fn get_checkpoint(
self: T, data_type: DataType, checkpoint_index: u64, aggregation_mode: AggregationMode,
) -> Checkpoint
get_sources_threshold
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_sources_threshold
fn get_sources_threshold(self: T) -> u32
get_admin_address
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_admin_address
fn get_admin_address(self: T) -> ContractAddress
get_implementation_hash
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::get_implementation_hash
fn get_implementation_hash(self: T) -> ClassHash
publish_data
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::publish_data
fn publish_data(self: T, new_entry: PossibleEntries)
publish_data_entries
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::publish_data_entries
fn publish_data_entries(self: T, new_entries: Span<PossibleEntries>)
set_admin_address
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::set_admin_address
fn set_admin_address(self: T, new_admin_address: ContractAddress)
update_publisher_registry_address
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::update_publisher_registry_address
fn update_publisher_registry_address(self: T, new_publisher_registry_address: ContractAddress)
add_currency
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::add_currency
fn add_currency(self: T, new_currency: Currency)
update_currency
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::update_currency
fn update_currency(self: T, currency_id: felt252, currency: Currency)
add_pair
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::add_pair
fn add_pair(self: T, new_pair: Pair)
set_checkpoint
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::set_checkpoint
fn set_checkpoint(self: T, data_type: DataType, aggregation_mode: AggregationMode)
set_checkpoints
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::set_checkpoints
fn set_checkpoints(self: T, data_types: Span<DataType>, aggregation_mode: AggregationMode)
set_sources_threshold
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::set_sources_threshold
fn set_sources_threshold(self: T, threshold: u32)
upgrade
Fully qualified path: pragma_lib::abi::IPragmaABIDispatcherTrait::upgrade
fn upgrade(self: T, impl_hash: ClassHash)