CSV Support
The Sablier Interface provides a number of advanced features using templated CSV files. Bellow you can find a list of all these features that help automate medium to large scale distributions.
Dates: All the columns that use the "date" type should have the following format: "YYYY-MM-DD HH:mm".
Durations: All the columns that use the "duration" type should have the following format: "x years y days z hours". Note that each particle is optional, e.g., you can skip the days.
Timezones: The dates and times extracted from the CSV are processed using the same timezone as the locales of the client's device.
Amounts: All the amounts should be expressed in humanized notion. They will be padded with the selected token's number of decimals in the processing step.
Streams: Create Group
Using a pre-configured CSV, deploy up to 60+ streams, all onchain, all at once. Start from the suggested template, fill in rows with addresses, amounts and other details. Finally, create batches/groups of streams in a single transaction.
Navigation
In order to access this feature you will need to:
- Access the create streams gallery - make sure you're on the group tab (top right)
- Click on the the desired stream shape card
- At the top (top-right) of the page you will find a button guiding you towards the CSV feature
Form Layout
The Create Group From CSV form consists of two parts:
Part 1: General Details
In this part of the form you should fill in the general details that all streams have in common. This step is similar to the regular create group forms, with the addition of a "timing" field that toggles between time configurations:
- By duration: e.g. streams end 30 days from now
- By range: e.g. streams being on
start time
and last untilend time
Part 2: Streams
This area consists of a large file picker. As soon as a file is uploaded it displays a table containing every stream and its primary details.
To double-check all columns provided through the CSV, click on the table (or action button at the top) and open the expanded table view.
Working with the CSV template
For each stream shape and duration you can use a different CSV template. You can download this template directly from the form, pre-configured to the selected shape and timing option.
For convenience, here's a table with all the available templates:
URL | Description |
---|---|
Cliff exponential with duration | Cliff-Exponential streams with the duration timing. |
Cliff exponential with range | Cliff-Exponential streams with the range timing. |
Cliff with duration | Cliff streams with the duration timing. |
Cliff with range | Cliff streams with the range timing. |
Exponential with duration | Exponential streams with the duration timing. |
Exponential with range | Exponential streams with the range timing. |
Linear with duration | Linear streams with the duration timing. |
Linear with range | Linear streams with the range timing. |
Monthly with range | Unlock Each Month streams with the range timing. |
Stepper with duration | Unlock In Steps streams with the duration timing. |
Stepper with range | Unlock In Steps streams with the duration timing. |
Timelock with duration | Timelock streams with the duration timing. |
Timelock with range | Timelock streams with the range timing. |
Unlock cliff with duration | Unlock-Cliff streams with the duration timing. |
Unlock cliff with range | Unlock-Cliff streams with the range timing. |
Unlock linear with duration | Unlock-Linear streams with the duration timing. |
Unlock linear with range | Unlock-Liner streams with the duration timing. |