Creates a new batch with the following sequence of calls:
squeezeDrips
(optional) for each provided senderreceiveDrips
(optional)split
(optional)collect
the flow's payload.
skips the receiveDrips
step.
skips the split
step.
The preset.
Creates a new batch with the following sequence of calls:
setDrips
emitUserMetadata
the flow's payload.
The preset.
Generated using TypeDoc
Pre-configured sets of contract calls that can be used as input to
Caller.callBatched
method.CallerClient
for 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
collectFlow
preset. const collectFlow = NFTDriverPresets.Presets.collectFlow(flowPayload);// Pass the preset to the
Caller
. const tx = await caller.callBatched(collectFlow); await tx.wait();