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

XCM docs and tests #2948

Merged
50 commits merged into from
Jun 3, 2021
Merged

XCM docs and tests #2948

50 commits merged into from
Jun 3, 2021

Conversation

apopiak
Copy link
Contributor

@apopiak apopiak commented Apr 28, 2021

This PR adds some documentation and tests for XCM types and functions.

Mostly authored by @kianenigma 🙏

related to #2841

@github-actions github-actions bot added the A3-in_progress Pull request is in progress. No review needed at this stage. label Apr 28, 2021
xcm/src/v0/multi_asset.rs Outdated Show resolved Hide resolved
use sp_std::result;

/// Errors associated with [`MatchesFungibles`] operation.
pub enum Error {
Copy link
Contributor

Choose a reason for hiding this comment

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

This error type cannot (as-is) and should not accommodate all the variant errors that can happen in different implementations (elsewhere), if they can exist.

If ^^ is correct then we need type Error on MatchesFungibles, or a Other(..) variant for random stuff.

But for now it seemed like an overkill.

parachain/src/primitives.rs Outdated Show resolved Hide resolved
xcm/src/v0/traits.rs Outdated Show resolved Hide resolved
xcm/src/v0/traits.rs Outdated Show resolved Hide resolved
Co-authored-by: Alexander Popiak <[email protected]>
Copy link
Contributor Author

@apopiak apopiak left a comment

Choose a reason for hiding this comment

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

some typo fixes

xcm/xcm-builder/src/barriers.rs Outdated Show resolved Hide resolved
xcm/xcm-builder/src/barriers.rs Outdated Show resolved Hide resolved
xcm/xcm-builder/src/currency_adapter.rs Outdated Show resolved Hide resolved
xcm/xcm-builder/src/filter_asset_location.rs Outdated Show resolved Hide resolved
xcm/xcm-builder/src/matches_fungible.rs Outdated Show resolved Hide resolved
xcm/xcm-executor/src/traits/conversion.rs Outdated Show resolved Hide resolved
xcm/xcm-executor/src/traits/conversion.rs Outdated Show resolved Hide resolved
xcm/xcm-executor/src/traits/should_execute.rs Outdated Show resolved Hide resolved
xcm/xcm-executor/src/traits/transact_asset.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

I authored it partially as well, but still :p

This is becoming hard to maintain with upstream changes and I worry that it might become a stale PR. In that case, note that there was one small logical bug that was found here and make sure it is fixed elsewhere.

Copy link
Member

@shawntabrizi shawntabrizi left a comment

Choose a reason for hiding this comment

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

I def see no reason not to merge this PR

@shawntabrizi
Copy link
Member

bot merge

@ghost
Copy link

ghost commented Jun 3, 2021

Waiting for commit status.

@ghost ghost merged commit 282731a into master Jun 3, 2021
@ghost ghost deleted the kiz-alex-test-xcm branch June 3, 2021 02:01
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants