test-pkg-ngn
Version:
A library containing helper functions that facilitate scripting for keepers of the Keep3r Network
17 lines (16 loc) • 959 B
TypeScript
import { BundleBurstGroup, CreateBundlesProps } from '@types';
/**
* @notice Creates amount of bundles equal to burstSize with consecutive target blocks. Each bundle will contain a different transaction.
* An example of the bundle anatomy this function creates is the following: bundle1[tx1], bundle2[tx2], bundle3[tx3].
*
* @dev The length of the transaction array must coincide with the burstSize.
*
* @param unsignedTxs An array of unsigned transactions.
* @param burstSize The amount of bundles to create and send to consecutive blocks.
* @param firstBlockOfBatch The first block to target for the first bundle. For example, say we are in block 1000
* and we want to send our bundles to block 1005. In that case, block 1005 will be the
* firstBlockOfBatch.
*
* @return An array containing all created bundles.
*/
export declare function createBundlesWithDifferentTxs(props: CreateBundlesProps): BundleBurstGroup[];