-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheventschemas.go
43 lines (41 loc) · 1.14 KB
/
eventschemas.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
43
package main
type HiFromKnative struct {
// Msg holds the message from the event
Msg string `json:"msg,omitempty"`
}
type Transaction struct {
Op string `json:"op"`
X struct {
LockTime int `json:"lock_time"`
Ver int `json:"ver"`
Size int `json:"size"`
Inputs []struct {
Sequence int64 `json:"sequence"`
PrevOut struct {
Spent bool `json:"spent"`
TxIndex int `json:"tx_index"`
Type int `json:"type"`
Addr string `json:"addr"`
Value int `json:"value"`
N int `json:"n"`
Script string `json:"script"`
} `json:"prev_out"`
Script string `json:"script"`
} `json:"inputs"`
Time int `json:"time"`
TtxIndex int `json:"ttx_index"`
VinSz int `json:"vin_sz"`
Hash string `json:"hash"`
VoutSz int `json:"vout_sz"`
RelayedBy string `json:"relayed_by"`
Out []struct {
Spent bool `json:"spent"`
TxIndex int `json:"tx_index"`
Type int `json:"type"`
Addr string `json:"addr"`
Value int `json:"value"`
N int `json:"n"`
Script string `json:"script"`
} `json:"out"`
} `json:"x"`
}