90fd044766
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs) - pallet/ directories → pezpallet/ (4 locations) - Fixed pezpallet.rs self-include recursion bug - Fixed sc-chain-spec hardcoded crate name in derive macro - Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API) - Added BizinikiwiConfig type alias for zombienet tests - Deleted obsolete session state files Verified: pezsnowbridge-pezpallet-*, pezpallet-staking, pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
43 lines
1.4 KiB
Rust
43 lines
1.4 KiB
Rust
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
|
//! XCM Execution weights for invoking the backend implementation
|
|
|
|
use pezframe_support::weights::{constants::RocksDbWeight, Weight};
|
|
|
|
/// XCM Execution weights for invoking the backend implementation
|
|
pub trait BackendWeightInfo {
|
|
/// Execution weight for remote xcm that dispatches `EthereumSystemCall::RegisterToken`
|
|
/// using `Transact`.
|
|
fn transact_register_token() -> Weight;
|
|
fn transact_add_tip() -> Weight;
|
|
fn do_process_message() -> Weight;
|
|
fn commit_single() -> Weight;
|
|
fn submit_delivery_receipt() -> Weight;
|
|
}
|
|
|
|
impl BackendWeightInfo for () {
|
|
fn transact_register_token() -> Weight {
|
|
Weight::from_parts(100_000_000, 10000)
|
|
}
|
|
fn transact_add_tip() -> Weight {
|
|
Weight::from_parts(100_000_000, 10000)
|
|
}
|
|
fn do_process_message() -> Weight {
|
|
Weight::from_parts(39_000_000, 3485)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
}
|
|
fn commit_single() -> Weight {
|
|
Weight::from_parts(9_000_000, 1586)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
|
|
fn submit_delivery_receipt() -> Weight {
|
|
Weight::from_parts(70_000_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3601))
|
|
.saturating_add(RocksDbWeight::get().reads(2))
|
|
.saturating_add(RocksDbWeight::get().writes(2))
|
|
}
|
|
}
|