UNPKG

test-pkg-ngn

Version:

A library containing helper functions that facilitate scripting for keepers of the Keep3r Network

19 lines (18 loc) 1.12 kB
import { Flashbots } from '../flashbots/flashbots'; import { BundleBurstGroup } from '../types'; /** * @notice Sends bundles to flashbots. * * @dev Returns whether or not the first bundle was included. The reason to only return the response of the first bundle is because * we want to always start building the next batch of bundles as soon as the first bundle of the batch fails. This is to ensure * our batches cover all possible blocks until the job is worked. * * @param bundles The bundles to send to flashbots. * @param flashbots An instance of Flashbots. * @param staticDebugId Optional static id to help with debugging. Every batch will share this id. * @param dynamicDebugId Optional dynamic id to help with debugging. Every batch will have a different dynamic id. * This dynamic id will be recalculated every time a bundle is created. * * @returns A boolean to know whether the bundle was included or not. */ export declare function sendBundlesToFlashbots(bundles: BundleBurstGroup[], flashbots: Flashbots, staticDebugId?: string, dynamicDebugId?: string): Promise<boolean>;