mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-02 11:43:40 +02:00
transport/message/types.go: get rid of eos-go here.
This commit is contained in:
parent
2bec1f09c5
commit
e0bf53496a
2 changed files with 10 additions and 14 deletions
|
|
@ -79,10 +79,10 @@ func (processor *ShipProcessor) processTraces(traces []*ship.TransactionTraceV0)
|
||||||
act_trace := actionTraceVar.Impl.(*ship.ActionTraceV0)
|
act_trace := actionTraceVar.Impl.(*ship.ActionTraceV0)
|
||||||
|
|
||||||
act := message.ActionTrace{
|
act := message.ActionTrace{
|
||||||
TxID: trace.ID,
|
TxID: trace.ID.String(),
|
||||||
Receiver: act_trace.Receiver,
|
Receiver: act_trace.Receiver.String(),
|
||||||
Contract: act_trace.Act.Account,
|
Contract: act_trace.Act.Account.String(),
|
||||||
Action: act_trace.Act.Name,
|
Action: act_trace.Act.Name.String(),
|
||||||
HexData: hex.EncodeToString(act_trace.Act.Data),
|
HexData: hex.EncodeToString(act_trace.Act.Data),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
package message
|
package message
|
||||||
|
|
||||||
import (
|
|
||||||
eos "github.com/eoscanada/eos-go"
|
|
||||||
)
|
|
||||||
|
|
||||||
type HearthBeat struct {
|
type HearthBeat struct {
|
||||||
BlockNum uint32 `json:"blocknum"`
|
BlockNum uint32 `json:"blocknum"`
|
||||||
HeadBlockNum uint32 `json:"head_blocknum"`
|
HeadBlockNum uint32 `json:"head_blocknum"`
|
||||||
|
|
@ -11,10 +7,10 @@ type HearthBeat struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ActionTrace struct {
|
type ActionTrace struct {
|
||||||
TxID eos.Checksum256 `json:"tx_id"`
|
TxID string `json:"tx_id"`
|
||||||
Receiver eos.Name `json:"receiver"`
|
Receiver string `json:"receiver"`
|
||||||
Contract eos.AccountName `json:"contract"`
|
Contract string `json:"contract"`
|
||||||
Action eos.ActionName `json:"action"`
|
Action string `json:"action"`
|
||||||
Data interface{} `json:"data"`
|
Data interface{} `json:"data"`
|
||||||
HexData string `json:"hex_data"`
|
HexData string `json:"hex_data"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue