UNPKG

@devasher/kuru-sdk

Version:

Ethers v6 SDK to interact with Kuru (forked from @kuru-labs/kuru-sdk)

14 lines 937 B
import { ethers, TransactionReceipt } from 'ethers'; import { MarketParams, BATCH } from '../types'; export declare abstract class OrderBatcher { /** * @dev Batch updates the order book by placing multiple buy and sell limit orders and canceling existing orders. * @param providerOrSigner - The ethers.js provider or signer to interact with the blockchain. * @param orderbookAddress - The address of the order book contract. * @param marketParams - The market parameters including price and size precision. * @param batchUpdate - The batch update object containing limit orders and order IDs to cancel. * @returns A promise that resolves when the transaction is confirmed. */ static batchUpdate(providerOrSigner: ethers.JsonRpcProvider | ethers.Signer, orderbookAddress: string, marketParams: MarketParams, batchUpdate: BATCH): Promise<TransactionReceipt>; } //# sourceMappingURL=batch.d.ts.map