referrerpolicy=no-referrer-when-downgrade

Trait pallet_broker::weights::WeightInfo

source ·
pub trait WeightInfo {
Show 32 methods // Required methods fn configure() -> Weight; fn reserve() -> Weight; fn unreserve() -> Weight; fn set_lease() -> Weight; fn start_sales(n: u32) -> Weight; fn purchase() -> Weight; fn renew() -> Weight; fn transfer() -> Weight; fn partition() -> Weight; fn interlace() -> Weight; fn assign() -> Weight; fn pool() -> Weight; fn claim_revenue(m: u32) -> Weight; fn purchase_credit() -> Weight; fn drop_region() -> Weight; fn drop_contribution() -> Weight; fn drop_history() -> Weight; fn drop_renewal() -> Weight; fn request_core_count(n: u32) -> Weight; fn process_core_count(n: u32) -> Weight; fn process_revenue() -> Weight; fn rotate_sale(n: u32) -> Weight; fn process_pool() -> Weight; fn process_core_schedule() -> Weight; fn request_revenue_info_at() -> Weight; fn notify_core_count() -> Weight; fn notify_revenue() -> Weight; fn do_tick_base() -> Weight; fn swap_leases() -> Weight; fn on_new_timeslice() -> Weight; fn enable_auto_renew() -> Weight; fn disable_auto_renew() -> Weight;
}
Expand description

Weight functions needed for pallet_broker.

Required Methods§

source

fn configure() -> Weight

source

fn reserve() -> Weight

source

fn unreserve() -> Weight

source

fn set_lease() -> Weight

source

fn start_sales(n: u32) -> Weight

source

fn purchase() -> Weight

source

fn renew() -> Weight

source

fn transfer() -> Weight

source

fn partition() -> Weight

source

fn interlace() -> Weight

source

fn assign() -> Weight

source

fn pool() -> Weight

source

fn claim_revenue(m: u32) -> Weight

source

fn purchase_credit() -> Weight

source

fn drop_region() -> Weight

source

fn drop_contribution() -> Weight

source

fn drop_history() -> Weight

source

fn drop_renewal() -> Weight

source

fn request_core_count(n: u32) -> Weight

source

fn process_core_count(n: u32) -> Weight

source

fn process_revenue() -> Weight

source

fn rotate_sale(n: u32) -> Weight

source

fn process_pool() -> Weight

source

fn process_core_schedule() -> Weight

source

fn request_revenue_info_at() -> Weight

source

fn notify_core_count() -> Weight

source

fn notify_revenue() -> Weight

source

fn do_tick_base() -> Weight

source

fn swap_leases() -> Weight

source

fn on_new_timeslice() -> Weight

source

fn enable_auto_renew() -> Weight

source

fn disable_auto_renew() -> Weight

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn configure() -> Weight

Storage: Broker::Configuration (r:0 w:1) Proof: Broker::Configuration (max_values: Some(1), max_size: Some(31), added: 526, mode: MaxEncodedLen)

source§

fn reserve() -> Weight

Storage: Broker::Reservations (r:1 w:1) Proof: Broker::Reservations (max_values: Some(1), max_size: Some(6011), added: 6506, mode: MaxEncodedLen)

source§

fn unreserve() -> Weight

Storage: Broker::Reservations (r:1 w:1) Proof: Broker::Reservations (max_values: Some(1), max_size: Some(6011), added: 6506, mode: MaxEncodedLen)

source§

fn set_lease() -> Weight

Storage: Broker::Leases (r:1 w:1) Proof: Broker::Leases (max_values: Some(1), max_size: Some(41), added: 536, mode: MaxEncodedLen)

source§

fn start_sales(n: u32) -> Weight

Storage: Broker::Configuration (r:1 w:0) Proof: Broker::Configuration (max_values: Some(1), max_size: Some(31), added: 526, mode: MaxEncodedLen) Storage: Broker::Leases (r:1 w:1) Proof: Broker::Leases (max_values: Some(1), max_size: Some(41), added: 536, mode: MaxEncodedLen) Storage: Broker::Reservations (r:1 w:0) Proof: Broker::Reservations (max_values: Some(1), max_size: Some(6011), added: 6506, mode: MaxEncodedLen) Storage: Broker::InstaPoolIo (r:3 w:3) Proof: Broker::InstaPoolIo (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) Storage: Broker::AutoRenewals (r:1 w:1) Proof: Broker::AutoRenewals (max_values: Some(1), max_size: Some(101), added: 596, mode: MaxEncodedLen) Storage: Broker::SaleInfo (r:0 w:1) Proof: Broker::SaleInfo (max_values: Some(1), max_size: Some(57), added: 552, mode: MaxEncodedLen) Storage: Broker::Status (r:0 w:1) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: Broker::Workplan (r:0 w:10) Proof: Broker::Workplan (max_values: None, max_size: Some(1216), added: 3691, mode: MaxEncodedLen) The range of component n is [0, 1000].

source§

fn purchase() -> Weight

Storage: Broker::Status (r:1 w:0) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: Broker::SaleInfo (r:1 w:1) Proof: Broker::SaleInfo (max_values: Some(1), max_size: Some(57), added: 552, mode: MaxEncodedLen) Storage: Authorship::Author (r:1 w:0) Proof: Authorship::Author (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: System::Digest (r:1 w:0) Proof: System::Digest (max_values: Some(1), max_size: None, mode: Measured) Storage: Broker::Regions (r:0 w:1) Proof: Broker::Regions (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen)

source§

fn renew() -> Weight

Storage: Broker::Configuration (r:1 w:0) Proof: Broker::Configuration (max_values: Some(1), max_size: Some(31), added: 526, mode: MaxEncodedLen) Storage: Broker::Status (r:1 w:0) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: Broker::SaleInfo (r:1 w:1) Proof: Broker::SaleInfo (max_values: Some(1), max_size: Some(57), added: 552, mode: MaxEncodedLen) Storage: Broker::PotentialRenewals (r:1 w:2) Proof: Broker::PotentialRenewals (max_values: None, max_size: Some(1233), added: 3708, mode: MaxEncodedLen) Storage: Authorship::Author (r:1 w:0) Proof: Authorship::Author (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: System::Digest (r:1 w:0) Proof: System::Digest (max_values: Some(1), max_size: None, mode: Measured) Storage: Broker::Workplan (r:0 w:1) Proof: Broker::Workplan (max_values: None, max_size: Some(1216), added: 3691, mode: MaxEncodedLen)

source§

fn transfer() -> Weight

Storage: Broker::Regions (r:1 w:1) Proof: Broker::Regions (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen)

source§

fn partition() -> Weight

Storage: Broker::Regions (r:1 w:2) Proof: Broker::Regions (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen)

source§

fn interlace() -> Weight

Storage: Broker::Regions (r:1 w:3) Proof: Broker::Regions (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen)

source§

fn assign() -> Weight

Storage: Broker::Configuration (r:1 w:0) Proof: Broker::Configuration (max_values: Some(1), max_size: Some(31), added: 526, mode: MaxEncodedLen) Storage: Broker::Status (r:1 w:0) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: Broker::Regions (r:1 w:1) Proof: Broker::Regions (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen) Storage: Broker::Workplan (r:1 w:1) Proof: Broker::Workplan (max_values: None, max_size: Some(1216), added: 3691, mode: MaxEncodedLen)

source§

fn pool() -> Weight

Storage: Broker::Status (r:1 w:0) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: Broker::Regions (r:1 w:1) Proof: Broker::Regions (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen) Storage: Broker::Workplan (r:1 w:1) Proof: Broker::Workplan (max_values: None, max_size: Some(1216), added: 3691, mode: MaxEncodedLen) Storage: Broker::InstaPoolIo (r:2 w:2) Proof: Broker::InstaPoolIo (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) Storage: Broker::InstaPoolContribution (r:0 w:1) Proof: Broker::InstaPoolContribution (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)

source§

fn claim_revenue(m: u32) -> Weight

Storage: Broker::InstaPoolContribution (r:1 w:1) Proof: Broker::InstaPoolContribution (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: Broker::InstaPoolHistory (r:3 w:1) Proof: Broker::InstaPoolHistory (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen) Storage: System::Account (r:2 w:2) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component m is [1, 3].

source§

fn purchase_credit() -> Weight

Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn drop_region() -> Weight

Storage: Broker::Status (r:1 w:0) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: Broker::Regions (r:1 w:1) Proof: Broker::Regions (max_values: None, max_size: Some(86), added: 2561, mode: MaxEncodedLen)

source§

fn drop_contribution() -> Weight

Storage: Broker::Configuration (r:1 w:0) Proof: Broker::Configuration (max_values: Some(1), max_size: Some(31), added: 526, mode: MaxEncodedLen) Storage: Broker::Status (r:1 w:0) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: Broker::InstaPoolContribution (r:1 w:1) Proof: Broker::InstaPoolContribution (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)

source§

fn drop_history() -> Weight

Storage: Broker::Configuration (r:1 w:0) Proof: Broker::Configuration (max_values: Some(1), max_size: Some(31), added: 526, mode: MaxEncodedLen) Storage: Broker::Status (r:1 w:0) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: Broker::InstaPoolHistory (r:1 w:1) Proof: Broker::InstaPoolHistory (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen) Storage: System::Account (r:1 w:0) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn drop_renewal() -> Weight

Storage: Broker::Status (r:1 w:0) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: Broker::PotentialRenewals (r:1 w:1) Proof: Broker::PotentialRenewals (max_values: None, max_size: Some(1233), added: 3708, mode: MaxEncodedLen)

source§

fn request_core_count(_n: u32) -> Weight

The range of component n is [0, 1000].

source§

fn process_core_count(_n: u32) -> Weight

Storage: Broker::CoreCountInbox (r:1 w:1) Proof: Broker::CoreCountInbox (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) The range of component n is [0, 1000].

source§

fn process_revenue() -> Weight

Storage: UNKNOWN KEY 0xf308d869daf021a7724e69c557dd8dbe (r:1 w:1) Proof: UNKNOWN KEY 0xf308d869daf021a7724e69c557dd8dbe (r:1 w:1) Storage: Broker::InstaPoolHistory (r:1 w:1) Proof: Broker::InstaPoolHistory (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Authorship::Author (r:1 w:0) Proof: Authorship::Author (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: System::Digest (r:1 w:0) Proof: System::Digest (max_values: Some(1), max_size: None, mode: Measured)

source§

fn rotate_sale(_n: u32) -> Weight

The range of component n is [0, 1000].

source§

fn process_pool() -> Weight

Storage: Broker::InstaPoolIo (r:1 w:0) Proof: Broker::InstaPoolIo (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) Storage: Broker::InstaPoolHistory (r:0 w:1) Proof: Broker::InstaPoolHistory (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)

source§

fn process_core_schedule() -> Weight

Storage: Broker::Workplan (r:1 w:1) Proof: Broker::Workplan (max_values: None, max_size: Some(1216), added: 3691, mode: MaxEncodedLen) Storage: Broker::Workload (r:1 w:1) Proof: Broker::Workload (max_values: None, max_size: Some(1212), added: 3687, mode: MaxEncodedLen)

source§

fn notify_core_count() -> Weight

Storage: Broker::CoreCountInbox (r:0 w:1) Proof: Broker::CoreCountInbox (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

source§

fn notify_revenue() -> Weight

Storage: Broker::RevenueInbox (r:0 w:1) Proof: Broker::RevenueInbox (max_values: Some(1), max_size: Some(20), added: 515, mode: MaxEncodedLen)

source§

fn do_tick_base() -> Weight

Storage: Broker::Status (r:1 w:1) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: Broker::Configuration (r:1 w:0) Proof: Broker::Configuration (max_values: Some(1), max_size: Some(31), added: 526, mode: MaxEncodedLen) Storage: Broker::CoreCountInbox (r:1 w:0) Proof: Broker::CoreCountInbox (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0xf308d869daf021a7724e69c557dd8dbe (r:1 w:1) Proof: UNKNOWN KEY 0xf308d869daf021a7724e69c557dd8dbe (r:1 w:1)

source§

fn swap_leases() -> Weight

Storage: Broker::Leases (r:1 w:1) Proof: Broker::Leases (max_values: Some(1), max_size: Some(41), added: 536, mode: MaxEncodedLen)

source§

fn enable_auto_renew() -> Weight

Storage: Broker::SaleInfo (r:1 w:1) Proof: Broker::SaleInfo (max_values: Some(1), max_size: Some(57), added: 552, mode: MaxEncodedLen) Storage: Broker::PotentialRenewals (r:1 w:2) Proof: Broker::PotentialRenewals (max_values: None, max_size: Some(1233), added: 3708, mode: MaxEncodedLen) Storage: Broker::Configuration (r:1 w:0) Proof: Broker::Configuration (max_values: Some(1), max_size: Some(31), added: 526, mode: MaxEncodedLen) Storage: Broker::Status (r:1 w:0) Proof: Broker::Status (max_values: Some(1), max_size: Some(18), added: 513, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Authorship::Author (r:1 w:0) Proof: Authorship::Author (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: System::Digest (r:1 w:0) Proof: System::Digest (max_values: Some(1), max_size: None, mode: Measured) Storage: Broker::AutoRenewals (r:1 w:1) Proof: Broker::AutoRenewals (max_values: Some(1), max_size: Some(101), added: 596, mode: MaxEncodedLen) Storage: Broker::Workplan (r:0 w:1) Proof: Broker::Workplan (max_values: None, max_size: Some(1216), added: 3691, mode: MaxEncodedLen)

source§

fn disable_auto_renew() -> Weight

Storage: Broker::AutoRenewals (r:1 w:1) Proof: Broker::AutoRenewals (max_values: Some(1), max_size: Some(101), added: 596, mode: MaxEncodedLen)

source§

fn request_revenue_info_at() -> Weight

source§

fn on_new_timeslice() -> Weight

Implementors§

source§

impl<T: Config> WeightInfo for SubstrateWeight<T>