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

pallet-xcm: add new flexible transfer_assets() call/extrinsic #2388

Commits on Nov 30, 2023

  1. Configuration menu
    Copy the full SHA
    1cb3e4f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df85fce View commit details
    Browse the repository at this point in the history
  3. pallet-xcm: add new flexible transfer_assets() call/extrinsic

    Reverts `(limited_)reserve_transfer_assets` to only allow reserve-based transfers
    for all `assets` including fees.
    Similarly `(limited_)teleport_assets` only allows teleports for all `assets`
    including feed.
    
    For complex combinations of asset transfers where assets and fees may have different
    reserves or different reserve/teleport trust configurations, users can use the newly
    added `transfer_assets()` extrinsic which is more flexible in allowing more complex
    scenarios.
    
    `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
    to `dest`.
    No limitations imposed on `fees`.
    
    - for local reserve: transfer assets to sovereign account of destination chain and
      forward a notification XCM to `dest` to mint and deposit reserve-based assets to
      `beneficiary`.
    - for destination reserve: burn local assets and forward a notification to `dest` chain
      to withdraw the reserve assets from this chain's sovereign account and deposit them
      to `beneficiary`.
    - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves
      from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint
      and deposit reserve-based assets to `beneficiary`.
    - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport
      assets and deposit them to `beneficiary`.
    acatangiu committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    97a06b5 View commit details
    Browse the repository at this point in the history
  4. add benchmark stubs

    acatangiu committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    c16290a View commit details
    Browse the repository at this point in the history
  5. WIP xcm-emulator: add bidirectional reserve transfers between local P…

    …enpal assets and Asset Hub as foreign assets
    acatangiu committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    296ab0b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f9b262e View commit details
    Browse the repository at this point in the history
  7. DNM add debug logs

    acatangiu committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    1e6f724 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    abebdab View commit details
    Browse the repository at this point in the history
  9. buy enough execution

    acatangiu committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    770185c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5a941d1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    25dbb41 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    eea1e1d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0e38a63 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    5ff9d1f View commit details
    Browse the repository at this point in the history
  15. pallet-xcm: more tests

    acatangiu committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    fbc22b1 View commit details
    Browse the repository at this point in the history
  16. palle-xcm: more tests

    acatangiu committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    861627e View commit details
    Browse the repository at this point in the history
  17. remove unused import

    acatangiu committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    0d24ff9 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    0ce572b View commit details
    Browse the repository at this point in the history
  19. pallet-xcm: fix benchmarks

    acatangiu committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    1ab9c5c View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2023

  1. Configuration menu
    Copy the full SHA
    e41f8af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    679da71 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e0a5bba View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' of github.com:paritytech/polkadot-sdk into xcm-…

    …emulator-foreign-assets-transfer-tests
    acatangiu committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    a07298a View commit details
    Browse the repository at this point in the history
  5. Revert "DNM add debug logs"

    This reverts commit 1e6f724.
    acatangiu committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    76c4e2e View commit details
    Browse the repository at this point in the history
  6. add prdoc

    acatangiu committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    926add5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    204d262 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2023

  1. Merge branch 'master' of github.com:paritytech/polkadot-sdk into xcm-…

    …emulator-foreign-assets-transfer-tests
    acatangiu committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    83947c0 View commit details
    Browse the repository at this point in the history
  2. address review feedback

    acatangiu committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    a394581 View commit details
    Browse the repository at this point in the history
  3. ".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…

    …=asset-hub-westend --runtime_dir=assets --target_dir=cumulus --pallet=pallet_xcm
    command-bot authored and acatangiu committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    8bd616f View commit details
    Browse the repository at this point in the history
  4. ".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…

    …=bridge-hub-westend --runtime_dir=bridge-hubs --target_dir=cumulus --pallet=pallet_xcm
    command-bot authored and acatangiu committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    35c41c3 View commit details
    Browse the repository at this point in the history
  5. fix tests

    acatangiu committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    ba92481 View commit details
    Browse the repository at this point in the history
  6. run pallet-xcm benchmarks

    ".git/.scripts/commands/bench/bench.sh"
    	--subcommand=pallet
    	--runtime=asset-hub-rococo
    	--runtime_dir=assets
    	--target_dir=cumulus
    	--pallet=pallet_xcm
    
    ".git/.scripts/commands/bench/bench.sh"
            --subcommand=pallet
            --runtime=bridge-hub-rococo
            --runtime_dir=bridge-hubs
            --target_dir=cumulus
            --pallet=pallet_xcm
    
    ".git/.scripts/commands/bench/bench.sh"
            --subcommand=pallet
            --runtime=collectives-westend
            --runtime_dir=collectives
            --target_dir=cumulus
            --pallet=pallet_xcm
    acatangiu committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    53fbf51 View commit details
    Browse the repository at this point in the history