Trait escrow::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn create_lock() -> Weight;
fn increase_amount() -> Weight;
fn increase_unlock_height() -> Weight;
fn withdraw() -> Weight;
fn update_user_stake() -> Weight;
fn set_account_limit() -> Weight;
fn set_account_block() -> Weight;
}
Expand description
Weight functions needed for escrow.
Required Methods§
fn create_lock() -> Weight
fn increase_amount() -> Weight
fn increase_unlock_height() -> Weight
fn withdraw() -> Weight
fn update_user_stake() -> Weight
fn set_account_limit() -> Weight
fn set_account_block() -> Weight
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn create_lock() -> Weight
fn create_lock() -> Weight
Storage: Escrow Locked (r:1 w:1) Proof: Escrow Locked (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Escrow Blocks (r:1 w:0) Proof: Escrow Blocks (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) Storage: Escrow Limits (r:1 w:0) Proof: Escrow Limits (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) Storage: Tokens Locks (r:1 w:1) Proof: Tokens Locks (max_values: None, max_size: Some(1268), added: 3743, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Escrow SlopeChanges (r:54 w:1) Proof: Escrow SlopeChanges (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen) Storage: Escrow Epoch (r:1 w:1) Proof: Escrow Epoch (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Escrow PointHistory (r:1 w:52) Proof: Escrow PointHistory (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) Storage: Escrow UserPointEpoch (r:1 w:1) Proof: Escrow UserPointEpoch (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) Storage: EscrowRewards Stake (r:1 w:1) Proof: EscrowRewards Stake (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen) Storage: EscrowRewards TotalStake (r:1 w:1) Proof: EscrowRewards TotalStake (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) Storage: EscrowRewards RewardCurrencies (r:1 w:0) Proof: EscrowRewards RewardCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) Storage: EscrowRewards RewardTally (r:1 w:1) Proof: EscrowRewards RewardTally (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: EscrowRewards RewardPerToken (r:1 w:0) Proof: EscrowRewards RewardPerToken (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen) Storage: Escrow UserPointHistory (r:0 w:1) Proof: Escrow UserPointHistory (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
source§fn increase_amount() -> Weight
fn increase_amount() -> Weight
Storage: Escrow Locked (r:1 w:1) Proof: Escrow Locked (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Escrow Blocks (r:1 w:0) Proof: Escrow Blocks (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) Storage: Escrow Limits (r:1 w:0) Proof: Escrow Limits (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) Storage: Tokens Locks (r:1 w:1) Proof: Tokens Locks (max_values: None, max_size: Some(1268), added: 3743, mode: MaxEncodedLen) Storage: Escrow SlopeChanges (r:1 w:1) Proof: Escrow SlopeChanges (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen) Storage: Escrow Epoch (r:1 w:1) Proof: Escrow Epoch (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Escrow PointHistory (r:1 w:1) Proof: Escrow PointHistory (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) Storage: Escrow UserPointEpoch (r:1 w:1) Proof: Escrow UserPointEpoch (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) Storage: EscrowRewards Stake (r:1 w:1) Proof: EscrowRewards Stake (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen) Storage: EscrowRewards TotalStake (r:1 w:1) Proof: EscrowRewards TotalStake (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) Storage: EscrowRewards RewardCurrencies (r:1 w:0) Proof: EscrowRewards RewardCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) Storage: EscrowRewards RewardTally (r:1 w:1) Proof: EscrowRewards RewardTally (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: EscrowRewards RewardPerToken (r:1 w:0) Proof: EscrowRewards RewardPerToken (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen) Storage: Escrow UserPointHistory (r:0 w:1) Proof: Escrow UserPointHistory (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
source§fn increase_unlock_height() -> Weight
fn increase_unlock_height() -> Weight
Storage: Escrow Locked (r:1 w:1) Proof: Escrow Locked (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Escrow Blocks (r:1 w:0) Proof: Escrow Blocks (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) Storage: Escrow Limits (r:1 w:0) Proof: Escrow Limits (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) Storage: Tokens Locks (r:1 w:1) Proof: Tokens Locks (max_values: None, max_size: Some(1268), added: 3743, mode: MaxEncodedLen) Storage: Escrow SlopeChanges (r:97 w:2) Proof: Escrow SlopeChanges (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen) Storage: Escrow Epoch (r:1 w:1) Proof: Escrow Epoch (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Escrow PointHistory (r:1 w:95) Proof: Escrow PointHistory (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) Storage: Escrow UserPointEpoch (r:1 w:1) Proof: Escrow UserPointEpoch (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) Storage: EscrowRewards Stake (r:1 w:1) Proof: EscrowRewards Stake (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen) Storage: EscrowRewards TotalStake (r:1 w:1) Proof: EscrowRewards TotalStake (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) Storage: EscrowRewards RewardCurrencies (r:1 w:0) Proof: EscrowRewards RewardCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) Storage: EscrowRewards RewardTally (r:1 w:1) Proof: EscrowRewards RewardTally (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: EscrowRewards RewardPerToken (r:1 w:0) Proof: EscrowRewards RewardPerToken (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen) Storage: Escrow UserPointHistory (r:0 w:1) Proof: Escrow UserPointHistory (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
source§fn withdraw() -> Weight
fn withdraw() -> Weight
Storage: Escrow Locked (r:1 w:1) Proof: Escrow Locked (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: EscrowRewards Stake (r:1 w:1) Proof: EscrowRewards Stake (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen) Storage: EscrowRewards TotalStake (r:1 w:1) Proof: EscrowRewards TotalStake (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) Storage: EscrowRewards RewardCurrencies (r:1 w:0) Proof: EscrowRewards RewardCurrencies (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) Storage: EscrowRewards RewardTally (r:1 w:1) Proof: EscrowRewards RewardTally (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: EscrowRewards RewardPerToken (r:1 w:0) Proof: EscrowRewards RewardPerToken (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen) Storage: Escrow SlopeChanges (r:97 w:0) Proof: Escrow SlopeChanges (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen) Storage: Escrow Epoch (r:1 w:1) Proof: Escrow Epoch (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Escrow PointHistory (r:1 w:97) Proof: Escrow PointHistory (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) Storage: Escrow UserPointEpoch (r:1 w:1) Proof: Escrow UserPointEpoch (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) Storage: Tokens Locks (r:1 w:1) Proof: Tokens Locks (max_values: None, max_size: Some(1268), added: 3743, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Escrow UserPointHistory (r:1 w:2) Proof: Escrow UserPointHistory (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
source§fn update_user_stake() -> Weight
fn update_user_stake() -> Weight
Storage: EscrowRewards Stake (r:1 w:1) Proof: EscrowRewards Stake (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen) Storage: Escrow Locked (r:1 w:1) Proof: Escrow Locked (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Escrow Blocks (r:1 w:0) Proof: Escrow Blocks (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) Storage: Escrow Limits (r:1 w:0) Proof: Escrow Limits (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) Storage: Tokens Locks (r:1 w:1) Proof: Tokens Locks (max_values: None, max_size: Some(1268), added: 3743, mode: MaxEncodedLen) Storage: Escrow SlopeChanges (r:96 w:1) Proof: Escrow SlopeChanges (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen) Storage: Escrow Epoch (r:1 w:1) Proof: Escrow Epoch (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Escrow PointHistory (r:1 w:95) Proof: Escrow PointHistory (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) Storage: Escrow UserPointEpoch (r:1 w:1) Proof: Escrow UserPointEpoch (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) Storage: EscrowRewards TotalStake (r:1 w:1) Proof: EscrowRewards TotalStake (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) Storage: EscrowRewards RewardCurrencies (r:1 w:0) Proof: EscrowRewards RewardCurrencies (max_values: None, max_size: Some(127), added: 2602, mode: MaxEncodedLen) Storage: Escrow ThresholdPercentage (r:1 w:0) Proof: Escrow ThresholdPercentage (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: Escrow UserPointHistory (r:0 w:1) Proof: Escrow UserPointHistory (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)