UNPKG

@catalabs/catalyst-sdk

Version:
19 lines 1.34 kB
import type { PermitBatchData, PermitData } from '../evm/permit2/interfaces'; import type { TransactionOptions } from '../types'; import type { SdkResponse } from './sdk-response.interface'; export interface ITokensModule { checkBalance(token: string, owner: string): Promise<bigint>; checkBalances(tokens: string[], owner: string): Promise<Record<string, bigint>>; checkAllowance(token: string, owner: string, spender: string): Promise<bigint>; increaseAllowance(token: string, spender: string, amount: bigint, options?: TransactionOptions): Promise<SdkResponse>; checkPermitAmount(token: string, owner: string, spender: string): Promise<bigint>; ensurePermit2Allowance(token: string, options?: TransactionOptions): Promise<SdkResponse | undefined>; generatePermitData(token: string, spender: string, amount?: bigint, options?: TransactionOptions): Promise<PermitData>; generatePermitBatchData(assets: { token: string; amount?: bigint; }[], spender: string, options?: TransactionOptions): Promise<PermitBatchData>; revoke(token: string, spender: string): Promise<SdkResponse>; ensureAllowance(token: string, owner: string, spender: string, amount: bigint, options?: TransactionOptions): Promise<SdkResponse | undefined>; } //# sourceMappingURL=tokens-module.interface.d.ts.map