IPermit2Forwarder
Git Source - Generated with forge doc
Interface for the Permit2Forwarder contract
Functions
permit
allows forwarding a single permit to permit2
this function is payable to allow multicall with NATIVE based actions
function permit(address owner, IAllowanceTransfer.PermitSingle calldata permitSingle, bytes calldata signature)
external
payable
returns (bytes memory err);
Parameters
Name | Type | Description |
---|---|---|
owner | address | the owner of the tokens |
permitSingle | IAllowanceTransfer.PermitSingle | the permit data |
signature | bytes | the signature of the permit; abi.encodePacked(r, s, v) |
Returns
Name | Type | Description |
---|---|---|
err | bytes | the error returned by a reverting permit call, empty if successful |
permitBatch
allows forwarding batch permits to permit2
this function is payable to allow multicall with NATIVE based actions
function permitBatch(address owner, IAllowanceTransfer.PermitBatch calldata _permitBatch, bytes calldata signature)
external
payable
returns (bytes memory err);
Parameters
Name | Type | Description |
---|---|---|
owner | address | the owner of the tokens |
_permitBatch | IAllowanceTransfer.PermitBatch | a batch of approvals |
signature | bytes | the signature of the permit; abi.encodePacked(r, s, v) |
Returns
Name | Type | Description |
---|---|---|
err | bytes | the error returned by a reverting permit call, empty if successful |