-
Notifications
You must be signed in to change notification settings - Fork 0
/
transaction.pb.go
202 lines (177 loc) · 6.81 KB
/
transaction.pb.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ledger/transaction.proto
package ledger
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Transaction_Type int32
const (
Transaction_ZERO Transaction_Type = 0
Transaction_OPEN Transaction_Type = 1
Transaction_SEND Transaction_Type = 2
Transaction_RECEIVE Transaction_Type = 3
Transaction_CHANGE Transaction_Type = 4
)
var Transaction_Type_name = map[int32]string{
0: "ZERO",
1: "OPEN",
2: "SEND",
3: "RECEIVE",
4: "CHANGE",
}
var Transaction_Type_value = map[string]int32{
"ZERO": 0,
"OPEN": 1,
"SEND": 2,
"RECEIVE": 3,
"CHANGE": 4,
}
func (x Transaction_Type) String() string {
return proto.EnumName(Transaction_Type_name, int32(x))
}
func (Transaction_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_transaction_3dc6c13d78351316, []int{0, 0}
}
type Transaction struct {
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Type Transaction_Type `protobuf:"varint,2,opt,name=type,proto3,enum=ledger.Transaction_Type" json:"type,omitempty"`
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
Previous string `protobuf:"bytes,4,opt,name=previous,proto3" json:"previous,omitempty"`
Link string `protobuf:"bytes,5,opt,name=link,proto3" json:"link,omitempty"`
Balance float64 `protobuf:"fixed64,6,opt,name=balance,proto3" json:"balance,omitempty"`
PowTarget int32 `protobuf:"varint,7,opt,name=powTarget,proto3" json:"powTarget,omitempty"`
PowNonce int64 `protobuf:"varint,8,opt,name=powNonce,proto3" json:"powNonce,omitempty"`
Hash string `protobuf:"bytes,9,opt,name=hash,proto3" json:"hash,omitempty"`
PubKey string `protobuf:"bytes,10,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
Signature string `protobuf:"bytes,11,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Transaction) Reset() { *m = Transaction{} }
func (m *Transaction) String() string { return proto.CompactTextString(m) }
func (*Transaction) ProtoMessage() {}
func (*Transaction) Descriptor() ([]byte, []int) {
return fileDescriptor_transaction_3dc6c13d78351316, []int{0}
}
func (m *Transaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Transaction.Unmarshal(m, b)
}
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Transaction.Marshal(b, m, deterministic)
}
func (dst *Transaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_Transaction.Merge(dst, src)
}
func (m *Transaction) XXX_Size() int {
return xxx_messageInfo_Transaction.Size(m)
}
func (m *Transaction) XXX_DiscardUnknown() {
xxx_messageInfo_Transaction.DiscardUnknown(m)
}
var xxx_messageInfo_Transaction proto.InternalMessageInfo
func (m *Transaction) GetTimestamp() int64 {
if m != nil {
return m.Timestamp
}
return 0
}
func (m *Transaction) GetType() Transaction_Type {
if m != nil {
return m.Type
}
return Transaction_ZERO
}
func (m *Transaction) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *Transaction) GetPrevious() string {
if m != nil {
return m.Previous
}
return ""
}
func (m *Transaction) GetLink() string {
if m != nil {
return m.Link
}
return ""
}
func (m *Transaction) GetBalance() float64 {
if m != nil {
return m.Balance
}
return 0
}
func (m *Transaction) GetPowTarget() int32 {
if m != nil {
return m.PowTarget
}
return 0
}
func (m *Transaction) GetPowNonce() int64 {
if m != nil {
return m.PowNonce
}
return 0
}
func (m *Transaction) GetHash() string {
if m != nil {
return m.Hash
}
return ""
}
func (m *Transaction) GetPubKey() string {
if m != nil {
return m.PubKey
}
return ""
}
func (m *Transaction) GetSignature() string {
if m != nil {
return m.Signature
}
return ""
}
func init() {
proto.RegisterType((*Transaction)(nil), "ledger.Transaction")
proto.RegisterEnum("ledger.Transaction_Type", Transaction_Type_name, Transaction_Type_value)
}
func init() {
proto.RegisterFile("ledger/transaction.proto", fileDescriptor_transaction_3dc6c13d78351316)
}
var fileDescriptor_transaction_3dc6c13d78351316 = []byte{
// 307 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x51, 0xcd, 0x4b, 0x3b, 0x31,
0x10, 0xfd, 0xa5, 0xbb, 0xdd, 0x6e, 0xa7, 0xf0, 0x63, 0xc9, 0x41, 0x06, 0xf1, 0xb0, 0xf4, 0xb4,
0x07, 0x59, 0x41, 0xcf, 0x1e, 0xb4, 0x06, 0x15, 0x61, 0x2b, 0xb1, 0x78, 0xe8, 0x2d, 0x6d, 0x43,
0xbb, 0xd8, 0x6e, 0x42, 0x92, 0x5a, 0x7a, 0xf3, 0x4f, 0x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