SelfPermit
Handles the encoding of calldata required to call permit on any EIP-2612 compliant token.
GitHub File: selfPermit.ts
Properties
Public
Property | Type | Modifier | Description |
---|---|---|---|
INTERFACE | static | The Application Binary Interface for the related Elastic contracts. |
Constructor
Private constructor that cannot be constructed.
Methods
encodePermit() - public
static
public
static
Handles the encoding of calldata that permits the contract to spend the specified token from the message sender.
Parameters
Params | Type | Description |
---|---|---|
token | The token to permit. | |
options | The options for the permit operation. |
Returns
Type | Description |
---|---|
string | The encoded data that permits the contract to spend the input token. |
Last updated