Add ERC7674 (draft) (#5071)
Co-authored-by: Ernesto García <ernestognw@gmail.com> Co-authored-by: cairo <cairoeth@protonmail.com>
This commit is contained in:
@ -40,6 +40,7 @@ are useful to interact with third party contracts that implement them.
|
||||
- {IERC5313}
|
||||
- {IERC5805}
|
||||
- {IERC6372}
|
||||
- {IERC7674}
|
||||
|
||||
== Detailed ABI
|
||||
|
||||
@ -80,3 +81,5 @@ are useful to interact with third party contracts that implement them.
|
||||
{{IERC5805}}
|
||||
|
||||
{{IERC6372}}
|
||||
|
||||
{{IERC7674}}
|
||||
|
||||
16
contracts/interfaces/draft-IERC7674.sol
Normal file
16
contracts/interfaces/draft-IERC7674.sol
Normal file
@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
|
||||
import {IERC20} from "./IERC20.sol";
|
||||
|
||||
/**
|
||||
* @dev Temporary Approval Extension for ERC-20 (https://github.com/ethereum/ERCs/pull/358[ERC-7674])
|
||||
*/
|
||||
interface IERC7674 is IERC20 {
|
||||
/**
|
||||
* @dev Set the temporary allowance, allowing `spender` to withdraw (within the same transaction) assets
|
||||
* held by the caller.
|
||||
*/
|
||||
function temporaryApprove(address spender, uint256 value) external returns (bool success);
|
||||
}
|
||||
Reference in New Issue
Block a user