@dolltoken/v2-sdk
Version:
⚒️ An SDK for building applications on top of Doll V2
23 lines (22 loc) • 690 B
TypeScript
import { BigintIsh, Token } from '@dolltoken/sdk-core';
import { Interface } from '@ethersproject/abi';
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;
protected constructor();
protected static encodePermit(token: Token, options: PermitOptions): string;
}