-
Notifications
You must be signed in to change notification settings - Fork 85
Lf 15521 enhance permit2 proxy [GenericErrors v1.0.3,IERC1271 v1.0.0,Permit2Proxy v1.1.0] #1391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,36 @@ | ||||||||||||||||||
| // SPDX-License-Identifier: MIT | ||||||||||||||||||
| pragma solidity ^0.8.17; | ||||||||||||||||||
|
|
||||||||||||||||||
| import { IERC20Permit } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol"; | ||||||||||||||||||
|
|
||||||||||||||||||
| interface IERC20PermitExtended is IERC20Permit { | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add required NatSpec documentation for the interface. All interfaces must include NatSpec with Apply this diff: import { IERC20Permit } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol";
+/// @title IERC20 Permit Extended Interface
+/// @notice Extends IERC20Permit with packed signature support and EIP-3009 transferWithAuthorization
+/// @author LI.FI (https://li.fi)
+/// @custom:version 1.0.0
interface IERC20PermitExtended is IERC20Permit {Based on coding guidelines and pipeline failures. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| function permit( | ||||||||||||||||||
| address owner, | ||||||||||||||||||
| address spender, | ||||||||||||||||||
| uint256 value, | ||||||||||||||||||
| uint256 deadline, | ||||||||||||||||||
| bytes calldata signature | ||||||||||||||||||
| ) external; | ||||||||||||||||||
|
|
||||||||||||||||||
| function transferWithAuthorization( | ||||||||||||||||||
| address from, | ||||||||||||||||||
| address to, | ||||||||||||||||||
| uint256 value, | ||||||||||||||||||
| uint256 validAfter, | ||||||||||||||||||
| uint256 validBefore, | ||||||||||||||||||
| bytes32 nonce, | ||||||||||||||||||
| uint8 v, | ||||||||||||||||||
| bytes32 r, | ||||||||||||||||||
| bytes32 s | ||||||||||||||||||
| ) external; | ||||||||||||||||||
|
|
||||||||||||||||||
| function transferWithAuthorization( | ||||||||||||||||||
| address from, | ||||||||||||||||||
| address to, | ||||||||||||||||||
| uint256 value, | ||||||||||||||||||
| uint256 validAfter, | ||||||||||||||||||
| uint256 validBefore, | ||||||||||||||||||
| bytes32 nonce, | ||||||||||||||||||
| bytes calldata signature | ||||||||||||||||||
| ) external; | ||||||||||||||||||
| } | ||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the license identifier to LGPL-3.0-only.
The coding guidelines require all first-party Solidity files to use
LGPL-3.0-only, notMIT.Apply this diff:
Based on coding guidelines.
📝 Committable suggestion
🧰 Tools
🪛 GitHub Actions: VersionControlAndAuditVerification
[error] 1-1: The following files are missing a custom:version tag in their code: src/Interfaces/IERC20PermitExtended.sol
🤖 Prompt for AI Agents