Skip to content

Commit 4ed5f71

Browse files
committed
feat: adds ERC20 permit interface, ref. eip-2612
1 parent 7e598d2 commit 4ed5f71

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/interfaces/token/IERC20Permit.sol

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// SPDX-License-Identifier: Apache 2
2+
3+
pragma solidity ^0.8.0;
4+
5+
import "IERC20/IERC20.sol";
6+
7+
//https://eips.ethereum.org/EIPS/eip-2612
8+
interface IERC20Permit is IERC20 {
9+
function permit(
10+
address owner,
11+
address spender,
12+
uint value,
13+
uint deadline,
14+
uint8 v,
15+
bytes32 r,
16+
bytes32 s
17+
) external;
18+
function nonces(address owner) external view returns (uint);
19+
function DOMAIN_SEPARATOR() external view returns (bytes32);
20+
}

0 commit comments

Comments
 (0)