Crates.io | streamflow-timelock |
lib.rs | streamflow-timelock |
version | 0.3.2 |
source | src |
created_at | 2021-09-17 23:03:33.800747 |
updated_at | 2021-12-19 19:44:49.215816 |
description | Timelock crate for Solana programs |
homepage | https://streamflow.finance |
repository | https://github.com/streamflow-finance/timelock-crate |
max_upload_size | |
id | 453086 |
size | 78,144 |
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
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.
timelock-crate
is licensed AGPL-3.