swapnet-sdk-test-4
Version:
TypeScript SDK for SwapNet API.
17 lines (16 loc) • 644 B
TypeScript
import { AddressAsIf } from "./addressAsIf.js";
export type Permit2AllowanceValue = {
nonce: bigint;
expiration: bigint;
amount: bigint;
};
export declare class Permit2AsIf extends AddressAsIf {
private _method;
private _allowanceMappingSlotNumber;
private _nonceBitmapMappingSlotNumber;
constructor(address: string);
allowance(ownerAddress: string, tokenAddress: string, spenderAddress: string): Permit2AsIf;
nonceBitmap(ownerAddress: string, wordPos: bigint): Permit2AsIf;
is(value: Permit2AllowanceValue | bigint): Permit2AsIf;
}
export declare const permit2: (permit2Address: string) => Permit2AsIf;