Commit Graph

122 Commits

Author SHA1 Message Date
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
Alexandre Bourget b6411edd84 First dent in Variants 2020-08-19 11:28:49 -04:00
Alexandre Bourget b56360c762 First draft of `spl` and `system` commands in the CLI.
Draft of Instructions, and a few System instructions. Not yet packed.
2020-08-14 18:29:24 -04:00
Alexandre Bourget efa3cf9acf Purge old deps 2020-08-14 17:46:31 -04:00
Alexandre Bourget 155698c492 Added the CLI interface to the Vault 2020-08-14 17:45:34 -04:00
Alexandre Bourget 82ea80e0c2 Added full-blown Solana vault, based on eosc vault. 2020-08-14 17:45:22 -04:00
Alexandre Bourget 95ab89e873 Implemented ShortVec.
Pack and unpack a Token `Account` struct too.
2020-08-14 17:03:31 -04:00
Alexandre Bourget 1b77746a25 Partly implemented ShortVec 2020-08-05 15:25:43 -04:00
Alexandre Bourget d0cb5433d3 Can't decode binary transactions yet.. because of the `short_vec` encoding,
I think `struc` won't be able to do that dynamically, we'll need a small
decoder, mostly for Transcations.. and perhaps if other people use that
in their contracts.
2020-07-31 18:06:41 -04:00
Alexandre Bourget e282266159 Added get confirmed block, recent-blockhash, get slot. First stab
at transactions.  Unpacks for the most part, an incoming JSON
from the RPC.
2020-07-31 17:54:41 -04:00
Alexandre Bourget 73b00349c1 Added getBalance. Decode data that you understand, hard-coded for now. 2020-07-31 17:07:54 -04:00
Alexandre Bourget a6f173be91 First draft of a `slnc` client, similar to `eosc`.
First draft of the `token` state reading/writing implementation.
2020-07-31 16:34:44 -04:00
Alexandre Bourget abb3e991fa First draft of a Solana client. 2020-07-31 12:17:36 -04:00