pub trait WeightInfo {
// Required methods
fn claim_evm_address() -> Weight;
fn claim_default_evm_address() -> Weight;
fn to_account_id() -> Weight;
fn to_account_id_or_default() -> Weight;
fn to_h160() -> Weight;
fn to_h160_or_default() -> Weight;
}Expand description
Weight functions needed for pallet_unified_accounts.
Required Methods§
fn claim_evm_address() -> Weight
fn claim_default_evm_address() -> Weight
fn to_account_id() -> Weight
fn to_account_id_or_default() -> Weight
fn to_h160() -> Weight
fn to_h160_or_default() -> 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 claim_evm_address() -> Weight
fn claim_evm_address() -> Weight
Storage: UnifiedAccounts NativeToEvm (r:1 w:1) Proof: UnifiedAccounts NativeToEvm (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: UnifiedAccounts EvmToNative (r:1 w:1) Proof: UnifiedAccounts EvmToNative (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: EVMChainId ChainId (r:1 w:0) Proof: EVMChainId ChainId (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: System BlockHash (r:1 w:0) Proof: System BlockHash (max_values: None, max_size: Some(44), added: 2519, 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 claim_default_evm_address() -> Weight
fn claim_default_evm_address() -> Weight
Storage: UnifiedAccounts NativeToEvm (r:1 w:1) Proof: UnifiedAccounts NativeToEvm (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: UnifiedAccounts EvmToNative (r:1 w:1) Proof: UnifiedAccounts EvmToNative (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
Source§fn to_account_id() -> Weight
fn to_account_id() -> Weight
Storage: UnifiedAccounts EvmToNative (r:1 w:0) Proof: UnifiedAccounts EvmToNative (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
Source§fn to_account_id_or_default() -> Weight
fn to_account_id_or_default() -> Weight
Storage: UnifiedAccounts EvmToNative (r:1 w:0) Proof: UnifiedAccounts EvmToNative (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
Source§fn to_h160() -> Weight
fn to_h160() -> Weight
Storage: UnifiedAccounts NativeToEvm (r:1 w:0) Proof: UnifiedAccounts NativeToEvm (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
Source§fn to_h160_or_default() -> Weight
fn to_h160_or_default() -> Weight
Storage: UnifiedAccounts NativeToEvm (r:1 w:0) Proof: UnifiedAccounts NativeToEvm (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)