Trait delegation::default_weights::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn create_hierarchy() -> Weight;
fn add_delegation() -> Weight;
fn revoke_delegation_root_child(r: u32, c: u32) -> Weight;
fn revoke_delegation_leaf(r: u32, c: u32) -> Weight;
fn remove_delegation(r: u32) -> Weight;
fn reclaim_deposit(r: u32) -> Weight;
fn can_attest() -> Weight;
fn can_revoke(c: u32) -> Weight;
fn can_remove(c: u32) -> Weight;
fn change_deposit_owner() -> Weight;
fn update_deposit() -> Weight;
}
Expand description
Weight functions needed for delegation.
Required Methods§
fn create_hierarchy() -> Weight
fn add_delegation() -> Weight
fn revoke_delegation_root_child(r: u32, c: u32) -> Weight
fn revoke_delegation_leaf(r: u32, c: u32) -> Weight
fn remove_delegation(r: u32) -> Weight
fn reclaim_deposit(r: u32) -> Weight
fn can_attest() -> Weight
fn can_revoke(c: u32) -> Weight
fn can_remove(c: u32) -> Weight
fn change_deposit_owner() -> Weight
fn update_deposit() -> Weight
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn create_hierarchy() -> Weight
fn create_hierarchy() -> Weight
Storage: Delegation DelegationHierarchies (r:1 w:1) Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen) Storage: Ctype Ctypes (r:1 w:0) Proof: Ctype Ctypes (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) Storage: Delegation DelegationNodes (r:0 w:1) Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen)
source§fn add_delegation() -> Weight
fn add_delegation() -> Weight
Storage: Delegation DelegationNodes (r:2 w:2) Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen)
source§fn revoke_delegation_root_child(r: u32, _c: u32) -> Weight
fn revoke_delegation_root_child(r: u32, _c: u32) -> Weight
Storage: Delegation DelegationNodes (r:5 w:5)
Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen)
Storage: Delegation DelegationHierarchies (r:1 w:0)
Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
The range of component r
is [1, 5]
.
The range of component c
is [1, 5]
.
source§fn revoke_delegation_leaf(r: u32, c: u32) -> Weight
fn revoke_delegation_leaf(r: u32, c: u32) -> Weight
Storage: Delegation DelegationNodes (r:6 w:1)
Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen)
Storage: Delegation DelegationHierarchies (r:1 w:0)
Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
The range of component r
is [1, 5]
.
The range of component c
is [1, 5]
.
source§fn remove_delegation(r: u32) -> Weight
fn remove_delegation(r: u32) -> Weight
Storage: Delegation DelegationNodes (r:6 w:6)
Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen)
Storage: System Account (r:1 w:1)
Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen)
Storage: Delegation DelegationHierarchies (r:1 w:1)
Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
The range of component r
is [1, 5]
.
source§fn reclaim_deposit(r: u32) -> Weight
fn reclaim_deposit(r: u32) -> Weight
Storage: Delegation DelegationNodes (r:6 w:6)
Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen)
Storage: System Account (r:1 w:1)
Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen)
Storage: Delegation DelegationHierarchies (r:0 w:1)
Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
The range of component r
is [1, 5]
.
source§fn can_attest() -> Weight
fn can_attest() -> Weight
Storage: Delegation DelegationNodes (r:1 w:0) Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) Storage: Delegation DelegationHierarchies (r:1 w:0) Proof: Delegation DelegationHierarchies (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
source§fn can_revoke(c: u32) -> Weight
fn can_revoke(c: u32) -> Weight
Storage: Delegation DelegationNodes (r:6 w:0)
Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen)
The range of component c
is [1, 5]
.
source§fn can_remove(c: u32) -> Weight
fn can_remove(c: u32) -> Weight
Storage: Delegation DelegationNodes (r:6 w:0)
Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen)
The range of component c
is [1, 5]
.
source§fn change_deposit_owner() -> Weight
fn change_deposit_owner() -> Weight
Storage: Delegation DelegationNodes (r:1 w:1) Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) Storage: System Account (r:2 w:2) Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen)
source§fn update_deposit() -> Weight
fn update_deposit() -> Weight
Storage: Delegation DelegationNodes (r:1 w:1) Proof: Delegation DelegationNodes (max_values: None, max_size: Some(32200), added: 34675, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen)