Single stream
In this guide, we will show you how to programmatically create a single stream via the proxy and Sablier's ProxyTarget
Creating single streams via the proxy is similar to creating batches of streams. Refer to the previous guide for step-by-step instructions; for brevity, we will not repeat them here.
caution
The code in this guide is not production-ready, and is implemented in a simplistic manner for the purpose of learning.
Create single functions
There are four create functions in the ProxyTarget
contract, two for each Lockup contract:
The complete Single Lockup Linear stream creator contract
Below you can see a complete example of a contract that creates a single Lockup Linear stream via the proxy and
Sablier's ProxyTarget
that starts at block.timestamp
. You can access the code on GitHub through this
link.
Single Lockup Linear stream creator
loading...