ISablierV2Batch
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
Name | Type | Description |
---|---|---|
lockupLinear | address | The address of the {SablierV2LockupLinear} contract. |
asset | IERC20 | The contract address of the ERC-20 asset used for streaming. |
batch | Batch.CreateWithDurations[] | An array of structs, each encapsulating a subset of the parameters of {SablierV2LockupLinear.createWithDurations}. |
Returns
Name | Type | Description |
---|---|---|
streamIds | uint256[] | The ids of the newly created streams. |