mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-06-16 23:11:00 +00:00
v3 into main (#390)
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
use openzeppelin_polkadot_wrappers_proc::openzeppelin_runtime_apis;
|
||||
use openzeppelin_pallet_abstractions_proc::openzeppelin_runtime_apis;
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use crate::constants::currency::{CENTS, EXISTENTIAL_DEPOSIT};
|
||||
#[cfg(not(feature = "async-backing"))]
|
||||
#[cfg(all(not(feature = "async-backing"), not(feature = "tanssi")))]
|
||||
use crate::Aura;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use crate::{
|
||||
configs::xcm_config::RelayLocation,
|
||||
constants::currency::{CENTS, EXISTENTIAL_DEPOSIT},
|
||||
};
|
||||
#[cfg(feature = "async-backing")]
|
||||
use crate::{configs::XcmExecutorConfig, constants::SLOT_DURATION, types::ConsensusHook};
|
||||
use crate::{constants::SLOT_DURATION, types::ConsensusHook};
|
||||
use crate::{
|
||||
constants::VERSION,
|
||||
types::{AccountId, Balance, Block, Executive, Nonce},
|
||||
@@ -16,19 +19,18 @@ use crate::{
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
type ExistentialDeposit = sp_core::ConstU128<EXISTENTIAL_DEPOSIT>;
|
||||
|
||||
#[cfg(not(feature = "tanssi"))]
|
||||
#[openzeppelin_runtime_apis]
|
||||
mod apis {
|
||||
type Runtime = Runtime;
|
||||
type Block = Block;
|
||||
|
||||
#[abstraction]
|
||||
mod assets {
|
||||
type RuntimeCall = RuntimeCall;
|
||||
type TransactionPayment = TransactionPayment;
|
||||
type Balance = Balance;
|
||||
}
|
||||
|
||||
#[abstraction]
|
||||
mod consensus {
|
||||
type SessionKeys = SessionKeys;
|
||||
#[cfg(not(feature = "async-backing"))]
|
||||
@@ -39,7 +41,6 @@ mod apis {
|
||||
type ConsensusHook = ConsensusHook;
|
||||
}
|
||||
|
||||
#[abstraction]
|
||||
mod system {
|
||||
type Executive = Executive;
|
||||
type System = System;
|
||||
@@ -51,7 +52,54 @@ mod apis {
|
||||
type RuntimeBlockWeights = RuntimeBlockWeights;
|
||||
}
|
||||
|
||||
#[abstraction]
|
||||
mod benchmarks {
|
||||
type AllPalletsWithSystem = AllPalletsWithSystem;
|
||||
type Assets = Assets;
|
||||
type AssetManager = AssetManager;
|
||||
type AssetType = AssetType;
|
||||
type RuntimeOrigin = RuntimeOrigin;
|
||||
type RelayLocation = RelayLocation;
|
||||
type ParachainSystem = ParachainSystem;
|
||||
type System = System;
|
||||
type ExistentialDeposit = ExistentialDeposit;
|
||||
type AssetId = AssetId;
|
||||
type XCMConfig = XcmExecutorConfig;
|
||||
type AccountId = AccountId;
|
||||
type Cents = CENTS;
|
||||
type FeeAssetId = FeeAssetId;
|
||||
type TransactionByteFee = TransactionByteFee;
|
||||
type Address = Address;
|
||||
type Balances = Balances;
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "tanssi")]
|
||||
#[openzeppelin_runtime_apis]
|
||||
mod apis {
|
||||
type Runtime = Runtime;
|
||||
type Block = Block;
|
||||
|
||||
mod assets {
|
||||
type RuntimeCall = RuntimeCall;
|
||||
type TransactionPayment = TransactionPayment;
|
||||
type Balance = Balance;
|
||||
}
|
||||
|
||||
mod tanssi {
|
||||
type SessionKeys = SessionKeys;
|
||||
}
|
||||
|
||||
mod system {
|
||||
type Executive = Executive;
|
||||
type System = System;
|
||||
type ParachainSystem = ParachainSystem;
|
||||
type RuntimeVersion = VERSION;
|
||||
type AccountId = AccountId;
|
||||
type Nonce = Nonce;
|
||||
type RuntimeGenesisConfig = RuntimeGenesisConfig;
|
||||
type RuntimeBlockWeights = RuntimeBlockWeights;
|
||||
}
|
||||
|
||||
mod benchmarks {
|
||||
type AllPalletsWithSystem = AllPalletsWithSystem;
|
||||
type Assets = Assets;
|
||||
|
||||
Reference in New Issue
Block a user