Trait pallet_dapp_staking::weights::WeightInfo
source · pub trait WeightInfo {
Show 25 methods
// Required methods
fn maintenance_mode() -> Weight;
fn register() -> Weight;
fn set_dapp_reward_beneficiary() -> Weight;
fn set_dapp_owner() -> Weight;
fn unregister() -> Weight;
fn lock_new_account() -> Weight;
fn lock_existing_account() -> Weight;
fn unlock() -> Weight;
fn claim_unlocked(x: u32) -> Weight;
fn relock_unlocking() -> Weight;
fn stake() -> Weight;
fn unstake() -> Weight;
fn claim_staker_rewards_past_period(x: u32) -> Weight;
fn claim_staker_rewards_ongoing_period(x: u32) -> Weight;
fn claim_bonus_reward() -> Weight;
fn claim_dapp_reward() -> Weight;
fn unstake_from_unregistered() -> Weight;
fn cleanup_expired_entries(x: u32) -> Weight;
fn force() -> Weight;
fn on_initialize_voting_to_build_and_earn() -> Weight;
fn on_initialize_build_and_earn_to_voting() -> Weight;
fn on_initialize_build_and_earn_to_build_and_earn() -> Weight;
fn dapp_tier_assignment(x: u32) -> Weight;
fn on_idle_cleanup() -> Weight;
fn step() -> Weight;
}
Expand description
Weight functions needed for pallet_dapp_staking.
Required Methods§
fn maintenance_mode() -> Weight
fn register() -> Weight
fn set_dapp_reward_beneficiary() -> Weight
fn set_dapp_owner() -> Weight
fn unregister() -> Weight
fn lock_new_account() -> Weight
fn lock_existing_account() -> Weight
fn unlock() -> Weight
fn claim_unlocked(x: u32) -> Weight
fn relock_unlocking() -> Weight
fn stake() -> Weight
fn unstake() -> Weight
fn claim_staker_rewards_past_period(x: u32) -> Weight
fn claim_staker_rewards_ongoing_period(x: u32) -> Weight
fn claim_bonus_reward() -> Weight
fn claim_dapp_reward() -> Weight
fn unstake_from_unregistered() -> Weight
fn cleanup_expired_entries(x: u32) -> Weight
fn force() -> Weight
fn on_initialize_voting_to_build_and_earn() -> Weight
fn on_initialize_build_and_earn_to_voting() -> Weight
fn on_initialize_build_and_earn_to_build_and_earn() -> Weight
fn dapp_tier_assignment(x: u32) -> Weight
fn on_idle_cleanup() -> Weight
fn step() -> Weight
Object Safety§
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn register() -> Weight
fn register() -> Weight
Storage: DappStaking IntegratedDApps (r:1 w:1) Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen) Storage: DappStaking CounterForIntegratedDApps (r:1 w:1) Proof: DappStaking CounterForIntegratedDApps (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: DappStaking NextDAppId (r:1 w:1) Proof: DappStaking NextDAppId (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)
source§fn set_dapp_reward_beneficiary() -> Weight
fn set_dapp_reward_beneficiary() -> Weight
Storage: DappStaking IntegratedDApps (r:1 w:1) Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen)
source§fn set_dapp_owner() -> Weight
fn set_dapp_owner() -> Weight
Storage: DappStaking IntegratedDApps (r:1 w:1) Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen)
source§fn unregister() -> Weight
fn unregister() -> Weight
Storage: DappStaking IntegratedDApps (r:1 w:1) Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen) Storage: DappStaking CounterForIntegratedDApps (r:1 w:1) Proof: DappStaking CounterForIntegratedDApps (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: DappStaking ContractStake (r:0 w:1) Proof: DappStaking ContractStake (max_values: Some(65535), max_size: Some(91), added: 2071, mode: MaxEncodedLen)
source§fn lock_new_account() -> Weight
fn lock_new_account() -> Weight
Storage: DappStaking Ledger (r:1 w:1) Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) Storage: CollatorSelection Candidates (r:1 w:0) Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured) Storage: Balances Freezes (r:1 w:1) Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) Storage: Balances Locks (r:1 w:0) Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) Storage: DappStaking CurrentEraInfo (r:1 w:1) Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen)
source§fn lock_existing_account() -> Weight
fn lock_existing_account() -> Weight
Storage: DappStaking Ledger (r:1 w:1) Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) Storage: Balances Freezes (r:1 w:1) Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) Storage: Balances Locks (r:1 w:0) Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) Storage: DappStaking CurrentEraInfo (r:1 w:1) Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen)
source§fn unlock() -> Weight
fn unlock() -> Weight
Storage: DappStaking Ledger (r:1 w:1) Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) Storage: Balances Freezes (r:1 w:1) Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) Storage: Balances Locks (r:1 w:0) Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) Storage: DappStaking CurrentEraInfo (r:1 w:1) Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen)
source§fn claim_unlocked(x: u32) -> Weight
fn claim_unlocked(x: u32) -> Weight
Storage: DappStaking Ledger (r:1 w:1)
Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen)
Storage: Balances Freezes (r:1 w:1)
Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
Storage: Balances Locks (r:1 w:0)
Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
Storage: DappStaking CurrentEraInfo (r:1 w:1)
Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen)
The range of component x
is [0, 16]
.
source§fn relock_unlocking() -> Weight
fn relock_unlocking() -> Weight
Storage: DappStaking Ledger (r:1 w:1) Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) Storage: Balances Freezes (r:1 w:1) Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) Storage: Balances Locks (r:1 w:0) Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) Storage: DappStaking CurrentEraInfo (r:1 w:1) Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen)
source§fn stake() -> Weight
fn stake() -> Weight
Storage: DappStaking IntegratedDApps (r:1 w:0) Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen) Storage: DappStaking Ledger (r:1 w:1) Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) Storage: DappStaking StakerInfo (r:1 w:1) Proof: DappStaking StakerInfo (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen) Storage: DappStaking ContractStake (r:1 w:1) Proof: DappStaking ContractStake (max_values: Some(65535), max_size: Some(91), added: 2071, mode: MaxEncodedLen) Storage: DappStaking CurrentEraInfo (r:1 w:1) Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) Storage: Balances Freezes (r:1 w:1) Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) Storage: Balances Locks (r:1 w:0) Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
source§fn unstake() -> Weight
fn unstake() -> Weight
Storage: DappStaking IntegratedDApps (r:1 w:0) Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen) Storage: DappStaking Ledger (r:1 w:1) Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) Storage: DappStaking StakerInfo (r:1 w:1) Proof: DappStaking StakerInfo (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen) Storage: DappStaking ContractStake (r:1 w:1) Proof: DappStaking ContractStake (max_values: Some(65535), max_size: Some(91), added: 2071, mode: MaxEncodedLen) Storage: DappStaking CurrentEraInfo (r:1 w:1) Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) Storage: Balances Freezes (r:1 w:1) Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) Storage: Balances Locks (r:1 w:0) Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
source§fn claim_staker_rewards_past_period(x: u32) -> Weight
fn claim_staker_rewards_past_period(x: u32) -> Weight
Storage: DappStaking Ledger (r:1 w:1)
Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen)
Storage: DappStaking EraRewards (r:1 w:0)
Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen)
Storage: DappStaking PeriodEnd (r:1 w:0)
Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Balances Freezes (r:1 w:1)
Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
Storage: Balances Locks (r:1 w:0)
Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
The range of component x
is [1, 16]
.
source§fn claim_staker_rewards_ongoing_period(x: u32) -> Weight
fn claim_staker_rewards_ongoing_period(x: u32) -> Weight
Storage: DappStaking Ledger (r:1 w:1)
Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen)
Storage: DappStaking EraRewards (r:1 w:0)
Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen)
Storage: Balances Freezes (r:1 w:1)
Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
Storage: Balances Locks (r:1 w:0)
Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
The range of component x
is [1, 16]
.
source§fn claim_bonus_reward() -> Weight
fn claim_bonus_reward() -> Weight
Storage: DappStaking StakerInfo (r:1 w:1) Proof: DappStaking StakerInfo (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen) Storage: DappStaking PeriodEnd (r:1 w:0) Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: DappStaking Ledger (r:1 w:1) Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen)
source§fn claim_dapp_reward() -> Weight
fn claim_dapp_reward() -> Weight
Storage: DappStaking IntegratedDApps (r:1 w:0) Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen) Storage: DappStaking DAppTiers (r:1 w:1) Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen)
source§fn unstake_from_unregistered() -> Weight
fn unstake_from_unregistered() -> Weight
Storage: DappStaking IntegratedDApps (r:1 w:0) Proof: DappStaking IntegratedDApps (max_values: Some(65535), max_size: Some(116), added: 2096, mode: MaxEncodedLen) Storage: DappStaking StakerInfo (r:1 w:1) Proof: DappStaking StakerInfo (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen) Storage: DappStaking Ledger (r:1 w:1) Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen) Storage: DappStaking CurrentEraInfo (r:1 w:1) Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) Storage: Balances Freezes (r:1 w:1) Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) Storage: Balances Locks (r:1 w:0) Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
source§fn cleanup_expired_entries(x: u32) -> Weight
fn cleanup_expired_entries(x: u32) -> Weight
Storage: DappStaking StakerInfo (r:17 w:16)
Proof: DappStaking StakerInfo (max_values: None, max_size: Some(138), added: 2613, mode: MaxEncodedLen)
Storage: DappStaking Ledger (r:1 w:1)
Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen)
Storage: Balances Freezes (r:1 w:1)
Proof: Balances Freezes (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
Storage: Balances Locks (r:1 w:0)
Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
The range of component x
is [1, 16]
.
source§fn on_initialize_voting_to_build_and_earn() -> Weight
fn on_initialize_voting_to_build_and_earn() -> Weight
Storage: DappStaking CurrentEraInfo (r:1 w:1) Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) Storage: DappStaking EraRewards (r:1 w:1) Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen)
source§fn on_initialize_build_and_earn_to_voting() -> Weight
fn on_initialize_build_and_earn_to_voting() -> Weight
Storage: DappStaking CurrentEraInfo (r:1 w:1) Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) Storage: DappStaking StaticTierParams (r:1 w:0) Proof: DappStaking StaticTierParams (max_values: Some(1), max_size: Some(167), added: 662, mode: MaxEncodedLen) Storage: DappStaking TierConfig (r:1 w:1) Proof: DappStaking TierConfig (max_values: Some(1), max_size: Some(161), added: 656, mode: MaxEncodedLen) Storage: DappStaking PeriodEnd (r:1 w:2) Proof: DappStaking PeriodEnd (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: DappStaking HistoryCleanupMarker (r:1 w:1) Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) Storage: DappStaking EraRewards (r:1 w:1) Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen) Storage: DappStaking DAppTiers (r:0 w:1) Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen)
source§fn on_initialize_build_and_earn_to_build_and_earn() -> Weight
fn on_initialize_build_and_earn_to_build_and_earn() -> Weight
Storage: DappStaking CurrentEraInfo (r:1 w:1) Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen) Storage: DappStaking EraRewards (r:1 w:1) Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen) Storage: DappStaking DAppTiers (r:0 w:1) Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen)
source§fn dapp_tier_assignment(x: u32) -> Weight
fn dapp_tier_assignment(x: u32) -> Weight
Storage: DappStaking ContractStake (r:101 w:0)
Proof: DappStaking ContractStake (max_values: Some(65535), max_size: Some(91), added: 2071, mode: MaxEncodedLen)
Storage: DappStaking TierConfig (r:1 w:0)
Proof: DappStaking TierConfig (max_values: Some(1), max_size: Some(161), added: 656, mode: MaxEncodedLen)
The range of component x
is [0, 100]
.
source§fn on_idle_cleanup() -> Weight
fn on_idle_cleanup() -> Weight
Storage: DappStaking HistoryCleanupMarker (r:1 w:1) Proof: DappStaking HistoryCleanupMarker (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) Storage: DappStaking EraRewards (r:1 w:1) Proof: DappStaking EraRewards (max_values: None, max_size: Some(789), added: 3264, mode: MaxEncodedLen) Storage: DappStaking DAppTiers (r:0 w:1) Proof: DappStaking DAppTiers (max_values: None, max_size: Some(1583), added: 4058, mode: MaxEncodedLen)
source§fn step() -> Weight
fn step() -> Weight
Storage: DappStaking::Ledger
(r:2 w:1)
Proof: DappStaking::Ledger
(max_values
: None, max_size
: Some(310), added: 2785, mode: MaxEncodedLen
)