pub trait WeightInfo {
Show 13 methods // Required methods fn create_ilo() -> Weight; fn contribute() -> Weight; fn emergency_withdraw() -> Weight; fn finish_ilo() -> Weight; fn claim_lp_tokens() -> Weight; fn claim() -> Weight; fn change_ceres_burn_fee() -> Weight; fn change_ceres_contribution_fee() -> Weight; fn claim_pswap_rewards() -> Weight; fn add_whitelisted_contributor() -> Weight; fn remove_whitelisted_contributor() -> Weight; fn add_whitelisted_ilo_organizer() -> Weight; fn remove_whitelisted_ilo_organizer() -> Weight;
}
Expand description

Weight functions needed for ceres_launchpad.

Required Methods§

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn create_ilo() -> Weight

Storage: CeresLaunchpad WhitelistedIloOrganizers (r:1 w:0) Proof Skipped: CeresLaunchpad WhitelistedIloOrganizers (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresLaunchpad ILOs (r:1 w:1) Proof Skipped: CeresLaunchpad ILOs (max_values: None, max_size: None, mode: Measured) Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: TradingPair EnabledSources (r:1 w:0) Proof Skipped: TradingPair EnabledSources (max_values: None, max_size: None, mode: Measured) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: CeresLaunchpad CeresBurnFeeAmount (r:1 w:0) Proof Skipped: CeresLaunchpad CeresBurnFeeAmount (max_values: Some(1), 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: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) Storage: System Account (r:2 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn contribute() -> Weight

Storage: CeresLaunchpad WhitelistedContributors (r:1 w:0) Proof Skipped: CeresLaunchpad WhitelistedContributors (max_values: Some(1), max_size: None, mode: Measured) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: CeresLaunchpad CeresForContributionInILO (r:1 w:0) Proof Skipped: CeresLaunchpad CeresForContributionInILO (max_values: Some(1), max_size: None, mode: Measured) Storage: Tokens Accounts (r:1 w:0) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: CeresLaunchpad ILOs (r:1 w:1) Proof Skipped: CeresLaunchpad ILOs (max_values: None, max_size: None, mode: Measured) Storage: CeresLaunchpad Contributions (r:1 w:1) Proof Skipped: CeresLaunchpad Contributions (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:2 w:2) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn emergency_withdraw() -> Weight

Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: CeresLaunchpad ILOs (r:1 w:1) Proof Skipped: CeresLaunchpad ILOs (max_values: None, max_size: None, mode: Measured) Storage: CeresLaunchpad Contributions (r:1 w:1) Proof Skipped: CeresLaunchpad Contributions (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:3 w:3) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: CeresLaunchpad PenaltiesAccount (r:1 w:0) Proof Skipped: CeresLaunchpad PenaltiesAccount (max_values: Some(1), max_size: None, mode: Measured)

source§

fn finish_ilo() -> Weight

Storage: CeresLaunchpad ILOs (r:1 w:1) Proof Skipped: CeresLaunchpad ILOs (max_values: None, max_size: None, mode: Measured) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: CeresLaunchpad FeePercentOnRaisedFunds (r:1 w:0) Proof Skipped: CeresLaunchpad FeePercentOnRaisedFunds (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresLaunchpad AuthorityAccount (r:1 w:0) Proof Skipped: CeresLaunchpad AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: System Account (r:6 w:6) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: DEXManager DEXInfos (r:1 w:0) Proof Skipped: DEXManager DEXInfos (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetOwners (r:2 w:0) Proof Skipped: Assets AssetOwners (max_values: None, max_size: None, mode: Measured) Storage: TradingPair EnabledSources (r:1 w:1) Proof Skipped: TradingPair EnabledSources (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetInfos (r:2 w:0) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured) Storage: Technical TechAccounts (r:1 w:2) Proof Skipped: Technical TechAccounts (max_values: None, max_size: None, mode: Measured) Storage: PswapDistribution SubscribedAccounts (r:1 w:1) Proof Skipped: PswapDistribution SubscribedAccounts (max_values: None, max_size: None, mode: Measured) Storage: Farming Pools (r:1 w:1) Proof Skipped: Farming Pools (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:5 w:5) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: PoolXYK PoolProviders (r:2 w:2) Proof Skipped: PoolXYK PoolProviders (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK AccountPools (r:2 w:2) Proof Skipped: PoolXYK AccountPools (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK TotalIssuances (r:1 w:1) Proof Skipped: PoolXYK TotalIssuances (max_values: None, max_size: None, mode: Measured) Storage: PriceTools PriceInfos (r:1 w:0) Proof Skipped: PriceTools PriceInfos (max_values: None, max_size: None, mode: Measured) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) Storage: CeresLiquidityLocker LockerData (r:1 w:1) Proof Skipped: CeresLiquidityLocker LockerData (max_values: None, max_size: None, mode: Measured) Storage: CeresLiquidityLocker FeesOptionOneAccount (r:1 w:0) Proof Skipped: CeresLiquidityLocker FeesOptionOneAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: DemeterFarmingPlatform UserInfos (r:1 w:1) Proof Skipped: DemeterFarmingPlatform UserInfos (max_values: None, max_size: None, mode: Measured) Storage: CeresTokenLocker FeeAmount (r:1 w:0) Proof Skipped: CeresTokenLocker FeeAmount (max_values: Some(1), max_size: None, mode: Measured) 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) Storage: PoolXYK Reserves (r:0 w:1) Proof Skipped: PoolXYK Reserves (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK Properties (r:0 w:1) Proof Skipped: PoolXYK Properties (max_values: None, max_size: None, mode: Measured)

source§

fn claim_lp_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: CeresLaunchpad ILOs (r:1 w:1) Proof Skipped: CeresLaunchpad ILOs (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK Properties (r:1 w:0) Proof Skipped: PoolXYK Properties (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK PoolProviders (r:2 w:2) Proof Skipped: PoolXYK PoolProviders (max_values: None, max_size: None, mode: Measured) Storage: PoolXYK AccountPools (r:1 w:1) Proof Skipped: PoolXYK AccountPools (max_values: None, max_size: None, mode: Measured)

source§

fn claim() -> Weight

Storage: CeresLaunchpad ILOs (r:1 w:0) Proof Skipped: CeresLaunchpad ILOs (max_values: None, max_size: None, mode: Measured) Storage: CeresLaunchpad Contributions (r:1 w:1) Proof Skipped: CeresLaunchpad Contributions (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_ceres_burn_fee() -> Weight

Storage: CeresLaunchpad AuthorityAccount (r:1 w:0) Proof Skipped: CeresLaunchpad AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresLaunchpad CeresBurnFeeAmount (r:0 w:1) Proof Skipped: CeresLaunchpad CeresBurnFeeAmount (max_values: Some(1), max_size: None, mode: Measured)

source§

fn change_ceres_contribution_fee() -> Weight

Storage: CeresLaunchpad AuthorityAccount (r:1 w:0) Proof Skipped: CeresLaunchpad AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresLaunchpad CeresForContributionInILO (r:0 w:1) Proof Skipped: CeresLaunchpad CeresForContributionInILO (max_values: Some(1), max_size: None, mode: Measured)

source§

fn claim_pswap_rewards() -> Weight

Storage: CeresLaunchpad AuthorityAccount (r:1 w:0) Proof Skipped: CeresLaunchpad AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: PswapDistribution ShareholderAccounts (r:1 w:1) Proof Skipped: PswapDistribution ShareholderAccounts (max_values: None, max_size: None, mode: Measured) Storage: PswapDistribution ClaimableShares (r:1 w:1) Proof Skipped: PswapDistribution ClaimableShares (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: VestedRewards Rewards (r:1 w:0) Proof Skipped: VestedRewards Rewards (max_values: None, max_size: None, mode: Measured)

source§

fn add_whitelisted_contributor() -> Weight

Storage: CeresLaunchpad AuthorityAccount (r:1 w:0) Proof Skipped: CeresLaunchpad AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresLaunchpad WhitelistedContributors (r:1 w:1) Proof Skipped: CeresLaunchpad WhitelistedContributors (max_values: Some(1), max_size: None, mode: Measured)

source§

fn remove_whitelisted_contributor() -> Weight

Storage: CeresLaunchpad AuthorityAccount (r:1 w:0) Proof Skipped: CeresLaunchpad AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresLaunchpad WhitelistedContributors (r:1 w:1) Proof Skipped: CeresLaunchpad WhitelistedContributors (max_values: Some(1), max_size: None, mode: Measured)

source§

fn add_whitelisted_ilo_organizer() -> Weight

Storage: CeresLaunchpad AuthorityAccount (r:1 w:0) Proof Skipped: CeresLaunchpad AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresLaunchpad WhitelistedIloOrganizers (r:1 w:1) Proof Skipped: CeresLaunchpad WhitelistedIloOrganizers (max_values: Some(1), max_size: None, mode: Measured)

source§

fn remove_whitelisted_ilo_organizer() -> Weight

Storage: CeresLaunchpad AuthorityAccount (r:1 w:0) Proof Skipped: CeresLaunchpad AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresLaunchpad WhitelistedIloOrganizers (r:1 w:1) Proof Skipped: CeresLaunchpad WhitelistedIloOrganizers (max_values: Some(1), max_size: None, mode: Measured)

Implementors§

source§

impl<T: Config> WeightInfo for SubstrateWeight<T>