pub trait WeightInfo {
    // Required methods
    fn register() -> Weight;
    fn transfer() -> Weight;
    fn mint() -> Weight;
    fn force_mint() -> Weight;
    fn burn() -> Weight;
    fn update_balance() -> Weight;
    fn set_non_mintable() -> Weight;
    fn update_info() -> Weight;
}
Expand description

Weight functions needed for assets.

Required Methods§

source

fn register() -> Weight

source

fn transfer() -> Weight

source

fn mint() -> Weight

source

fn force_mint() -> Weight

source

fn burn() -> Weight

source

fn update_balance() -> Weight

source

fn set_non_mintable() -> Weight

source

fn update_info() -> Weight

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn register() -> Weight

Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Assets AssetOwners (r:1 w:1) Proof Skipped: Assets AssetOwners (max_values: None, max_size: None, mode: Measured) Storage: Permissions Owners (r:2 w:2) Proof Skipped: Permissions Owners (max_values: None, max_size: None, mode: Measured) Storage: Permissions Permissions (r:2 w:1) Proof Skipped: Permissions Permissions (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetInfos (r:0 w:1) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured)

source§

fn mint() -> Weight

Storage: Assets AssetInfos (r:1 w:0) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured) Storage: Permissions Permissions (r:1 w:0) Proof Skipped: Permissions Permissions (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:1 w:1) 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:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn force_mint() -> Weight

Storage: Tokens Accounts (r:1 w:1) 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:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn burn() -> Weight

Storage: Tokens Accounts (r:1 w:1) 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)

source§

fn update_balance() -> Weight

Storage: Tokens Accounts (r:1 w:1) 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:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn set_non_mintable() -> Weight

Storage: Assets AssetOwners (r:1 w:0) Proof Skipped: Assets AssetOwners (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetInfos (r:1 w:1) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured)

source§

fn update_info() -> Weight

Storage: Assets AssetOwners (r:1 w:0) Proof Skipped: Assets AssetOwners (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetInfos (r:1 w:1) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured)

source§

fn transfer() -> Weight

Implementors§

source§

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