mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-21 23:47:56 +00:00
66 lines
2.7 KiB
Rust
66 lines
2.7 KiB
Rust
#[cfg(not(feature = "tanssi"))]
|
|
use openzeppelin_pezpallet_abstractions::ConsensusWeight;
|
|
#[cfg(feature = "tanssi")]
|
|
use openzeppelin_pezpallet_abstractions::TanssiWeight;
|
|
use openzeppelin_pezpallet_abstractions::{
|
|
AssetsWeight, EvmWeight, GovernanceWeight, SystemWeight, XcmWeight,
|
|
};
|
|
|
|
use crate::{
|
|
configs::OpenZeppelinRuntime,
|
|
weights::{self, RocksDbWeight},
|
|
Runtime,
|
|
};
|
|
|
|
impl SystemWeight for OpenZeppelinRuntime {
|
|
type Balances = weights::pezpallet_balances::WeightInfo<Runtime>;
|
|
type DbWeight = RocksDbWeight;
|
|
type Multisig = weights::pezpallet_multisig::WeightInfo<Runtime>;
|
|
type ParachainSystem = weights::pezcumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
|
|
type Preimage = weights::pezpallet_preimage::WeightInfo<Runtime>;
|
|
type Proxy = weights::pezpallet_proxy::WeightInfo<Runtime>;
|
|
type Scheduler = weights::pezpallet_scheduler::WeightInfo<Runtime>;
|
|
type Timestamp = weights::pezpallet_timestamp::WeightInfo<Runtime>;
|
|
type Utility = weights::pezpallet_utility::WeightInfo<Runtime>;
|
|
}
|
|
|
|
#[cfg(not(feature = "tanssi"))]
|
|
impl ConsensusWeight for OpenZeppelinRuntime {
|
|
type CollatorSelection = weights::pezpallet_collator_selection::WeightInfo<Runtime>;
|
|
type Session = weights::pezpallet_session::WeightInfo<Runtime>;
|
|
}
|
|
|
|
impl AssetsWeight for OpenZeppelinRuntime {
|
|
type AssetManager = weights::pezpallet_asset_manager::WeightInfo<Runtime>;
|
|
type Assets = weights::pezpallet_assets::WeightInfo<Runtime>;
|
|
// TODO: fix weight
|
|
type OracleMembership = ();
|
|
type OrmlOracle = (); // TODO: fix weight
|
|
}
|
|
|
|
impl GovernanceWeight for OpenZeppelinRuntime {
|
|
type ConvictionVoting = weights::pezpallet_conviction_voting::WeightInfo<Runtime>;
|
|
type Referenda = weights::pezpallet_referenda::WeightInfo<Runtime>;
|
|
type Sudo = weights::pezpallet_sudo::WeightInfo<Runtime>;
|
|
type Treasury = weights::pezpallet_treasury::WeightInfo<Runtime>;
|
|
type Whitelist = weights::pezpallet_whitelist::WeightInfo<Runtime>;
|
|
}
|
|
|
|
impl XcmWeight for OpenZeppelinRuntime {
|
|
type MessageQueue = weights::pezpallet_message_queue::WeightInfo<Runtime>;
|
|
type Xcm = weights::pezpallet_xcm::WeightInfo<Runtime>;
|
|
type XcmTransactor = weights::pezpallet_xcm_transactor::WeightInfo<Runtime>;
|
|
type XcmWeightTrader = weights::pezpallet_xcm_weight_trader::WeightInfo<Runtime>;
|
|
type XcmpQueue = weights::pezcumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
|
|
}
|
|
|
|
impl EvmWeight for OpenZeppelinRuntime {
|
|
type Evm = weights::pezpallet_evm::WeightInfo<Runtime>;
|
|
}
|
|
|
|
#[cfg(feature = "tanssi")]
|
|
impl TanssiWeight for OpenZeppelinRuntime {
|
|
type AuthorInherent = pezpallet_author_inherent::weights::BizinikiwiWeight<Runtime>;
|
|
type AuthoritiesNoting = pezpallet_cc_authorities_noting::weights::BizinikiwiWeight<Runtime>;
|
|
}
|