SelfPermit

Handles the encoding of calldata required to call permit on any EIP-2612 compliant token.

GitHub File: selfPermit.ts

Properties

Public

PropertyTypeModifierDescription

INTERFACE

static

The Application Binary Interface for the related Elastic contracts.

Constructor

Private constructor that cannot be constructed.

Methods

encodePermit() - public static

Handles the encoding of calldata that permits the contract to spend the specified token from the message sender.

Parameters

ParamsTypeDescription

token

The token to permit.

options

The options for the permit operation.

Returns

TypeDescription

string

The encoded data that permits the contract to spend the input token.

Last updated