@devasher/kuru-sdk
Version:
Ethers v6 SDK to interact with Kuru (forked from @kuru-labs/kuru-sdk)
24 lines • 1.63 kB
TypeScript
import { ethers, TransactionReceipt } from 'ethers';
import { TransactionOptions } from '../types';
export declare abstract class OrderCanceler {
/**
* @dev Constructs a transaction to cancel multiple orders.
* @param signer - The signer instance to interact with the blockchain.
* @param orderbookAddress - The address of the order book contract.
* @param orderIds - An array of order IDs to be cancelled.
* @param txOptions - Transaction options to be used for the transaction.
* @returns A promise that resolves to the transaction request object.
*/
static constructCancelOrdersTransaction(signer: ethers.AbstractSigner, orderbookAddress: string, orderIds: bigint[], txOptions?: TransactionOptions): Promise<ethers.TransactionRequest>;
/**
* @dev Cancels multiple orders by their IDs.
* @param providerOrSigner - The ethers.js provider or signer to interact with the blockchain.
* @param orderbookAddress - The address of the order book contract.
* @param orderIds - An array of order IDs to be cancelled.
* @param txOptions - Transaction options to be used for the transaction.
* @returns A promise that resolves when the transaction is confirmed.
*/
static cancelOrders(providerOrSigner: ethers.JsonRpcProvider | ethers.AbstractSigner, orderbookAddress: string, orderIds: bigint[], txOptions?: TransactionOptions): Promise<TransactionReceipt>;
static estimateGas(providerOrSigner: ethers.JsonRpcProvider | ethers.AbstractSigner, orderbookAddress: string, orderIds: bigint[]): Promise<bigint>;
}
//# sourceMappingURL=cancel.d.ts.map