pub trait WeightInfo {
// Required methods
fn vote() -> Weight;
fn create_poll() -> Weight;
fn withdraw_funds_voter() -> Weight;
fn withdraw_funds_creator() -> Weight;
fn change_min_hermes_for_voting() -> Weight;
fn change_min_hermes_for_creating_poll() -> Weight;
}
Expand description
Weight functions needed for hermes_governance_platform.
Required Methods§
fn vote() -> Weight
fn create_poll() -> Weight
fn withdraw_funds_voter() -> Weight
fn withdraw_funds_creator() -> Weight
fn change_min_hermes_for_voting() -> Weight
fn change_min_hermes_for_creating_poll() -> Weight
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn vote() -> Weight
fn vote() -> Weight
Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: HermesGovernancePlatform HermesPollData (r:1 w:0) Proof Skipped: HermesGovernancePlatform HermesPollData (max_values: None, max_size: None, mode: Measured) Storage: HermesGovernancePlatform MinimumHermesVotingAmount (r:1 w:0) Proof Skipped: HermesGovernancePlatform MinimumHermesVotingAmount (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: HermesGovernancePlatform HermesVotings (r:1 w:1) Proof Skipped: HermesGovernancePlatform HermesVotings (max_values: None, max_size: None, mode: Measured) 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
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: HermesGovernancePlatform MinimumHermesAmountForCreatingPoll (r:1 w:0) Proof Skipped: HermesGovernancePlatform MinimumHermesAmountForCreatingPoll (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: System Account (r:2 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: HermesGovernancePlatform HermesPollData (r:0 w:1) Proof Skipped: HermesGovernancePlatform HermesPollData (max_values: None, max_size: None, mode: Measured)
source§fn withdraw_funds_voter() -> Weight
fn withdraw_funds_voter() -> Weight
Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: HermesGovernancePlatform HermesPollData (r:1 w:0) Proof Skipped: HermesGovernancePlatform HermesPollData (max_values: None, max_size: None, mode: Measured) Storage: HermesGovernancePlatform HermesVotings (r:1 w:1) Proof Skipped: HermesGovernancePlatform HermesVotings (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 withdraw_funds_creator() -> Weight
fn withdraw_funds_creator() -> Weight
Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: HermesGovernancePlatform HermesPollData (r:1 w:1) Proof Skipped: HermesGovernancePlatform HermesPollData (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_min_hermes_for_voting() -> Weight
fn change_min_hermes_for_voting() -> Weight
Storage: HermesGovernancePlatform AuthorityAccount (r:1 w:0) Proof Skipped: HermesGovernancePlatform AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: HermesGovernancePlatform MinimumHermesVotingAmount (r:0 w:1) Proof Skipped: HermesGovernancePlatform MinimumHermesVotingAmount (max_values: Some(1), max_size: None, mode: Measured)
source§fn change_min_hermes_for_creating_poll() -> Weight
fn change_min_hermes_for_creating_poll() -> Weight
Storage: HermesGovernancePlatform AuthorityAccount (r:1 w:0) Proof Skipped: HermesGovernancePlatform AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: HermesGovernancePlatform MinimumHermesAmountForCreatingPoll (r:0 w:1) Proof Skipped: HermesGovernancePlatform MinimumHermesAmountForCreatingPoll (max_values: Some(1), max_size: None, mode: Measured)