@devasher/kuru-sdk
Version:
Ethers v6 SDK to interact with Kuru (forked from @kuru-labs/kuru-sdk)
22 lines • 1.17 kB
TypeScript
import { ethers, ContractTransactionResponse } from 'ethers';
import { TransactionOptions } from '../types';
export declare abstract class PositionWithdrawer {
/**
* @dev Cancels a batch of liquidity positions from the contract
* @param signer - The signer object
* @param contractAddress - The contract address
* @param orderIds - Array of order IDs to cancel
* @returns A promise that resolves to the transaction receipt
*/
static withdrawLiquidity(signer: ethers.Signer, contractAddress: string, orderIds: number[]): Promise<ContractTransactionResponse>;
/**
* @dev Constructs a transaction for batch liquidity withdrawal
* @param signer - The signer instance
* @param contractAddress - The contract address
* @param orderIds - Array of order IDs to cancel
* @param txOptions - Transaction options
* @returns A promise that resolves to the transaction request object
*/
static constructBatchWithdrawTransaction(signer: ethers.Signer, contractAddress: string, orderIds: number[], txOptions?: TransactionOptions): Promise<ethers.TransactionRequest>;
}
//# sourceMappingURL=withdraw.d.ts.map