Skip to content

Commit

Permalink
feat: adds ERC20 permit interface, ref. eip-2612 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
scnale authored Jan 22, 2025
1 parent 7e598d2 commit 6b16db0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/interfaces/token/IERC20Permit.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.0;

import "IERC20/IERC20.sol";

//https://eips.ethereum.org/EIPS/eip-2612
interface IERC20Permit is IERC20 {
function permit(
address owner,
address spender,
uint value,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
function nonces(address owner) external view returns (uint);
function DOMAIN_SEPARATOR() external view returns (bytes32);
}

0 comments on commit 6b16db0

Please sign in to comment.