-
Notifications
You must be signed in to change notification settings - Fork 105
feat: XCM exchange asset #640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
d162612
add integation test for exchange asset
apopiak 1911994
adjust first test with proper assertions
dmoka 77a1994
reset emulator at the start of the test
apopiak 81b4807
formatting
apopiak f0cc170
fix test configuration
dmoka edc9a2b
add OmniExchanger and failing test, make integration test fail
apopiak f2a3690
moved xcm exchanger to omnipool because it is omnipool specific
dmoka a740571
implement sell for OmniExchanger
apopiak 326d209
add more asserts and use withdraw result
apopiak 4a70930
implement buy for ExchangeAsset
apopiak 51be40a
formatting
apopiak e7cfd40
small fixes
apopiak 1cec099
remove unused imports
apopiak 18d586d
get ExchangeAsset integration test working
apopiak 79dd506
remove unnecessary clone
apopiak 1c97f27
remove unnecessary into
apopiak 0522bc3
formatting
apopiak 1427319
remove debug statement
apopiak 3224da0
add and update comments
apopiak 7f58b87
add negative test case for disallowing multiple assets
dmoka dc390b3
add AllowTransferAndSwap
apopiak c372eaa
formatting
apopiak 53753e9
make clippy happy
apopiak ffddb51
Merge branch 'hack/xcm-exchange-asset' of github.com:galacticcouncil/…
apopiak a95b961
fix filter - add set fees to allow functionality of transfer and swap
dmoka 8d54035
adjust recursion level and add test for it
dmoka 7de4096
add ignored test for filter too many instructions in depth
dmoka 12a046a
add positive case for not fitlering message with max deep
dmoka 02f8755
remove unused code
dmoka 4e50282
adjust ignored test to reach max instruction limit
dmoka b1770a7
renaming
dmoka 4b0f780
add counting of instructions
dmoka eb8f663
remove limit per level logic as we check for the max number of all in…
dmoka 0a0a103
remove unnecessary check
dmoka a4649a0
add config for max xcm depth
dmoka d81f737
make max instructions as config
dmoka a54d45c
improve test assertions logic
dmoka 9572d54
adjust test names
dmoka 3f7aed0
adjust todo
dmoka fb1f269
replace omnipool asset exchange logic to hydra and also adding todos …
dmoka b1246f3
use proper error handling to prevent panicking
dmoka 5d4f1d4
move xcm exchange to hydra and and use router interface to decouple i…
dmoka 4b82748
merge master to hack/xcm-exchange-asset
dmoka 0c2eae9
remove done todo comment
dmoka fe94afe
replace xcm filter and omniexchange to adapter
dmoka 3c62c76
rename filter to xcm execute filter
dmoka 08e98c8
use sp std instead of normal
dmoka 86e7882
remove done todo
dmoka 09b390b
add logging for invalid client data for exchange asset
dmoka 60eae91
ignore origin in exchange asset as it is not relevant for the asset e…
dmoka 8a5fcfd
make xcm asset exchanger generic over pool type with default pool
dmoka 2dc5f5b
remove todos
dmoka 3d9d6fe
WIP - add test for transfer and swap
dmoka aecd4d8
fix integration test
apopiak a3b1da7
fix integration test
apopiak fabea01
Merge branch 'hack/xcm-exchange-asset' of github.com:galacticcouncil/…
apopiak fab79ab
improve test clarity
apopiak ca0c934
add helper comments on the execution chain
dmoka 7b0d395
clean up tests
dmoka bfc1208
clean up in integration tests
dmoka f7fb997
make clippy happy
dmoka bc897da
rollback omnipool
dmoka 9a722e0
rollback omnipool toml as we moved the exchange asset implementation …
dmoka 7effb1e
remove unnecessary optional
dmoka a7eacdc
merge master to hack/xcm-exchange-asset
dmoka 9b10699
bump versions
dmoka f2d9008
order functions in execution order
dmoka 7a49789
organize import
dmoka 6d7c340
remove unused dependencies
dmoka 0d66a99
undo runtime version dump as nothing will be changed in hydra runtime…
dmoka b59c037
Remove asset exchange configuration from hydra runtime as first we tr…
dmoka f908c06
simplify check
apopiak 5a41c80
simplify iter
apopiak dfe223e
initialize vec with capacity
apopiak e4baf93
rename DefaultPoolType
apopiak c370f50
add doc comments and simplify
apopiak 9c00160
add doc comment for XcmAssetExchanger
apopiak 9c7a424
Merge branch 'master' into hack/xcm-exchange-asset
apopiak 0bfa9a9
Merge branch 'master' into hack/xcm-exchange-asset
mrq1911 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
make xcm asset exchanger generic over pool type with default pool
- Loading branch information
commit 8a5fcfdf9dc7e4f410110240392357445e15a6fb
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
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.