/
elasticTypes.go
78 lines (66 loc) · 2.42 KB
/
elasticTypes.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package oip042
import "github.com/oipwg/oip/datastore"
type OMeta struct {
Block int64 `json:"block"`
BlockHash string `json:"block_hash"`
Completed bool `json:"completed"`
Invalid bool `json:"invalid"`
Signature string `json:"signature"`
Time int64 `json:"time"`
Tx *datastore.TransactionData `json:"-"`
Txid string `json:"txid"`
Type string `json:"type"`
OriginalTxid string `json:"originalTxid"`
PriorTxid string `json:"priorTxid"`
}
type AMeta struct {
Block int64 `json:"block"`
BlockHash string `json:"block_hash"`
Deactivated bool `json:"deactivated"`
Blacklist Blacklist `json:"blacklist"`
Latest bool `json:"latest"`
OriginalTxid string `json:"originalTxid"`
PreviousEdits []string `json:"previousEdits"`
Signature string `json:"signature"`
Time int64 `json:"time"`
Tx *datastore.TransactionData `json:"-"`
Txid string `json:"txid"`
Type string `json:"type"`
}
type Blacklist struct {
Blacklisted bool `json:"blacklisted"`
Filter string `json:"filter"`
}
type elasticOip042Edit struct {
Edit interface{} `json:"edit"`
Meta OMeta `json:"meta"`
Patch string `json:"patch"`
}
type elasticOip042Transfer struct {
Transfer interface{} `json:"transfer"`
Meta OMeta `json:"meta"`
}
type elasticOip042Artifact struct {
Artifact interface{} `json:"artifact"`
Meta AMeta `json:"meta"`
}
type elasticOip042Pub struct {
Pub interface{} `json:"publisher"`
Meta AMeta `json:"meta"`
}
type elasticOip042Influencer struct {
Influencer interface{} `json:"influencer"`
Meta AMeta `json:"meta"`
}
type elasticOip042Platform struct {
Platform interface{} `json:"platform"`
Meta AMeta `json:"meta"`
}
type elasticOip042Autominer struct {
Autominer interface{} `json:"autominer"`
Meta AMeta `json:"meta"`
}
type elasticOip042Pool struct {
Pool interface{} `json:"pool"`
Meta AMeta `json:"meta"`
}