pub trait WeightInfo {
// Required methods
fn pay_with_capacity() -> Weight;
fn pay_with_capacity_batch_all(n: u32) -> Weight;
fn charge_tx_payment_free() -> Weight;
fn charge_tx_payment_token_based() -> Weight;
fn charge_tx_payment_capacity_based() -> Weight;
}
Expand description
Weight functions needed for pallet_frequency_tx_payment
.
Required Methods§
fn pay_with_capacity() -> Weight
fn pay_with_capacity_batch_all(n: u32) -> Weight
fn charge_tx_payment_free() -> Weight
fn charge_tx_payment_token_based() -> Weight
fn charge_tx_payment_capacity_based() -> Weight
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl WeightInfo for ()
impl WeightInfo for ()
Source§fn pay_with_capacity_batch_all(n: u32) -> Weight
fn pay_with_capacity_batch_all(n: u32) -> Weight
The range of component n
is [0, 10]
.
Source§fn charge_tx_payment_capacity_based() -> Weight
fn charge_tx_payment_capacity_based() -> Weight
Storage: System::Account
(r:1 w:0)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
Storage: Msa::PublicKeyToMsaId
(r:1 w:0)
Proof: Msa::PublicKeyToMsaId
(max_values
: None, max_size
: Some(48), added: 2523, mode: MaxEncodedLen
)
Storage: Capacity::CapacityLedger
(r:1 w:1)
Proof: Capacity::CapacityLedger
(max_values
: None, max_size
: Some(68), added: 2543, mode: MaxEncodedLen
)