Module superstream::state

source ·
Expand description

Module for superstream state management.

Structs

  • Record of funds to be transferred once a stream is cancelled.
  • A payment stream with support for SPL tokens, prepaid and limited upfront payment, unlimited lifetime, cliffs and cancellations.

Constants

  • Deposit amount period (in seconds) for a non-prepaid stream. If a non-prepaid stream has unlimited lifetime or lifetime >= DEPOSIT_AMOUNT_PERIOD_IN_SECS, a security deposit is taken from the sender which would not be returned in case the stream becomes insolvent. This is done to make sure users keep topping up their streams on time.
  • Maximum length of a stream name.
  • Minimum length of a stream name.