Skip to content

Commit

Permalink
bump: xcm stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
NunoAlexandre committed Oct 4, 2023
1 parent 859f088 commit 430d462
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
4 changes: 4 additions & 0 deletions runtime/altair/src/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use frame_support::{
sp_std::marker::PhantomData,
traits::{fungibles, fungibles::Mutate},
};
use frame_system::EnsureRoot;
use orml_asset_registry::{AssetRegistryTrader, FixedRateAssetRegistryTrader};
use orml_traits::{location::AbsoluteReserveProvider, parameter_type_with_key};
use orml_xcm_support::MultiNativeAsset;
Expand Down Expand Up @@ -291,6 +292,9 @@ impl pallet_xcm::Config for Runtime {
type XcmTeleportFilter = Everything;

const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;
type AdminOrigin = EnsureRoot<AccountId>;
type MaxRemoteLockConsumers = ConstU32<0>;
type RemoteLockConsumerIdentifier = ();
}

parameter_types! {
Expand Down
4 changes: 4 additions & 0 deletions runtime/centrifuge/src/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use frame_support::{
sp_std::marker::PhantomData,
traits::{fungibles, fungibles::Mutate},
};
use frame_system::EnsureRoot;
use orml_asset_registry::{AssetRegistryTrader, FixedRateAssetRegistryTrader};
use orml_traits::{location::AbsoluteReserveProvider, parameter_type_with_key};
use orml_xcm_support::MultiNativeAsset;
Expand Down Expand Up @@ -293,6 +294,9 @@ impl pallet_xcm::Config for Runtime {
type XcmTeleportFilter = Everything;

const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;
type AdminOrigin = EnsureRoot<AccountId>;
type MaxRemoteLockConsumers = ConstU32<0>;
type RemoteLockConsumerIdentifier = ();
}

parameter_types! {
Expand Down
18 changes: 9 additions & 9 deletions runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2440,14 +2440,14 @@ impl_runtime_apis! {
let is_transactional = false;
let validate = true;
let mut estimated_transaction_len = data.len() +
// from: 20
// value: 32
// gas_limit: 32
// nonce: 32
// 1 byte transaction action variant
// chain id 8 bytes
// 65 bytes signature
190;
// from: 20
// value: 32
// gas_limit: 32
// nonce: 32
// 1 byte transaction action variant
// chain id 8 bytes
// 65 bytes signature
190;

if max_fee_per_gas.is_some() {
estimated_transaction_len += 32;
Expand All @@ -2458,8 +2458,8 @@ impl_runtime_apis! {
if access_list.is_some() {
estimated_transaction_len += access_list.encoded_size();
}

let gas_limit = gas_limit.min(u64::MAX.into()).low_u64(); let without_base_extrinsic_weight = true; let (weight_limit, proof_size_base_cost) =

match <Runtime as pallet_evm::Config>::GasWeightMapping::gas_to_weight(
gas_limit,
without_base_extrinsic_weight
Expand Down
4 changes: 4 additions & 0 deletions runtime/development/src/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use frame_support::{
sp_std::marker::PhantomData,
traits::{fungibles, fungibles::Mutate},
};
use frame_system::EnsureRoot;
use orml_asset_registry::{AssetRegistryTrader, FixedRateAssetRegistryTrader};
use orml_traits::{location::AbsoluteReserveProvider, parameter_type_with_key};
use orml_xcm_support::MultiNativeAsset;
Expand Down Expand Up @@ -294,6 +295,9 @@ impl pallet_xcm::Config for Runtime {
type XcmTeleportFilter = Everything;

const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;
type AdminOrigin = EnsureRoot<AccountId>;
type MaxRemoteLockConsumers = ConstU32<0>;
type RemoteLockConsumerIdentifier = ();
}

parameter_types! {
Expand Down

0 comments on commit 430d462

Please sign in to comment.