ISablierV2Batch

Git Source

Functions

createWithDurations

Creates a batch of Lockup Linear streams using createWithDurations.

*Requirements:

  • There must be at least one element in batch.
  • All requirements from {ISablierV2LockupLinear.createWithDurations} must be met for each stream.*
function createWithDurations(
    address lockupLinear,
    IERC20 asset,
    Batch.CreateWithDurations[] calldata batch
)
    external
    returns (uint256[] memory streamIds);

Parameters

NameTypeDescription
lockupLinearaddressThe address of the {SablierV2LockupLinear} contract.
assetIERC20The contract address of the ERC-20 asset used for streaming.
batchBatch.CreateWithDurations[]An array of structs, each encapsulating a subset of the parameters of {SablierV2LockupLinear.createWithDurations}.

Returns

NameTypeDescription
streamIdsuint256[]The ids of the newly created streams.