Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit LAOS runtime to allow teleports to AssetHub #826

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions runtime/laos/src/configs/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ pub type LocalAssetTransactor = FungibleAdapter<
// Uses the Balances pallet as the fungible asset handler.
Balances,
// Recognizes assets that are concrete representations of the Relay Chain's location.
IsConcrete<RelayLocation>,
IsConcrete<HereLocation>,
// Converts `MultiLocation` into local `AccountId` for asset operations.
LocationToAccountId,
// Specifies the local `AccountId` type.
AccountId,
// Teleportation of assets is not tracked or allowed.
// Teleportation allowed: making sure the receiver can mint our assets
Checking,
>;

Expand Down Expand Up @@ -232,7 +232,7 @@ impl pallet_xcm::Config for Runtime {
type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
type XcmExecuteFilter = Nothing;
type XcmExecutor = XcmExecutor<XcmConfig>;
type XcmTeleportFilter = Nothing;
type XcmTeleportFilter = Everything;
// Allows all reserve asset transfers.
type XcmReserveTransferFilter = Everything;
// Calculates the weight of XCM messages.
Expand Down
5 changes: 4 additions & 1 deletion zombienet/xcm-native.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,24 @@ force_decorator = "generic-evm"
ws_port = 9999
command = "{{ZOMBIENET_LAOS_COMMAND}}"
validator = true
args = ["--log=xcm=trace"]

[[parachains.collators]]
name = "laos-1"
ws_port = 10000
command = "{{ZOMBIENET_LAOS_COMMAND}}"
validator = true
args = ["--log=xcm=trace"]

[[parachains.collators]]
name = "laos-2"
ws_port = 10001
command = "{{ZOMBIENET_LAOS_COMMAND}}"
validator = true
args = ["--log=xcm=trace"]

[[parachains]]
id = 2000
id = 1000
cumulus_based = true
chain = "asset-hub-rococo-local"

Expand Down
Loading