pub trait WeightInfo {
// Required methods
fn transfer_tokens() -> Weight;
fn set_main_chain_scripts() -> Weight;
fn on_finalize() -> Weight;
}
Expand description
Weight functions needed for pallet_native_token_management.
Required Methods§
fn transfer_tokens() -> Weight
fn set_main_chain_scripts() -> Weight
fn on_finalize() -> 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 transfer_tokens() -> Weight
fn transfer_tokens() -> Weight
Storage: NativeTokenManagement::MainChainScriptsConfiguration
(r:1 w:0)
Proof: NativeTokenManagement::MainChainScriptsConfiguration
(max_values
: Some(1), max_size
: Some(183), added: 678, mode: MaxEncodedLen
)
Storage: NativeTokenManagement::TransferedThisBlock
(r:1 w:1)
Proof: NativeTokenManagement::TransferedThisBlock
(max_values
: Some(1), max_size
: Some(16), added: 511, mode: MaxEncodedLen
)
Storage: NativeTokenManagement::Initialized
(r:1 w:1)
Proof: NativeTokenManagement::Initialized
(max_values
: Some(1), max_size
: Some(1), added: 496, mode: MaxEncodedLen
)
Source§fn set_main_chain_scripts() -> Weight
fn set_main_chain_scripts() -> Weight
Storage: NativeTokenManagement::MainChainScriptsConfiguration
(r:0 w:1)
Proof: NativeTokenManagement::MainChainScriptsConfiguration
(max_values
: Some(1), max_size
: Some(183), added: 678, mode: MaxEncodedLen
)
Source§fn on_finalize() -> Weight
fn on_finalize() -> Weight
Storage: NativeTokenManagement::TransferedThisBlock
(r:0 w:1)
Proof: NativeTokenManagement::TransferedThisBlock
(max_values
: Some(1), max_size
: Some(16), added: 511, mode: MaxEncodedLen
)