Commit Graph

8 Commits

Author SHA1 Message Date
Alexandre Bourget 213c43e79e Added license ot files 2020-11-09 13:09:50 -05:00
Julien Cassis 4c73617d79 properly decode serum price and quantity 2020-11-09 10:03:33 -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 bd885c98ff added serum types 2020-11-06 11:47:26 -05: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