forked from iotexproject/iotex-core
/
mainchain.pb.go
427 lines (374 loc) · 14.4 KB
/
mainchain.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: mainchain.proto
package mainchainpb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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.ProtoPackageIsVersion3 // please upgrade the proto package
type SubChain struct {
ChainID uint32 `protobuf:"varint,1,opt,name=chainID,proto3" json:"chainID,omitempty"`
SecurityDeposit string `protobuf:"bytes,2,opt,name=securityDeposit,proto3" json:"securityDeposit,omitempty"`
OperationDeposit string `protobuf:"bytes,3,opt,name=operationDeposit,proto3" json:"operationDeposit,omitempty"`
StartHeight uint64 `protobuf:"varint,4,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
StopHeight uint64 `protobuf:"varint,5,opt,name=stopHeight,proto3" json:"stopHeight,omitempty"`
ParentHeightOffset uint64 `protobuf:"varint,6,opt,name=parentHeightOffset,proto3" json:"parentHeightOffset,omitempty"`
OwnerPublicKey []byte `protobuf:"bytes,7,opt,name=ownerPublicKey,proto3" json:"ownerPublicKey,omitempty"`
CurrentHeight uint64 `protobuf:"varint,8,opt,name=currentHeight,proto3" json:"currentHeight,omitempty"`
DepositCount uint64 `protobuf:"varint,9,opt,name=depositCount,proto3" json:"depositCount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SubChain) Reset() { *m = SubChain{} }
func (m *SubChain) String() string { return proto.CompactTextString(m) }
func (*SubChain) ProtoMessage() {}
func (*SubChain) Descriptor() ([]byte, []int) {
return fileDescriptor_3de594685a4ba7cd, []int{0}
}
func (m *SubChain) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SubChain.Unmarshal(m, b)
}
func (m *SubChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SubChain.Marshal(b, m, deterministic)
}
func (m *SubChain) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubChain.Merge(m, src)
}
func (m *SubChain) XXX_Size() int {
return xxx_messageInfo_SubChain.Size(m)
}
func (m *SubChain) XXX_DiscardUnknown() {
xxx_messageInfo_SubChain.DiscardUnknown(m)
}
var xxx_messageInfo_SubChain proto.InternalMessageInfo
func (m *SubChain) GetChainID() uint32 {
if m != nil {
return m.ChainID
}
return 0
}
func (m *SubChain) GetSecurityDeposit() string {
if m != nil {
return m.SecurityDeposit
}
return ""
}
func (m *SubChain) GetOperationDeposit() string {
if m != nil {
return m.OperationDeposit
}
return ""
}
func (m *SubChain) GetStartHeight() uint64 {
if m != nil {
return m.StartHeight
}
return 0
}
func (m *SubChain) GetStopHeight() uint64 {
if m != nil {
return m.StopHeight
}
return 0
}
func (m *SubChain) GetParentHeightOffset() uint64 {
if m != nil {
return m.ParentHeightOffset
}
return 0
}
func (m *SubChain) GetOwnerPublicKey() []byte {
if m != nil {
return m.OwnerPublicKey
}
return nil
}
func (m *SubChain) GetCurrentHeight() uint64 {
if m != nil {
return m.CurrentHeight
}
return 0
}
func (m *SubChain) GetDepositCount() uint64 {
if m != nil {
return m.DepositCount
}
return 0
}
type MerkleRoot struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MerkleRoot) Reset() { *m = MerkleRoot{} }
func (m *MerkleRoot) String() string { return proto.CompactTextString(m) }
func (*MerkleRoot) ProtoMessage() {}
func (*MerkleRoot) Descriptor() ([]byte, []int) {
return fileDescriptor_3de594685a4ba7cd, []int{1}
}
func (m *MerkleRoot) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MerkleRoot.Unmarshal(m, b)
}
func (m *MerkleRoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MerkleRoot.Marshal(b, m, deterministic)
}
func (m *MerkleRoot) XXX_Merge(src proto.Message) {
xxx_messageInfo_MerkleRoot.Merge(m, src)
}
func (m *MerkleRoot) XXX_Size() int {
return xxx_messageInfo_MerkleRoot.Size(m)
}
func (m *MerkleRoot) XXX_DiscardUnknown() {
xxx_messageInfo_MerkleRoot.DiscardUnknown(m)
}
var xxx_messageInfo_MerkleRoot proto.InternalMessageInfo
func (m *MerkleRoot) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *MerkleRoot) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
type BlockProof struct {
SubChainAddress string `protobuf:"bytes,1,opt,name=subChainAddress,proto3" json:"subChainAddress,omitempty"`
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
Roots []*MerkleRoot `protobuf:"bytes,3,rep,name=roots,proto3" json:"roots,omitempty"`
ProducerPublicKey []byte `protobuf:"bytes,4,opt,name=producerPublicKey,proto3" json:"producerPublicKey,omitempty"`
ProducerAddress string `protobuf:"bytes,5,opt,name=producerAddress,proto3" json:"producerAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlockProof) Reset() { *m = BlockProof{} }
func (m *BlockProof) String() string { return proto.CompactTextString(m) }
func (*BlockProof) ProtoMessage() {}
func (*BlockProof) Descriptor() ([]byte, []int) {
return fileDescriptor_3de594685a4ba7cd, []int{2}
}
func (m *BlockProof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockProof.Unmarshal(m, b)
}
func (m *BlockProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockProof.Marshal(b, m, deterministic)
}
func (m *BlockProof) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockProof.Merge(m, src)
}
func (m *BlockProof) XXX_Size() int {
return xxx_messageInfo_BlockProof.Size(m)
}
func (m *BlockProof) XXX_DiscardUnknown() {
xxx_messageInfo_BlockProof.DiscardUnknown(m)
}
var xxx_messageInfo_BlockProof proto.InternalMessageInfo
func (m *BlockProof) GetSubChainAddress() string {
if m != nil {
return m.SubChainAddress
}
return ""
}
func (m *BlockProof) GetHeight() uint64 {
if m != nil {
return m.Height
}
return 0
}
func (m *BlockProof) GetRoots() []*MerkleRoot {
if m != nil {
return m.Roots
}
return nil
}
func (m *BlockProof) GetProducerPublicKey() []byte {
if m != nil {
return m.ProducerPublicKey
}
return nil
}
func (m *BlockProof) GetProducerAddress() string {
if m != nil {
return m.ProducerAddress
}
return ""
}
type InOperation struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Address []byte `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InOperation) Reset() { *m = InOperation{} }
func (m *InOperation) String() string { return proto.CompactTextString(m) }
func (*InOperation) ProtoMessage() {}
func (*InOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_3de594685a4ba7cd, []int{3}
}
func (m *InOperation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InOperation.Unmarshal(m, b)
}
func (m *InOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InOperation.Marshal(b, m, deterministic)
}
func (m *InOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_InOperation.Merge(m, src)
}
func (m *InOperation) XXX_Size() int {
return xxx_messageInfo_InOperation.Size(m)
}
func (m *InOperation) XXX_DiscardUnknown() {
xxx_messageInfo_InOperation.DiscardUnknown(m)
}
var xxx_messageInfo_InOperation proto.InternalMessageInfo
func (m *InOperation) GetId() uint32 {
if m != nil {
return m.Id
}
return 0
}
func (m *InOperation) GetAddress() []byte {
if m != nil {
return m.Address
}
return nil
}
type SubChainsInOperation struct {
InOp []*InOperation `protobuf:"bytes,1,rep,name=inOp,proto3" json:"inOp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SubChainsInOperation) Reset() { *m = SubChainsInOperation{} }
func (m *SubChainsInOperation) String() string { return proto.CompactTextString(m) }
func (*SubChainsInOperation) ProtoMessage() {}
func (*SubChainsInOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_3de594685a4ba7cd, []int{4}
}
func (m *SubChainsInOperation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SubChainsInOperation.Unmarshal(m, b)
}
func (m *SubChainsInOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SubChainsInOperation.Marshal(b, m, deterministic)
}
func (m *SubChainsInOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubChainsInOperation.Merge(m, src)
}
func (m *SubChainsInOperation) XXX_Size() int {
return xxx_messageInfo_SubChainsInOperation.Size(m)
}
func (m *SubChainsInOperation) XXX_DiscardUnknown() {
xxx_messageInfo_SubChainsInOperation.DiscardUnknown(m)
}
var xxx_messageInfo_SubChainsInOperation proto.InternalMessageInfo
func (m *SubChainsInOperation) GetInOp() []*InOperation {
if m != nil {
return m.InOp
}
return nil
}
type Deposit struct {
Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
Confirmed bool `protobuf:"varint,3,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Deposit) Reset() { *m = Deposit{} }
func (m *Deposit) String() string { return proto.CompactTextString(m) }
func (*Deposit) ProtoMessage() {}
func (*Deposit) Descriptor() ([]byte, []int) {
return fileDescriptor_3de594685a4ba7cd, []int{5}
}
func (m *Deposit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Deposit.Unmarshal(m, b)
}
func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Deposit.Marshal(b, m, deterministic)
}
func (m *Deposit) XXX_Merge(src proto.Message) {
xxx_messageInfo_Deposit.Merge(m, src)
}
func (m *Deposit) XXX_Size() int {
return xxx_messageInfo_Deposit.Size(m)
}
func (m *Deposit) XXX_DiscardUnknown() {
xxx_messageInfo_Deposit.DiscardUnknown(m)
}
var xxx_messageInfo_Deposit proto.InternalMessageInfo
func (m *Deposit) GetAmount() string {
if m != nil {
return m.Amount
}
return ""
}
func (m *Deposit) GetAddress() []byte {
if m != nil {
return m.Address
}
return nil
}
func (m *Deposit) GetConfirmed() bool {
if m != nil {
return m.Confirmed
}
return false
}
func init() {
proto.RegisterType((*SubChain)(nil), "mainchainpb.SubChain")
proto.RegisterType((*MerkleRoot)(nil), "mainchainpb.MerkleRoot")
proto.RegisterType((*BlockProof)(nil), "mainchainpb.BlockProof")
proto.RegisterType((*InOperation)(nil), "mainchainpb.InOperation")
proto.RegisterType((*SubChainsInOperation)(nil), "mainchainpb.SubChainsInOperation")
proto.RegisterType((*Deposit)(nil), "mainchainpb.Deposit")
}
func init() { proto.RegisterFile("mainchain.proto", fileDescriptor_3de594685a4ba7cd) }
var fileDescriptor_3de594685a4ba7cd = []byte{
// 449 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0x4f, 0x8f, 0xd3, 0x30,
0x10, 0xc5, 0x95, 0x34, 0xfd, 0x37, 0xed, 0xee, 0xc2, 0x68, 0xb5, 0xf8, 0x80, 0x50, 0x14, 0x21,
0x14, 0xa1, 0xa5, 0x07, 0x90, 0xe0, 0x0c, 0xdb, 0x03, 0x2b, 0x84, 0xba, 0x32, 0x27, 0x8e, 0x6e,
0xe2, 0x52, 0x6b, 0x5b, 0x3b, 0xb2, 0x1d, 0xd0, 0x7e, 0x50, 0xae, 0x7c, 0x16, 0xd4, 0x49, 0x4c,
0xd3, 0x2c, 0xb7,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