XCM docs and tests (#2948)
* WIP * add tests and docs for DoubleEncoded * reformat parent_count * add test for match_and_split * fix append_with docs and add tests * move Parachain enum variant to tuple * Fix stuff * add to append test * simplify match * formatting * format and extend doc comments (including examples) * fix typo * add some doc comments * add test for location inverter * Add more tests/docs * Fix build * matches fungibles * currency adapter. * add more tests for location inverter * extract max length magic number into constant * adapters. * Apply suggestions from code review * Final touches. * Repot and fixes * Remove last todo * Apply suggestions from code review Co-authored-by:Alexander Popiak <alexander.popiak@parity.io> * Update xcm/xcm-builder/src/barriers.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Update xcm/xcm-builder/src/barriers.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Update xcm/xcm-builder/src/currency_adapter.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Update xcm/xcm-builder/src/filter_asset_location.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Update xcm/xcm-builder/src/matches_fungible.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Update xcm/xcm-executor/src/traits/conversion.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Update xcm/xcm-executor/src/traits/conversion.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Update xcm/xcm-executor/src/traits/transact_asset.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Update xcm/xcm-executor/src/traits/should_execute.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> Co-authored-by:
kianenigma <kian@parity.io> Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com>
Showing
- polkadot/parachain/src/primitives.rs 2 additions, 0 deletionspolkadot/parachain/src/primitives.rs
- polkadot/xcm/src/double_encoded.rs 42 additions, 2 deletionspolkadot/xcm/src/double_encoded.rs
- polkadot/xcm/src/v0/multi_asset.rs 93 additions, 29 deletionspolkadot/xcm/src/v0/multi_asset.rs
- polkadot/xcm/src/v0/multi_location.rs 144 additions, 81 deletionspolkadot/xcm/src/v0/multi_location.rs
- polkadot/xcm/src/v0/traits.rs 64 additions, 4 deletionspolkadot/xcm/src/v0/traits.rs
- polkadot/xcm/xcm-builder/src/barriers.rs 9 additions, 0 deletionspolkadot/xcm/xcm-builder/src/barriers.rs
- polkadot/xcm/xcm-builder/src/currency_adapter.rs 42 additions, 5 deletionspolkadot/xcm/xcm-builder/src/currency_adapter.rs
- polkadot/xcm/xcm-builder/src/filter_asset_location.rs 4 additions, 0 deletionspolkadot/xcm/xcm-builder/src/filter_asset_location.rs
- polkadot/xcm/xcm-builder/src/fungibles_adapter.rs 18 additions, 59 deletionspolkadot/xcm/xcm-builder/src/fungibles_adapter.rs
- polkadot/xcm/xcm-builder/src/lib.rs 4 additions, 0 deletionspolkadot/xcm/xcm-builder/src/lib.rs
- polkadot/xcm/xcm-builder/src/location_conversion.rs 106 additions, 3 deletionspolkadot/xcm/xcm-builder/src/location_conversion.rs
- polkadot/xcm/xcm-builder/src/matches_fungible.rs 43 additions, 0 deletionspolkadot/xcm/xcm-builder/src/matches_fungible.rs
- polkadot/xcm/xcm-builder/src/mock.rs 13 additions, 8 deletionspolkadot/xcm/xcm-builder/src/mock.rs
- polkadot/xcm/xcm-builder/src/origin_conversion.rs 3 additions, 2 deletionspolkadot/xcm/xcm-builder/src/origin_conversion.rs
- polkadot/xcm/xcm-executor/src/lib.rs 3 additions, 2 deletionspolkadot/xcm/xcm-executor/src/lib.rs
- polkadot/xcm/xcm-executor/src/traits/conversion.rs 51 additions, 3 deletionspolkadot/xcm/xcm-executor/src/traits/conversion.rs
- polkadot/xcm/xcm-executor/src/traits/filter_asset_location.rs 3 additions, 0 deletions...adot/xcm/xcm-executor/src/traits/filter_asset_location.rs
- polkadot/xcm/xcm-executor/src/traits/matches_fungibles.rs 59 additions, 0 deletionspolkadot/xcm/xcm-executor/src/traits/matches_fungibles.rs
- polkadot/xcm/xcm-executor/src/traits/mod.rs 2 additions, 0 deletionspolkadot/xcm/xcm-executor/src/traits/mod.rs
- polkadot/xcm/xcm-executor/src/traits/on_response.rs 3 additions, 0 deletionspolkadot/xcm/xcm-executor/src/traits/on_response.rs
Please register or sign in to comment