-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emit NonceChanged event when the nonce changed
- Loading branch information
Showing
6 changed files
with
28 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ title: ERC-721 Nonce Extension | |
description: Add a `nonce` function to ERC-721. | ||
author: Anders (@0xanders), Lance (@LanceSnow), Shrug <[email protected]> | ||
discussions-to: https://ethereum-magicians.org/t/eip5008-eip-721-nonce-and-metadata-update-extension/8925 | ||
status: Final | ||
status: Last Call | ||
last-call-deadline: 2023-08-15 | ||
type: Standards Track | ||
category: ERC | ||
created: 2022-04-10 | ||
|
@@ -26,7 +27,12 @@ This EIP proposes adding a `nonce` property to ERC-721 tokens, and the `nonce` w | |
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY" and "OPTIONAL" in this document are to be interpreted as described in RFC 2119. | ||
|
||
```solidity | ||
/// @dev the ERC-165 identifier for this interface is 0xce03fdab. | ||
interface IERC5008 /* is IERC165 */ { | ||
/// @notice Emitted when the `nonce` of an NFT is changed | ||
event NonceChanged(uint256 tokenId, uint256 nonce); | ||
/// @notice Get the nonce of an NFT | ||
/// Throws if `tokenId` is not a valid NFT | ||
/// @param tokenId The id of the NFT | ||
|
@@ -56,7 +62,7 @@ Run: | |
```sh | ||
cd ../assets/eip-5008 | ||
npm install | ||
npx hardhat test ./test/test.ts | ||
npm run test | ||
``` | ||
|
||
## Reference Implementation | ||
|
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