mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
api/message/types.go: add msgpack tags
This commit is contained in:
parent
9533e3499a
commit
f3900bc262
1 changed files with 9 additions and 9 deletions
|
|
@ -1,21 +1,21 @@
|
|||
package message
|
||||
|
||||
type HeartBeat struct {
|
||||
BlockNum uint32 `json:"blocknum"`
|
||||
HeadBlockNum uint32 `json:"head_blocknum"`
|
||||
LastIrreversibleBlockNum uint32 `json:"last_irreversible_blocknum"`
|
||||
BlockNum uint32 `json:"blocknum" msgpack:"blocknum"`
|
||||
HeadBlockNum uint32 `json:"head_blocknum" msgpack:"head_blocknum"`
|
||||
LastIrreversibleBlockNum uint32 `json:"last_irreversible_blocknum" msgpack:"last_irreversible_blocknum"`
|
||||
}
|
||||
|
||||
type ActionTrace struct {
|
||||
TxID string `json:"tx_id"`
|
||||
TxID string `json:"tx_id" msgpack:"tx_id"`
|
||||
|
||||
// Action name
|
||||
Name string `json:"name"`
|
||||
Name string `json:"name" msgpack:"name"`
|
||||
|
||||
// Contract account.
|
||||
Contract string `json:"contract"`
|
||||
Contract string `json:"contract" msgpack:"contract"`
|
||||
|
||||
Receiver string `json:"receiver"`
|
||||
Data interface{} `json:"data"`
|
||||
HexData string `json:"hex_data"`
|
||||
Receiver string `json:"receiver" msgpack:"receiver"`
|
||||
Data interface{} `json:"data" msgpack:"data"`
|
||||
HexData string `json:"hex_data" msgpack:"hex_data"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue