forked from dfuse-io/eosws-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
actions.go
42 lines (37 loc) · 1.28 KB
/
actions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package eosws
import (
"encoding/json"
)
func init() {
RegisterIncomingMessage("action_trace", ActionTrace{})
RegisterOutgoingMessage("get_action_traces", GetActionTraces{})
}
type GetActionTraces struct {
CommonOut
Data struct {
Receivers string `json:"receivers,omitempty"`
Accounts string `json:"accounts"`
ActionNames string `json:"action_names,omitempty"`
Receiver string `json:"receiver,omitempty"`
Account string `json:"account,omitempty"`
ActionName string `json:"action_name,omitempty"`
WithDBOps bool `json:"with_dbops"`
WithRAMOps bool `json:"with_ramops"`
WithDTrxOps bool `json:"with_dtrxops"`
WithInlineTraces bool `json:"with_inline_traces"`
} `json:"data"`
}
type ActionTrace struct {
CommonIn
Data struct {
BlockNum uint32 `json:"block_num"`
BlockID string `json:"block_id"`
TransactionID string `json:"trx_id"`
ActionIndex int `json:"idx"`
ActionDepth int `json:"depth"`
Trace json.RawMessage `json:"trace"`
DBOps json.RawMessage `json:"dbops,omitempty"`
RAMOps json.RawMessage `json:"ramops,omitempty"`
DTrxOps json.RawMessage `json:"dtrxops,omitempty"`
} `json:"data"`
}