pub trait WeightInfo {
    // Required methods
    fn vote() -> Weight;
    fn create_poll() -> Weight;
    fn withdraw() -> Weight;
}
Expand description

Weight functions needed for ceres_governance_platform.

Required Methods§

source

fn vote() -> Weight

source

fn create_poll() -> Weight

source

fn withdraw() -> Weight

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn vote() -> Weight

Storage: CeresGovernancePlatform PollData (r:1 w:0) Proof Skipped: CeresGovernancePlatform PollData (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: CeresGovernancePlatform Voting (r:1 w:1) Proof Skipped: CeresGovernancePlatform Voting (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:2 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn create_poll() -> Weight

Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: CeresGovernancePlatform PollData (r:1 w:1) Proof Skipped: CeresGovernancePlatform PollData (max_values: None, max_size: None, mode: Measured)

source§

fn withdraw() -> Weight

Storage: CeresGovernancePlatform PollData (r:1 w:0) Proof Skipped: CeresGovernancePlatform PollData (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: CeresGovernancePlatform Voting (r:1 w:1) Proof Skipped: CeresGovernancePlatform Voting (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)

Implementors§

source§

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