Skip to content

a vault program on top of protocol-v2 for delegate-managed trades with customizable terms

Notifications You must be signed in to change notification settings

0xBreath/drift-vaults

 
 

Repository files navigation

Drift Vaults

soon^TM

did you see the CLI? and the wiki?

Development

  • anchor 0.29.0
  • rust 1.70.0
  • solana 1.16.27
# 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:

Error: failed to start validator: Failed to create ledger at test-ledger: blockstore error

then run these commands:

brew install gnu-tar
# Put this in ~/.zshrc 
export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"

Run tests

yarn && cd ts/sdk && yarn && yarn build && cd ..

export ANCHOR_WALLET=~/.config/solana/id.json && anchor test

About

a vault program on top of protocol-v2 for delegate-managed trades with customizable terms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 51.6%
  • Rust 48.1%
  • Other 0.3%