UNPKG

@dzapio/sdk

Version:

A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.

22 lines (21 loc) 792 B
import { type WalletClient } from 'viem'; import { HexString } from '../../types'; import { BatchCallParams } from './sendBatchCalls'; export declare function generateApprovalBatchCalls({ tokens, chainId, sender, spender, multicallAddress, rpcUrls, }: { tokens: Array<{ address: HexString; amount: string; }>; chainId: number; sender: HexString; spender: HexString; multicallAddress?: HexString; rpcUrls?: string[]; }): Promise<BatchCallParams[]>; export declare function batchApproveTokens(walletClient: WalletClient, tokens: Array<{ address: HexString; amount: string; }>, chainId: number, spender: HexString, sender: HexString, multicallAddress?: HexString, rpcUrls?: string[]): Promise<{ success: boolean; batchId?: string; }>;