mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-04 12:03:41 +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
|
package message
|
||||||
|
|
||||||
type HeartBeat struct {
|
type HeartBeat struct {
|
||||||
BlockNum uint32 `json:"blocknum"`
|
BlockNum uint32 `json:"blocknum" msgpack:"blocknum"`
|
||||||
HeadBlockNum uint32 `json:"head_blocknum"`
|
HeadBlockNum uint32 `json:"head_blocknum" msgpack:"head_blocknum"`
|
||||||
LastIrreversibleBlockNum uint32 `json:"last_irreversible_blocknum"`
|
LastIrreversibleBlockNum uint32 `json:"last_irreversible_blocknum" msgpack:"last_irreversible_blocknum"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ActionTrace struct {
|
type ActionTrace struct {
|
||||||
TxID string `json:"tx_id"`
|
TxID string `json:"tx_id" msgpack:"tx_id"`
|
||||||
|
|
||||||
// Action name
|
// Action name
|
||||||
Name string `json:"name"`
|
Name string `json:"name" msgpack:"name"`
|
||||||
|
|
||||||
// Contract account.
|
// Contract account.
|
||||||
Contract string `json:"contract"`
|
Contract string `json:"contract" msgpack:"contract"`
|
||||||
|
|
||||||
Receiver string `json:"receiver"`
|
Receiver string `json:"receiver" msgpack:"receiver"`
|
||||||
Data interface{} `json:"data"`
|
Data interface{} `json:"data" msgpack:"data"`
|
||||||
HexData string `json:"hex_data"`
|
HexData string `json:"hex_data" msgpack:"hex_data"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue