Skip to content

rahimklaber/SStream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SStream

SStream is a streaming payments protocol for Soroban.

Currently, it has 3 main functionalities:

  • Creating a stream - A user can create a stream by specifying the recipient, the amount streamed per second, the total amount, end date and whether the stream is cancellable or not.
  • Claiming a stream - The recipient of the stream can claim the amount that is currently claimable.
  • Cancelling - If a stream is cancellable, the creator can cancell the stream. This sends the currently claimable amount to the recipient and sends the rest to the creator.

Web Interface

The web interface currently supports creating, claiming and cancelling a stream.

The interface currently supports the Freighter wallet.

Creating a stream

First, connect your wallet and click on Create Stream

create_s_1

Second, input the recipient, the amount, the amount per second and whether the stream should be cancellable or not. Currently, the UI doesn't allow choosing a token and XLM hardcoded in the UI.

create_s_2

Third, fill in the form and click the Create button. Afterwards, approve the transaction in freighter.

image

After a few seconds, the id of the stream will be shown. The id can then be used to lookup the stream. image

Viewing a stream

First connect your wallet and click on SStream or Lookup Stream.

image

To view a stream, its id needs to be known. In the future there will be a backend that indexes the streams and that can be used to look up streams for a given address.

Insert the stream id into the field and click the Get details button. After a few second the details of the stream should show up. Two buttons will also appear that allows for claiming or cancelling a stream. image

Claiming a stream

First, lookup the stream you want to claim by following the Viewing a stream section.

Next click the claim button and approve the transaction in freighter.

image

After Claiming, the amount withdrawn will be shown.

image

Cancelling a stream

First, lookup the stream you want to cancell by following the Viewing a stream section.

Next click the cancell button and approve the transaction in freighter.

image

After cancelling the amount returned to the creator will be shown.

image

Releases

No releases published

Packages

No packages published

Languages