Trait ceres_token_locker::weights::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn lock_tokens() -> Weight;
fn withdraw_tokens() -> Weight;
fn change_fee() -> Weight;
}
Expand description
Weight functions needed for ceres_token_locker.
Required Methods§
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn lock_tokens() -> Weight
fn lock_tokens() -> Weight
Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: CeresTokenLocker FeeAmount (r:1 w:0) Proof Skipped: CeresTokenLocker FeeAmount (max_values: Some(1), max_size: None, mode: Measured) Storage: Tokens Accounts (r:3 w:3) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: System Account (r:3 w:2) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: CeresTokenLocker FeesAccount (r:1 w:0) Proof Skipped: CeresTokenLocker FeesAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresTokenLocker TokenLockerData (r:1 w:1) Proof Skipped: CeresTokenLocker TokenLockerData (max_values: None, max_size: None, mode: Measured)
source§fn withdraw_tokens() -> Weight
fn withdraw_tokens() -> Weight
Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: CeresTokenLocker TokenLockerData (r:1 w:1) Proof Skipped: CeresTokenLocker TokenLockerData (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, 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 change_fee() -> Weight
fn change_fee() -> Weight
Storage: CeresTokenLocker AuthorityAccount (r:1 w:0) Proof Skipped: CeresTokenLocker AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresTokenLocker FeeAmount (r:0 w:1) Proof Skipped: CeresTokenLocker FeeAmount (max_values: Some(1), max_size: None, mode: Measured)