Trait oracle::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn on_initialize(u: u32) -> Weight;
    fn feed_values(u: u32) -> Weight;
    fn insert_authorized_oracle() -> Weight;
    fn remove_authorized_oracle() -> Weight;
}
Expand description

Weight functions needed for oracle.

Required Methods§

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn on_initialize(u: u32) -> Weight

Storage: Oracle RawValuesUpdated (r:1001 w:1000) Proof Skipped: Oracle RawValuesUpdated (max_values: None, max_size: None, mode: Measured) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Oracle RawValues (r:2000 w:0) Proof Skipped: Oracle RawValues (max_values: None, max_size: None, mode: Measured) Storage: Oracle MaxDelay (r:1 w:0) Proof Skipped: Oracle MaxDelay (max_values: Some(1), max_size: None, mode: Measured) Storage: VaultRewards TotalStake (r:1000 w:0) Proof Skipped: VaultRewards TotalStake (max_values: None, max_size: None, mode: Measured) Storage: Security ParachainStatus (r:1 w:1) Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) Storage: Security Errors (r:1 w:1) Proof Skipped: Security Errors (max_values: Some(1), max_size: None, mode: Measured) Storage: Oracle Aggregate (r:0 w:1000) Proof Skipped: Oracle Aggregate (max_values: None, max_size: None, mode: Measured) Storage: Oracle ValidUntil (r:0 w:1000) Proof Skipped: Oracle ValidUntil (max_values: None, max_size: None, mode: Measured) The range of component u is [1, 1000].

source§

fn feed_values(u: u32) -> Weight

Storage: Oracle AuthorizedOracles (r:1 w:0) Proof Skipped: Oracle AuthorizedOracles (max_values: None, max_size: None, mode: Measured) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Oracle RawValuesUpdated (r:0 w:1000) Proof Skipped: Oracle RawValuesUpdated (max_values: None, max_size: None, mode: Measured) Storage: Oracle RawValues (r:0 w:1000) Proof Skipped: Oracle RawValues (max_values: None, max_size: None, mode: Measured) The range of component u is [1, 1000].

source§

fn insert_authorized_oracle() -> Weight

Storage: Oracle AuthorizedOracles (r:0 w:1) Proof Skipped: Oracle AuthorizedOracles (max_values: None, max_size: None, mode: Measured)

source§

fn remove_authorized_oracle() -> Weight

Storage: Oracle AuthorizedOracles (r:0 w:1) Proof Skipped: Oracle AuthorizedOracles (max_values: None, max_size: None, mode: Measured)

Implementors§