https://github.com/drift-labs/drift-vaults
a vault program on top of protocol-v2 for delegate-managed trades with customizable terms
https://github.com/drift-labs/drift-vaults
Last synced: 8 days ago
JSON representation
a vault program on top of protocol-v2 for delegate-managed trades with customizable terms
- Host: GitHub
- URL: https://github.com/drift-labs/drift-vaults
- Owner: drift-labs
- Created: 2023-05-30T01:28:56.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-14T02:34:04.000Z (9 days ago)
- Last Synced: 2025-05-14T03:59:32.408Z (9 days ago)
- Language: TypeScript
- Homepage:
- Size: 8.2 MB
- Stars: 33
- Watchers: 8
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Audit: AUDIT.md
Awesome Lists containing this project
README
# Drift Vaults
soon^TM
[did you see the CLI?](./ts/sdk/README.md) and the [wiki?](https://github.com/drift-labs/drift-vaults/wiki)
# Development
* anchor 0.29.0
* rust 1.70.0
* solana 1.16.27```shell
# if you don't have avm, install it here:
# https://book.anchor-lang.com/getting_started/installation.html
avm use 0.29.0# if on Apple Silicon:
# rustup override set 1.70.0-x86_64-apple-darwin
# else
rustup override set 1.70.0# if you already have solana:
# solana-install init 1.16.27
# else:
sh -c "$(curl -sSfL https://release.solana.com/v1.16.27/install)"
```If on Mac and getting this error:
```shell
Error: failed to start validator: Failed to create ledger at test-ledger: blockstore error
```then run these commands:
```shell
brew install gnu-tar
# Put this in ~/.zshrc
export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"
```## Run tests
```shell
yarn && cd ts/sdk && yarn && yarn build && cd ..# can be any valid key
ANCHOR_WALLET=~/.config/solana/id.json && anchor test
```For ease-of-use you can run the following script to build and test instead:
```shell
chmod +x ./test.sh
./test.sh
```