Commit Graph

362 Commits

Author SHA1 Message Date
billettc b768a16047 some ws client refactoring 2020-11-09 13:10:17 -05:00
Alexandre Bourget 213c43e79e Added license ot files 2020-11-09 13:09:50 -05:00
Alexandre Bourget ebfd186d9c Standardize the cobra experience `list` and g`et` 2020-11-09 13:08:05 -05:00
Alexandre Bourget 3f637ad08b Updtaed README 2020-11-09 13:04:48 -05:00
Alexandre Bourget 85c240e786 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	cmd/slnc/cmd/serum_get_market.go
2020-11-09 13:00:06 -05:00
Alexandre Bourget 0002874950 Added hard-coded token mints.
Shuffle around the commands on `slnc`.
Better decoding, better reading of data.
Simplified API
2020-11-09 12:59:24 -05:00
billettc 23b2e05a93 Merge branch 'master' of github.com:dfuse-io/solana-go 2020-11-09 12:57:39 -05:00
billettc 177f411c27 replace the callback function by a chan. 2020-11-09 12:55:59 -05:00
billettc 4ee10af4f4 ws client is functional still need couple refactoring 2020-11-09 12:39:51 -05:00
Marc-Antoine Ross 76345a1ec5
Fix link makrdown 2020-11-09 12:38:54 -05:00
Julien Cassis 7b11bafe51 fix README 2020-11-09 11:46:57 -05:00
Julien Cassis 6339e9b090 Added serum market output 2020-11-09 11:46:03 -05:00
Julien Cassis 534d5afb3f remove redundant warning 2020-11-09 11:42:22 -05:00
Julien Cassis ad01c9c279 Added serum market depth 2020-11-09 11:41:32 -05:00
Francois Proulx ea7c7dc68e Fixing gorelease setup 2020-11-09 11:38:40 -05:00
Francois Proulx 333804f41f Basic changelog info for first release 2020-11-09 11:24:41 -05:00
Francois Proulx f3874d6593 Adding CHANGELOG structure and gorelease scripts 2020-11-09 11:20:21 -05:00
Alexandre Bourget 438d441fa7 Fix get program accounts 2020-11-09 11:07:13 -05:00
Alexandre Bourget 904574fabc A few touchups, README.md 2020-11-09 11:03:26 -05:00
Julien Cassis 8d5edff2c8 added sample output 2020-11-09 10:53:52 -05:00
Julien Cassis d7342642f2 disabled vault cmd 2020-11-09 10:46:28 -05:00
Julien Cassis c7dac4508d Added rice box market 2020-11-09 10:44:50 -05:00
Julien Cassis 4c73617d79 properly decode serum price and quantity 2020-11-09 10:03:33 -05:00
billettc 3f125ff9c0 fix ws response decoding 2020-11-09 09:57:03 -05:00
billettc 6d20a206b2 wip: working program subscription 2020-11-09 08:53:09 -05:00
billettc c5ca166c30 move slnc under cmd package 2020-11-09 08:00:35 -05:00
Julien Cassis e0cb398213 Added uint128 support 2020-11-07 21:30:28 -05:00
Julien Cassis 889b7f66e9 cleaned up readme and spl mint 2020-11-06 20:03:49 -05:00
Julien Cassis 7825271d30 fix mint layout 2020-11-06 17:55:11 -05:00
Julien Cassis 964b116c5d Added market price conversation functions 2020-11-06 17:55:11 -05:00
Alexandre Bourget 889e63cf80 Updated README.md 2020-11-06 17:42:35 -05:00
Alexandre Bourget 171943caa8 Attempt at fixing the vault 2020-11-06 17:34:03 -05:00
Alexandre Bourget f71b312bee Market and Markets 2020-11-06 17:18:33 -05:00
Alexandre Bourget d2c309c185 Fetch orderbook from the CLI 2020-11-06 17:05:24 -05:00
Alexandre Bourget 708f8646c6 Start printing the orderbook. 2020-11-06 17:04:39 -05:00
Julien Cassis b88026d792 Added base and quote mint to market 2020-11-06 17:02:52 -05:00
Julien Cassis a7fe8080ae added market meta 2020-11-06 16:52:19 -05:00
Julien Cassis 3c5e5c1e2c added market support 2020-11-06 16:40:05 -05:00
Julien Cassis fc10df5cb9 moves slnc cmds to solana-go 2020-11-06 16:31:18 -05:00
Alexandre Bourget 1728e735f5 Fix it 2020-11-06 16:14:55 -05:00
Alexandre Bourget e01bec9eae Decode orders. 2020-11-06 16:13:32 -05:00
Alexandre Bourget 3aa871386e First working variant for SystemInstructions, pretty hard-coded for now. 2020-11-06 16:13:17 -05:00
Julien Cassis 77cc3c9e7a Added order book iterator 2020-11-06 13:18:04 -05:00
Julien Cassis bd885c98ff added serum types 2020-11-06 11:47:26 -05:00
billettc 7604ae3075 move rpc type to rpc package 2020-11-06 11:38:43 -05:00
billettc 28f43ef6c1 replace new rpc client by alex one 2020-11-06 11:20:48 -05:00
billettc 4b1dd0f6be add rpc client and call to getAccountInfo 2020-11-06 10:40:28 -05:00
Alexandre Bourget 2949cab0aa First draft of Serum structs. 2020-11-05 17:54:08 -05:00
Alexandre Bourget 435368f98f SECURITY notice 2020-08-21 12:49:46 -04:00
Matthieu Vachon 948d834b8e Tried to make struc work with variant, but failed
First problem, maybe due to embedding, the library does not correctly see that
`BaseVariant` implements the `struc.Custom` (https://github.com/lunixbochs/struc/blob/master/struc.go#L54).
Even when implementing directly on the type (`system.Instruction`), the library does not
see it anyway.

But even if that would work, I don't think it will possible to make it work. The library
pre-allocate an array using the `Size` instruction. In your case, without serializing,
we don't know in advance without actually packing what will be the final packing size.

I'm my opinion that we should go back to our custom encoding/decoding code that we had
in eos-go, probably even extracting it (the base work) and re-use it.
2020-08-19 13:21:32 -04:00