Commit Graph

13 Commits

Author SHA1 Message Date
billettc 638620d64d Merge branch 'master' of github.com:dfuse-io/solana-go
# Conflicts:
#	serum/instruction.go
2020-11-18 16:53:31 -05:00
billettc 965d5a64c0 added get transaction cli cmd with decoded instruction for serum and system. 2020-11-18 16:45:59 -05:00
billettc 57107bb989 moved AccountSettable to solana interface. 2020-11-18 08:39:50 -05:00
billettc 0a7c9bc30b remove most of the remaining struc ref 2020-11-13 09:21:00 -05:00
billettc 6a8456717b replace struc by dfuse bin. Some test are failing 2020-11-12 17:57:43 -05:00
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