ByteNacked / my_stash_solana

my_stash_solana

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

my_stash

An escrow smart-contract where a user can deposit a given SPL token and lock it for a given time

Usage

Use 'initialize' to lock tokens for an arbitrary number of seconds.

Use 'retrieve' method to get tokens back after a lock time is up.

TODO:

  • Add a proper time forwarding test
  • Add 'should fail' tests

About

my_stash_solana


Languages

Language:Rust 55.5%Language:TypeScript 44.5%