microwavedcola1
605ef31353
rename
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 19:29:18 +02:00
microwavedcola1
8210e9bc00
adapt to program side renaming
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 19:18:46 +02:00
microwavedcola1
227f03b125
support for registerting serum markets
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 19:13:58 +02:00
microwavedcola1
057045fa19
simplify
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 18:05:05 +02:00
Christian Kamm
9f0a7f67ae
Orderbook: Port over unittests
2022-04-02 13:51:26 +02:00
Christian Kamm
cbc3cc7bbd
MangoAccount: Rename how tokens/serum3/perps data is stored
...
token_account_map -> tokens
serum3_account_map -> serum3
perp -> perps
2022-04-02 13:51:26 +02:00
microwavedcola1
c567a2d330
basic support for registering serum market
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 12:55:29 +02:00
microwavedcola1
881bdb2367
remove hardcoded
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 11:59:58 +02:00
microwavedcola1
5f49755f51
extend example, multiple wallets
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 11:52:28 +02:00
microwavedcola1
09bc5a8473
support unbound vars
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 10:09:21 +02:00
microwavedcola1
1d15db37c5
clippy
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 10:02:12 +02:00
microwavedcola1
9cd08a1355
improve checks
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 09:52:40 +02:00
microwavedcola1
87bcc538cd
compiles
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 09:05:31 +02:00
microwavedcola1
27ee48a206
Merge pull request #32 from blockworks-foundation/mc/serum-anchor-style-args
...
Make Serum3 ix anchor friendly
2022-04-02 08:59:58 +02:00
microwavedcola1
0bdbd19ddd
Make Serum3 ix anchor friendly
...
Make work with changes in mango account, add no deploy part to release script
Clippy
Fixes from cr
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-02 08:59:07 +02:00
Christian Kamm
d26caf1c87
Perp: Rename fields to be explicit about being in lots
2022-04-01 15:47:12 +02:00
Christian Kamm
f2607889e3
Perps: Place accounts and open orders in MangoAccount::perp
...
Also make test_perp succeed by fixing the FillEvent size.
2022-04-01 12:45:01 +02:00
Christian Kamm
f48a7f5ed9
Clippy: Address issues
2022-04-01 12:21:19 +02:00
Christian Kamm
833a909aa4
Orderbook: unify new_bid/new_ask
2022-04-01 12:21:19 +02:00
Christian Kamm
6505abcd54
Side: Make inversion function be associated
2022-04-01 12:21:19 +02:00
microwavedcola1
8e608ac606
some more building ix separately and then sending it separately
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-01 11:24:45 +02:00
microwavedcola1
9aa86ecb6a
add example of building ix separately and then sending it separately
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-01 11:20:26 +02:00
microwavedcola1
30ef479df9
update
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-01 10:23:47 +02:00
microwavedcola1
997301d079
more docs
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-01 09:11:08 +02:00
microwavedcola1
7ab18cff9f
update exports
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-01 09:05:38 +02:00
microwavedcola1
4b17381658
update example + types
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-01 09:04:26 +02:00
microwavedcola1
4d4745d75b
Some more progress on the client
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-04-01 08:59:39 +02:00
Christian Kamm
10ab9804d1
Rename perp instructions to have perp_ prefix
2022-04-01 08:01:56 +02:00
microwavedcola1
fbc7c5e9d5
empty devnet setup
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-31 21:04:45 +02:00
microwavedcola1
095ad30ac4
release script
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-31 21:03:45 +02:00
Christian Kamm
8038f9e257
Add CloseAccount instruction to make testing easier
2022-03-31 17:22:56 +02:00
microwavedcola1
ad3ad37417
cleanup client code
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-31 16:16:11 +02:00
microwavedcola1
9e2d5de914
add gt 0 checks
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-31 16:02:18 +02:00
microwavedcola1
fce4edb79f
--wip-- [skip ci]
2022-03-31 15:58:18 +02:00
microwavedcola1
fb16771d1f
cleanup
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-31 15:58:18 +02:00
microwavedcola1
30ab82ea32
--wip-- [skip ci]
2022-03-31 15:58:18 +02:00
microwavedcola1
46d651f4c4
apply script to change to u16
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-31 15:58:18 +02:00
microwavedcola1
c40aa30e03
--wip-- [skip ci]
2022-03-31 15:58:18 +02:00
microwavedcola1
c9ca8d5563
--wip-- [skip ci]
2022-03-31 15:58:18 +02:00
microwavedcola1
70c8f49624
update idl
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-31 15:58:18 +02:00
microwavedcola1
78df0082c4
Some progress on initial ts example
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-31 15:58:18 +02:00
Christian Kamm
56e3bd8740
Rearrange accounts to avoid padding bytes
2022-03-31 14:37:05 +02:00
Christian Kamm
9cf4f1a748
Rearrange MangoAccount to avoid padding bytes
2022-03-31 14:01:08 +02:00
Christian Kamm
5470dc998a
Idl: Add a script to replace type aliases with the underlying type.
...
This allows typescript to work with TokenIndex etc based on just the
idl.
2022-03-31 11:53:21 +02:00
Christian Kamm
85b0b420d4
Disable address lookup tables
...
Because the ALT program isn't available on devnet yet, so prohibits
testing there.
2022-03-31 09:25:47 +02:00
microwavedcola1
1bdcf869ac
fix address
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-30 17:41:37 +02:00
microwavedcola1
795fa532da
update program, and deploy to devnet
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-30 17:16:32 +02:00
microwavedcola1
faba5c47bf
remove unwanted code
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-30 17:03:56 +02:00
microwavedcola1
dc439c8327
add null checks
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-03-30 14:02:19 +02:00
microwavedcola1
46cb811c99
Merge branch 'mc/consume_events'
2022-03-30 13:22:31 +02:00