UNPKG

@pangolindex/sdk

Version:

🛠 An SDK for building applications on top of Pangolin.

27 lines (26 loc) • 757 B
import { Token } from '../../entities'; import { Interface } from '@ethersproject/abi'; import { BigintIsh } from '../../constants'; export interface StandardPermitArguments { v: 0 | 1 | 27 | 28; r: string; s: string; amount: BigintIsh; deadline: BigintIsh; } export interface AllowedPermitArguments { v: 0 | 1 | 27 | 28; r: string; s: string; nonce: BigintIsh; expiry: BigintIsh; } export declare type PermitOptions = StandardPermitArguments | AllowedPermitArguments; export declare abstract class SelfPermit { static INTERFACE: Interface; /** * Cannot be constructed. */ private constructor(); static encodePermit(token: Token, options: PermitOptions): string; }