pub trait WeightInfo {
// Required methods
fn charge_asset_tx_payment_zero() -> Weight;
fn charge_asset_tx_payment_native() -> Weight;
fn charge_asset_tx_payment_asset() -> Weight;
}
Expand description
Weight functions needed for pallet_asset_conversion_tx_payment
.
Required Methods§
fn charge_asset_tx_payment_zero() -> Weight
fn charge_asset_tx_payment_native() -> Weight
fn charge_asset_tx_payment_asset() -> 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 charge_asset_tx_payment_native() -> Weight
fn charge_asset_tx_payment_native() -> Weight
Storage: System::Account
(r:1 w:1)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
Source§fn charge_asset_tx_payment_asset() -> Weight
fn charge_asset_tx_payment_asset() -> Weight
Storage: Assets::Asset
(r:1 w:1)
Proof: Assets::Asset
(max_values
: None, max_size
: Some(210), added: 2685, mode: MaxEncodedLen
)
Storage: Assets::Account
(r:2 w:2)
Proof: Assets::Account
(max_values
: None, max_size
: Some(134), added: 2609, mode: MaxEncodedLen
)
Storage: System::Account
(r:1 w:1)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)