referrerpolicy=no-referrer-when-downgrade
pallet_transaction_storage::weights

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn store(l: u32) -> Weight;
    fn renew() -> Weight;
    fn check_proof_max() -> Weight;
}
Expand description

Weight functions needed for pallet_transaction_storage.

Required Methods§

Source

fn store(l: u32) -> Weight

Source

fn renew() -> Weight

Source

fn check_proof_max() -> Weight

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WeightInfo for ()

Source§

fn store(l: u32) -> Weight

Storage: TransactionStorage::ByteFee (r:1 w:0) Proof: TransactionStorage::ByteFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: TransactionStorage::EntryFee (r:1 w:0) Proof: TransactionStorage::EntryFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(355), added: 2830, mode: MaxEncodedLen) Storage: TransactionStorage::BlockTransactions (r:1 w:1) Proof: TransactionStorage::BlockTransactions (max_values: Some(1), max_size: Some(36866), added: 37361, mode: MaxEncodedLen) The range of component l is [1, 8388608].

Source§

fn renew() -> Weight

Storage: TransactionStorage::Transactions (r:1 w:0) Proof: TransactionStorage::Transactions (max_values: None, max_size: Some(36886), added: 39361, mode: MaxEncodedLen) Storage: TransactionStorage::ByteFee (r:1 w:0) Proof: TransactionStorage::ByteFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: TransactionStorage::EntryFee (r:1 w:0) Proof: TransactionStorage::EntryFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(355), added: 2830, mode: MaxEncodedLen) Storage: TransactionStorage::BlockTransactions (r:1 w:1) Proof: TransactionStorage::BlockTransactions (max_values: Some(1), max_size: Some(36866), added: 37361, mode: MaxEncodedLen)

Source§

fn check_proof_max() -> Weight

Storage: TransactionStorage::ProofChecked (r:1 w:1) Proof: TransactionStorage::ProofChecked (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: TransactionStorage::StoragePeriod (r:1 w:0) Proof: TransactionStorage::StoragePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: TransactionStorage::ChunkCount (r:1 w:0) Proof: TransactionStorage::ChunkCount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen) Storage: System::ParentHash (r:1 w:0) Proof: System::ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: TransactionStorage::Transactions (r:1 w:0) Proof: TransactionStorage::Transactions (max_values: None, max_size: Some(36886), added: 39361, mode: MaxEncodedLen)

Implementors§

Source§

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