@swapnet-xyz/sdk
Version:
TypeScript SDK for SwapNet API.
18 lines (17 loc) • 707 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_ADDRESS = "0x000000000022d473030f116ddee9f6b43ac78ba3";
export declare const permit2: () => Permit2AsIf;