Skip to main content

ISablierV2Batch

Git Source

Inherits: IAdminable

Helper to batch create Sablier V2 Lockup streams.

Functions

createWithDurations

Creates a batch of Lockup Linear streams using createWithDurations.

Requirements:

function createWithDurations(
ISablierV2LockupLinear lockupLinear,
IERC20 asset,
Batch.CreateWithDurations[] calldata batch
)
external
returns (uint256[] memory streamIds);

Parameters

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

createWithRange

Creates a batch of Lockup Linear streams using createWithRange.

Requirements:

function createWithRange(
ISablierV2LockupLinear lockupLinear,
IERC20 asset,
Batch.createWithRange[] calldata batch
)
external
returns (uint256[] memory streamIds);

Parameters

NameTypeDescription
lockupLinearISablierV2LockupLinearThe address of the {SablierV2LockupLinear} contract.
assetIERC20The address of the ERC-20 asset.
batchBatch.CreateWithRange[]An array of structs, each encapsulating a subset of the parameters of SablierV2LockupLinear.createWithRange.

createWithDeltas

Creates a batch of Lockup Dynamic streams using createWithDeltas.

Requirements:

function createWithDeltas(
ISablierV2LockupDynamic lockupDynamic,
IERC20 asset,
Batch.CreateWithDeltas[] calldata batch
)
external
returns (uint256[] memory streamIds);

Parameters

NameTypeDescription
lockupDynamicISablierV2LockupDynamicThe address of the {SablierV2LockupDynamic} contract.
assetIERC20The address of the ERC-20 asset.
batchBatch.CreateWithDeltas[]An array of structs, each encapsulating a subset of the parameters of SablierV2LockupDynamic.createWithDeltas.

createWithMilestones

Creates a batch of Lockup Dynamic streams using createWithMilestones.

Requirements:

function createWithMilestones(
ISablierV2LockupDynamic lockupDynamic,
IERC20 asset,
Batch.CreateWithMilestones[] calldata batch
)
external
returns (uint256[] memory streamIds);

Parameters

NameTypeDescription
lockupDynamicISablierV2LockupDynamicThe address of the {SablierV2LockupDynamic} contract.
assetIERC20The address of the ERC-20 asset.
batchBatch.CreateWithMilestones[]An array of structs, each encapsulating a subset of the parameters of SablierV2LockupDynamic.createWithMilestones.