8 unstable releases (3 breaking)

0.3.2 Dec 19, 2021
0.3.1 Dec 19, 2021
0.3.0 Nov 5, 2021
0.2.1 Oct 11, 2021
0.0.1 Sep 17, 2021

#17 in #cancel

AGPL-3.0-only

44KB
825 lines

streamflow-timelock

Disclaimer: Security audit under way.

This is a free and open-source community version of Streamflow Timelock protocol, that comes with certain limitations compared to the commercial version.

This Rust crate provides SPL timelock functionalities that can be used "out of the box" and integrated in other Solana programs.

Functionalities are:

  • create a vesting contract.
  • withdraw from a vesting contract. Invoked by recipient (beneficiary)
  • cancel a vesting contract. Invoked by sender (creator)
  • transfer_recipient of a vesting contract. Invoked by recipient (beneficiary)

UI is available at https://app.streamflow.finance/vesting

High level overview

Overview

Check the docs to get familiar with the crate. Or check the Timelock program implementation where this crate is used.

Run python3 misc/gen_js_api.py > OUTPUT_FILE.js to generate JS layout to be used for easy (de)serialization of the program account data structs.

License

timelock-crate is licensed AGPL-3.

Dependencies

~22–31MB
~501K SLoC