@@ -58,7 +58,7 @@ use sp_version::RuntimeVersion;
58
58
59
59
use frame_system:: {
60
60
limits:: { BlockLength , BlockWeights } ,
61
- EnsureOneOf , EnsureRoot , EnsureSigned ,
61
+ EnsureOneOf , EnsureRoot ,
62
62
} ;
63
63
use orml_xcm_support:: { IsNativeConcrete , MultiNativeAsset } ;
64
64
use polkadot_parachain:: primitives:: Sibling ;
@@ -87,15 +87,16 @@ pub use impls::DealWithFees;
87
87
88
88
pub use pallet_liquid_staking;
89
89
// pub use pallet_liquidation;
90
- use currency:: * ;
91
- use fee:: * ;
92
90
pub use pallet_amm;
93
91
pub use pallet_bridge;
94
92
// pub use pallet_liquidity_mining;
95
93
pub use pallet_loans;
96
94
pub use pallet_multisig;
97
95
pub use pallet_nominee_election;
98
96
pub use pallet_prices;
97
+
98
+ use currency:: * ;
99
+ use fee:: * ;
99
100
use time:: * ;
100
101
101
102
pub use frame_support:: {
@@ -110,6 +111,7 @@ pub use frame_support::{
110
111
use pallet_xcm:: XcmPassthrough ;
111
112
#[ cfg( any( feature = "std" , test) ) ]
112
113
pub use sp_runtime:: BuildStorage ;
114
+
113
115
/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know
114
116
/// the specifics of the runtime. They can then be made to be agnostic over specific formats
115
117
/// of data like extrinsics, allowing for them to continue syncing the network through upgrades
@@ -202,9 +204,10 @@ impl Contains<Call> for BaseCallFilter {
202
204
fn contains ( call : & Call ) -> bool {
203
205
matches ! (
204
206
call,
205
- // System
207
+ // System, Currencies
206
208
Call :: System ( _) |
207
209
Call :: Timestamp ( _) |
210
+ Call :: Assets ( pallet_assets:: Call :: mint { .. } ) |
208
211
// Governance
209
212
Call :: Sudo ( _) |
210
213
Call :: Democracy ( _) |
@@ -221,6 +224,7 @@ impl Contains<Call> for BaseCallFilter {
221
224
Call :: Utility ( _) |
222
225
Call :: Multisig ( _) |
223
226
Call :: Proxy ( _) |
227
+ Call :: EmergencyShutdown ( _) |
224
228
// 3rd Party
225
229
Call :: Vesting ( _) |
226
230
// Membership
@@ -334,14 +338,14 @@ impl Convert<CurrencyId, Option<MultiLocation>> for CurrencyIdConvert {
334
338
DOT => Some ( MultiLocation :: parent ( ) ) ,
335
339
XDOT => Some ( MultiLocation :: new (
336
340
1 ,
337
- Junctions :: X2 (
341
+ X2 (
338
342
Parachain ( ParachainInfo :: parachain_id ( ) . into ( ) ) ,
339
343
GeneralKey ( b"xDOT" . to_vec ( ) ) ,
340
344
) ,
341
345
) ) ,
342
346
PARA => Some ( MultiLocation :: new (
343
347
1 ,
344
- Junctions :: X2 (
348
+ X2 (
345
349
Parachain ( ParachainInfo :: parachain_id ( ) . into ( ) ) ,
346
350
GeneralKey ( b"PARA" . to_vec ( ) ) ,
347
351
) ,
@@ -472,11 +476,11 @@ impl pallet_liquid_staking::Config for Runtime {
472
476
type WeightInfo = ( ) ;
473
477
type SelfParaId = ParachainInfo ;
474
478
type Assets = Assets ;
475
- type StakingCurrency = StakingCurrency ;
476
- type LiquidCurrency = LiquidCurrency ;
477
479
type RelayOrigin = EnsureRootOrMoreThanHalfGeneralCouncil ;
478
480
type UpdateOrigin = EnsureRootOrMoreThanHalfGeneralCouncil ;
479
481
type DerivativeIndex = DerivativeIndex ;
482
+ type StakingCurrency = StakingCurrency ;
483
+ type LiquidCurrency = LiquidCurrency ;
480
484
type AccountIdToMultiLocation = AccountIdToMultiLocation ;
481
485
type UnstakeQueueCapacity = UnstakeQueueCapacity ;
482
486
type MinStakeAmount = MinStakeAmount ;
@@ -776,6 +780,7 @@ pub type XcmRouter = (
776
780
777
781
impl pallet_xcm:: Config for Runtime {
778
782
const VERSION_DISCOVERY_QUEUE_SIZE : u32 = 100 ;
783
+
779
784
type Origin = Origin ;
780
785
type Call = Call ;
781
786
type Event = Event ;
@@ -1299,7 +1304,7 @@ impl orml_vesting::Config for Runtime {
1299
1304
type Event = Event ;
1300
1305
type Currency = Balances ;
1301
1306
type MinVestedTransfer = MinVestedTransfer ;
1302
- type VestedTransferOrigin = EnsureSigned < AccountId > ;
1307
+ type VestedTransferOrigin = frame_system :: EnsureSigned < AccountId > ;
1303
1308
type WeightInfo = ( ) ;
1304
1309
type MaxVestingSchedules = MaxVestingSchedules ;
1305
1310
type BlockNumberProvider = frame_system:: Pallet < Runtime > ;
@@ -1318,8 +1323,8 @@ impl pallet_amm::Config for Runtime {
1318
1323
type Assets = CurrencyAdapter ;
1319
1324
type PalletId = AMMPalletId ;
1320
1325
type LockAccountId = OneAccount ;
1321
- type AMMWeightInfo = pallet_amm:: weights:: SubstrateWeight < Runtime > ;
1322
1326
type CreatePoolOrigin = EnsureRootOrMoreThanHalfGeneralCouncil ;
1327
+ type AMMWeightInfo = pallet_amm:: weights:: SubstrateWeight < Runtime > ;
1323
1328
type LpFee = DefaultLpFee ;
1324
1329
type ProtocolFee = DefaultProtocolFee ;
1325
1330
type MinimumLiquidity = MinimumLiquidity ;
@@ -1424,18 +1429,19 @@ impl pallet_currency_adapter::Config for Runtime {
1424
1429
// type Assets = CurrencyAdapter;
1425
1430
// type PalletId = LMPalletId;
1426
1431
// type MaxRewardTokens = MaxRewardTokens;
1427
- // type CreateOrigin = EnsureRoot<AccountId> ;
1428
- // type WeightInfo = pallet_liquidity_mining::weights::SubstrateWeight<Runtime>;
1432
+ // type CreateOrigin = EnsureRootOrMoreThanHalfGeneralCouncil ;
1433
+ // type WeightInfo = pallet_liquidity_mining::weights::SubstrateWeight<Runtime>;
1429
1434
// }
1430
1435
1431
1436
pub struct WhiteListFilter ;
1432
1437
impl Contains < Call > for WhiteListFilter {
1433
1438
fn contains ( call : & Call ) -> bool {
1434
1439
matches ! (
1435
1440
call,
1436
- // System
1441
+ // System, Currencies
1437
1442
Call :: System ( _) |
1438
1443
Call :: Timestamp ( _) |
1444
+ Call :: Assets ( pallet_assets:: Call :: mint { .. } ) |
1439
1445
// Governance
1440
1446
Call :: Sudo ( _) |
1441
1447
Call :: Democracy ( _) |
@@ -1452,6 +1458,7 @@ impl Contains<Call> for WhiteListFilter {
1452
1458
Call :: Utility ( _) |
1453
1459
Call :: Multisig ( _) |
1454
1460
Call :: Proxy ( _) |
1461
+ Call :: EmergencyShutdown ( _) |
1455
1462
// 3rd Party
1456
1463
Call :: Vesting ( _) |
1457
1464
// Membership
0 commit comments