Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openbook V2 Integration #836

Merged
merged 116 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
018f51f
Add OpenbookV2RegisterMarket, OpenbookV2CreateOpenOrders implementati…
riordanp Nov 17, 2023
8ff6ff6
wip health
riordanp Nov 29, 2023
26d7659
pretty rough but it builds
riordanp Jan 3, 2024
4c1c6a7
wip client
riordanp Jan 3, 2024
4bfe6eb
add prepare script to fix git dependants
riordanp Jan 4, 2024
66aa323
correctly calculate openbookv2 orders begin index
riordanp Jan 5, 2024
853103c
load open orders with zerocopy, add check for oo key
riordanp Jan 5, 2024
5f6da7d
update comment to reflect aggregation of spot reserved amounts
riordanp Jan 5, 2024
c95e497
reserve more bytes for OpenbookV2Orders
riordanp Jan 5, 2024
eb672eb
wip client health, update idl
riordanp Jan 5, 2024
816cb87
Merge branch 'dev' into pan/openbook-v2
riordanp Jan 8, 2024
26c303a
Merge branch 'dev' into pan/openbook-v2
riordanp Jan 8, 2024
c6bfb49
fix send_tx import
riordanp Jan 8, 2024
4a4ba3e
remove mango_client namespace
riordanp Jan 8, 2024
11407c9
re-enable tests
riordanp Jan 8, 2024
e57e770
cargo fmt
riordanp Jan 8, 2024
f85c25a
editing obv2 market price bands
riordanp Jan 10, 2024
9e8e88c
fast listing admin can register obv2 markets, more padding on market
riordanp Jan 10, 2024
ae09b84
fix obv2 open orders validation
riordanp Jan 10, 2024
beb2c58
reduced reserved_dynamic for backwards compatibility
riordanp Jan 10, 2024
bf16a02
check openorders discriminator
riordanp Jan 10, 2024
9d27b9e
rename generic spot errors
riordanp Jan 10, 2024
cd77329
fix missing vec padding bytes
riordanp Jan 10, 2024
716f51c
place_order fixes
riordanp Jan 11, 2024
7133baa
change limit type
riordanp Jan 11, 2024
d2d727a
format, fix comment
riordanp Jan 11, 2024
9d9ec38
add logs, fix oo totals calculation, rename public helpers and update…
riordanp Jan 17, 2024
9b587f6
update default price band
riordanp Jan 17, 2024
bd59f07
mango_account fixes
riordanp Jan 17, 2024
6ea7844
remove unused vault account, load oracles from remaining, fix order l…
riordanp Jan 17, 2024
d724ada
dust position in close_open_orders
riordanp Jan 17, 2024
071f066
close indexer when no longer needed
riordanp Jan 17, 2024
c9d3752
add optional side to cancel_all
riordanp Jan 17, 2024
067cb65
use u64 for OpenOrdersSlim, fix some mistakes in place_order, update …
riordanp Jan 18, 2024
19e083a
separate indexes for obv2 and serum3, clean up debug logs
riordanp Jan 18, 2024
e1c6571
fix client
riordanp Jan 18, 2024
7adeb99
fix tests
riordanp Jan 19, 2024
fc9cc7b
cargo fmt
riordanp Jan 19, 2024
c9e5647
ts client fixes, idl update
riordanp Jan 19, 2024
a86b7d9
idl fixup
riordanp Jan 19, 2024
9aa7e4b
upgrade anchor to fix idl compatibility
riordanp Jan 19, 2024
19c1f85
run prettier
riordanp Jan 19, 2024
16f4bff
fix scripts
riordanp Jan 19, 2024
ea94f32
Merge branch 'dev' into pan/openbook-v2
riordanp Jan 19, 2024
eb8f259
update params for tokenEdit
riordanp Jan 19, 2024
af085bd
fix bank length
riordanp Jan 19, 2024
6527503
idl update
riordanp Jan 19, 2024
ce3bd3d
yarn dedupe, more tx fixes
riordanp Jan 19, 2024
17a3f58
use our own types for order params
riordanp Feb 1, 2024
987a307
Remove unused type from idl
riordanp Feb 1, 2024
7db7524
Fix locked quote position tracking
riordanp Feb 1, 2024
e8c24b0
update openbook, fix limit price, fix bank layout
riordanp Feb 1, 2024
4a51194
Merge branch 'dev' into pan/openbook-v2
riordanp Feb 1, 2024
2f7a317
export openbookv2
tlrjs Feb 8, 2024
1036323
return MarketAccounts
tlrjs Feb 8, 2024
c19a6d4
Add SpotMarketIndex enum for more idiomicity, update group on client
riordanp Feb 9, 2024
b288150
Merge branch 'pan/openbook-v2' of github.com:blockworks-foundation/ma…
riordanp Feb 9, 2024
c787c23
Merge branch 'dev' into pan/openbook-v2
riordanp Feb 9, 2024
65df951
Get price lots before modifying the book
riordanp Feb 9, 2024
115ae95
Merge branch 'pan/openbook-v2' of github.com:blockworks-foundation/ma…
riordanp Feb 9, 2024
0296430
cargo fmt
riordanp Feb 9, 2024
d29649a
box indexer to the heap
riordanp Feb 13, 2024
728470f
separate authority and payer
riordanp Feb 13, 2024
5e7e990
fix bank validation, add checks for market,
riordanp Feb 13, 2024
46527a4
update comments, add oracle validation to settle
riordanp Feb 13, 2024
3852461
add ix gates for cancel
riordanp Feb 13, 2024
79946c6
return decoded with type
tlrjs Feb 13, 2024
b480908
ignore scripts
tlrjs Feb 13, 2024
16566fe
logs
tlrjs Feb 13, 2024
c327c33
Revert "return MarketAccounts"
tlrjs Feb 13, 2024
b36d1d8
use empty wallet
tlrjs Feb 23, 2024
3525d17
add missing accounts
tlrjs Feb 23, 2024
7c3eed4
remove payer
tlrjs Feb 29, 2024
6c75677
add payers
tlrjs Feb 29, 2024
5a68475
make group delegate
riordanp Feb 29, 2024
05239e5
expose selftradebehavior
riordanp Feb 29, 2024
44d0d5b
clean up testing guards
riordanp Feb 29, 2024
79259a2
fix settlement
riordanp Feb 29, 2024
690e762
fix close open orders
riordanp Feb 29, 2024
d016039
update client and scripts
riordanp Feb 29, 2024
e498bf5
fix market authority pda
riordanp Feb 29, 2024
fbe2c8f
fix priceNumberToLots
tlrjs Mar 14, 2024
809d583
fix openorders loading
tlrjs Mar 14, 2024
aafee9d
prevent permissioned and closeable markets from being registered
riordanp Apr 2, 2024
3f87665
place order fixes, push tests
riordanp Apr 12, 2024
fe87726
test fixing
ckamm Apr 15, 2024
c10567c
settle test fixes
ckamm Apr 15, 2024
d99d3f8
skip broken test, update idl
ckamm Apr 15, 2024
05c64e0
fix deposit limit code and tests
ckamm Apr 15, 2024
64b80da
fix obv2 health bug with reserved amounts
ckamm Apr 15, 2024
45ec653
fix test bug
ckamm Apr 16, 2024
1d0591e
add obv2 health unittests
ckamm Apr 16, 2024
d1e2ff5
Merge remote-tracking branch 'origin/dev' into pan/openbook-v2
ckamm Apr 16, 2024
c3f72b9
allow bank/oracle skipping involving obv2 tokens
ckamm Apr 16, 2024
2331257
unify account constraints
ckamm Apr 17, 2024
55304a2
rust client: snapshot and subscribe to obv2 oo accounts
ckamm Apr 17, 2024
d829911
rust client: obv2 health accounts and cu estimation
ckamm Apr 17, 2024
6bedab4
liq: force cancel obv2 orders
ckamm Apr 17, 2024
85c3286
fix program ids
ckamm Apr 17, 2024
f33d799
Update rust to 1.70 in ci and docker
ckamm Apr 18, 2024
afe23d1
Revert change to vec size in idl comparison
ckamm Apr 18, 2024
54caa9c
fix bad ix gate
ckamm Apr 18, 2024
cc83ce6
fix bad comment
ckamm Apr 18, 2024
88d385e
drop unnecessary account size checks in mango acocunt reading
ckamm Apr 18, 2024
11699dc
simplify obv2 close_open_orders
ckamm Apr 18, 2024
0e8864e
avoid borrow error
ckamm Apr 18, 2024
111fd81
use emit_stack where sensible
ckamm Apr 18, 2024
0e176bf
port health cache checks form serum3 to obv2 place order
ckamm Apr 18, 2024
7988087
wip: integration test for obv2 liq force cancel
ckamm Apr 18, 2024
22a1145
Fix obv2 liq force close instruction and add test
ckamm Apr 18, 2024
67383f3
Serge/obv2 small fixes (#947)
farnyser Apr 19, 2024
2cf1023
create obv2 market script
microwavedcola1 Apr 22, 2024
8d9413e
tests: update obv2 fixture and tests
ckamm Apr 22, 2024
33ac9b4
bump to v0.25.0, update idl, add idl-compare exceptions
ckamm Apr 22, 2024
61df0a2
fix linting issues
microwavedcola1 Apr 22, 2024
25bca83
yarn deduplicate
ckamm Apr 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-code-review-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
env:
CARGO_TERM_COLOR: always
SOLANA_VERSION: '1.16.14'
RUST_TOOLCHAIN: '1.69.0'
RUST_TOOLCHAIN: '1.70.0'
LOG_PROGRAM: '4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg'

jobs:
Expand Down
Loading
Loading