UNPKG

@arcana/ca-sdk

Version:

Arcana Network's chain abstraction SDK for unified balance in Web3 apps

28 lines (27 loc) 735 B
import { WalletClient } from "viem"; import { ChainList } from "../chains"; import { NetworkConfig } from "../typings"; declare class AllowanceQuery { private walletClient; private networkConfig; private chainList; constructor(walletClient: WalletClient, networkConfig: NetworkConfig, chainList: ChainList); get(input: { chainID?: number; tokens?: string[]; }): Promise<{ allowance: bigint; chainID: number; token: string; }[]>; revoke(input: { chainID: number; tokens: string[]; }): Promise<void>; set(input: { amount: bigint; chainID: number; tokens: string[]; }): Promise<void>; } export { AllowanceQuery };