This repository was 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.5k
Ensure MultiLocation always has a canonical representation #3404
Merged
Merged
Changes from all commits
Commits
Show all changes
186 commits
Select commit
Hold shift + click to select a range
3e15173
MultiAsset TWO
gavofyork a7c51a8
Ensure MultiLocation always has a canonical representation
KiChjang 12054df
Merge remote-tracking branch 'origin/master' into gav-multiasset-2
gavofyork 982e654
Merge remote-tracking branch 'origin' into kckyeung/canonical-xcm-mul…
KiChjang 621e873
Remove v1 module
KiChjang ee80e03
Draft next MultiAsset API.
gavofyork 65b6fd4
Implement custom encoding/decoding scheme for MultiLocation
KiChjang 16927cd
Properly implement IntoIterator for Junctions
KiChjang 786fb46
Implement TryFrom<MultiLocation> for Junctions
KiChjang 5b487a6
Fix spelling mistakes
KiChjang 5c23328
Fix tests in xcm-executor
KiChjang 2661b91
XCM core builds
gavofyork 6fc030e
XCM Executor builds
gavofyork 8017453
XCM Builder builds
gavofyork 72c2581
Fix xcm-builder tests and compilation
KiChjang c4a2d68
Make pallet-xcm compile
KiChjang 9f64f61
Use MultiLocation::default()
KiChjang 15b1ec9
Make polkadot-runtime-common compile
KiChjang 2370c39
Make rococo-runtime compile
KiChjang 6aaa81b
Change return type of parent_count to u8
KiChjang 59e5935
Change MAX_MULTILOCATION_LENGTH to 255
KiChjang 85a61a5
Make kusama-runtime compile
KiChjang dba0ed9
Fix logic in pallet-xcm
KiChjang e1ec296
Use MultiLocation::empty()
KiChjang 9807639
Fix logic in location_conversion
KiChjang 57bd83a
Fix logic in origin_conversion.rs
KiChjang 5a4dc4f
Make westend-runtime compile
KiChjang f313fc4
Rename prefixes and suffixes variables
KiChjang 8cdf6c1
Rename non_parent to interior
KiChjang 5956216
Rename non_parent to interior
KiChjang 46aea44
Add test for encode/decode roundtrip and fix decode algorithm
KiChjang 5445d06
API changes making their way throughout
gavofyork 958d79a
Some TODOs
gavofyork 7d47d21
Further build fixes
gavofyork 6ce9f1d
Rename non_parent/junctions to interior
KiChjang bb5bf44
Basic compile builds
gavofyork acef319
First test fixed
gavofyork 7d700b6
All executor tests fixed
gavofyork 3e62aa3
Typo
gavofyork ca477f0
Optimize subsume_assets and add test
gavofyork 3cc428f
Optimize checked_sub
gavofyork 099aea7
XCM Builder first test fixed
gavofyork 5158442
Fix builder tests
gavofyork 6814aa8
Fix doc test
gavofyork c41afe5
Merge remote-tracking branch 'origin/master' into kckyeung/canonical-…
KiChjang 8d8aa5c
Make xcm-simulator compile
KiChjang 3ef2cd4
Merge remote-tracking branch 'origin/master' into kckyeung/canonical-…
KiChjang 825a2aa
Make xcm-simulator-example compile
KiChjang 4f4693a
Make spellcheck happy
KiChjang 8178647
cargo fmt
KiChjang 529a931
fix some doc tests
gavofyork 3e93d54
spelling
gavofyork f42b3ab
named fields for AllOf
gavofyork 260f8a4
Fix subtle bug where Null is treated as an identifier
KiChjang 2a2af5b
Add FIXME comment awaiting for const generics eval stabilization
KiChjang 97051b2
Update xcm/src/v0/multiasset.rs
gavofyork 84b79cf
Update xcm/src/v0/multiasset.rs
gavofyork 1f98872
Update xcm/src/v0/multiasset.rs
gavofyork 0cc61de
Update xcm/src/v0/multiasset.rs
gavofyork 4f57497
Merge branch 'master' into gav-multiasset-2-reformat
gavofyork 723990c
Reformat
gavofyork 9e2e009
Move to XCM version 1
gavofyork 00ca37b
Spelling
gavofyork 768c96a
warnings
gavofyork 2936419
Replace some more v0->v1s
gavofyork 015fff2
warnings
gavofyork b5fe03e
format
gavofyork 608a212
Add max_assets param
gavofyork dee3be5
building
gavofyork a6eaaa2
test fixes
gavofyork f58a659
tests
gavofyork 8a78100
another test
gavofyork 6eb75ad
final test
gavofyork c4f61f3
Update rustdocs and add debug_assert where sensible
KiChjang a25f3ea
Revert debug_assert in const fn len()
KiChjang 9d0b9f9
tests
gavofyork b5b63c8
Rename Null -> Here
gavofyork e9dbc72
Introduce
gavofyork 36ccb47
More ergonomics
gavofyork de33d7d
More ergonomics
gavofyork 7ff0493
test fix
gavofyork d43d987
Merge branch 'gav-multiasset-2' into gav-max-assets
gavofyork 84c44f8
test fixes
gavofyork 7d52b93
docs
gavofyork 51c7d05
BuyExecution includes
gavofyork 851b00e
Fix XCM extrinsics
gavofyork 20bb714
fmt
gavofyork 3f85ebd
Make Vec<MultiAsset>/MultiAssets conversions safe
gavofyork 61a2231
More MultiAssets conversion safety
gavofyork 7646446
Merge remote-tracking branch 'origin/master' into gav-multiasset-2
gavofyork 8644265
spelling
gavofyork 1e75953
fix doc test
gavofyork 669dcb0
Apply suggestions from code review
gavofyork 767bdb5
Apply suggestions from code review
gavofyork ec2c1e9
fmt
gavofyork 740f6f3
Add v0, remove VersionedMultiAsset
gavofyork 9f8606d
Remove VersionedMultiLocation
gavofyork 1c4a89a
Update xcm/src/v1/order.rs
gavofyork d3fb090
Update xcm/src/v1/mod.rs
gavofyork a5c2bde
XCM v0 backwards compatibility
gavofyork 2d0479a
Merge branch 'gav-multiasset-2' of github.com:paritytech/polkadot int…
gavofyork 7130ed7
Full compatibility
gavofyork efa012d
fmt
gavofyork a0658e1
Merge branch 'master' into gav-multiasset-2
gavofyork e33710b
Update xcm/pallet-xcm/src/lib.rs
shawntabrizi a31887c
Merge branch 'master' into gav-multiasset-2
gavofyork fe59886
Update xcm/src/v0/order.rs
gavofyork d2bd1e0
Tweaks to versioning system
gavofyork 089d90c
Merge branch 'gav-multiasset-2' of github.com:paritytech/polkadot int…
gavofyork d9ff88c
Fixes
gavofyork b40668e
fmt
gavofyork 5e0f1f9
Merge remote-tracking branch 'origin/gav-multiasset-2' into kckyeung/…
KiChjang 4b200be
Merge remote-tracking branch 'origin/gav-multiasset-2' into kckyeung/…
KiChjang a123f94
Fix pallet-xcm tests
KiChjang e2523e3
Merge remote-tracking branch 'origin/master' into kckyeung/canonical-…
KiChjang 5c330ad
fix
KiChjang 0edc39f
Substitute with_parent with with_parents_const
KiChjang 4de501b
Rename argument name from a to m
KiChjang 393381d
Rename split_last to split_last_interior
KiChjang a064c94
Allow adding multiple parents in MultiLocation
KiChjang 0b0c22b
Rename pop_parent to dec_parent
KiChjang 8df05d0
Ensure relay chain XCM sender receives a MultiLocation without any pa…
KiChjang f8bbf77
Block only when MultiLocation destination length is 8
KiChjang 9b12f9b
Cargo fmt
KiChjang 5edf59c
Remove reverse iterators, implement DoubleEndedIterator and add tests
KiChjang e9128b9
Fix iter_rev lifetime requirements
KiChjang 56cca55
Cargo fmt
KiChjang 3726219
Add an into() method for Junctions for conciseness in const context
KiChjang 955b9e4
Ensure parent count is 0 while executing who in RelayedFrom
KiChjang da521d6
Appease spellchecker
KiChjang 435c6a4
Merge remote-tracking branch 'origin/master' into kckyeung/canonical-…
KiChjang a3b84f0
Use and_then instead of repeated map_err
KiChjang e0dcb84
Remove custom codec indices for v1 Junctions
KiChjang a345988
Add convenience 'contains_parents_only' method to MultiLocation
KiChjang bdbbd8f
Fix merge conflict
KiChjang a1489cb
Use more convenience methods
KiChjang e6e4509
Remove with_parachain_interior
KiChjang 139b8b1
Prefer matching against tuple instead of using match guards
KiChjang 2b8a97d
Match against tuple instead of using more match guards
KiChjang db5c466
Update encode/decode test for MultiLocation
KiChjang c3f372d
Minor tweaks
gavofyork a605996
Fixes
gavofyork 0d21a44
Fixes
gavofyork da77312
Fixes
gavofyork 7d3a238
Fix MultiLocation
gavofyork cf14820
Add deprecation note for iter_rev and into_iter_rev
KiChjang a2839cf
Update some rustdocs
KiChjang 4970fff
cargo fmt
KiChjang 9644979
Fix xcm-executor unit tests
KiChjang a71cb28
Fix compilation and unit tests in xcm-builder
KiChjang 74d4db9
cargo fmt
KiChjang b72f127
Fix tests in xcm-simulator-example
KiChjang 1112e0e
Publicize MultiLocation fields
KiChjang b444e23
Match on the MultiLocation struct directly in xcm-builder
KiChjang cdbaccc
Do not dereference undereferenceable types
KiChjang 18a82ec
Add convenience MultiLocation conversions for tuples
KiChjang d82fb6b
Use clearer import paths
KiChjang 2281325
Remove unused dependency
KiChjang fe78be8
fix junction + response
shawntabrizi 5d58105
Import from latest opaque xcm module
KiChjang a544414
Merge branch 'master' into shawntabrizi-fix-backwards-compat
shawntabrizi 1ab9719
Update xcm/src/v1/mod.rs
shawntabrizi 7d6daba
better comment
shawntabrizi dbc412b
Fix ownership transfer
KiChjang 69ee3db
Merge remote-tracking branch 'origin/master' into kckyeung/canonical-…
KiChjang 7727c4b
Fix merge
KiChjang e6a2160
Fix merge
KiChjang aa49333
cargo fmt
KiChjang 5ae97f4
Merge remote-tracking branch 'origin/shawntabrizi-fix-backwards-compa…
KiChjang c3c0005
Fix merge
KiChjang 15f83c3
Fix merge
KiChjang d73fd90
Fix integration test
KiChjang 1a1708c
More readable Parent syntax
gavofyork 102b9d9
cleanup
gavofyork 36b10f3
cleanup
gavofyork 92c9785
cleanup
gavofyork 30c404c
cleanup
gavofyork 4e9f958
cleanup
gavofyork 52c0621
cleanup
gavofyork 623039b
cleanup
gavofyork 1c97d0f
cleanup
gavofyork 6780778
Merge remote-tracking branch 'origin/master' into kckyeung/canonical-…
KiChjang 425116f
cargo fmt
KiChjang 9ed00fc
Fixes
gavofyork c2e6720
Merge branch 'kckyeung/canonical-xcm-multilocation' of github.com:par…
gavofyork 38f6e3c
Fix doc test
KiChjang 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.