-
Notifications
You must be signed in to change notification settings - Fork 131
Token-swap-over-bridge pallet #944
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
13 commits
Select commit
Hold shift + click to select a range
489b8ea
token swap pallet
svyatonik 6f4a9bc
token swap type (replay protection)
svyatonik 5cd1b54
post-merge fixes
svyatonik ea43759
Merge branch 'master' into token-swap-pallet
svyatonik 1da9403
post-merge fix
svyatonik 06dac9f
Update modules/token-swap/src/lib.rs
svyatonik 2dca550
Update modules/token-swap/src/lib.rs
svyatonik c968bbd
add missing comment part
svyatonik 704845b
Merge branch 'token-swap-pallet' of https://github.com/paritytech/par…
svyatonik 7d4a56e
Update modules/token-swap/src/lib.rs
svyatonik 9fba1df
starting claim after lock period is over is forbidden
svyatonik ff5dd8e
Merge branch 'token-swap-pallet' of https://github.com/paritytech/par…
svyatonik 1c58024
move spec_version and weight to arguments
svyatonik 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
Update modules/token-swap/src/lib.rs
Co-authored-by: Tomasz Drwięga <[email protected]>
- Loading branch information
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, AFAICT if the swap is in
Failedstate you can still cancel it, no? So no funds should be lost.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you've signed any call that has succeeded at the target chain (e.g.
system::remark), you can't cancel it on this chain.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yeah, you're right. Actually given we allow arbitrary calls here, I'd suggest having the user provide
weightas well. This will enable calling into proxy accounts, mutlisigs, etc. Also one less thing the pallet needs to know about the remote chain.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I've also moved
bridged_chain_spec_versionto arguments