Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ISummaryStatsABISafeDispatcherTrait

Fully qualified path: pragma_lib::abi::ISummaryStatsABISafeDispatcherTrait

Part of the group: dispatchers

trait ISummaryStatsABISafeDispatcherTrait<T>

Trait functions

calculate_mean

Fully qualified path: pragma_lib::abi::ISummaryStatsABISafeDispatcherTrait::calculate_mean

fn calculate_mean(
    self: T, data_type: DataType, start: u64, stop: u64, aggregation_mode: AggregationMode,
) -> Result<(u128, u32), Array<felt252>>

calculate_volatility

Fully qualified path: pragma_lib::abi::ISummaryStatsABISafeDispatcherTrait::calculate_volatility

fn calculate_volatility(
    self: T,
    data_type: DataType,
    start_tick: u64,
    end_tick: u64,
    num_samples: u64,
    aggregation_mode: AggregationMode,
) -> Result<(u128, u32), Array<felt252>>

calculate_twap

Fully qualified path: pragma_lib::abi::ISummaryStatsABISafeDispatcherTrait::calculate_twap

fn calculate_twap(
    self: T, data_type: DataType, aggregation_mode: AggregationMode, time: u64, start_time: u64,
) -> Result<(u128, u32), Array<felt252>>

get_oracle_address

Fully qualified path: pragma_lib::abi::ISummaryStatsABISafeDispatcherTrait::get_oracle_address

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

get_options_data

Fully qualified path: pragma_lib::abi::ISummaryStatsABISafeDispatcherTrait::get_options_data

fn get_options_data(self: T, instrument_name: felt252) -> Result<OptionsFeedData, Array<felt252>>

get_options_data_hash

Fully qualified path: pragma_lib::abi::ISummaryStatsABISafeDispatcherTrait::get_options_data_hash

fn get_options_data_hash(self: T, update_data: OptionsFeedData) -> Result<felt252, Array<felt252>>