Commit b177280
Nick/add scale orders ix (#2101)
* chore: update yellowstone to rust bindings version
* sdk: release v2.153.0-beta.2
* Nick/external init account support (#2067)
* wip: add external signer support for init account, stats account, swift account
* updates
* fix prettify
* sdk: release v2.153.0-beta.3
* Revert "chore: update yellowstone to rust bindings version"
* sdk: release v2.153.0-beta.4
* chore: update for channelOption changes
* v2.154.0
* sdk: release v2.155.0-beta.0
* chore: add changelog
* fix: lint
* sdk: release v2.155.0-beta.1
* Revert "Jack/updated triton grpc"
* sdk: release v2.155.0-beta.2
* refactor: replace pyth-solana-receiver with copied over code (#2068)
* refactor: replace pyth-solana-receiver with copied over code
* fix: use forked pyth IDL
* fix: adjust wormhole IDL
* fix: import pyth types locally pythPullClient
* fix: prettier
* fix: no pyth-solana-receiver in protocol
* sdk: release v2.155.0-beta.3
* ui: reduce param checking for titan swaps (#2074)
* ui: reduce param checking for titan swaps
* cleanup titan usage and types
* fix lint
* prettify
* sdk: release v2.155.0-beta.4
* lukas/isolated positions sdk (#1965)
* program: make lp shares reduce only
* init
* rm more fields
* make tests build
* start sdk changes
* init new margin calc
* deposit and transfer into
* add settle pnl
* program: add withdraw
* add more ix
* add new meets withdraw req fn
* enter/exit liquidation logic
* moar
* start liquidation logic
* other liquidation fns
* make build work
* more updates
* always calc isolated pos
* rm isolated position market index logic
* moar
* program: rm the isolated position market index
* some tweaks
* rm some old margin code
* tweak meets withdraw requirements
* rm liquidation mode changing context
* handle liquidation id and bit flags
* more liquidation changes
* clean
* fix force cancel orders
* update validate liquidation
* moar
* rename is_being_liquidated
* start adding test
* program: add validate for liq borrow for perp pnl
* program: add test for isolated margin calc
* is bankrupt test
* fix cancel orders
* fix set liquidation status
* more tweaks
* clean up naming
* update last active slot for isolated position liq
* another liquidation review
* add test
* cargo fmt --
* tweak naming
* add test to make sure false liquidaiton wont be triggered
* test meets withdraw
* change is bankrupt
* more
* update uses of exit isolated liquidaiton
* moar
* moar
* reduce diff
* moar
* modularize some for tests
* add tests for the pnl for deposit liquidation
* tests for isolated position transfer
* test for update spot balance
* test for settle pnl
* add perp position max margin
* program: test for custom perp position margin ratio
* add test for margin calc for disable hlm
* update test name
* make max margin ratio persist
* add liquidation mode test
* more tests to make sure liqudiations dont bleed over
* change test name
* fix broken cargo tests
* cargo fmt --
* first ts test
* isolatedPositionLiquidatePerp test
* isolatedPositionLiquidatePerpwithFill test
* fix expired position
* cargo fmt --
* feat: initial SDK Changes for iso pos
* feat: margin calc unit tests
* temp
* feat: finally - parity with on-chain cargo test
* fix: PR feedback and cleanup + decoding position flag wrong
* feat: deposit into iso position ixs
* temp: pr feedback nother round
* feat: per perp pos max margin ratio
* feat: additional ixs for transfer into iso + update perp margin ratio
* feat: revamp liquidation checker functions for cross vs iso margin
* fix: adjust health getter for user
* fix: liq statuses add to return signature
* chore: post rebase cleaner upper
* fix: missing params from per market lev
* feat: zero out account withdraw from perp position
* fix: available positions logic update for iso
* feat: iso position txs cleanup + ix ordering
* feat: onchain props for signed msg orders + idl update
* feat: cancels withdraw from iso pos
* fix: only settle if needed iso withdraw + i64 min
* feat: improvements to single grpc test
* feat: buffer on margin deposits to avoid insuff collat err
* feat: helpful scripts for testing/manipulating iso positions
* chore: re organizing some user sdk funcs
* fix: bug with max amount withdrawal for transfer iso perp
* fix: post merge dupe field on swift
* feat: min and max 64 constants
* fix: bug with margin removal
* fix: missing swift iso deposit from idl
* fix: lint and prettify
* feat: increased buffer on isolated deposit opening position
* fix: missing check on order increasing size for depositing margin place + take
* feat: settle pnl when trying to transfer to cross
* fix: incorrect iso bankruptcy flag
* feat: new margin calc logic
* fix: broken test helpers
* feat: buffer adjustments
* fix: add missing swap ix update
* fix: undefined this on isoalted free collateral
* fix: prettier broke
* fix: handle perp buying power on new iso position
* fix: try/catch wrap on user isolated get free collat
* feat: try settle flag for transfer to iso perp
* fix: properly handle perp buying power existing iso position increase
* feat: alpha npm version
* fix: decoding isolated scaled balance incorrectly maybe
* fix: build error rm lp field
* feat: publish isPerpPositionIsolated as public method
* sdk: add ix for token 2022 init account deposits (#2050)
* add ix for token 2022 init account deposits
* only call checkAccountExists if token2022
* update changelog
* sdk: release v2.152.0-beta.3
* program: add bit_flags in preparation for iso pos (#2053)
* program: add bit_flags in preparation for iso pos
* CHANGELOG
* program: base-spread-validate-buffer (#2052)
* program: base-spread-validate-buffer
* CHANGELOG
---------
Co-authored-by: Chris Heaney <chrisheaney30@gmail.com>
* v2.152.0
* ui: save titan tx when quoted and reuse on swap (#2055)
* fix titan quoting for dsol
* fix dsol instant unstake
* feat: minified with esbuild (#2056)
* feat: minified with esbuild
* fix: rm webpack
* fix: prettier titanClient
* ui: fix falsely failing quotes from titan (#2058)
* ui: fix falsely failing quotes from titan
* prettify
* check feed id after pyth pull atomic update
* fix: many null checks fixed (#2059)
* fix: many null checks fixed
* fix: prettier
* feat: get active markets helpers
* fix: prettier
* fix: README on margin calc was incorrect
* fix: prettier and lint
* fix: rm weird program diff
* fix: rm weird program diff 2
* fix: rm weird empty file =
* fix: rm useless diffs
* refactor: remove unused fields a bunch on margin calc
* fix: rebuild idl
* fix: prevent unnecessary excpetion on liq price if free collat delta not computed
* program: delete sereum/ob configs ix (#2066)
* hot wallet update config stats
* add delete for serum
* delete ob config
* CHANGELOG
* sdk: release v2.153.0-beta.2
* Nick/external init account support (#2067)
* wip: add external signer support for init account, stats account, swift account
* updates
* fix prettify
* sdk: release v2.153.0-beta.3
* fix: user fastDecode check iso deposit and pos flag
* fix: broken tests and PR cleanup
* fix: final anchor tests fix?
---------
Co-authored-by: Chris Heaney <chrisheaney30@gmail.com>
Co-authored-by: lowkeynicc <85139158+lowkeynicc@users.noreply.github.com>
Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: bigz_Pubkey <83473873+0xbigz@users.noreply.github.com>
Co-authored-by: wphan <6348407+wphan@users.noreply.github.com>
Co-authored-by: chakos <chrishakos@lunoho.company>
* sdk: release v2.155.0-beta.5
* migrate spot assets (#2057)
* migrate spot assets
* weth
* weth again
* prettify
* sdk: release v2.155.0-beta.6
* program: more logging for amm trading (#2078)
* more logging for amm trading
* tweak logging
* one more logging
* CHANGELOG
* crate msg
* cargo fmt --
* program: allow delegate to transfer isolated pos deposit in sub account (#2079)
* program: allow delegate to transfer isolated pos deposit in sub account
* CHANGELOG
* program: use load_maps in update_amms (#2081)
* program: use load_maps in update_amms
* fix build
* CHANGELOG
* v2.155.0
* sdk: release v2.156.0-beta.0
* fix: buggy getHealth for iso positions (#2083)
* feat: pyth lazer subscriber with better resiliency (#2073)
* feat: pyth lazer subscriber with better resiliency
* fix: missing exports
* feat: upgrade pyth lazer sdk
* feat: bump sdk to node 24
* fix: node 24 in verify sdk ci pipeline
* fix: anchor tests node 24
* sdk: release v2.156.0-beta.1
* fix: ci jobs missing node 24 (#2084)
* fix: ci jobs missing node 24
* feat: jsdoc on pyth lazer sub to retrigger sdk release
* sdk: release v2.156.0-beta.2
* fix: sdk version tag release error (#2085)
* sdk: release v2.156.0-beta.3
* sdk: support jupiter api key (#2086)
* sdk: release v2.156.0-beta.4
* add other funxyz address (#2089)
* fix: use latest tag for our beta versions for now (#2090)
* sdk: release v2.156.0-beta.5
* feat: more pyth type exports (#2091)
* sdk: release v2.156.0-beta.6
* v2.156.0
* sdk: release v2.157.0-beta.0
* add scale orders ix
* fix tests
* allow up to 32 orders
* flip start/end price logic
* cleanup
* add spot
* refactor
* address feedback
---------
Co-authored-by: Jack Waller <jack.waller94@gmail.com>
Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: wphan <6348407+wphan@users.noreply.github.com>
Co-authored-by: LukasDeco <ldeconantsesznak@gmail.com>
Co-authored-by: chakos <chrishakos@lunoho.company>
Co-authored-by: Chris Heaney <chrisheaney30@gmail.com>
Co-authored-by: bigz_Pubkey <83473873+0xbigz@users.noreply.github.com>
Co-authored-by: moosecat <14929853+moosecat2@users.noreply.github.com>1 parent 4b48dee commit b177280
File tree
13 files changed
+2049
-11
lines changed- programs/drift/src
- instructions
- state
- scale_order_params
- sdk/src
- idl
- test-scripts
- tests
13 files changed
+2049
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
699 | 703 | | |
700 | 704 | | |
701 | 705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
2606 | 2607 | | |
2607 | 2608 | | |
2608 | 2609 | | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
2609 | 2635 | | |
2610 | 2636 | | |
2611 | 2637 | | |
| |||
2625 | 2651 | | |
2626 | 2652 | | |
2627 | 2653 | | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
2628 | 2677 | | |
2629 | | - | |
| 2678 | + | |
2630 | 2679 | | |
2631 | 2680 | | |
2632 | 2681 | | |
2633 | 2682 | | |
2634 | 2683 | | |
2635 | 2684 | | |
2636 | 2685 | | |
2637 | | - | |
2638 | | - | |
| 2686 | + | |
| 2687 | + | |
2639 | 2688 | | |
2640 | 2689 | | |
2641 | 2690 | | |
| |||
2654 | 2703 | | |
2655 | 2704 | | |
2656 | 2705 | | |
2657 | | - | |
| 2706 | + | |
2658 | 2707 | | |
2659 | 2708 | | |
2660 | 2709 | | |
| |||
2668 | 2717 | | |
2669 | 2718 | | |
2670 | 2719 | | |
2671 | | - | |
| 2720 | + | |
2672 | 2721 | | |
2673 | 2722 | | |
2674 | 2723 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
367 | 368 | | |
368 | 369 | | |
369 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
370 | 378 | | |
371 | 379 | | |
372 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
| 1030 | + | |
0 commit comments