Smart contract for NEAR blockchain that allows you to stash your NEAR for a provided period of time. You will only be able to get your NEAR back after the period expires.
-
deposit(lockPeriodInMinutes: u64): void
Deposits attached NEAR to the contract and locks it for a specified period.
-
withdraw(): void
Withdraws NEAR to the caller if lock period expired.
yarn
to install dependenciesyarn build
to build the projectyarn build:release
to build in release modeyarn test
to run unit tests
- Add fungible tokens support
- Add NFT support
- Add build/deploy bash scripts
- Fix potential bug when withdrawal is pending: index.ts
- Add multiple deposits per user
- Charge for data storage
- Add UI
- Port to RUST
- Add simulation tests