Skip to content

Commit

Permalink
sdk: allow delegates in single client (#432)
Browse files Browse the repository at this point in the history
* sdk: updates for delegate wip

* save

* wip

* updates

* updates

* feedback

* updates

* merge conflict

* updates

* sdk: fix userStats account

* add authoritySubaccountMap

* fix

* disallow subaccountmap and includedelegates

* more feedback

* update to work for user with only delegate accounts

* updates to authoritysubaccountmap

* update changelog + fix default to delegate acct

* fix prettier

* add skipAddUsers flag
  • Loading branch information
lowkeynicc committed Apr 27, 2023
1 parent 2f533ea commit 294b832
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 66 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- program: add support for phoenix spot markets ([#437](https://github.com/drift-labs/protocol-v2/pull/437))
- sdk: ability to add stake from subaccount
- ts-sdk: Add phoenix subscriber ([#444](https://github.com/drift-labs/protocol-v2/pull/444))

- sdk: driftClient allows subscription to delegate accounts; pass includeDelegates or authoritySubaccountMap to constructor/updateWallet ([#432](https://github.com/drift-labs/protocol-v2/pull/432))

### Fixes

- program: check max_token_deposits at the end of fill_spot_order ([#441](https://github.com/drift-labs/protocol-v2/pull/441))
Expand Down
Loading

0 comments on commit 294b832

Please sign in to comment.