Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Transfer asset via bridge with pallet xcm #2762

Open
wants to merge 412 commits into
base: master
Choose a base branch
from

Conversation

bkontur
Copy link
Contributor

@bkontur bkontur commented Jun 20, 2023

Relates to: #2528 (BridgeHub for Kusama/Polkadot) - real bridging comes here

PR introduces:

  • xcm routing configuration for bridging between AssetHubKusama <-> AssetHubPolkadot
    • explicitly is allowed only reserve based transfer for KSM/DOT to cross-consensus AssetHubs and nothing else at first (lets start defensively)
      • if we decided, we can allow whatever (ETH, TrustBackedAssets, ForeignAssets, PoolAssets ...)
  • tests for simulation limited_reserve_transfer_assets with pallet_xcm both ways + handling ReserveAssetDeposisted on both sides
  • local zomienet run for: (check parachains/runtimes/bridge-hubs/README.md in this PR)
    • reserve based transfer of KSMs from AHK to AHP
    • reserve based transfer of DOTs from AHP to AHK

TODOs:

  • set filters for "reserve asset transfer" on both sides
  • add xcm-emulator tests

bkontur and others added 30 commits December 22, 2022 12:52
* Dumy weights to get compile

* Change UniversalLocation according to paritytech/polkadot#4097 (Location Inversion Removed)

* Fix bridge-hubs weights

* ".git/.scripts/bench-bot.sh" pallet statemine assets pallet_xcm

* ".git/.scripts/bench-bot.sh" pallet statemint assets pallet_xcm

* ".git/.scripts/bench-bot.sh" pallet collectives-polkadot collectives pallet_xcm

* ".git/.scripts/bench-bot.sh" pallet westmint assets pallet_xcm

* ".git/.scripts/bench-bot.sh" xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::generic

* ".git/.scripts/bench-bot.sh" xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::fungible

* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_xcm

* ".git/.scripts/bench-bot.sh" pallet bridge-hub-rococo bridge-hubs pallet_xcm

* ".git/.scripts/bench-bot.sh" xcm bridge-hub-rococo bridge-hubs pallet_xcm_benchmarks::fungible

* ".git/.scripts/bench-bot.sh" xcm bridge-hub-rococo bridge-hubs pallet_xcm_benchmarks::generic

* Change NetworkId to Option<NetworkId>

Co-authored-by: command-bot <>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
* Add UpwardMessageSent event in parachain-system

* additional fixes

* Message Id

* Fix errors from merge

* fmt

* more fmt

* Remove todo

* more formatting
…achains (#2060)

* Allow explicit unpaid executions from the relay chains for system parachains

* Put origin-filtering barriers into WithComputedOrigin

* Use ConstU32<8>

* Small nits

* formatting

* cargo fmt
Copy link
Contributor

@joepetrowski joepetrowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me now. Want to take one more pass over it before approving.

parachains/runtimes/assets/common/src/matching.rs Outdated Show resolved Hide resolved
@paritytech-ci paritytech-ci requested a review from a team July 31, 2023 12:31
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Copy link
Contributor

@vstam1 vstam1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

bkontur and others added 3 commits August 2, 2023 11:03
@paritytech-ci paritytech-ci requested a review from a team August 2, 2023 09:25
@bkontur bkontur mentioned this pull request Aug 3, 2023
12 tasks
@bkontur
Copy link
Contributor Author

bkontur commented Aug 16, 2023

bot fmt

@command-bot
Copy link

command-bot bot commented Aug 16, 2023

@bkontur https://gitlab.parity.io/parity/mirrors/cumulus/-/jobs/3400918 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/cumulus/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 36-2df042da-f065-40c9-af94-7c82c6d07ad7 to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link

command-bot bot commented Aug 16, 2023

@bkontur Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/cumulus/-/jobs/3400918 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/cumulus/-/jobs/3400918/artifacts/download.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B1-note_worthy Changes should be noted in the release notes C7-critical PR touches the given topic and has a critical impact on builders. D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited T1-runtime This PR/Issue is related to the topic “runtime”.
Projects
Development

Successfully merging this pull request may close these issues.

9 participants