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
Make most XCM APIs accept an Into<MultiLocation> where MultiLocation is accepted #3627
Merged
Conversation
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
KiChjang
added
A0-please_review
Pull request needs code review.
B0-silent
Changes should not be mentioned in any release notes
C1-low
PR touches the given topic and has a low impact on builders.
D3-trivial 🧸
PR contains trivial changes in a runtime directory that do not require an audit.
labels
Aug 11, 2021
KiChjang
commented
Aug 12, 2021
gavofyork
approved these changes
Sep 28, 2021
shawntabrizi
approved these changes
Sep 29, 2021
bot merge |
Trying merge. |
ghost
deleted the
kckyeung/impl-multilocation
branch
September 29, 2021 23:24
ordian
added a commit
that referenced
this pull request
Sep 30, 2021
* master: (52 commits) Companion for substrate PR#9890 (#3961) Bump version, tx_version and spec_version in prep for v0.9.11 (#3970) Fix master compilation (#3977) Make most XCM APIs accept an Into<MultiLocation> where MultiLocation is accepted (#3627) fix disputes tests (#3974) Drop availability only for candidates that lose disputes (#3973) revert +1 change to be on the safer side (#3972) paras_inherent: reject only candidates with concluded disputes (#3969) feat: measured oneshots (#3902) remove `AllSubsystems` and `AllSubsystemsGen` types (#3874) Companion for Substrate#9867 (#3938) Substrate Companion for #9552 (#3834) CI: run disputes tests (#3962) Bump parity-scale-codec from 2.3.0 to 2.3.1 (#3959) approval-voting: populate session cache in advance (#3954) Bump libc from 0.2.102 to 0.2.103 (#3950) fix master (#3955) Docker files chore (#3880) Bump nix from 0.19.1 to 0.20.0 (#3587) remove connected disconnected state, 3rd attempt (#3898) ...
ordian
added a commit
that referenced
this pull request
Oct 3, 2021
* master: (72 commits) change genesis authority set for wococo-local, revert rococo-local (#3998) ignore irrelevant approvals in logs (#3859) avoid expect, on free availability core (#3994) preserve finalized block in active leaves (#3997) some tweaks to rococo-local (#3996) always broadcast tranche 0 assignments and add a delay before approval (#3904) Tidy up XCM errors in preparation for v2. (#3988) add disputes call to Rococo (#3993) Fix an off-by-one: revert rather than revert-to (#3991) add logs to relay chain selection (#3990) av-store: clean up StoreAvailableData message (#3984) add polkadot-simnet runner (#3985) Remove incorrect proof about Jemalloc (#3982) add new rococo chainspec (#3976) bump async-std's version to remove conflict for substrate (#3981) gossip-support: set last_session_index earlier (#3978) Companion for substrate PR#9890 (#3961) Bump version, tx_version and spec_version in prep for v0.9.11 (#3970) Fix master compilation (#3977) Make most XCM APIs accept an Into<MultiLocation> where MultiLocation is accepted (#3627) ...
17 tasks
19 tasks
This pull request was closed.
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.
B0-silent
Changes should not be mentioned in any release notes
C1-low
PR touches the given topic and has a low impact on builders.
D3-trivial 🧸
PR contains trivial changes in a runtime directory that do not require an audit.
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.
This PR makes it so that users do not need to sweat the details of constructing a
MultiLocation
object when using APIs likesend_xcm
orexecute_xcm
by allowing for syntax such as the following:A slight issue that this may introduce is that trait functions that now accept
impl Into<MultiLocation>
would now make its containing trait not be object-safe, since these functions are now generic. In practical terms, this means a type that implements e.g.SendXcm
cannot be typecasted into aBox<dyn SendXcm>
or a&dyn SendXcm
anymore.