-
Notifications
You must be signed in to change notification settings - Fork 12.4k
ERC721 full implementation #803
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
32 commits
Select commit
Hold shift + click to select a range
1192e68
Rename current ERC721 implementation to BaseERC721
facuspagnuolo ca163a8
Implement ERC721 optional & approveAll functionality
facuspagnuolo 71cbc51
Support for new ERC721 interface
spalladino 3745025
Add more tests for ERC721
spalladino 559df81
Implement suggestions by @dekz
spalladino d726c79
Update comments in ERC721 contracts
spalladino 54a1d2e
Implement tokensByIndex extension
spalladino 851685c
Add default implementation for metadata URI
spalladino 3cef880
Allow operators to call approve on a token
spalladino 6f180a6
Remove gas stipend restriction in call to 721 receiver
spalladino 6fbe771
Remove deprecated implementation
spalladino 626742e
Add notice to isContract helper on constract constructors
spalladino 95a1f9a
Change natspec delimiters for consistency
spalladino 15f9556
Minor linting fixes
spalladino b332995
Add constant modifier to ERC721_RECEIVED magic value
spalladino f4748da
Use 4-params safeTransferFrom for implementing the 3-params overload
spalladino fb4f728
Minor text changes in natspec comments
spalladino 6b98e4e
Use address(0) instead of 0 or 0x0
spalladino 3f2ea8a
Use if-statements instead of boolean one-liners for clarity
spalladino 74db03b
Keep ownedTokensCount state var in sync in full ERC721 implementation
spalladino 981c6f7
Fix incorrect comparison when burning ERC721 tokens with metadata
spalladino 73b77ae
Use address(0) instead of 0 in one more place in ERC721
spalladino eee5b0e
Throw when querying balance for the zero address
spalladino 9deb637
Update links to approved version of EIP721
spalladino fe6e4ff
Use explicit size for uint
spalladino 4836279
Remove unneeded internal function in ERC721
spalladino 619ae84
Use underscore instead of 'do' prefix for internal methods in ERC721
spalladino 2e593f2
Fix failing test due to events reordering in ERC721 safe transfer
spalladino 6c09d20
Fix bug introduced in 74db03ba06
spalladino 37929c8
Remove do prefix for internal setTokenUri method
spalladino 3676b55
Allow transfers to self in ERC721
spalladino 7815cc5
Merge branch 'master' into feature/full_erc721
frangio 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
Allow operators to call approve on a token
- Loading branch information
commit 3cef880803da7f8cfabc09f7748f3ba0eaaad0fe
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
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.
address(0)