Files
pezkuwi-sdk/pezbridges/pezsnowbridge/pezpallets/system-frontend/src/backend_weights.rs
T
pezkuwichain 3ddf58cef9 fix: EnsureOrigin try_successful_origin and snowbridge rename
- Fix pezpallet-welati EnsureOrigin implementations (3 fixes)
  - Remove incorrect #[cfg(not(feature = "runtime-benchmarks"))] blocks
  - Affects EnsureSerok, EnsureParlementer, EnsureDiwan

- Fix asset-hub-zagros governance origins macros (2 fixes)
  - Remove non-benchmark try_successful_origin from decl_unit_ensures!
  - Remove non-benchmark try_successful_origin from decl_ensure!

- Rename snowbridge -> pezsnowbridge for consistency

- Update WORKFLOW_PLAN.md with build status and package names
  - Correct package names: pezkuwi-teyrchain-bin, pezstaging-node-cli
  - Mark completed builds: pezkuwi, pezkuwi-teyrchain-bin,
    pezstaging-node-cli, teyrchain-template-node
2025-12-25 01:26:18 +03:00

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))
}
}