Skip to content

Commit

Permalink
add to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
saucepoint committed Aug 5, 2024
1 parent c90e0e9 commit 4ccc9b7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/base/ERC721Permit_v4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ abstract contract ERC721Permit_v4 is ERC721, IERC721Permit_v4, EIP712_v4, Unorde
_approve(owner, spender, tokenId);
}

/// @inheritdoc IERC721Permit_v4
function permitForAll(
address owner,
address operator,
Expand Down
16 changes: 16 additions & 0 deletions src/interfaces/IERC721Permit_v4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,20 @@ interface IERC721Permit_v4 {
function permit(address spender, uint256 tokenId, uint256 deadline, uint256 nonce, bytes calldata signature)
external
payable;

/// @notice Set an operator with full permission to an owner's tokens via signature
/// @param owner The address that is setting the operator
/// @param operator The address that will be set as an operator for the owner
/// @param approved The permission to set on the operator
/// @param deadline The deadline timestamp by which the call must be mined for the approve to work
/// @param signature Concatenated data from a valid secp256k1 signature from the holder, i.e. abi.encodePacked(r, s, v)
/// @dev payable so it can be multicalled with NATIVE related actions
function permitForAll(
address owner,
address operator,
bool approved,
uint256 deadline,
uint256 nonce,
bytes calldata signature
) external payable;
}

0 comments on commit 4ccc9b7

Please sign in to comment.