This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[Uniques V2] Atomic NFTs swap #12285
Merged
paritytech-processbot
merged 34 commits into
js/uniques-v2-main-branch
from
js/uniques-v2-swaps
Oct 5, 2022
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
3086c76
Atomic NFTs swap
jsidorenko 12b756f
Fmt
jsidorenko 8083eca
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-swaps
jsidorenko 5575d3f
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-swaps
jsidorenko 5564a52
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-swaps
jsidorenko fc1024a
Fix benchmark
jsidorenko a2955be
Rename swap -> atomic_swap
jsidorenko bdc0538
Update target balance
jsidorenko a28cbcc
Rollback
jsidorenko 504b7d5
Fix
jsidorenko 1ccf996
".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
ca2d1ec
Make desired item optional
jsidorenko 78f4570
Apply suggestions
jsidorenko 7c15814
Update frame/nfts/src/features/atomic_swap.rs
jsidorenko 6232aa4
Rename fields
jsidorenko 9acfb5c
Optimisation
jsidorenko 8d6cbda
Add a comment
jsidorenko ee88eaa
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-swaps
jsidorenko 2ce1ea3
deadline -> maybe_deadline
jsidorenko 99d1eb5
Add docs
jsidorenko b404705
Change comments
jsidorenko cccebd3
Add price direction field
jsidorenko 2202f0d
".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
2688fe5
Wrap price and direction
jsidorenko 2dd02af
Fix benchmarks
jsidorenko e565989
Use ensure! instead of if {}
jsidorenko 82841fc
Make duration param mandatory and limit it to MaxDeadlineDuration
jsidorenko 7fbf339
Make the code safer
jsidorenko e956594
Fix clippy
jsidorenko b52a615
Chore
jsidorenko 3b41ee1
Remove unused vars
jsidorenko 239bf17
try
jsidorenko d086e81
try 2
jsidorenko c2afaa4
try 3
jsidorenko 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 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 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 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 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 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 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 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.
Maybe use a
saturating_add
here and below in case someone usesu64::MAX
as duration.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.
done