Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions node/service/src/chain_spec/mandala.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ fn testnet_genesis(
polkadot_xcm: PolkadotXcmConfig {
safe_xcm_version: Some(2),
},
phragmen_election: Default::default(),
}
}

Expand Down Expand Up @@ -638,5 +639,6 @@ fn mandala_genesis(
polkadot_xcm: PolkadotXcmConfig {
safe_xcm_version: Some(2),
},
phragmen_election: Default::default(),
}
}
132 changes: 66 additions & 66 deletions runtime/acala/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#![cfg_attr(not(feature = "std"), no_std)]
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
#![recursion_limit = "256"]
#![recursion_limit = "512"]
#![allow(clippy::unnecessary_mut_passed)]
#![allow(clippy::or_fun_call)]
#![allow(clippy::from_over_into)]
Expand Down Expand Up @@ -1538,103 +1538,103 @@ construct_runtime!(
UncheckedExtrinsic = UncheckedExtrinsic
{
// Core & Utility
System: frame_system::{Pallet, Call, Storage, Config, Event<T>} = 0,
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 1,
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>} = 2,
Utility: pallet_utility::{Pallet, Call, Event} = 3,
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 4,
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 5,
TransactionPause: module_transaction_pause::{Pallet, Call, Storage, Event<T>} = 6,
IdleScheduler: module_idle_scheduler::{Pallet, Call, Storage, Event<T>} = 7,
Preimage: pallet_preimage::{Pallet, Call, Storage, Event<T>} = 8,
System: frame_system = 0,
Timestamp: pallet_timestamp = 1,
Scheduler: pallet_scheduler = 2,
Utility: pallet_utility = 3,
Multisig: pallet_multisig = 4,
Proxy: pallet_proxy = 5,
TransactionPause: module_transaction_pause = 6,
IdleScheduler: module_idle_scheduler = 7,
Preimage: pallet_preimage = 8,

// Tokens & Related
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 10,
Tokens: orml_tokens::{Pallet, Storage, Event<T>, Config<T>} = 11,
Currencies: module_currencies::{Pallet, Call, Event<T>} = 12,
Vesting: orml_vesting::{Pallet, Storage, Call, Event<T>, Config<T>} = 13,
TransactionPayment: module_transaction_payment::{Pallet, Call, Storage, Event<T>} = 14,
Balances: pallet_balances = 10,
Tokens: orml_tokens = 11,
Comment thread
syan095 marked this conversation as resolved.
Outdated
Currencies: module_currencies = 12,
Vesting: orml_vesting = 13,
TransactionPayment: module_transaction_payment = 14,

// Treasury
Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>} = 20,
Bounties: pallet_bounties::{Pallet, Call, Storage, Event<T>} = 21,
Tips: pallet_tips::{Pallet, Call, Storage, Event<T>} = 22,
Treasury: pallet_treasury = 20,
Bounties: pallet_bounties = 21,
Tips: pallet_tips = 22,

// Parachain
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 31,
ParachainInfo: parachain_info = 31,

// Collator. The order of the 4 below are important and shall not change.
Authorship: pallet_authorship::{Pallet, Storage} = 40,
CollatorSelection: module_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 41,
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 42,
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 43,
AuraExt: cumulus_pallet_aura_ext::{Pallet, Storage, Config} = 44,
SessionManager: module_session_manager::{Pallet, Call, Storage, Event<T>, Config<T>} = 45,
Authorship: pallet_authorship = 40,
CollatorSelection: module_collator_selection = 41,
Session: pallet_session = 42,
Aura: pallet_aura = 43,
AuraExt: cumulus_pallet_aura_ext = 44,
SessionManager: module_session_manager = 45,

// XCM
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,
PolkadotXcm: pallet_xcm::{Pallet, Storage, Call, Event<T>, Origin, Config} = 51,
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 52,
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 53,
XTokens: orml_xtokens::{Pallet, Storage, Call, Event<T>} = 54,
UnknownTokens: orml_unknown_tokens::{Pallet, Storage, Event} = 55,
OrmlXcm: orml_xcm::{Pallet, Call, Event<T>} = 56,
XcmpQueue: cumulus_pallet_xcmp_queue = 50,
PolkadotXcm: pallet_xcm = 51,
CumulusXcm: cumulus_pallet_xcm = 52,
DmpQueue: cumulus_pallet_dmp_queue = 53,
XTokens: orml_xtokens = 54,
UnknownTokens: orml_unknown_tokens = 55,
OrmlXcm: orml_xcm = 56,

// Governance
Authority: orml_authority::{Pallet, Call, Storage, Event<T>, Origin<T>} = 60,
GeneralCouncil: pallet_collective::<Instance1>::{Pallet, Call, Storage, Origin<T>, Event<T>, Config<T>} = 61,
GeneralCouncilMembership: pallet_membership::<Instance1>::{Pallet, Call, Storage, Event<T>, Config<T>} = 62,
FinancialCouncil: pallet_collective::<Instance2>::{Pallet, Call, Storage, Origin<T>, Event<T>, Config<T>} = 63,
FinancialCouncilMembership: pallet_membership::<Instance2>::{Pallet, Call, Storage, Event<T>, Config<T>} = 64,
HomaCouncil: pallet_collective::<Instance3>::{Pallet, Call, Storage, Origin<T>, Event<T>, Config<T>} = 65,
HomaCouncilMembership: pallet_membership::<Instance3>::{Pallet, Call, Storage, Event<T>, Config<T>} = 66,
TechnicalCommittee: pallet_collective::<Instance4>::{Pallet, Call, Storage, Origin<T>, Event<T>, Config<T>} = 67,
TechnicalCommitteeMembership: pallet_membership::<Instance4>::{Pallet, Call, Storage, Event<T>, Config<T>} = 68,
Democracy: pallet_democracy::{Pallet, Call, Storage, Config<T>, Event<T>} = 69,
Authority: orml_authority = 60,
GeneralCouncil: pallet_collective::<Instance1> = 61,
GeneralCouncilMembership: pallet_membership::<Instance1> = 62,
FinancialCouncil: pallet_collective::<Instance2> = 63,
FinancialCouncilMembership: pallet_membership::<Instance2> = 64,
HomaCouncil: pallet_collective::<Instance3> = 65,
HomaCouncilMembership: pallet_membership::<Instance3> = 66,
TechnicalCommittee: pallet_collective::<Instance4> = 67,
TechnicalCommitteeMembership: pallet_membership::<Instance4> = 68,
Democracy: pallet_democracy = 69,

// Oracle
//
// NOTE: OperatorMembership must be placed after Oracle or else will have race condition on initialization
AcalaOracle: orml_oracle::<Instance1>::{Pallet, Storage, Call, Event<T>} = 70,
OperatorMembershipAcala: pallet_membership::<Instance5>::{Pallet, Call, Storage, Event<T>, Config<T>} = 71,
AcalaOracle: orml_oracle::<Instance1> = 70,
OperatorMembershipAcala: pallet_membership::<Instance5> = 71,

// ORML Core
Auction: orml_auction::{Pallet, Storage, Call, Event<T>} = 80,
Rewards: orml_rewards::{Pallet, Storage, Call} = 81,
OrmlNFT: orml_nft::{Pallet, Storage, Config<T>} = 82,
Auction: orml_auction = 80,
Rewards: orml_rewards = 81,
OrmlNFT: orml_nft = 82,

// Acala Core
Prices: module_prices::{Pallet, Storage, Call, Event<T>} = 90,
Dex: module_dex::{Pallet, Storage, Call, Event<T>, Config<T>} = 91,
DexOracle: module_dex_oracle::{Pallet, Storage, Call} = 92,
Prices: module_prices = 90,
Dex: module_dex = 91,
DexOracle: module_dex_oracle = 92,

// Honzon
AuctionManager: module_auction_manager::{Pallet, Storage, Call, Event<T>, ValidateUnsigned} = 100,
Loans: module_loans::{Pallet, Storage, Call, Event<T>} = 101,
Honzon: module_honzon::{Pallet, Storage, Call, Event<T>} = 102,
CdpTreasury: module_cdp_treasury::{Pallet, Storage, Call, Config, Event<T>} = 103,
CdpEngine: module_cdp_engine::{Pallet, Storage, Call, Event<T>, Config, ValidateUnsigned} = 104,
EmergencyShutdown: module_emergency_shutdown::{Pallet, Storage, Call, Event<T>} = 105,
AuctionManager: module_auction_manager = 100,
Loans: module_loans = 101,
Honzon: module_honzon = 102,
CdpTreasury: module_cdp_treasury = 103,
CdpEngine: module_cdp_engine = 104,
EmergencyShutdown: module_emergency_shutdown = 105,

// Homa
Homa: module_homa::{Pallet, Call, Storage, Event<T>} = 116,
XcmInterface: module_xcm_interface::{Pallet, Call, Storage, Event<T>} = 117,
Homa: module_homa = 116,
XcmInterface: module_xcm_interface = 117,

// Acala Other
Incentives: module_incentives::{Pallet, Storage, Call, Event<T>} = 120,
NFT: module_nft::{Pallet, Call, Event<T>} = 121,
AssetRegistry: module_asset_registry::{Pallet, Call, Storage, Event<T>} = 122,
Incentives: module_incentives = 120,
NFT: module_nft = 121,
AssetRegistry: module_asset_registry = 122,

// Smart contracts
EVM: module_evm::{Pallet, Config<T>, Call, Storage, Event<T>} = 130,
EVMBridge: module_evm_bridge::{Pallet} = 131,
EvmAccounts: module_evm_accounts::{Pallet, Call, Storage, Event<T>} = 132,
EVM: module_evm = 130,
EVMBridge: module_evm_bridge = 131,
EvmAccounts: module_evm_accounts = 132,

// Parachain System, always put it at the end
ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Storage, Inherent, Config, Event<T>} = 30,
ParachainSystem: cumulus_pallet_parachain_system = 30,

// Temporary
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>} = 255,
Sudo: pallet_sudo = 255,
}
);

Expand Down
14 changes: 7 additions & 7 deletions runtime/common/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@ frame_support::construct_runtime!(
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic,
{
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
EVM: module_evm::{Pallet, Config<T>, Call, Storage, Event<T>},
EvmAccounts: module_evm_accounts::{Pallet, Call, Storage, Event<T>},
Tokens: orml_tokens::{Pallet, Storage, Event<T>},
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
Currencies: orml_currencies::{Pallet, Call, Event<T>},
IdleScheduler: module_idle_scheduler::{Pallet, Call, Storage, Event<T>},
System: frame_system,
EVM: module_evm,
EvmAccounts: module_evm_accounts,
Tokens: orml_tokens,
Balances: pallet_balances,
Currencies: orml_currencies,
IdleScheduler: module_idle_scheduler,
}
);

Expand Down
36 changes: 18 additions & 18 deletions runtime/common/src/precompile/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,24 +563,24 @@ frame_support::construct_runtime!(
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic,
{
System: frame_system::{Pallet, Call, Storage, Config, Event<T>},
Oracle: orml_oracle::{Pallet, Storage, Call, Event<T>},
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
Tokens: orml_tokens::{Pallet, Storage, Event<T>, Config<T>},
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
Currencies: module_currencies::{Pallet, Call, Event<T>},
EVMBridge: module_evm_bridge::{Pallet},
AssetRegistry: module_asset_registry::{Pallet, Call, Storage, Event<T>},
NFTModule: module_nft::{Pallet, Call, Event<T>},
TransactionPayment: module_transaction_payment::{Pallet, Call, Storage, Event<T>},
Prices: module_prices::{Pallet, Storage, Call, Event<T>},
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>},
Utility: pallet_utility::{Pallet, Call, Event},
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>},
DexModule: module_dex::{Pallet, Storage, Call, Event<T>, Config<T>},
EVMModule: module_evm::{Pallet, Config<T>, Call, Storage, Event<T>},
EvmAccounts: module_evm_accounts::{Pallet, Call, Storage, Event<T>},
IdleScheduler: module_idle_scheduler::{Pallet, Call, Storage, Event<T>},
System: frame_system,
Oracle: orml_oracle,
Timestamp: pallet_timestamp,
Tokens: orml_tokens,
Balances: pallet_balances,
Currencies: module_currencies,
EVMBridge: module_evm_bridge,
AssetRegistry: module_asset_registry,
NFTModule: module_nft,
TransactionPayment: module_transaction_payment,
Prices: module_prices,
Proxy: pallet_proxy,
Utility: pallet_utility,
Scheduler: pallet_scheduler,
DexModule: module_dex,
EVMModule: module_evm,
EvmAccounts: module_evm_accounts,
IdleScheduler: module_idle_scheduler,
}
);

Expand Down
Loading