mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
* Replace 'Module' with 'Pallet'. * "Update Substrate" * fix babe usage * fix benchmark Co-authored-by: parity-processbot <> Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
Generated
+145
-147
File diff suppressed because it is too large
Load Diff
@@ -354,7 +354,7 @@ impl pallet_message_lane::Config for Runtime {
|
||||
type LaneMessageVerifier = crate::rialto_messages::ToRialtoMessageVerifier;
|
||||
type MessageDeliveryAndDispatchPayment = pallet_message_lane::instant_payments::InstantCurrencyPayments<
|
||||
Runtime,
|
||||
pallet_balances::Module<Runtime>,
|
||||
pallet_balances::Pallet<Runtime>,
|
||||
GetDeliveryConfirmationTransactionFee,
|
||||
RootAccountForPayments,
|
||||
>;
|
||||
@@ -369,20 +369,20 @@ construct_runtime!(
|
||||
NodeBlock = opaque::Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
BridgeRialto: pallet_substrate_bridge::{Module, Call, Storage, Config<T>},
|
||||
BridgeRialtoMessageLane: pallet_message_lane::{Module, Call, Storage, Event<T>},
|
||||
BridgeCallDispatch: pallet_bridge_call_dispatch::{Module, Event<T>},
|
||||
BridgeFinalityVerifier: pallet_finality_verifier::{Module, Call},
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage},
|
||||
Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent},
|
||||
Aura: pallet_aura::{Module, Config<T>},
|
||||
Grandpa: pallet_grandpa::{Module, Call, Storage, Config, Event},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Module, Storage},
|
||||
Sudo: pallet_sudo::{Module, Call, Config<T>, Storage, Event<T>},
|
||||
Session: pallet_session::{Module, Call, Storage, Event, Config<T>},
|
||||
ShiftSessionManager: pallet_shift_session_manager::{Module},
|
||||
BridgeRialto: pallet_substrate_bridge::{Pallet, Call, Storage, Config<T>},
|
||||
BridgeRialtoMessageLane: pallet_message_lane::{Pallet, Call, Storage, Event<T>},
|
||||
BridgeCallDispatch: pallet_bridge_call_dispatch::{Pallet, Event<T>},
|
||||
BridgeFinalityVerifier: pallet_finality_verifier::{Pallet, Call},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Call, Storage},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Aura: pallet_aura::{Pallet, Config<T>},
|
||||
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
||||
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
||||
ShiftSessionManager: pallet_shift_session_manager::{Pallet},
|
||||
}
|
||||
);
|
||||
|
||||
@@ -414,7 +414,7 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signatu
|
||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Call, SignedExtra>;
|
||||
/// Executive: handles dispatch to the various modules.
|
||||
pub type Executive =
|
||||
frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllModules>;
|
||||
frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllPallets>;
|
||||
|
||||
impl_runtime_apis! {
|
||||
impl sp_api::Core<Block> for Runtime {
|
||||
|
||||
@@ -276,7 +276,7 @@ impl bp_currency_exchange::DepositInto for DepositInto {
|
||||
fn deposit_into(recipient: Self::Recipient, amount: Self::Amount) -> bp_currency_exchange::Result<()> {
|
||||
// let balances module make all checks for us (it won't allow depositing lower than existential
|
||||
// deposit, balance overflow, ...)
|
||||
let deposited = <pallet_balances::Module<Runtime> as Currency<AccountId>>::deposit_creating(&recipient, amount);
|
||||
let deposited = <pallet_balances::Pallet<Runtime> as Currency<AccountId>>::deposit_creating(&recipient, amount);
|
||||
|
||||
// I'm dropping deposited here explicitly to illustrate the fact that it'll update `TotalIssuance`
|
||||
// on drop
|
||||
@@ -461,7 +461,7 @@ impl pallet_message_lane::Config for Runtime {
|
||||
type LaneMessageVerifier = crate::millau_messages::ToMillauMessageVerifier;
|
||||
type MessageDeliveryAndDispatchPayment = pallet_message_lane::instant_payments::InstantCurrencyPayments<
|
||||
Runtime,
|
||||
pallet_balances::Module<Runtime>,
|
||||
pallet_balances::Pallet<Runtime>,
|
||||
GetDeliveryConfirmationTransactionFee,
|
||||
RootAccountForPayments,
|
||||
>;
|
||||
@@ -476,24 +476,24 @@ construct_runtime!(
|
||||
NodeBlock = opaque::Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
BridgeRialtoPoA: pallet_bridge_eth_poa::<Instance1>::{Module, Call, Config, Storage, ValidateUnsigned},
|
||||
BridgeKovan: pallet_bridge_eth_poa::<Instance2>::{Module, Call, Config, Storage, ValidateUnsigned},
|
||||
BridgeRialtoCurrencyExchange: pallet_bridge_currency_exchange::<Instance1>::{Module, Call},
|
||||
BridgeKovanCurrencyExchange: pallet_bridge_currency_exchange::<Instance2>::{Module, Call},
|
||||
BridgeMillau: pallet_substrate_bridge::{Module, Call, Storage, Config<T>},
|
||||
BridgeFinalityVerifier: pallet_finality_verifier::{Module, Call},
|
||||
BridgeCallDispatch: pallet_bridge_call_dispatch::{Module, Event<T>},
|
||||
BridgeMillauMessageLane: pallet_message_lane::{Module, Call, Storage, Event<T>},
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage},
|
||||
Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent},
|
||||
Aura: pallet_aura::{Module, Config<T>},
|
||||
Grandpa: pallet_grandpa::{Module, Call, Storage, Config, Event},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Module, Storage},
|
||||
Sudo: pallet_sudo::{Module, Call, Config<T>, Storage, Event<T>},
|
||||
Session: pallet_session::{Module, Call, Storage, Event, Config<T>},
|
||||
ShiftSessionManager: pallet_shift_session_manager::{Module},
|
||||
BridgeRialtoPoA: pallet_bridge_eth_poa::<Instance1>::{Pallet, Call, Config, Storage, ValidateUnsigned},
|
||||
BridgeKovan: pallet_bridge_eth_poa::<Instance2>::{Pallet, Call, Config, Storage, ValidateUnsigned},
|
||||
BridgeRialtoCurrencyExchange: pallet_bridge_currency_exchange::<Instance1>::{Pallet, Call},
|
||||
BridgeKovanCurrencyExchange: pallet_bridge_currency_exchange::<Instance2>::{Pallet, Call},
|
||||
BridgeMillau: pallet_substrate_bridge::{Pallet, Call, Storage, Config<T>},
|
||||
BridgeFinalityVerifier: pallet_finality_verifier::{Pallet, Call},
|
||||
BridgeCallDispatch: pallet_bridge_call_dispatch::{Pallet, Event<T>},
|
||||
BridgeMillauMessageLane: pallet_message_lane::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Call, Storage},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Aura: pallet_aura::{Pallet, Config<T>},
|
||||
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
||||
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
||||
ShiftSessionManager: pallet_shift_session_manager::{Pallet},
|
||||
}
|
||||
);
|
||||
|
||||
@@ -525,7 +525,7 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signatu
|
||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Call, SignedExtra>;
|
||||
/// Executive: handles dispatch to the various modules.
|
||||
pub type Executive =
|
||||
frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllModules>;
|
||||
frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllPallets>;
|
||||
|
||||
impl_runtime_apis! {
|
||||
impl sp_api::Core<Block> for Runtime {
|
||||
@@ -854,11 +854,11 @@ impl_runtime_apis! {
|
||||
}
|
||||
|
||||
fn account_balance(account: &Self::AccountId) -> Self::OutboundMessageFee {
|
||||
pallet_balances::Module::<Runtime>::free_balance(account)
|
||||
pallet_balances::Pallet::<Runtime>::free_balance(account)
|
||||
}
|
||||
|
||||
fn endow_account(account: &Self::AccountId) {
|
||||
pallet_balances::Module::<Runtime>::make_free_balance_be(
|
||||
pallet_balances::Pallet::<Runtime>::make_free_balance_be(
|
||||
account,
|
||||
Balance::MAX / 100,
|
||||
);
|
||||
@@ -1037,7 +1037,7 @@ mod tests {
|
||||
ext.execute_with(|| {
|
||||
// initially issuance is zero
|
||||
assert_eq!(
|
||||
<pallet_balances::Module<Runtime> as Currency<AccountId>>::total_issuance(),
|
||||
<pallet_balances::Pallet<Runtime> as Currency<AccountId>>::total_issuance(),
|
||||
0,
|
||||
);
|
||||
|
||||
@@ -1045,14 +1045,14 @@ mod tests {
|
||||
let account: AccountId = [1u8; 32].into();
|
||||
let initial_amount = ExistentialDeposit::get();
|
||||
let deposited =
|
||||
<pallet_balances::Module<Runtime> as Currency<AccountId>>::deposit_creating(&account, initial_amount);
|
||||
<pallet_balances::Pallet<Runtime> as Currency<AccountId>>::deposit_creating(&account, initial_amount);
|
||||
drop(deposited);
|
||||
assert_eq!(
|
||||
<pallet_balances::Module<Runtime> as Currency<AccountId>>::total_issuance(),
|
||||
<pallet_balances::Pallet<Runtime> as Currency<AccountId>>::total_issuance(),
|
||||
initial_amount,
|
||||
);
|
||||
assert_eq!(
|
||||
<pallet_balances::Module<Runtime> as Currency<AccountId>>::free_balance(&account),
|
||||
<pallet_balances::Pallet<Runtime> as Currency<AccountId>>::free_balance(&account),
|
||||
initial_amount,
|
||||
);
|
||||
|
||||
@@ -1061,7 +1061,7 @@ mod tests {
|
||||
|
||||
// check that total issuance has changed by `run_deposit_into_test`
|
||||
assert_eq!(
|
||||
<pallet_balances::Module<Runtime> as Currency<AccountId>>::total_issuance(),
|
||||
<pallet_balances::Pallet<Runtime> as Currency<AccountId>>::total_issuance(),
|
||||
initial_amount + total_issuance_change,
|
||||
);
|
||||
});
|
||||
@@ -1115,7 +1115,7 @@ mod tests {
|
||||
fn deposit_into_existing_account_works() {
|
||||
run_deposit_into_test(|existing_account| {
|
||||
let initial_amount =
|
||||
<pallet_balances::Module<Runtime> as Currency<AccountId>>::free_balance(&existing_account);
|
||||
<pallet_balances::Pallet<Runtime> as Currency<AccountId>>::free_balance(&existing_account);
|
||||
let additional_amount = 10_000;
|
||||
<Runtime as pallet_bridge_currency_exchange::Config<KovanCurrencyExchange>>::DepositInto::deposit_into(
|
||||
existing_account.clone(),
|
||||
@@ -1123,7 +1123,7 @@ mod tests {
|
||||
)
|
||||
.unwrap();
|
||||
assert_eq!(
|
||||
<pallet_balances::Module<Runtime> as Currency<AccountId>>::free_balance(&existing_account),
|
||||
<pallet_balances::Pallet<Runtime> as Currency<AccountId>>::free_balance(&existing_account),
|
||||
initial_amount + additional_amount,
|
||||
);
|
||||
additional_amount
|
||||
@@ -1142,7 +1142,7 @@ mod tests {
|
||||
)
|
||||
.unwrap();
|
||||
assert_eq!(
|
||||
<pallet_balances::Module<Runtime> as Currency<AccountId>>::free_balance(&new_account),
|
||||
<pallet_balances::Pallet<Runtime> as Currency<AccountId>>::free_balance(&new_account),
|
||||
initial_amount + additional_amount,
|
||||
);
|
||||
additional_amount
|
||||
|
||||
@@ -451,8 +451,8 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
CallDispatch: call_dispatch::{Module, Call, Event<T>},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
CallDispatch: call_dispatch::{Pallet, Call, Event<T>},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -326,8 +326,8 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Exchange: pallet_bridge_currency_exchange::{Module},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Exchange: pallet_bridge_currency_exchange::{Pallet},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,8 @@ frame_support::construct_runtime! {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Ethereum: pallet_ethereum::{Module, Call},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Ethereum: pallet_ethereum::{Pallet, Call},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -215,8 +215,8 @@ mod tests {
|
||||
fn next_block() {
|
||||
use frame_support::traits::OnInitialize;
|
||||
|
||||
let current_number = frame_system::Module::<TestRuntime>::block_number();
|
||||
frame_system::Module::<TestRuntime>::set_block_number(current_number + 1);
|
||||
let current_number = frame_system::Pallet::<TestRuntime>::block_number();
|
||||
frame_system::Pallet::<TestRuntime>::set_block_number(current_number + 1);
|
||||
let _ = Module::<TestRuntime>::on_initialize(current_number);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,9 +41,9 @@ construct_runtime! {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Bridge: pallet_substrate_bridge::{Module},
|
||||
FinalityVerifier: finality_verifier::{Module},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Bridge: pallet_substrate_bridge::{Pallet},
|
||||
FinalityVerifier: finality_verifier::{Pallet},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ where
|
||||
|
||||
fn initialize(relayer_fund_account: &T::AccountId) -> usize {
|
||||
assert!(
|
||||
frame_system::Module::<T>::account_exists(relayer_fund_account),
|
||||
frame_system::Pallet::<T>::account_exists(relayer_fund_account),
|
||||
"The relayer fund account ({:?}) must exist for the message lanes pallet to work correctly.",
|
||||
relayer_fund_account,
|
||||
);
|
||||
@@ -189,7 +189,7 @@ mod tests {
|
||||
use crate::mock::{run_test, AccountId as TestAccountId, Balance as TestBalance, TestRuntime};
|
||||
use bp_message_lane::source_chain::RelayerRewards;
|
||||
|
||||
type Balances = pallet_balances::Module<TestRuntime>;
|
||||
type Balances = pallet_balances::Pallet<TestRuntime>;
|
||||
|
||||
const RELAYER_1: TestAccountId = 1;
|
||||
const RELAYER_2: TestAccountId = 2;
|
||||
|
||||
@@ -64,9 +64,9 @@ frame_support::construct_runtime! {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Event<T>},
|
||||
MessageLane: pallet_message_lane::{Module, Call, Event<T>},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Event<T>},
|
||||
MessageLane: pallet_message_lane::{Pallet, Call, Event<T>},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ impl pallet_balances::Config for TestRuntime {
|
||||
type DustRemoval = ();
|
||||
type Event = Event;
|
||||
type ExistentialDeposit = ExistentialDeposit;
|
||||
type AccountStore = frame_system::Module<TestRuntime>;
|
||||
type AccountStore = frame_system::Pallet<TestRuntime>;
|
||||
type WeightInfo = ();
|
||||
}
|
||||
|
||||
|
||||
@@ -110,8 +110,8 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Session: pallet_session::{Module},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Session: pallet_session::{Pallet},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,7 +193,7 @@ mod tests {
|
||||
|
||||
BasicExternalities::execute_with_storage(&mut t, || {
|
||||
for (ref k, ..) in &keys {
|
||||
frame_system::Module::<TestRuntime>::inc_providers(k);
|
||||
frame_system::Pallet::<TestRuntime>::inc_providers(k);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -47,8 +47,8 @@ frame_support::construct_runtime! {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Substrate: pallet_substrate::{Module, Call},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Substrate: pallet_substrate::{Pallet, Call},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ decl_module! {
|
||||
let n = AuctionCounter::mutate(|n| { *n += 1; *n });
|
||||
|
||||
// Set the information.
|
||||
let ending = frame_system::Module::<T>::block_number().saturating_add(duration);
|
||||
let ending = frame_system::Pallet::<T>::block_number().saturating_add(duration);
|
||||
AuctionInfo::<T>::put((lease_period_index, ending));
|
||||
|
||||
Self::deposit_event(RawEvent::AuctionStarted(n, lease_period_index, ending))
|
||||
@@ -313,7 +313,7 @@ impl<T: Config> Module<T> {
|
||||
let late_end = early_end.saturating_add(T::EndingPeriod::get());
|
||||
// We need to check that the auction isn't in the period where it has definitely ended, but yeah we keep the
|
||||
// info around because we haven't yet decided *exactly* when in the `EndingPeriod` that it ended.
|
||||
let now = frame_system::Module::<T>::block_number();
|
||||
let now = frame_system::Pallet::<T>::block_number();
|
||||
now < late_end
|
||||
})
|
||||
}
|
||||
@@ -334,7 +334,7 @@ impl<T: Config> Module<T> {
|
||||
let n = AuctionCounter::mutate(|n| { *n += 1; *n });
|
||||
|
||||
// Set the information.
|
||||
let ending = frame_system::Module::<T>::block_number().saturating_add(duration);
|
||||
let ending = frame_system::Pallet::<T>::block_number().saturating_add(duration);
|
||||
AuctionInfo::<T>::put((lease_period_index, ending));
|
||||
|
||||
Self::deposit_event(RawEvent::AuctionStarted(n, lease_period_index, ending));
|
||||
@@ -365,7 +365,7 @@ impl<T: Config> Module<T> {
|
||||
|
||||
// We need to check that the auction isn't in the period where it has definitely ended, but yeah we keep the
|
||||
// info around because we haven't yet decided *exactly* when in the `EndingPeriod` that it ended.
|
||||
let now = frame_system::Module::<T>::block_number();
|
||||
let now = frame_system::Pallet::<T>::block_number();
|
||||
ensure!(now < late_end, Error::<T>::AuctionEnded);
|
||||
|
||||
// Our range.
|
||||
@@ -373,7 +373,7 @@ impl<T: Config> Module<T> {
|
||||
// Range as an array index.
|
||||
let range_index = range as u8 as usize;
|
||||
// The offset into the auction ending set.
|
||||
let offset = Self::is_ending(frame_system::Module::<T>::block_number()).unwrap_or_default();
|
||||
let offset = Self::is_ending(frame_system::Pallet::<T>::block_number()).unwrap_or_default();
|
||||
// The current winning ranges.
|
||||
let mut current_winning = Winning::<T>::get(offset)
|
||||
.or_else(|| offset.checked_sub(&One::one()).and_then(Winning::<T>::get))
|
||||
@@ -601,9 +601,9 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Auctions: auctions::{Module, Call, Storage, Event<T>},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Auctions: auctions::{Pallet, Call, Storage, Event<T>},
|
||||
}
|
||||
);
|
||||
|
||||
@@ -737,7 +737,7 @@ mod tests {
|
||||
if let Some((output, known_since)) = &*p.borrow() {
|
||||
(*output, *known_since)
|
||||
} else {
|
||||
(H256::zero(), frame_system::Module::<Test>::block_number())
|
||||
(H256::zero(), frame_system::Pallet::<Test>::block_number())
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -1323,7 +1323,7 @@ mod benchmarking {
|
||||
use frame_benchmarking::{benchmarks, whitelisted_caller, account, impl_benchmark_test_suite};
|
||||
|
||||
fn assert_last_event<T: Config>(generic_event: <T as Config>::Event) {
|
||||
let events = frame_system::Module::<T>::events();
|
||||
let events = frame_system::Pallet::<T>::events();
|
||||
let system_event: <T as frame_system::Config>::Event = generic_event.into();
|
||||
// compare to the last event record
|
||||
let frame_system::EventRecord { event, .. } = &events[events.len() - 1];
|
||||
@@ -1386,7 +1386,7 @@ mod benchmarking {
|
||||
// Create a new auction
|
||||
let duration: T::BlockNumber = 99u32.into();
|
||||
let lease_period_index = LeasePeriodOf::<T>::zero();
|
||||
let now = frame_system::Module::<T>::block_number();
|
||||
let now = frame_system::Pallet::<T>::block_number();
|
||||
Auctions::<T>::new_auction(RawOrigin::Root.into(), duration, lease_period_index)?;
|
||||
let auction_index = AuctionCounter::get();
|
||||
|
||||
@@ -1425,14 +1425,14 @@ mod benchmarking {
|
||||
}
|
||||
|
||||
// Move ahead to the block we want to initialize
|
||||
frame_system::Module::<T>::set_block_number(duration + now + T::EndingPeriod::get());
|
||||
frame_system::Pallet::<T>::set_block_number(duration + now + T::EndingPeriod::get());
|
||||
|
||||
// Trigger epoch change for new random number value:
|
||||
{
|
||||
pallet_babe::Module::<T>::on_initialize(duration + now + T::EndingPeriod::get());
|
||||
let authorities = pallet_babe::Module::<T>::authorities();
|
||||
pallet_babe::Pallet::<T>::on_initialize(duration + now + T::EndingPeriod::get());
|
||||
let authorities = pallet_babe::Pallet::<T>::authorities();
|
||||
let next_authorities = authorities.clone();
|
||||
pallet_babe::Module::<T>::enact_epoch_change(authorities, next_authorities);
|
||||
pallet_babe::Pallet::<T>::enact_epoch_change(authorities, next_authorities);
|
||||
}
|
||||
|
||||
}: {
|
||||
|
||||
@@ -624,10 +624,10 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Vesting: pallet_vesting::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Claims: claims::{Module, Call, Storage, Config<T>, Event<T>, ValidateUnsigned},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Vesting: pallet_vesting::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Claims: claims::{Pallet, Call, Storage, Config<T>, Event<T>, ValidateUnsigned},
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -312,7 +312,7 @@ decl_module! {
|
||||
ensure!(first_slot <= last_slot, Error::<T>::LastSlotBeforeFirstSlot);
|
||||
let last_slot_limit = first_slot.checked_add(&3u32.into()).ok_or(Error::<T>::FirstSlotTooFarInFuture)?;
|
||||
ensure!(last_slot <= last_slot_limit, Error::<T>::LastSlotTooFarInFuture);
|
||||
ensure!(end > <frame_system::Module<T>>::block_number(), Error::<T>::CannotEndInPast);
|
||||
ensure!(end > <frame_system::Pallet<T>>::block_number(), Error::<T>::CannotEndInPast);
|
||||
|
||||
// There should not be an existing fund.
|
||||
ensure!(!Funds::<T>::contains_key(index), Error::<T>::FundNotEnded);
|
||||
@@ -363,7 +363,7 @@ decl_module! {
|
||||
ensure!(fund.raised <= fund.cap, Error::<T>::CapExceeded);
|
||||
|
||||
// Make sure crowdloan has not ended
|
||||
let now = <frame_system::Module<T>>::block_number();
|
||||
let now = <frame_system::Pallet<T>>::block_number();
|
||||
ensure!(now < fund.end, Error::<T>::ContributionPeriodOver);
|
||||
|
||||
let old_balance = Self::contribution_get(fund.trie_index, &who);
|
||||
@@ -437,7 +437,7 @@ decl_module! {
|
||||
let mut fund = Self::funds(index).ok_or(Error::<T>::InvalidParaId)?;
|
||||
|
||||
// `fund.end` can represent the end of a failed crowdsale or the beginning of retirement
|
||||
let now = frame_system::Module::<T>::block_number();
|
||||
let now = frame_system::Pallet::<T>::block_number();
|
||||
let current_lease_period = T::Auctioneer::lease_period_index();
|
||||
ensure!(now >= fund.end || current_lease_period > fund.last_slot, Error::<T>::FundNotEnded);
|
||||
|
||||
@@ -471,7 +471,7 @@ decl_module! {
|
||||
ensure_signed(origin)?;
|
||||
|
||||
let fund = Self::funds(index).ok_or(Error::<T>::InvalidParaId)?;
|
||||
let now = frame_system::Module::<T>::block_number();
|
||||
let now = frame_system::Pallet::<T>::block_number();
|
||||
let dissolution = fund.end.saturating_add(T::RetirementPeriod::get());
|
||||
ensure!((fund.retiring && now >= dissolution) || fund.raised.is_zero(), Error::<T>::NotReadyToDissolve);
|
||||
|
||||
@@ -626,9 +626,9 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Crowdloan: crowdloan::{Module, Call, Storage, Event<T>},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>},
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1256,7 +1256,7 @@ mod benchmarking {
|
||||
use frame_benchmarking::{benchmarks, whitelisted_caller, account, impl_benchmark_test_suite};
|
||||
|
||||
fn assert_last_event<T: Config>(generic_event: <T as Config>::Event) {
|
||||
let events = frame_system::Module::<T>::events();
|
||||
let events = frame_system::Pallet::<T>::events();
|
||||
let system_event: <T as frame_system::Config>::Event = generic_event.into();
|
||||
// compare to the last event record
|
||||
let frame_system::EventRecord { event, .. } = &events[events.len() - 1];
|
||||
@@ -1350,7 +1350,7 @@ mod benchmarking {
|
||||
let caller: T::AccountId = whitelisted_caller();
|
||||
let contributor = account("contributor", 0, 0);
|
||||
contribute_fund::<T>(&contributor, fund_index);
|
||||
frame_system::Module::<T>::set_block_number(200u32.into());
|
||||
frame_system::Pallet::<T>::set_block_number(200u32.into());
|
||||
}: _(RawOrigin::Signed(caller), contributor.clone(), fund_index)
|
||||
verify {
|
||||
assert_last_event::<T>(RawEvent::Withdrew(contributor, fund_index, T::MinContribution::get()).into());
|
||||
@@ -1370,7 +1370,7 @@ mod benchmarking {
|
||||
contribute_fund::<T>(&account("last_contributor", 0, 0), fund_index);
|
||||
|
||||
let caller: T::AccountId = whitelisted_caller();
|
||||
frame_system::Module::<T>::set_block_number(T::BlockNumber::max_value());
|
||||
frame_system::Pallet::<T>::set_block_number(T::BlockNumber::max_value());
|
||||
Crowdloan::<T>::withdraw(
|
||||
RawOrigin::Signed(caller.clone()).into(),
|
||||
account("last_contributor", 0, 0),
|
||||
@@ -1404,7 +1404,7 @@ mod benchmarking {
|
||||
|
||||
let lease_period_index = T::Auctioneer::lease_period_index();
|
||||
let duration = end_block
|
||||
.checked_sub(&frame_system::Module::<T>::block_number())
|
||||
.checked_sub(&frame_system::Pallet::<T>::block_number())
|
||||
.ok_or("duration of auction less than zero")?;
|
||||
T::Auctioneer::new_auction(duration, lease_period_index)?;
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ where
|
||||
fn on_nonzero_unbalanced(amount: NegativeImbalance<R>) {
|
||||
let numeric_amount = amount.peek();
|
||||
let author = <pallet_authorship::Module<R>>::author();
|
||||
<pallet_balances::Module<R>>::resolve_creating(&<pallet_authorship::Module<R>>::author(), amount);
|
||||
<frame_system::Module<R>>::deposit_event(pallet_balances::Event::Deposit(author, numeric_amount));
|
||||
<pallet_balances::Pallet<R>>::resolve_creating(&<pallet_authorship::Module<R>>::author(), amount);
|
||||
<frame_system::Pallet<R>>::deposit_event(pallet_balances::Event::Deposit(author, numeric_amount));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,9 +84,9 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Treasury: pallet_treasury::{Module, Call, Storage, Config, Event<T>},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>},
|
||||
}
|
||||
);
|
||||
|
||||
@@ -144,7 +144,7 @@ mod tests {
|
||||
}
|
||||
|
||||
impl pallet_treasury::Config for Test {
|
||||
type Currency = pallet_balances::Module<Test>;
|
||||
type Currency = pallet_balances::Pallet<Test>;
|
||||
type ApproveOrigin = frame_system::EnsureRoot<AccountId>;
|
||||
type RejectOrigin = frame_system::EnsureRoot<AccountId>;
|
||||
type Event = Event;
|
||||
|
||||
@@ -59,19 +59,19 @@ frame_support::construct_runtime!(
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
// System Stuff
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Babe: pallet_babe::{Module, Call, Storage, Config, ValidateUnsigned},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Babe: pallet_babe::{Pallet, Call, Storage, Config, ValidateUnsigned},
|
||||
|
||||
// Parachains Runtime
|
||||
Configuration: configuration::{Module, Call, Storage, Config<T>},
|
||||
Paras: paras::{Module, Origin, Call, Storage, Config<T>},
|
||||
Configuration: configuration::{Pallet, Call, Storage, Config<T>},
|
||||
Paras: paras::{Pallet, Origin, Call, Storage, Config<T>},
|
||||
|
||||
// Para Onboarding Pallets
|
||||
Registrar: paras_registrar::{Module, Call, Storage, Event<T>},
|
||||
Auctions: auctions::{Module, Call, Storage, Event<T>},
|
||||
Crowdloan: crowdloan::{Module, Call, Storage, Event<T>},
|
||||
Slots: slots::{Module, Call, Storage, Event<T>},
|
||||
Registrar: paras_registrar::{Pallet, Call, Storage, Event<T>},
|
||||
Auctions: auctions::{Pallet, Call, Storage, Event<T>},
|
||||
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>},
|
||||
Slots: slots::{Pallet, Call, Storage, Event<T>},
|
||||
}
|
||||
);
|
||||
|
||||
@@ -271,12 +271,12 @@ fn run_to_block(n: u32) {
|
||||
assert!(System::block_number() < n);
|
||||
while System::block_number() < n {
|
||||
let block_number = System::block_number();
|
||||
AllModules::on_finalize(block_number);
|
||||
AllPallets::on_finalize(block_number);
|
||||
System::on_finalize(block_number);
|
||||
System::set_block_number(block_number + 1);
|
||||
System::on_initialize(block_number + 1);
|
||||
maybe_new_session(block_number + 1);
|
||||
AllModules::on_initialize(block_number + 1);
|
||||
AllPallets::on_initialize(block_number + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ pub use pallet_balances::Call as BalancesCall;
|
||||
/// Implementations of some helper traits passed into runtime modules as associated types.
|
||||
pub use impls::ToAuthor;
|
||||
|
||||
pub type NegativeImbalance<T> = <pallet_balances::Module<T> as Currency<<T as frame_system::Config>::AccountId>>::NegativeImbalance;
|
||||
pub type NegativeImbalance<T> = <pallet_balances::Pallet<T> as Currency<<T as frame_system::Config>::AccountId>>::NegativeImbalance;
|
||||
|
||||
/// The sequence of bytes a valid wasm module binary always starts with. Apart from that it's also a
|
||||
/// valid wasm module.
|
||||
@@ -212,7 +212,7 @@ mod multiplier_tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>}
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>}
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ impl<T: frame_system::Config> Registrar for TestRegistrar<T> {
|
||||
}
|
||||
|
||||
fn make_parachain(id: ParaId) -> DispatchResult {
|
||||
OPERATIONS.with(|x| x.borrow_mut().push((id, frame_system::Module::<T>::block_number().saturated_into(), true)));
|
||||
OPERATIONS.with(|x| x.borrow_mut().push((id, frame_system::Pallet::<T>::block_number().saturated_into(), true)));
|
||||
PARATHREADS.with(|x| {
|
||||
let mut parathreads = x.borrow_mut();
|
||||
match parathreads.binary_search(&id) {
|
||||
@@ -119,7 +119,7 @@ impl<T: frame_system::Config> Registrar for TestRegistrar<T> {
|
||||
Ok(())
|
||||
}
|
||||
fn make_parathread(id: ParaId) -> DispatchResult {
|
||||
OPERATIONS.with(|x| x.borrow_mut().push((id, frame_system::Module::<T>::block_number().saturated_into(), false)));
|
||||
OPERATIONS.with(|x| x.borrow_mut().push((id, frame_system::Pallet::<T>::block_number().saturated_into(), false)));
|
||||
PARACHAINS.with(|x| {
|
||||
let mut parachains = x.borrow_mut();
|
||||
match parachains.binary_search(&id) {
|
||||
|
||||
@@ -427,10 +427,10 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Parachains: paras::{Module, Origin, Call, Storage, Config<T>},
|
||||
Registrar: paras_registrar::{Module, Call, Storage, Event<T>},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Parachains: paras::{Pallet, Origin, Call, Storage, Config<T>},
|
||||
Registrar: paras_registrar::{Pallet, Call, Storage, Event<T>},
|
||||
}
|
||||
);
|
||||
|
||||
@@ -853,7 +853,7 @@ mod benchmarking {
|
||||
use frame_benchmarking::{benchmarks, whitelisted_caller};
|
||||
|
||||
fn assert_last_event<T: Config>(generic_event: <T as Config>::Event) {
|
||||
let events = frame_system::Module::<T>::events();
|
||||
let events = frame_system::Pallet::<T>::events();
|
||||
let system_event: <T as frame_system::Config>::Event = generic_event.into();
|
||||
// compare to the last event record
|
||||
let frame_system::EventRecord { event, .. } = &events[events.len() - 1];
|
||||
|
||||
@@ -332,7 +332,7 @@ decl_module! {
|
||||
#[weight = T::DbWeight::get().writes(1)]
|
||||
fn set_unlock_block(origin, unlock_block: T::BlockNumber) {
|
||||
T::ConfigurationOrigin::ensure_origin(origin)?;
|
||||
ensure!(unlock_block > frame_system::Module::<T>::block_number(), Error::<T>::InvalidUnlockBlock);
|
||||
ensure!(unlock_block > frame_system::Pallet::<T>::block_number(), Error::<T>::InvalidUnlockBlock);
|
||||
// Possibly this is worse than having the caller account be the payment account?
|
||||
UnlockBlock::<T>::set(unlock_block);
|
||||
Self::deposit_event(RawEvent::UnlockBlockUpdated(unlock_block));
|
||||
@@ -414,10 +414,10 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Vesting: pallet_vesting::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Purchase: purchase::{Module, Call, Storage, Event<T>},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Vesting: pallet_vesting::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Purchase: purchase::{Pallet, Call, Storage, Event<T>},
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -354,7 +354,7 @@ impl<T: Config> Leaser for Module<T> {
|
||||
}
|
||||
|
||||
fn lease_period_index() -> Self::LeasePeriod {
|
||||
<frame_system::Module<T>>::block_number() / T::LeasePeriod::get()
|
||||
<frame_system::Pallet<T>>::block_number() / T::LeasePeriod::get()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -383,10 +383,10 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Slots: slots::{Module, Call, Storage, Event<T>},
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Slots: slots::{Pallet, Call, Storage, Event<T>},
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Call, Storage},
|
||||
}
|
||||
);
|
||||
|
||||
@@ -667,7 +667,7 @@ mod benchmarking {
|
||||
use crate::slots::Module as Slots;
|
||||
|
||||
fn assert_last_event<T: Config>(generic_event: <T as Config>::Event) {
|
||||
let events = frame_system::Module::<T>::events();
|
||||
let events = frame_system::Pallet::<T>::events();
|
||||
let system_event: <T as frame_system::Config>::Event = generic_event.into();
|
||||
// compare to the last event record
|
||||
let frame_system::EventRecord { event, .. } = &events[events.len() - 1];
|
||||
|
||||
@@ -968,70 +968,70 @@ construct_runtime! {
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
// Basic stuff; balances is uncallable initially.
|
||||
System: frame_system::{Module, Call, Storage, Config, Event<T>} = 0,
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Storage} = 32,
|
||||
System: frame_system::{Pallet, Call, Storage, Config, Event<T>} = 0,
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 32,
|
||||
|
||||
// Must be before session.
|
||||
Babe: pallet_babe::{Module, Call, Storage, Config, ValidateUnsigned} = 1,
|
||||
Babe: pallet_babe::{Pallet, Call, Storage, Config, ValidateUnsigned} = 1,
|
||||
|
||||
Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent} = 2,
|
||||
Indices: pallet_indices::{Module, Call, Storage, Config<T>, Event<T>} = 3,
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>} = 4,
|
||||
TransactionPayment: pallet_transaction_payment::{Module, Storage} = 33,
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 2,
|
||||
Indices: pallet_indices::{Pallet, Call, Storage, Config<T>, Event<T>} = 3,
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 4,
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 33,
|
||||
|
||||
// Consensus support.
|
||||
Authorship: pallet_authorship::{Module, Call, Storage} = 5,
|
||||
Staking: pallet_staking::{Module, Call, Storage, Config<T>, Event<T>, ValidateUnsigned} = 6,
|
||||
Offences: pallet_offences::{Module, Call, Storage, Event} = 7,
|
||||
Historical: session_historical::{Module} = 34,
|
||||
Session: pallet_session::{Module, Call, Storage, Event, Config<T>} = 8,
|
||||
Grandpa: pallet_grandpa::{Module, Call, Storage, Config, Event, ValidateUnsigned} = 10,
|
||||
ImOnline: pallet_im_online::{Module, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 11,
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Module, Call, Config} = 12,
|
||||
Authorship: pallet_authorship::{Pallet, Call, Storage} = 5,
|
||||
Staking: pallet_staking::{Pallet, Call, Storage, Config<T>, Event<T>, ValidateUnsigned} = 6,
|
||||
Offences: pallet_offences::{Pallet, Call, Storage, Event} = 7,
|
||||
Historical: session_historical::{Pallet} = 34,
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 8,
|
||||
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event, ValidateUnsigned} = 10,
|
||||
ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 11,
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Pallet, Call, Config} = 12,
|
||||
|
||||
// Governance stuff; uncallable initially.
|
||||
Democracy: pallet_democracy::{Module, Call, Storage, Config, Event<T>} = 13,
|
||||
Council: pallet_collective::<Instance1>::{Module, Call, Storage, Origin<T>, Event<T>, Config<T>} = 14,
|
||||
TechnicalCommittee: pallet_collective::<Instance2>::{Module, Call, Storage, Origin<T>, Event<T>, Config<T>} = 15,
|
||||
ElectionsPhragmen: pallet_elections_phragmen::{Module, Call, Storage, Event<T>, Config<T>} = 16,
|
||||
TechnicalMembership: pallet_membership::<Instance1>::{Module, Call, Storage, Event<T>, Config<T>} = 17,
|
||||
Treasury: pallet_treasury::{Module, Call, Storage, Config, Event<T>} = 18,
|
||||
Democracy: pallet_democracy::{Pallet, Call, Storage, Config, Event<T>} = 13,
|
||||
Council: pallet_collective::<Instance1>::{Pallet, Call, Storage, Origin<T>, Event<T>, Config<T>} = 14,
|
||||
TechnicalCommittee: pallet_collective::<Instance2>::{Pallet, Call, Storage, Origin<T>, Event<T>, Config<T>} = 15,
|
||||
ElectionsPhragmen: pallet_elections_phragmen::{Pallet, Call, Storage, Event<T>, Config<T>} = 16,
|
||||
TechnicalMembership: pallet_membership::<Instance1>::{Pallet, Call, Storage, Event<T>, Config<T>} = 17,
|
||||
Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>} = 18,
|
||||
|
||||
// Claims. Usable initially.
|
||||
Claims: claims::{Module, Call, Storage, Event<T>, Config<T>, ValidateUnsigned} = 19,
|
||||
Claims: claims::{Pallet, Call, Storage, Event<T>, Config<T>, ValidateUnsigned} = 19,
|
||||
|
||||
// Utility module.
|
||||
Utility: pallet_utility::{Module, Call, Event} = 24,
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 24,
|
||||
|
||||
// Less simple identity module.
|
||||
Identity: pallet_identity::{Module, Call, Storage, Event<T>} = 25,
|
||||
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 25,
|
||||
|
||||
// Society module.
|
||||
Society: pallet_society::{Module, Call, Storage, Event<T>} = 26,
|
||||
Society: pallet_society::{Pallet, Call, Storage, Event<T>} = 26,
|
||||
|
||||
// Social recovery module.
|
||||
Recovery: pallet_recovery::{Module, Call, Storage, Event<T>} = 27,
|
||||
Recovery: pallet_recovery::{Pallet, Call, Storage, Event<T>} = 27,
|
||||
|
||||
// Vesting. Usable initially, but removed once all vesting is finished.
|
||||
Vesting: pallet_vesting::{Module, Call, Storage, Event<T>, Config<T>} = 28,
|
||||
Vesting: pallet_vesting::{Pallet, Call, Storage, Event<T>, Config<T>} = 28,
|
||||
|
||||
// System scheduler.
|
||||
Scheduler: pallet_scheduler::{Module, Call, Storage, Event<T>} = 29,
|
||||
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>} = 29,
|
||||
|
||||
// Proxy module. Late addition.
|
||||
Proxy: pallet_proxy::{Module, Call, Storage, Event<T>} = 30,
|
||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 30,
|
||||
|
||||
// Multisig module. Late addition.
|
||||
Multisig: pallet_multisig::{Module, Call, Storage, Event<T>} = 31,
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 31,
|
||||
|
||||
// Bounties module.
|
||||
Bounties: pallet_bounties::{Module, Call, Storage, Event<T>} = 35,
|
||||
Bounties: pallet_bounties::{Pallet, Call, Storage, Event<T>} = 35,
|
||||
|
||||
// Tips module.
|
||||
Tips: pallet_tips::{Module, Call, Storage, Event<T>} = 36,
|
||||
Tips: pallet_tips::{Pallet, Call, Storage, Event<T>} = 36,
|
||||
|
||||
// Election pallet. Only works with staking, but placed here to maintain indices.
|
||||
ElectionProviderMultiPhase: pallet_election_provider_multi_phase::{Module, Call, Storage, Event<T>, ValidateUnsigned} = 37,
|
||||
ElectionProviderMultiPhase: pallet_election_provider_multi_phase::{Pallet, Call, Storage, Event<T>, ValidateUnsigned} = 37,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1083,7 +1083,7 @@ pub type Executive = frame_executive::Executive<
|
||||
Block,
|
||||
frame_system::ChainContext<Runtime>,
|
||||
Runtime,
|
||||
AllModules,
|
||||
AllPallets,
|
||||
BabeEpochConfigMigrations,
|
||||
>;
|
||||
/// The payload being signed in the transactions.
|
||||
@@ -1350,9 +1350,9 @@ sp_api::impl_runtime_apis! {
|
||||
// Trying to add benchmarks directly to the Session Pallet caused cyclic dependency issues.
|
||||
// To get around that, we separated the Session benchmarks into its own crate, which is why
|
||||
// we need these two lines below.
|
||||
use pallet_session_benchmarking::Module as SessionBench;
|
||||
use pallet_offences_benchmarking::Module as OffencesBench;
|
||||
use frame_system_benchmarking::Module as SystemBench;
|
||||
use pallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pallet_offences_benchmarking::Pallet as OffencesBench;
|
||||
use frame_system_benchmarking::Pallet as SystemBench;
|
||||
|
||||
impl pallet_session_benchmarking::Config for Runtime {}
|
||||
impl pallet_offences_benchmarking::Config for Runtime {}
|
||||
|
||||
@@ -145,7 +145,7 @@ impl<T: Config> Module<T> {
|
||||
|
||||
let inbound = InboundDownwardMessage {
|
||||
msg,
|
||||
sent_at: <frame_system::Module<T>>::block_number(),
|
||||
sent_at: <frame_system::Pallet<T>>::block_number(),
|
||||
};
|
||||
|
||||
// obtain the new link in the MQC and update the head.
|
||||
|
||||
@@ -809,7 +809,7 @@ impl<T: Config> Module<T> {
|
||||
out_hrmp_msgs: Vec<OutboundHrmpMessage<ParaId>>,
|
||||
) -> Weight {
|
||||
let mut weight = 0;
|
||||
let now = <frame_system::Module<T>>::block_number();
|
||||
let now = <frame_system::Pallet<T>>::block_number();
|
||||
|
||||
for out_msg in out_hrmp_msgs {
|
||||
let channel_id = HrmpChannelId {
|
||||
|
||||
@@ -260,7 +260,7 @@ impl<T: Config> Module<T> {
|
||||
let mut last_index = None;
|
||||
|
||||
let signing_context = SigningContext {
|
||||
parent_hash: <frame_system::Module<T>>::parent_hash(),
|
||||
parent_hash: <frame_system::Pallet<T>>::parent_hash(),
|
||||
session_index,
|
||||
};
|
||||
|
||||
@@ -296,7 +296,7 @@ impl<T: Config> Module<T> {
|
||||
}
|
||||
}
|
||||
|
||||
let now = <frame_system::Module<T>>::block_number();
|
||||
let now = <frame_system::Pallet<T>>::block_number();
|
||||
for signed_bitfield in signed_bitfields {
|
||||
for (bit_idx, _)
|
||||
in signed_bitfield.payload().0.iter().enumerate().filter(|(_, is_av)| **is_av)
|
||||
@@ -390,11 +390,11 @@ impl<T: Config> Module<T> {
|
||||
}
|
||||
|
||||
let validators = shared::Module::<T>::active_validator_keys();
|
||||
let parent_hash = <frame_system::Module<T>>::parent_hash();
|
||||
let parent_hash = <frame_system::Pallet<T>>::parent_hash();
|
||||
|
||||
// At the moment we assume (and in fact enforce, below) that the relay-parent is always one
|
||||
// before of the block where we include a candidate (i.e. this code path).
|
||||
let now = <frame_system::Module<T>>::block_number();
|
||||
let now = <frame_system::Pallet<T>>::block_number();
|
||||
let relay_parent_number = now - One::one();
|
||||
let check_cx = CandidateCheckContext::<T>::new(now, relay_parent_number);
|
||||
|
||||
@@ -612,7 +612,7 @@ impl<T: Config> Module<T> {
|
||||
) -> bool {
|
||||
// This function is meant to be called from the runtime APIs against the relay-parent, hence
|
||||
// `relay_parent_number` is equal to `now`.
|
||||
let now = <frame_system::Module<T>>::block_number();
|
||||
let now = <frame_system::Pallet<T>>::block_number();
|
||||
let relay_parent_number = now;
|
||||
let check_cx = CandidateCheckContext::<T>::new(now, relay_parent_number);
|
||||
|
||||
@@ -1133,7 +1133,7 @@ mod tests {
|
||||
}
|
||||
|
||||
fn make_vdata_hash(para_id: ParaId) -> Option<Hash> {
|
||||
let relay_parent_number = <frame_system::Module<Test>>::block_number() - 1;
|
||||
let relay_parent_number = <frame_system::Pallet<Test>>::block_number() - 1;
|
||||
let persisted_validation_data
|
||||
= crate::util::make_persisted_validation_data::<Test>(
|
||||
para_id,
|
||||
|
||||
@@ -100,7 +100,7 @@ decl_module! {
|
||||
ensure!(!<Included>::exists(), Error::<T>::TooManyInclusionInherents);
|
||||
|
||||
// Check that the submitted parent header indeed corresponds to the previous block hash.
|
||||
let parent_hash = <frame_system::Module<T>>::parent_hash();
|
||||
let parent_hash = <frame_system::Pallet<T>>::parent_hash();
|
||||
ensure!(
|
||||
parent_header.hash().as_ref() == parent_hash.as_ref(),
|
||||
Error::<T>::InvalidParentHeader,
|
||||
@@ -130,7 +130,7 @@ decl_module! {
|
||||
<scheduler::Module<T>>::clear();
|
||||
<scheduler::Module<T>>::schedule(
|
||||
freed,
|
||||
<frame_system::Module<T>>::block_number(),
|
||||
<frame_system::Pallet<T>>::block_number(),
|
||||
);
|
||||
|
||||
let backed_candidates = limit_backed_candidates::<T>(backed_candidates);
|
||||
@@ -197,7 +197,7 @@ fn limit_backed_candidates<T: Config>(
|
||||
|
||||
// the weight of the inclusion inherent is already included in the current block weight,
|
||||
// so our operation is simple: if the block is currently overloaded, make this intrinsic smaller
|
||||
if frame_system::Module::<T>::block_weight().total() > <T as frame_system::Config>::BlockWeights::get().max_block {
|
||||
if frame_system::Pallet::<T>::block_weight().total() > <T as frame_system::Config>::BlockWeights::get().max_block {
|
||||
Vec::new()
|
||||
} else {
|
||||
backed_candidates
|
||||
|
||||
@@ -40,18 +40,18 @@ frame_support::construct_runtime!(
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Paras: paras::{Module, Origin, Call, Storage, Config<T>},
|
||||
Configuration: configuration::{Module, Call, Storage, Config<T>},
|
||||
Shared: shared::{Module, Call, Storage},
|
||||
Inclusion: inclusion::{Module, Call, Storage, Event<T>},
|
||||
Scheduler: scheduler::{Module, Call, Storage},
|
||||
Initializer: initializer::{Module, Call, Storage},
|
||||
Dmp: dmp::{Module, Call, Storage},
|
||||
Ump: ump::{Module, Call, Storage},
|
||||
Hrmp: hrmp::{Module, Call, Storage, Event},
|
||||
SessionInfo: session_info::{Module, Call, Storage},
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Paras: paras::{Pallet, Origin, Call, Storage, Config<T>},
|
||||
Configuration: configuration::{Pallet, Call, Storage, Config<T>},
|
||||
Shared: shared::{Pallet, Call, Storage},
|
||||
Inclusion: inclusion::{Pallet, Call, Storage, Event<T>},
|
||||
Scheduler: scheduler::{Pallet, Call, Storage},
|
||||
Initializer: initializer::{Pallet, Call, Storage},
|
||||
Dmp: dmp::{Pallet, Call, Storage},
|
||||
Ump: ump::{Pallet, Call, Storage},
|
||||
Hrmp: hrmp::{Pallet, Call, Storage, Event},
|
||||
SessionInfo: session_info::{Pallet, Call, Storage},
|
||||
}
|
||||
);
|
||||
|
||||
@@ -121,7 +121,7 @@ impl crate::ump::Config for Test {
|
||||
impl crate::hrmp::Config for Test {
|
||||
type Event = Event;
|
||||
type Origin = Origin;
|
||||
type Currency = pallet_balances::Module<Test>;
|
||||
type Currency = pallet_balances::Pallet<Test>;
|
||||
}
|
||||
|
||||
impl crate::scheduler::Config for Test { }
|
||||
|
||||
@@ -367,7 +367,7 @@ impl<T: Config> Module<T> {
|
||||
fn apply_actions_queue(session: SessionIndex) -> Vec<ParaId> {
|
||||
let actions = ActionsQueue::take(session);
|
||||
let mut parachains = <Self as Store>::Parachains::get();
|
||||
let now = <frame_system::Module<T>>::block_number();
|
||||
let now = <frame_system::Pallet<T>>::block_number();
|
||||
let mut outgoing = Vec::new();
|
||||
|
||||
for para in actions {
|
||||
@@ -643,7 +643,7 @@ impl<T: Config> Module<T> {
|
||||
CurrentCode::insert(&id, &new_code);
|
||||
|
||||
// `now` is only used for registering pruning as part of `fn note_past_code`
|
||||
let now = <frame_system::Module<T>>::block_number();
|
||||
let now = <frame_system::Pallet<T>>::block_number();
|
||||
|
||||
let weight = Self::note_past_code(
|
||||
id,
|
||||
@@ -675,7 +675,7 @@ impl<T: Config> Module<T> {
|
||||
at: T::BlockNumber,
|
||||
assume_intermediate: Option<T::BlockNumber>,
|
||||
) -> Option<ValidationCode> {
|
||||
let now = <frame_system::Module<T>>::block_number();
|
||||
let now = <frame_system::Pallet<T>>::block_number();
|
||||
let config = <configuration::Module<T>>::config();
|
||||
|
||||
if assume_intermediate.as_ref().map_or(false, |i| &at <= i) {
|
||||
|
||||
@@ -40,7 +40,7 @@ pub fn validator_groups<T: initializer::Config>() -> (
|
||||
Vec<Vec<ValidatorIndex>>,
|
||||
GroupRotationInfo<T::BlockNumber>,
|
||||
) {
|
||||
let now = <frame_system::Module<T>>::block_number() + One::one();
|
||||
let now = <frame_system::Pallet<T>>::block_number() + One::one();
|
||||
|
||||
let groups = <scheduler::Module<T>>::validator_groups();
|
||||
let rotation_info = <scheduler::Module<T>>::group_rotation_info(now);
|
||||
@@ -54,7 +54,7 @@ pub fn availability_cores<T: initializer::Config>() -> Vec<CoreState<T::Hash, T:
|
||||
let parachains = <paras::Module<T>>::parachains();
|
||||
let config = <configuration::Module<T>>::config();
|
||||
|
||||
let now = <frame_system::Module<T>>::block_number() + One::one();
|
||||
let now = <frame_system::Pallet<T>>::block_number() + One::one();
|
||||
<scheduler::Module<T>>::clear();
|
||||
<scheduler::Module<T>>::schedule(Vec::new(), now);
|
||||
|
||||
@@ -202,7 +202,7 @@ pub fn persisted_validation_data<T: initializer::Config>(
|
||||
assumption: OccupiedCoreAssumption,
|
||||
) -> Option<PersistedValidationData<T::BlockNumber>> {
|
||||
use parity_scale_codec::Decode as _;
|
||||
let relay_parent_number = <frame_system::Module<T>>::block_number();
|
||||
let relay_parent_number = <frame_system::Pallet<T>>::block_number();
|
||||
let relay_parent_storage_root = Hash::decode(&mut &sp_io::storage::root()[..])
|
||||
.expect("storage root must decode to the Hash type; qed");
|
||||
with_assumption::<T, _, _>(para_id, assumption, || {
|
||||
@@ -292,7 +292,7 @@ where
|
||||
{
|
||||
use inclusion::Event as RawEvent;
|
||||
|
||||
<frame_system::Module<T>>::events().into_iter()
|
||||
<frame_system::Pallet<T>>::events().into_iter()
|
||||
.filter_map(|record| extract_event(record.event))
|
||||
.map(|event| match event {
|
||||
RawEvent::<T>::CandidateBacked(c, h, core, group)
|
||||
|
||||
@@ -323,7 +323,7 @@ impl<T: Config> Module<T> {
|
||||
});
|
||||
ParathreadQueue::set(thread_queue);
|
||||
|
||||
let now = <frame_system::Module<T>>::block_number() + One::one();
|
||||
let now = <frame_system::Pallet<T>>::block_number() + One::one();
|
||||
<SessionStartBlock<T>>::set(now);
|
||||
}
|
||||
|
||||
@@ -587,7 +587,7 @@ impl<T: Config> Module<T> {
|
||||
/// https://github.com/rust-lang/rust/issues/73226
|
||||
/// which prevents us from testing the code if using `impl Trait`.
|
||||
pub(crate) fn availability_timeout_predicate() -> Option<Box<dyn Fn(CoreIndex, T::BlockNumber) -> bool>> {
|
||||
let now = <frame_system::Module<T>>::block_number();
|
||||
let now = <frame_system::Pallet<T>>::block_number();
|
||||
let config = <configuration::Module<T>>::config();
|
||||
|
||||
let session_start = <SessionStartBlock<T>>::get();
|
||||
|
||||
@@ -973,60 +973,60 @@ construct_runtime! {
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
// Basic stuff; balances is uncallable initially.
|
||||
System: frame_system::{Module, Call, Storage, Config, Event<T>} = 0,
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Storage} = 31,
|
||||
Scheduler: pallet_scheduler::{Module, Call, Storage, Event<T>} = 1,
|
||||
System: frame_system::{Pallet, Call, Storage, Config, Event<T>} = 0,
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 31,
|
||||
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>} = 1,
|
||||
|
||||
// Must be before session.
|
||||
Babe: pallet_babe::{Module, Call, Storage, Config, ValidateUnsigned} = 2,
|
||||
Babe: pallet_babe::{Pallet, Call, Storage, Config, ValidateUnsigned} = 2,
|
||||
|
||||
Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent} = 3,
|
||||
Indices: pallet_indices::{Module, Call, Storage, Config<T>, Event<T>} = 4,
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>} = 5,
|
||||
TransactionPayment: pallet_transaction_payment::{Module, Storage} = 32,
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
|
||||
Indices: pallet_indices::{Pallet, Call, Storage, Config<T>, Event<T>} = 4,
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 5,
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 32,
|
||||
|
||||
// Consensus support.
|
||||
Authorship: pallet_authorship::{Module, Call, Storage} = 6,
|
||||
Staking: pallet_staking::{Module, Call, Storage, Config<T>, Event<T>, ValidateUnsigned} = 7,
|
||||
Offences: pallet_offences::{Module, Call, Storage, Event} = 8,
|
||||
Historical: session_historical::{Module} = 33,
|
||||
Session: pallet_session::{Module, Call, Storage, Event, Config<T>} = 9,
|
||||
Grandpa: pallet_grandpa::{Module, Call, Storage, Config, Event, ValidateUnsigned} = 11,
|
||||
ImOnline: pallet_im_online::{Module, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 12,
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Module, Call, Config} = 13,
|
||||
Authorship: pallet_authorship::{Pallet, Call, Storage} = 6,
|
||||
Staking: pallet_staking::{Pallet, Call, Storage, Config<T>, Event<T>, ValidateUnsigned} = 7,
|
||||
Offences: pallet_offences::{Pallet, Call, Storage, Event} = 8,
|
||||
Historical: session_historical::{Pallet} = 33,
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 9,
|
||||
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event, ValidateUnsigned} = 11,
|
||||
ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 12,
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Pallet, Call, Config} = 13,
|
||||
|
||||
// Governance stuff.
|
||||
Democracy: pallet_democracy::{Module, Call, Storage, Config, Event<T>} = 14,
|
||||
Council: pallet_collective::<Instance1>::{Module, Call, Storage, Origin<T>, Event<T>, Config<T>} = 15,
|
||||
TechnicalCommittee: pallet_collective::<Instance2>::{Module, Call, Storage, Origin<T>, Event<T>, Config<T>} = 16,
|
||||
ElectionsPhragmen: pallet_elections_phragmen::{Module, Call, Storage, Event<T>, Config<T>} = 17,
|
||||
TechnicalMembership: pallet_membership::<Instance1>::{Module, Call, Storage, Event<T>, Config<T>} = 18,
|
||||
Treasury: pallet_treasury::{Module, Call, Storage, Config, Event<T>} = 19,
|
||||
Democracy: pallet_democracy::{Pallet, Call, Storage, Config, Event<T>} = 14,
|
||||
Council: pallet_collective::<Instance1>::{Pallet, Call, Storage, Origin<T>, Event<T>, Config<T>} = 15,
|
||||
TechnicalCommittee: pallet_collective::<Instance2>::{Pallet, Call, Storage, Origin<T>, Event<T>, Config<T>} = 16,
|
||||
ElectionsPhragmen: pallet_elections_phragmen::{Pallet, Call, Storage, Event<T>, Config<T>} = 17,
|
||||
TechnicalMembership: pallet_membership::<Instance1>::{Pallet, Call, Storage, Event<T>, Config<T>} = 18,
|
||||
Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>} = 19,
|
||||
|
||||
// Claims. Usable initially.
|
||||
Claims: claims::{Module, Call, Storage, Event<T>, Config<T>, ValidateUnsigned} = 24,
|
||||
Claims: claims::{Pallet, Call, Storage, Event<T>, Config<T>, ValidateUnsigned} = 24,
|
||||
// Vesting. Usable initially, but removed once all vesting is finished.
|
||||
Vesting: pallet_vesting::{Module, Call, Storage, Event<T>, Config<T>} = 25,
|
||||
Vesting: pallet_vesting::{Pallet, Call, Storage, Event<T>, Config<T>} = 25,
|
||||
// Cunning utilities. Usable initially.
|
||||
Utility: pallet_utility::{Module, Call, Event} = 26,
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 26,
|
||||
|
||||
// Identity. Late addition.
|
||||
Identity: pallet_identity::{Module, Call, Storage, Event<T>} = 28,
|
||||
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 28,
|
||||
|
||||
// Proxy module. Late addition.
|
||||
Proxy: pallet_proxy::{Module, Call, Storage, Event<T>} = 29,
|
||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 29,
|
||||
|
||||
// Multisig dispatch. Late addition.
|
||||
Multisig: pallet_multisig::{Module, Call, Storage, Event<T>} = 30,
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 30,
|
||||
|
||||
// Bounties module.
|
||||
Bounties: pallet_bounties::{Module, Call, Storage, Event<T>} = 34,
|
||||
Bounties: pallet_bounties::{Pallet, Call, Storage, Event<T>} = 34,
|
||||
|
||||
// Tips module.
|
||||
Tips: pallet_tips::{Module, Call, Storage, Event<T>} = 35,
|
||||
Tips: pallet_tips::{Pallet, Call, Storage, Event<T>} = 35,
|
||||
|
||||
// Election pallet. Only works with staking, but placed here to maintain indices.
|
||||
ElectionProviderMultiPhase: pallet_election_provider_multi_phase::{Module, Call, Storage, Event<T>, ValidateUnsigned} = 36,
|
||||
ElectionProviderMultiPhase: pallet_election_provider_multi_phase::{Pallet, Call, Storage, Event<T>, ValidateUnsigned} = 36,
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1077,7 +1077,7 @@ pub type Executive = frame_executive::Executive<
|
||||
Block,
|
||||
frame_system::ChainContext<Runtime>,
|
||||
Runtime,
|
||||
AllModules,
|
||||
AllPallets,
|
||||
(BabeEpochConfigMigrations, FixPolkadotCouncilVotersDeposit),
|
||||
>;
|
||||
/// The payload being signed in transactions.
|
||||
@@ -1391,9 +1391,9 @@ sp_api::impl_runtime_apis! {
|
||||
// Trying to add benchmarks directly to the Session Pallet caused cyclic dependency issues.
|
||||
// To get around that, we separated the Session benchmarks into its own crate, which is why
|
||||
// we need these two lines below.
|
||||
use pallet_session_benchmarking::Module as SessionBench;
|
||||
use pallet_offences_benchmarking::Module as OffencesBench;
|
||||
use frame_system_benchmarking::Module as SystemBench;
|
||||
use pallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pallet_offences_benchmarking::Pallet as OffencesBench;
|
||||
use frame_system_benchmarking::Pallet as SystemBench;
|
||||
|
||||
impl pallet_session_benchmarking::Config for Runtime {}
|
||||
impl pallet_offences_benchmarking::Config for Runtime {}
|
||||
|
||||
@@ -154,7 +154,7 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signatu
|
||||
/// Extrinsic type that has already been checked.
|
||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Nonce, Call>;
|
||||
/// Executive: handles dispatch to the various modules.
|
||||
pub type Executive = frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllModules>;
|
||||
pub type Executive = frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllPallets>;
|
||||
/// The payload being signed in transactions.
|
||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||
|
||||
@@ -175,47 +175,47 @@ construct_runtime! {
|
||||
NodeBlock = primitives::v1::Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
System: frame_system::{Module, Call, Storage, Config, Event<T>},
|
||||
System: frame_system::{Pallet, Call, Storage, Config, Event<T>},
|
||||
|
||||
// Must be before session.
|
||||
Babe: pallet_babe::{Module, Call, Storage, Config, ValidateUnsigned},
|
||||
Babe: pallet_babe::{Pallet, Call, Storage, Config, ValidateUnsigned},
|
||||
|
||||
Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent},
|
||||
Indices: pallet_indices::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Module, Storage},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Indices: pallet_indices::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
||||
|
||||
// Consensus support.
|
||||
Authorship: pallet_authorship::{Module, Call, Storage},
|
||||
Offences: pallet_offences::{Module, Call, Storage, Event},
|
||||
Historical: session_historical::{Module},
|
||||
Session: pallet_session::{Module, Call, Storage, Event, Config<T>},
|
||||
Grandpa: pallet_grandpa::{Module, Call, Storage, Config, Event, ValidateUnsigned},
|
||||
ImOnline: pallet_im_online::{Module, Call, Storage, Event<T>, ValidateUnsigned, Config<T>},
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Module, Call, Config},
|
||||
Authorship: pallet_authorship::{Pallet, Call, Storage},
|
||||
Offences: pallet_offences::{Pallet, Call, Storage, Event},
|
||||
Historical: session_historical::{Pallet},
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
||||
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event, ValidateUnsigned},
|
||||
ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>},
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Pallet, Call, Config},
|
||||
|
||||
// Parachains modules.
|
||||
ParachainsOrigin: parachains_origin::{Module, Origin},
|
||||
ParachainsConfiguration: parachains_configuration::{Module, Call, Storage, Config<T>},
|
||||
Shared: parachains_shared::{Module, Call, Storage},
|
||||
Inclusion: parachains_inclusion::{Module, Call, Storage, Event<T>},
|
||||
InclusionInherent: parachains_inclusion_inherent::{Module, Call, Storage, Inherent},
|
||||
Scheduler: parachains_scheduler::{Module, Call, Storage},
|
||||
Paras: parachains_paras::{Module, Call, Storage},
|
||||
Initializer: parachains_initializer::{Module, Call, Storage},
|
||||
Dmp: parachains_dmp::{Module, Call, Storage},
|
||||
Ump: parachains_ump::{Module, Call, Storage},
|
||||
Hrmp: parachains_hrmp::{Module, Call, Storage, Event},
|
||||
SessionInfo: parachains_session_info::{Module, Call, Storage},
|
||||
ParachainsOrigin: parachains_origin::{Pallet, Origin},
|
||||
ParachainsConfiguration: parachains_configuration::{Pallet, Call, Storage, Config<T>},
|
||||
Shared: parachains_shared::{Pallet, Call, Storage},
|
||||
Inclusion: parachains_inclusion::{Pallet, Call, Storage, Event<T>},
|
||||
InclusionInherent: parachains_inclusion_inherent::{Pallet, Call, Storage, Inherent},
|
||||
Scheduler: parachains_scheduler::{Pallet, Call, Storage},
|
||||
Paras: parachains_paras::{Pallet, Call, Storage},
|
||||
Initializer: parachains_initializer::{Pallet, Call, Storage},
|
||||
Dmp: parachains_dmp::{Pallet, Call, Storage},
|
||||
Ump: parachains_ump::{Pallet, Call, Storage},
|
||||
Hrmp: parachains_hrmp::{Pallet, Call, Storage, Event},
|
||||
SessionInfo: parachains_session_info::{Pallet, Call, Storage},
|
||||
|
||||
Registrar: paras_registrar::{Module, Call, Storage, Event<T>},
|
||||
ParasSudoWrapper: paras_sudo_wrapper::{Module, Call},
|
||||
Registrar: paras_registrar::{Pallet, Call, Storage, Event<T>},
|
||||
ParasSudoWrapper: paras_sudo_wrapper::{Pallet, Call},
|
||||
|
||||
// Sudo
|
||||
Sudo: pallet_sudo::{Module, Call, Storage, Event<T>, Config<T>},
|
||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>},
|
||||
|
||||
// Propose parachain pallet.
|
||||
ProposeParachain: propose_parachain::{Module, Call, Storage, Event<T>},
|
||||
ProposeParachain: propose_parachain::{Pallet, Call, Storage, Event<T>},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ decl_module! {
|
||||
}
|
||||
)?;
|
||||
|
||||
pallet_balances::Module::<T>::reserve(&who, T::ProposeDeposit::get())?;
|
||||
pallet_balances::Pallet::<T>::reserve(&who, T::ProposeDeposit::get())?;
|
||||
|
||||
let proposal = Proposal {
|
||||
name: name.clone(),
|
||||
@@ -269,7 +269,7 @@ decl_module! {
|
||||
Proposals::<T>::remove(¶_id);
|
||||
ParachainValidationCode::remove(¶_id);
|
||||
|
||||
pallet_balances::Module::<T>::unreserve(&proposal.proposer, T::ProposeDeposit::get());
|
||||
pallet_balances::Pallet::<T>::unreserve(&proposal.proposer, T::ProposeDeposit::get());
|
||||
}
|
||||
|
||||
/// Deregister a parachain that was already successfully registered in the relay chain.
|
||||
@@ -290,7 +290,7 @@ decl_module! {
|
||||
ParachainInfo::<T>::remove(¶_id);
|
||||
info.validators.into_iter().for_each(|v| ValidatorsToRetire::<T>::append(v));
|
||||
|
||||
pallet_balances::Module::<T>::unreserve(&info.proposer, T::ProposeDeposit::get());
|
||||
pallet_balances::Pallet::<T>::unreserve(&info.proposer, T::ProposeDeposit::get());
|
||||
}
|
||||
|
||||
/// Add new validators to the set.
|
||||
@@ -392,7 +392,7 @@ impl<T: Config> pallet_session::SessionManager<T::ValidatorId> for Module<T> {
|
||||
Self::deposit_event(RawEvent::ParachainRegistered(*id));
|
||||
|
||||
// Add some funds to the Parachain
|
||||
let _ = pallet_balances::Module::<T>::deposit_creating(&id.into_account(), proposal.balance);
|
||||
let _ = pallet_balances::Pallet::<T>::deposit_creating(&id.into_account(), proposal.balance);
|
||||
|
||||
let info = RegisteredParachainInfo {
|
||||
proposer: proposal.proposer,
|
||||
|
||||
@@ -502,44 +502,44 @@ construct_runtime! {
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
// Basic stuff; balances is uncallable initially.
|
||||
System: frame_system::{Module, Call, Storage, Config, Event<T>},
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Storage},
|
||||
System: frame_system::{Pallet, Call, Storage, Config, Event<T>},
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage},
|
||||
|
||||
// Must be before session.
|
||||
Babe: pallet_babe::{Module, Call, Storage, Config},
|
||||
Babe: pallet_babe::{Pallet, Call, Storage, Config},
|
||||
|
||||
Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent},
|
||||
Indices: pallet_indices::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Module, Storage},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Indices: pallet_indices::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
||||
|
||||
// Consensus support.
|
||||
Authorship: pallet_authorship::{Module, Call, Storage},
|
||||
Staking: pallet_staking::{Module, Call, Storage, Config<T>, Event<T>, ValidateUnsigned},
|
||||
Offences: pallet_offences::{Module, Call, Storage, Event},
|
||||
Historical: session_historical::{Module},
|
||||
Session: pallet_session::{Module, Call, Storage, Event, Config<T>},
|
||||
Grandpa: pallet_grandpa::{Module, Call, Storage, Config, Event},
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Module, Call, Config},
|
||||
Authorship: pallet_authorship::{Pallet, Call, Storage},
|
||||
Staking: pallet_staking::{Pallet, Call, Storage, Config<T>, Event<T>, ValidateUnsigned},
|
||||
Offences: pallet_offences::{Pallet, Call, Storage, Event},
|
||||
Historical: session_historical::{Pallet},
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
||||
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event},
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Pallet, Call, Config},
|
||||
|
||||
// Claims. Usable initially.
|
||||
Claims: claims::{Module, Call, Storage, Event<T>, Config<T>, ValidateUnsigned},
|
||||
Claims: claims::{Pallet, Call, Storage, Event<T>, Config<T>, ValidateUnsigned},
|
||||
|
||||
// Vesting. Usable initially, but removed once all vesting is finished.
|
||||
Vesting: pallet_vesting::{Module, Call, Storage, Event<T>, Config<T>},
|
||||
Vesting: pallet_vesting::{Pallet, Call, Storage, Event<T>, Config<T>},
|
||||
|
||||
// Parachains runtime modules
|
||||
ParachainsConfiguration: parachains_configuration::{Module, Call, Storage, Config<T>},
|
||||
Inclusion: parachains_inclusion::{Module, Call, Storage, Event<T>},
|
||||
InclusionInherent: parachains_inclusion_inherent::{Module, Call, Storage, Inherent},
|
||||
Initializer: parachains_initializer::{Module, Call, Storage},
|
||||
Paras: parachains_paras::{Module, Call, Storage, Origin},
|
||||
Scheduler: parachains_scheduler::{Module, Call, Storage},
|
||||
ParasSudoWrapper: paras_sudo_wrapper::{Module, Call},
|
||||
SessionInfo: parachains_session_info::{Module, Call, Storage},
|
||||
Hrmp: parachains_hrmp::{Module, Call, Storage, Event},
|
||||
ParachainsConfiguration: parachains_configuration::{Pallet, Call, Storage, Config<T>},
|
||||
Inclusion: parachains_inclusion::{Pallet, Call, Storage, Event<T>},
|
||||
InclusionInherent: parachains_inclusion_inherent::{Pallet, Call, Storage, Inherent},
|
||||
Initializer: parachains_initializer::{Pallet, Call, Storage},
|
||||
Paras: parachains_paras::{Pallet, Call, Storage, Origin},
|
||||
Scheduler: parachains_scheduler::{Pallet, Call, Storage},
|
||||
ParasSudoWrapper: paras_sudo_wrapper::{Pallet, Call},
|
||||
SessionInfo: parachains_session_info::{Pallet, Call, Storage},
|
||||
Hrmp: parachains_hrmp::{Pallet, Call, Storage, Event},
|
||||
|
||||
Sudo: pallet_sudo::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -568,7 +568,7 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signatu
|
||||
/// Extrinsic type that has already been checked.
|
||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Nonce, Call>;
|
||||
/// Executive: handles dispatch to the various modules.
|
||||
pub type Executive = frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllModules>;
|
||||
pub type Executive = frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllPallets>;
|
||||
/// The payload being signed in transactions.
|
||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||
|
||||
|
||||
@@ -824,73 +824,73 @@ construct_runtime! {
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
// Basic stuff; balances is uncallable initially.
|
||||
System: frame_system::{Module, Call, Storage, Config, Event<T>} = 0,
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Storage} = 25,
|
||||
System: frame_system::{Pallet, Call, Storage, Config, Event<T>} = 0,
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 25,
|
||||
|
||||
// Must be before session.
|
||||
Babe: pallet_babe::{Module, Call, Storage, Config, ValidateUnsigned} = 1,
|
||||
Babe: pallet_babe::{Pallet, Call, Storage, Config, ValidateUnsigned} = 1,
|
||||
|
||||
Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent} = 2,
|
||||
Indices: pallet_indices::{Module, Call, Storage, Config<T>, Event<T>} = 3,
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>} = 4,
|
||||
TransactionPayment: pallet_transaction_payment::{Module, Storage} = 26,
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 2,
|
||||
Indices: pallet_indices::{Pallet, Call, Storage, Config<T>, Event<T>} = 3,
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 4,
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 26,
|
||||
|
||||
// Consensus support.
|
||||
Authorship: pallet_authorship::{Module, Call, Storage} = 5,
|
||||
Staking: pallet_staking::{Module, Call, Storage, Config<T>, Event<T>, ValidateUnsigned} = 6,
|
||||
Offences: pallet_offences::{Module, Call, Storage, Event} = 7,
|
||||
Historical: session_historical::{Module} = 27,
|
||||
Session: pallet_session::{Module, Call, Storage, Event, Config<T>} = 8,
|
||||
Grandpa: pallet_grandpa::{Module, Call, Storage, Config, Event, ValidateUnsigned} = 10,
|
||||
ImOnline: pallet_im_online::{Module, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 11,
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Module, Call, Config} = 12,
|
||||
Authorship: pallet_authorship::{Pallet, Call, Storage} = 5,
|
||||
Staking: pallet_staking::{Pallet, Call, Storage, Config<T>, Event<T>, ValidateUnsigned} = 6,
|
||||
Offences: pallet_offences::{Pallet, Call, Storage, Event} = 7,
|
||||
Historical: session_historical::{Pallet} = 27,
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 8,
|
||||
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event, ValidateUnsigned} = 10,
|
||||
ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 11,
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Pallet, Call, Config} = 12,
|
||||
|
||||
// Utility module.
|
||||
Utility: pallet_utility::{Module, Call, Event} = 16,
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 16,
|
||||
|
||||
// Less simple identity module.
|
||||
Identity: pallet_identity::{Module, Call, Storage, Event<T>} = 17,
|
||||
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 17,
|
||||
|
||||
// Social recovery module.
|
||||
Recovery: pallet_recovery::{Module, Call, Storage, Event<T>} = 18,
|
||||
Recovery: pallet_recovery::{Pallet, Call, Storage, Event<T>} = 18,
|
||||
|
||||
// Vesting. Usable initially, but removed once all vesting is finished.
|
||||
Vesting: pallet_vesting::{Module, Call, Storage, Event<T>, Config<T>} = 19,
|
||||
Vesting: pallet_vesting::{Pallet, Call, Storage, Event<T>, Config<T>} = 19,
|
||||
|
||||
// System scheduler.
|
||||
Scheduler: pallet_scheduler::{Module, Call, Storage, Event<T>} = 20,
|
||||
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>} = 20,
|
||||
|
||||
// Sudo.
|
||||
Sudo: pallet_sudo::{Module, Call, Storage, Event<T>, Config<T>} = 21,
|
||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
|
||||
|
||||
// Proxy module. Late addition.
|
||||
Proxy: pallet_proxy::{Module, Call, Storage, Event<T>} = 22,
|
||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 22,
|
||||
|
||||
// Multisig module. Late addition.
|
||||
Multisig: pallet_multisig::{Module, Call, Storage, Event<T>} = 23,
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 23,
|
||||
|
||||
// Election pallet. Only works with staking, but placed here to maintain indices.
|
||||
ElectionProviderMultiPhase: pallet_election_provider_multi_phase::{Module, Call, Storage, Event<T>, ValidateUnsigned} = 24,
|
||||
ElectionProviderMultiPhase: pallet_election_provider_multi_phase::{Pallet, Call, Storage, Event<T>, ValidateUnsigned} = 24,
|
||||
|
||||
// Parachains Runtime
|
||||
ParachainsOrigin: parachains_origin::{Module, Origin} = 28,
|
||||
ParachainsConfiguration: parachains_configuration::{Module, Call, Storage, Config<T>} = 29,
|
||||
Shared: parachains_shared::{Module, Call, Storage} = 30,
|
||||
Inclusion: parachains_inclusion::{Module, Call, Storage, Event<T>} = 31,
|
||||
InclusionInherent: parachains_inclusion_inherent::{Module, Call, Storage, Inherent} = 32,
|
||||
ParachainsScheduler: parachains_scheduler::{Module, Call, Storage} = 33,
|
||||
Paras: parachains_paras::{Module, Call, Storage} = 34,
|
||||
Initializer: parachains_initializer::{Module, Call, Storage} = 35,
|
||||
Dmp: parachains_dmp::{Module, Call, Storage} = 36,
|
||||
Ump: parachains_ump::{Module, Call, Storage} = 37,
|
||||
Hrmp: parachains_hrmp::{Module, Call, Storage, Event} = 38,
|
||||
ParachainsSessionInfo: parachains_session_info::{Module, Call, Storage} = 39,
|
||||
ParachainsOrigin: parachains_origin::{Pallet, Origin} = 28,
|
||||
ParachainsConfiguration: parachains_configuration::{Pallet, Call, Storage, Config<T>} = 29,
|
||||
Shared: parachains_shared::{Pallet, Call, Storage} = 30,
|
||||
Inclusion: parachains_inclusion::{Pallet, Call, Storage, Event<T>} = 31,
|
||||
InclusionInherent: parachains_inclusion_inherent::{Pallet, Call, Storage, Inherent} = 32,
|
||||
ParachainsScheduler: parachains_scheduler::{Pallet, Call, Storage} = 33,
|
||||
Paras: parachains_paras::{Pallet, Call, Storage} = 34,
|
||||
Initializer: parachains_initializer::{Pallet, Call, Storage} = 35,
|
||||
Dmp: parachains_dmp::{Pallet, Call, Storage} = 36,
|
||||
Ump: parachains_ump::{Pallet, Call, Storage} = 37,
|
||||
Hrmp: parachains_hrmp::{Pallet, Call, Storage, Event} = 38,
|
||||
ParachainsSessionInfo: parachains_session_info::{Pallet, Call, Storage} = 39,
|
||||
|
||||
// Parachain Onboarding Pallets
|
||||
Registrar: paras_registrar::{Module, Call, Storage, Event<T>} = 40,
|
||||
Auctions: auctions::{Module, Call, Storage, Event<T>} = 41,
|
||||
Crowdloan: crowdloan::{Module, Call, Storage, Event<T>} = 42,
|
||||
Slots: slots::{Module, Call, Storage, Event<T>} = 43,
|
||||
Registrar: paras_registrar::{Pallet, Call, Storage, Event<T>} = 40,
|
||||
Auctions: auctions::{Pallet, Call, Storage, Event<T>} = 41,
|
||||
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>} = 42,
|
||||
Slots: slots::{Pallet, Call, Storage, Event<T>} = 43,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -939,7 +939,7 @@ pub type Executive = frame_executive::Executive<
|
||||
Block,
|
||||
frame_system::ChainContext<Runtime>,
|
||||
Runtime,
|
||||
AllModules,
|
||||
AllPallets,
|
||||
BabeEpochConfigMigrations,
|
||||
>;
|
||||
/// The payload being signed in transactions.
|
||||
@@ -1207,9 +1207,9 @@ sp_api::impl_runtime_apis! {
|
||||
// Trying to add benchmarks directly to the Session Pallet caused cyclic dependency issues.
|
||||
// To get around that, we separated the Session benchmarks into its own crate, which is why
|
||||
// we need these two lines below.
|
||||
use pallet_session_benchmarking::Module as SessionBench;
|
||||
use pallet_offences_benchmarking::Module as OffencesBench;
|
||||
use frame_system_benchmarking::Module as SystemBench;
|
||||
use pallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pallet_offences_benchmarking::Pallet as OffencesBench;
|
||||
use frame_system_benchmarking::Pallet as SystemBench;
|
||||
|
||||
impl pallet_session_benchmarking::Config for Runtime {}
|
||||
impl pallet_offences_benchmarking::Config for Runtime {}
|
||||
|
||||
Reference in New Issue
Block a user