-
Notifications
You must be signed in to change notification settings - Fork 732
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 extrinsic for asset transfers using explicit XCM transfer types #3695
Merged
acatangiu
merged 37 commits into
paritytech:master
from
acatangiu:transfer-using-explicit-reserve
Apr 12, 2024
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
dda9308
pallet-xcm: deprecate unlimited_* weight extrinsics
acatangiu 1db1cae
pallet-xcm: remove extrinsics guessed weight and rely on runtime benc…
acatangiu f5e1dfb
pallet-xcm: add new extrinsic for asset transfers using explicit reserve
acatangiu 547eeee
add more trace logging to XCM transport
acatangiu c7ee1af
minor style fix
acatangiu ed77fde
integration-tests: add scenario for parachain sending asset over brid…
acatangiu a7a44c9
make penpal UniversalLocation configurable
acatangiu ffa6250
penpal: charge XCM delivery fees for accurate real-world testing
acatangiu 4afba95
integration-tests: fix tests for penpal charging delivery fees
acatangiu 210cdd2
Merge branch 'master' of github.com:paritytech/polkadot-sdk into tran…
acatangiu c918bea
fix test
acatangiu 3db344b
add prdoc
acatangiu 10d2c40
fix clippy
acatangiu 5b48155
Merge branch 'master' of github.com:paritytech/polkadot-sdk into tran…
acatangiu dbe453d
add test for westend->rococo direction
acatangiu 42e4041
nit
acatangiu e794df3
Merge branch 'master' of github.com:paritytech/polkadot-sdk into tran…
acatangiu 81dc911
pallet-xcm: specify explicit transfer type
acatangiu e1dbf7a
add more tests
acatangiu ef83eab
fix prdoc
acatangiu a2b8708
Merge branch 'master' of github.com:paritytech/polkadot-sdk into tran…
acatangiu 4250692
refactor tests
acatangiu 888d403
even more tests
acatangiu 1c86e6e
another test
acatangiu b82d0b9
add teleport test as well
acatangiu f4e88da
rename xt and update docs
acatangiu 4f2381c
fix weights
acatangiu 36af01f
add tests to westend
acatangiu bd9233a
Merge branch 'master' of github.com:paritytech/polkadot-sdk into tran…
acatangiu 9c7bd39
remove leftover comment
acatangiu adf5128
Apply suggestions from code review
acatangiu 1347f0b
fix logs
acatangiu e3acff2
fix api
acatangiu 4a44194
Merge branch 'master' into transfer-using-explicit-reserve
acatangiu 0d407eb
Update polkadot/xcm/pallet-xcm/src/lib.rs
acatangiu 22093d0
".git/.scripts/commands/fmt/fmt.sh"
a673792
Merge branch 'master' into transfer-using-explicit-reserve
acatangiu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,16 +16,19 @@ | |
mod genesis; | ||
pub use genesis::{genesis, PenpalAssetOwner, PenpalSudoAccount, ED, PARA_ID_A, PARA_ID_B}; | ||
pub use penpal_runtime::xcm_config::{ | ||
CustomizableAssetFromSystemAssetHub, LocalTeleportableToAssetHub, XcmConfig, | ||
CustomizableAssetFromSystemAssetHub, RelayNetworkId as PenpalRelayNetworkId, | ||
}; | ||
|
||
// Substrate | ||
use frame_support::traits::OnInitialize; | ||
use sp_core::Encode; | ||
|
||
// Cumulus | ||
use emulated_integration_tests_common::{ | ||
impl_accounts_helpers_for_parachain, impl_assert_events_helpers_for_parachain, | ||
impl_assets_helpers_for_parachain, impls::Parachain, xcm_emulator::decl_test_parachains, | ||
impl_assets_helpers_for_parachain, impl_xcm_helpers_for_parachain, | ||
impls::{NetworkId, Parachain}, | ||
xcm_emulator::decl_test_parachains, | ||
}; | ||
|
||
// Penpal Parachain declaration | ||
|
@@ -34,6 +37,10 @@ decl_test_parachains! { | |
genesis = genesis(PARA_ID_A), | ||
on_init = { | ||
penpal_runtime::AuraExt::on_initialize(1); | ||
frame_support::assert_ok!(penpal_runtime::System::set_storage( | ||
penpal_runtime::RuntimeOrigin::root(), | ||
vec![(PenpalRelayNetworkId::key().to_vec(), NetworkId::Rococo.encode())], | ||
)); | ||
Comment on lines
+40
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
}, | ||
runtime = penpal_runtime, | ||
core = { | ||
|
@@ -53,6 +60,10 @@ decl_test_parachains! { | |
genesis = genesis(PARA_ID_B), | ||
on_init = { | ||
penpal_runtime::AuraExt::on_initialize(1); | ||
frame_support::assert_ok!(penpal_runtime::System::set_storage( | ||
penpal_runtime::RuntimeOrigin::root(), | ||
vec![(PenpalRelayNetworkId::key().to_vec(), NetworkId::Westend.encode())], | ||
)); | ||
}, | ||
runtime = penpal_runtime, | ||
core = { | ||
|
@@ -77,3 +88,5 @@ impl_assert_events_helpers_for_parachain!(PenpalA); | |
impl_assert_events_helpers_for_parachain!(PenpalB); | ||
impl_assets_helpers_for_parachain!(PenpalA); | ||
impl_assets_helpers_for_parachain!(PenpalB); | ||
impl_xcm_helpers_for_parachain!(PenpalA); | ||
impl_xcm_helpers_for_parachain!(PenpalB); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we mange to merge this: #4037 before, most of this
try_from/expect
stuff will go awayThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either way someone will be fixing conflicts so I don't see it as an advantage to do 4037 before 😆