Trait pallet_broker::weights::WeightInfo
source · pub trait WeightInfo {
Show 25 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;
}
Expand description
Weight functions needed for pallet_broker
.
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
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn configure() -> Weight
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
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
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
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
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::InstaPoolIo
(r:3 w:3)
Proof: Broker::InstaPoolIo
(max_values
: None, max_size
: Some(28), added: 2503, 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::Leases
(r:1 w:1)
Proof: Broker::Leases
(max_values
: Some(1), max_size
: Some(41), added: 536, 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
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(85), added: 2560, mode: MaxEncodedLen
)
source§fn renew() -> Weight
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::AllowedRenewals
(r:1 w:2)
Proof: Broker::AllowedRenewals
(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
fn transfer() -> Weight
Storage: Broker::Regions
(r:1 w:1)
Proof: Broker::Regions
(max_values
: None, max_size
: Some(85), added: 2560, mode: MaxEncodedLen
)
source§fn partition() -> Weight
fn partition() -> Weight
Storage: Broker::Regions
(r:1 w:2)
Proof: Broker::Regions
(max_values
: None, max_size
: Some(85), added: 2560, mode: MaxEncodedLen
)
source§fn interlace() -> Weight
fn interlace() -> Weight
Storage: Broker::Regions
(r:1 w:2)
Proof: Broker::Regions
(max_values
: None, max_size
: Some(85), added: 2560, mode: MaxEncodedLen
)
source§fn assign() -> Weight
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(85), added: 2560, 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
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(85), added: 2560, 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
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:0)
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
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
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(85), added: 2560, mode: MaxEncodedLen
)
source§fn drop_contribution() -> Weight
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
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
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::AllowedRenewals
(r:1 w:1)
Proof: Broker::AllowedRenewals
(max_values
: None, max_size
: Some(1233), added: 3708, mode: MaxEncodedLen
)
source§fn request_core_count(_n: u32) -> Weight
fn request_core_count(_n: u32) -> Weight
Storage: UNKNOWN KEY 0x18194fcb5c1fcace44d2d0a004272614
(r:0 w:1)
Proof: UNKNOWN KEY 0x18194fcb5c1fcace44d2d0a004272614
(r:0 w:1)
The range of component n
is [0, 1000]
.
source§fn process_core_count(_n: u32) -> Weight
fn process_core_count(_n: u32) -> Weight
Storage: UNKNOWN KEY 0x18194fcb5c1fcace44d2d0a004272614
(r:1 w:0)
Proof: UNKNOWN KEY 0x18194fcb5c1fcace44d2d0a004272614
(r:1 w:0)
The range of component n
is [0, 1000]
.
source§fn process_revenue() -> Weight
fn process_revenue() -> Weight
Storage: Broker::InstaPoolHistory
(r:0 w:1)
Proof: Broker::InstaPoolHistory
(max_values
: None, max_size
: Some(45), added: 2520, mode: MaxEncodedLen
)
source§fn rotate_sale(n: u32) -> Weight
fn rotate_sale(n: u32) -> Weight
Storage: Broker::InstaPoolIo
(r:3 w:3)
Proof: Broker::InstaPoolIo
(max_values
: None, max_size
: Some(28), added: 2503, 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::Leases
(r:1 w:1)
Proof: Broker::Leases
(max_values
: Some(1), max_size
: Some(41), added: 536, 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::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 process_pool() -> Weight
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
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
)