This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[pallet_xcm::reserve_transfer_assets]
NotHoldingFees
issue in case of paid XcmRouter is used
#7585
Open
bkontur
wants to merge
18
commits into
kckyeung/xcm-fee-manager
Choose a base branch
from
bko-kckyeung/xcm-fee-manager
base: kckyeung/xcm-fee-manager
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
80f31ec
Test for `pallet_xcm::reserve_transfer_assets` with paid XcmRouter
bkontur c1f882d
Fix another assert
bkontur 28459c0
Potential fix?
bkontur 7f87656
Even easier
bkontur 3774a14
Potential fix for `fn respond(`
bkontur 319956b
`set_router_fee_for_destination` inside `new_test_ext`
bkontur b694ce8
Added TestPaidForPara3000SendXcm to test
bkontur 234a2b3
Merge remote-tracking branch 'origin/kckyeung/xcm-fee-manager' into b…
bkontur 0a249a0
TODO: remove dependency of `is_waived` on `runtime-benchmarks`
bkontur edefa35
Fixed benchmarks to be `FeeManager/XcmFeesToAccount` aware
bkontur 7e78972
Merge remote-tracking branch 'origin/master' into bko-kckyeung/xcm-fe…
bkontur cf462a7
Extract logic to common place to be reused by different runtimes (rel…
bkontur 5a3fed0
Merge remote-tracking branch 'origin/kckyeung/xcm-fee-manager' into b…
3866842
Fix rococo xcm benchmarks
bkontur abeadb5
Merge remote-tracking branch 'origin/kckyeung/xcm-fee-manager' into b…
78d4b8b
Merge remote-tracking branch 'origin/kckyeung/xcm-fee-manager' into b…
5661f28
".git/.scripts/commands/fmt/fmt.sh"
a11a0c6
Nits
bkontur 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -115,15 +115,14 @@ parameter_types! { | |
pub const BaseDeliveryFee: u128 = CENTS.saturating_mul(3); | ||
} | ||
|
||
pub type PriceForChildParachainDelivery = | ||
ExponentialPrice<FeeAssetId, BaseDeliveryFee, TransactionByteFee, Dmp>; | ||
|
||
/// The XCM router. When we want to send an XCM message, we use this type. It amalgamates all of our | ||
/// individual routers. | ||
pub type XcmRouter = WithUniqueTopic<( | ||
// Only one router so far - use DMP to communicate with child parachains. | ||
ChildParachainRouter< | ||
Runtime, | ||
XcmPallet, | ||
ExponentialPrice<FeeAssetId, BaseDeliveryFee, TransactionByteFee, Dmp>, | ||
>, | ||
ChildParachainRouter<Runtime, XcmPallet, PriceForChildParachainDelivery>, | ||
)>; | ||
|
||
parameter_types! { | ||
|
@@ -146,6 +145,9 @@ match_types! { | |
pub type OnlyParachains: impl Contains<MultiLocation> = { | ||
MultiLocation { parents: 0, interior: X1(Parachain(_)) } | ||
}; | ||
pub type HereLocation: impl Contains<MultiLocation> = { | ||
MultiLocation { parents: 0, interior: Here } | ||
}; | ||
} | ||
|
||
/// The barriers one of which must be passed for an XCM message to be executed. | ||
|
@@ -346,7 +348,8 @@ impl xcm_executor::Config for XcmConfig { | |
type SubscriptionService = XcmPallet; | ||
type PalletInstancesInfo = AllPalletsWithSystem; | ||
type MaxAssetsIntoHolding = MaxAssetsIntoHolding; | ||
type FeeManager = XcmFeesToAccount<Self, SystemParachains, AccountId, TreasuryAccount>; | ||
type FeeManager = | ||
XcmFeesToAccount<Self, (SystemParachains, HereLocation), AccountId, TreasuryAccount>; | ||
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. Please explain. |
||
// No bridges yet... | ||
type MessageExporter = (); | ||
type UniversalAliases = Nothing; | ||
|
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
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.
Should this be here or in
xcm-builder
?