Skip to content

Commit

Permalink
Add IF stake and unstake CPIs (#57)
Browse files Browse the repository at this point in the history
* Squashed to deal with merge conflicts

* fix tests

* whitespace

* whitespace

* whitespace

* refactor tests, reduce boilerplate

* restrict issuing new tokens after rebase

* fix clippy

* fix clippy in gh action

* fix tests with adminclient

* fix test equality

* fix test equality

* test creating TokenizedDepositor for new shares base

* add token_cpi.rs

* clean up msc msg

* linter

* update yarn.lock

* address some PR comments

* make sure vault_protocol everywhere, consolidate rebase logic, consolidate VaultDepositorRecords

* use safemath

* remove drift-competitions

* update main.yml

* fix linter

* remove default-features=false

* add continue-on-error

* cargo fetch before solana-verify

* cargo vendor before solana-verify

* try to parse last line of build output

* override shell command to keep errors

* kcikoff build

* use raw bash

* try another shell cmd

* update shell

* disable cargo frozen

* add DOCKER_FLAGS to solana-verify build

* use cargo vendor

* add IF staking functions, allow IF accounts for markets other than vault spot market

* add basic test init different if accounts

* add tests

* fix if tests, finish ixs

* chore: removes competition (#56)

* remove drift-competitions

* update main.yml

* fix linter

* remove default-features=false

* add continue-on-error

* cargo fetch before solana-verify

* cargo vendor before solana-verify

* try to parse last line of build output

* override shell command to keep errors

* kcikoff build

* use raw bash

* try another shell cmd

* update shell

* disable cargo frozen

* add DOCKER_FLAGS to solana-verify build

* use cargo vendor

* fix test

* Update CHANGELOG.md

* update CHANGELOG.md

* whitespace

* fix tests
  • Loading branch information
wphan authored Oct 29, 2024
1 parent 858bae0 commit f14b00e
Show file tree
Hide file tree
Showing 21 changed files with 3,685 additions and 296 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ test-ledger
migrations
ts/sdk/lib/
ts/sdk/src/**/*.js
ts/sdk/src/**/*.js.map
ts/sdk/src/**/*.js.map
vendor
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* Tokenized Vaults ([#55](https://github.com/drift-labs/drift-vaults/pull/55))
* Remove drift-competitions ([#56](https://github.com/drift-labs/drift-vaults/pull/56))
* Add IF functions ([#57](https://github.com/drift-labs/drift-vaults/pull/57))

### Fixes

Expand Down
Loading

0 comments on commit f14b00e

Please sign in to comment.