Creates a new batch with the following sequence of calls:
squeezeDrips (optional) for each provided senderreceiveDrips (optional)split (optional)collectthe flow's payload.
skips the receiveDrips step.
skips the split step.
The preset.
Creates a new batch with the following sequence of calls:
setDripsemitUserMetadatathe flow's payload.
The preset.
Generated using TypeDoc
Pre-configured sets of contract calls that can be used as input to
Caller.callBatchedmethod.CallerClientfor more.Example usage of
collectFlow. // Create a newCaller. const caller = await CallerClient.create(provider);// Populate the flow's payload. const flowPayload: NFTDriverPresets.CollectFlowPayload = { driverAddress, dripsHubAddress, userId, tokenAddress, maxCycles, currentReceivers, transferToAddress };
// Create a new
collectFlowpreset. const collectFlow = NFTDriverPresets.Presets.collectFlow(flowPayload);// Pass the preset to the
Caller. const tx = await caller.callBatched(collectFlow); await tx.wait();