mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-17 04:30:03 +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 := message.ActionTrace{
|
||||
TxID: trace.ID,
|
||||
Receiver: act_trace.Receiver,
|
||||
Contract: act_trace.Act.Account,
|
||||
Action: act_trace.Act.Name,
|
||||
TxID: trace.ID.String(),
|
||||
Receiver: act_trace.Receiver.String(),
|
||||
Contract: act_trace.Act.Account.String(),
|
||||
Action: act_trace.Act.Name.String(),
|
||||
HexData: hex.EncodeToString(act_trace.Act.Data),
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
package message
|
||||
|
||||
import (
|
||||
eos "github.com/eoscanada/eos-go"
|
||||
)
|
||||
|
||||
type HearthBeat struct {
|
||||
BlockNum uint32 `json:"blocknum"`
|
||||
HeadBlockNum uint32 `json:"head_blocknum"`
|
||||
|
|
@ -11,10 +7,10 @@ type HearthBeat struct {
|
|||
}
|
||||
|
||||
type ActionTrace struct {
|
||||
TxID eos.Checksum256 `json:"tx_id"`
|
||||
Receiver eos.Name `json:"receiver"`
|
||||
Contract eos.AccountName `json:"contract"`
|
||||
Action eos.ActionName `json:"action"`
|
||||
Data interface{} `json:"data"`
|
||||
HexData string `json:"hex_data"`
|
||||
TxID string `json:"tx_id"`
|
||||
Receiver string `json:"receiver"`
|
||||
Contract string `json:"contract"`
|
||||
Action string `json:"action"`
|
||||
Data interface{} `json:"data"`
|
||||
HexData string `json:"hex_data"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue