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
[NFTs] Offchain mint #13158
Merged
+1,756
−761
Merged
[NFTs] Offchain mint #13158
Changes from 25 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
bdf9f7d
Allow to mint with the pre-signed signatures
jsidorenko 320582d
Another try
jsidorenko a92dc15
WIP: test encoder
jsidorenko 124d872
Fix the deposits
jsidorenko bb91166
Refactoring + tests + benchmarks
jsidorenko 9f7e563
Add sp-core/runtime-benchmarks
jsidorenko a4c7e79
Remove sp-core from dev deps
jsidorenko 09f86aa
Enable full_crypto for benchmarks
jsidorenko dc9ff18
Typo
jsidorenko 55eeb12
Fix
jsidorenko e8ea9ec
Update frame/nfts/src/mock.rs
jsidorenko 5f27ced
Merge branch 'master' of https://github.com/paritytech/substrate into…
62edf5f
".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nfts
b119156
Add docs
jsidorenko 781f834
Add attributes into the pre-signed object & track the deposit owner f…
jsidorenko 839c37c
Update docs
jsidorenko 4980270
Merge branch 'master' into js/offchain-mint
jsidorenko c2d7c99
Merge branch 'master' of https://github.com/paritytech/substrate into…
7120dd0
".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nfts
088dddd
Add the number of attributes provided to weights
jsidorenko ad7b0e1
Merge branch 'master' into js/offchain-mint
jsidorenko c53df9c
Apply suggestions
jsidorenko 321daa5
Remove dead code
jsidorenko 01c4d8d
Remove Copy
jsidorenko de9b190
Fix docs
jsidorenko c879e2f
Update frame/nfts/src/lib.rs
jsidorenko 566d3c8
Update frame/nfts/src/lib.rs
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
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.
Did you take in consideration that this extrinsic can fail after persisting some state?
Every do_* has its own ensure checks.
I am not sure if its correct.
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.
yep, it could fail if some provided data is incorrect (currently the only possible cases are when the attributes feature is disabled by feature flags or when the NFT is locked). In that case, the strategy "it's all or nothing" applies here. The storage state will get reverted if the extrinsic fails.