@@ -23,7 +23,7 @@ use sp_version::RuntimeVersion;
23
23
24
24
use frame_support:: {
25
25
construct_runtime, match_type, parameter_types,
26
- traits:: Everything ,
26
+ traits:: { Everything , Nothing } ,
27
27
weights:: {
28
28
constants:: { BlockExecutionWeight , ExtrinsicBaseWeight , WEIGHT_PER_SECOND } ,
29
29
DispatchClass , IdentityFee , Weight , WeightToFeeCoefficient , WeightToFeeCoefficients ,
@@ -50,10 +50,9 @@ use polkadot_runtime_common::{BlockHashCount, RocksDbWeight, SlowAdjustingFeeUpd
50
50
use xcm:: latest:: prelude:: * ;
51
51
use xcm_builder:: {
52
52
AccountId32Aliases , AllowTopLevelPaidExecutionFrom , AllowUnpaidExecutionFrom , CurrencyAdapter ,
53
- EnsureXcmOrigin , FixedWeightBounds , IsConcrete , LocationInverter , NativeAsset ,
54
- ParentAsSuperuser , ParentIsDefault , RelayChainAsNative , SiblingParachainAsNative ,
55
- SiblingParachainConvertsVia , SignedAccountId32AsNative ,
56
- SovereignSignedViaLocation , TakeWeightCredit , UsingComponents ,
53
+ EnsureXcmOrigin , FixedWeightBounds , IsConcrete , LocationInverter , NativeAsset , ParentIsDefault ,
54
+ RelayChainAsNative , SiblingParachainAsNative , SiblingParachainConvertsVia ,
55
+ SignedAccountId32AsNative , SovereignSignedViaLocation , TakeWeightCredit , UsingComponents ,
57
56
} ;
58
57
use xcm_executor:: { Config , XcmExecutor } ;
59
58
@@ -438,14 +437,11 @@ pub type XcmOriginToTransactDispatchOrigin = (
438
437
// foreign chains who want to have a local sovereign account on this chain which they control.
439
438
SovereignSignedViaLocation < LocationToAccountId , Origin > ,
440
439
// Native converter for Relay-chain (Parent) location; will converts to a `Relay` origin when
441
- // recognised .
440
+ // recognized .
442
441
RelayChainAsNative < RelayChainOrigin , Origin > ,
443
442
// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when
444
- // recognised .
443
+ // recognized .
445
444
SiblingParachainAsNative < cumulus_pallet_xcm:: Origin , Origin > ,
446
- // Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a
447
- // transaction from the Root origin.
448
- ParentAsSuperuser < Origin > ,
449
445
// Native signed account converter; this just converts an `AccountId32` origin into a normal
450
446
// `Origin::Signed` origin of the same 32-byte value.
451
447
SignedAccountId32AsNative < RelayNetwork , Origin > ,
@@ -481,7 +477,7 @@ impl Config for XcmConfig {
481
477
type AssetTransactor = LocalAssetTransactor ;
482
478
type OriginConverter = XcmOriginToTransactDispatchOrigin ;
483
479
type IsReserve = NativeAsset ;
484
- type IsTeleporter = NativeAsset ; // Should be enough to allow teleportation of ROC
480
+ type IsTeleporter = ( ) ; // Teleporting is disabled.
485
481
type LocationInverter = LocationInverter < Ancestry > ;
486
482
type Barrier = Barrier ;
487
483
type Weigher = FixedWeightBounds < UnitWeightCost , Call , MaxInstructions > ;
@@ -516,13 +512,14 @@ impl pallet_xcm::Config for Runtime {
516
512
type XcmExecuteFilter = Everything ;
517
513
type XcmExecutor = XcmExecutor < XcmConfig > ;
518
514
type XcmTeleportFilter = Everything ;
519
- type XcmReserveTransferFilter = Everything ;
515
+ type XcmReserveTransferFilter = Nothing ;
520
516
type Weigher = FixedWeightBounds < UnitWeightCost , Call , MaxInstructions > ;
521
517
type LocationInverter = LocationInverter < Ancestry > ;
522
518
type Origin = Origin ;
523
519
type Call = Call ;
524
520
525
521
const VERSION_DISCOVERY_QUEUE_SIZE : u32 = 100 ;
522
+ // Override for AdvertisedXcmVersion default
526
523
type AdvertisedXcmVersion = pallet_xcm:: CurrentXcmVersion ;
527
524
}
528
525
0 commit comments