cranberry

Форк
0
/
cranberry.pb.go 
1355 строк · 41.3 Кб
1
// Code generated by protoc-gen-go. DO NOT EDIT.
2
// versions:
3
// 	protoc-gen-go v1.34.2
4
// 	protoc        v5.28.2
5
// source: api/cranberry.proto
6

7
package grpc
8

9
import (
10
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12
	reflect "reflect"
13
	sync "sync"
14
)
15

16
const (
17
	// Verify that this generated code is sufficiently up-to-date.
18
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
	// Verify that runtime/protoimpl is sufficiently up-to-date.
20
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21
)
22

23
type SendTxRequest struct {
24
	state         protoimpl.MessageState
25
	sizeCache     protoimpl.SizeCache
26
	unknownFields protoimpl.UnknownFields
27

28
	Tx        *Tx        `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
29
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
30
	PubKey    []byte     `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
31
}
32

33
func (x *SendTxRequest) Reset() {
34
	*x = SendTxRequest{}
35
	if protoimpl.UnsafeEnabled {
36
		mi := &file_api_cranberry_proto_msgTypes[0]
37
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38
		ms.StoreMessageInfo(mi)
39
	}
40
}
41

42
func (x *SendTxRequest) String() string {
43
	return protoimpl.X.MessageStringOf(x)
44
}
45

46
func (*SendTxRequest) ProtoMessage() {}
47

48
func (x *SendTxRequest) ProtoReflect() protoreflect.Message {
49
	mi := &file_api_cranberry_proto_msgTypes[0]
50
	if protoimpl.UnsafeEnabled && x != nil {
51
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52
		if ms.LoadMessageInfo() == nil {
53
			ms.StoreMessageInfo(mi)
54
		}
55
		return ms
56
	}
57
	return mi.MessageOf(x)
58
}
59

60
// Deprecated: Use SendTxRequest.ProtoReflect.Descriptor instead.
61
func (*SendTxRequest) Descriptor() ([]byte, []int) {
62
	return file_api_cranberry_proto_rawDescGZIP(), []int{0}
63
}
64

65
func (x *SendTxRequest) GetTx() *Tx {
66
	if x != nil {
67
		return x.Tx
68
	}
69
	return nil
70
}
71

72
func (x *SendTxRequest) GetSignature() *Signature {
73
	if x != nil {
74
		return x.Signature
75
	}
76
	return nil
77
}
78

79
func (x *SendTxRequest) GetPubKey() []byte {
80
	if x != nil {
81
		return x.PubKey
82
	}
83
	return nil
84
}
85

86
type SendTxResponse struct {
87
	state         protoimpl.MessageState
88
	sizeCache     protoimpl.SizeCache
89
	unknownFields protoimpl.UnknownFields
90
}
91

92
func (x *SendTxResponse) Reset() {
93
	*x = SendTxResponse{}
94
	if protoimpl.UnsafeEnabled {
95
		mi := &file_api_cranberry_proto_msgTypes[1]
96
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
97
		ms.StoreMessageInfo(mi)
98
	}
99
}
100

101
func (x *SendTxResponse) String() string {
102
	return protoimpl.X.MessageStringOf(x)
103
}
104

105
func (*SendTxResponse) ProtoMessage() {}
106

107
func (x *SendTxResponse) ProtoReflect() protoreflect.Message {
108
	mi := &file_api_cranberry_proto_msgTypes[1]
109
	if protoimpl.UnsafeEnabled && x != nil {
110
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111
		if ms.LoadMessageInfo() == nil {
112
			ms.StoreMessageInfo(mi)
113
		}
114
		return ms
115
	}
116
	return mi.MessageOf(x)
117
}
118

119
// Deprecated: Use SendTxResponse.ProtoReflect.Descriptor instead.
120
func (*SendTxResponse) Descriptor() ([]byte, []int) {
121
	return file_api_cranberry_proto_rawDescGZIP(), []int{1}
122
}
123

124
type SendBlockMessage struct {
125
	state         protoimpl.MessageState
126
	sizeCache     protoimpl.SizeCache
127
	unknownFields protoimpl.UnknownFields
128

129
	BlockContainer *BlockContainer `protobuf:"bytes,1,opt,name=blockContainer,proto3" json:"blockContainer,omitempty"`
130
}
131

132
func (x *SendBlockMessage) Reset() {
133
	*x = SendBlockMessage{}
134
	if protoimpl.UnsafeEnabled {
135
		mi := &file_api_cranberry_proto_msgTypes[2]
136
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
137
		ms.StoreMessageInfo(mi)
138
	}
139
}
140

141
func (x *SendBlockMessage) String() string {
142
	return protoimpl.X.MessageStringOf(x)
143
}
144

145
func (*SendBlockMessage) ProtoMessage() {}
146

147
func (x *SendBlockMessage) ProtoReflect() protoreflect.Message {
148
	mi := &file_api_cranberry_proto_msgTypes[2]
149
	if protoimpl.UnsafeEnabled && x != nil {
150
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
151
		if ms.LoadMessageInfo() == nil {
152
			ms.StoreMessageInfo(mi)
153
		}
154
		return ms
155
	}
156
	return mi.MessageOf(x)
157
}
158

159
// Deprecated: Use SendBlockMessage.ProtoReflect.Descriptor instead.
160
func (*SendBlockMessage) Descriptor() ([]byte, []int) {
161
	return file_api_cranberry_proto_rawDescGZIP(), []int{2}
162
}
163

164
func (x *SendBlockMessage) GetBlockContainer() *BlockContainer {
165
	if x != nil {
166
		return x.BlockContainer
167
	}
168
	return nil
169
}
170

171
type GetBlockByHeightRequest struct {
172
	state         protoimpl.MessageState
173
	sizeCache     protoimpl.SizeCache
174
	unknownFields protoimpl.UnknownFields
175

176
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
177
}
178

179
func (x *GetBlockByHeightRequest) Reset() {
180
	*x = GetBlockByHeightRequest{}
181
	if protoimpl.UnsafeEnabled {
182
		mi := &file_api_cranberry_proto_msgTypes[3]
183
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
184
		ms.StoreMessageInfo(mi)
185
	}
186
}
187

188
func (x *GetBlockByHeightRequest) String() string {
189
	return protoimpl.X.MessageStringOf(x)
190
}
191

192
func (*GetBlockByHeightRequest) ProtoMessage() {}
193

194
func (x *GetBlockByHeightRequest) ProtoReflect() protoreflect.Message {
195
	mi := &file_api_cranberry_proto_msgTypes[3]
196
	if protoimpl.UnsafeEnabled && x != nil {
197
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
198
		if ms.LoadMessageInfo() == nil {
199
			ms.StoreMessageInfo(mi)
200
		}
201
		return ms
202
	}
203
	return mi.MessageOf(x)
204
}
205

206
// Deprecated: Use GetBlockByHeightRequest.ProtoReflect.Descriptor instead.
207
func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int) {
208
	return file_api_cranberry_proto_rawDescGZIP(), []int{3}
209
}
210

211
func (x *GetBlockByHeightRequest) GetHeight() uint64 {
212
	if x != nil {
213
		return x.Height
214
	}
215
	return 0
216
}
217

218
type GetBlockByHeightResponse struct {
219
	state         protoimpl.MessageState
220
	sizeCache     protoimpl.SizeCache
221
	unknownFields protoimpl.UnknownFields
222

223
	BlockContainer *BlockContainer `protobuf:"bytes,1,opt,name=blockContainer,proto3" json:"blockContainer,omitempty"`
224
}
225

226
func (x *GetBlockByHeightResponse) Reset() {
227
	*x = GetBlockByHeightResponse{}
228
	if protoimpl.UnsafeEnabled {
229
		mi := &file_api_cranberry_proto_msgTypes[4]
230
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
231
		ms.StoreMessageInfo(mi)
232
	}
233
}
234

235
func (x *GetBlockByHeightResponse) String() string {
236
	return protoimpl.X.MessageStringOf(x)
237
}
238

239
func (*GetBlockByHeightResponse) ProtoMessage() {}
240

241
func (x *GetBlockByHeightResponse) ProtoReflect() protoreflect.Message {
242
	mi := &file_api_cranberry_proto_msgTypes[4]
243
	if protoimpl.UnsafeEnabled && x != nil {
244
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
245
		if ms.LoadMessageInfo() == nil {
246
			ms.StoreMessageInfo(mi)
247
		}
248
		return ms
249
	}
250
	return mi.MessageOf(x)
251
}
252

253
// Deprecated: Use GetBlockByHeightResponse.ProtoReflect.Descriptor instead.
254
func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int) {
255
	return file_api_cranberry_proto_rawDescGZIP(), []int{4}
256
}
257

258
func (x *GetBlockByHeightResponse) GetBlockContainer() *BlockContainer {
259
	if x != nil {
260
		return x.BlockContainer
261
	}
262
	return nil
263
}
264

265
type PropagateTxRequest struct {
266
	state         protoimpl.MessageState
267
	sizeCache     protoimpl.SizeCache
268
	unknownFields protoimpl.UnknownFields
269

270
	TxContainer *TxContainer `protobuf:"bytes,1,opt,name=txContainer,proto3" json:"txContainer,omitempty"`
271
}
272

273
func (x *PropagateTxRequest) Reset() {
274
	*x = PropagateTxRequest{}
275
	if protoimpl.UnsafeEnabled {
276
		mi := &file_api_cranberry_proto_msgTypes[5]
277
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
278
		ms.StoreMessageInfo(mi)
279
	}
280
}
281

282
func (x *PropagateTxRequest) String() string {
283
	return protoimpl.X.MessageStringOf(x)
284
}
285

286
func (*PropagateTxRequest) ProtoMessage() {}
287

288
func (x *PropagateTxRequest) ProtoReflect() protoreflect.Message {
289
	mi := &file_api_cranberry_proto_msgTypes[5]
290
	if protoimpl.UnsafeEnabled && x != nil {
291
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
292
		if ms.LoadMessageInfo() == nil {
293
			ms.StoreMessageInfo(mi)
294
		}
295
		return ms
296
	}
297
	return mi.MessageOf(x)
298
}
299

300
// Deprecated: Use PropagateTxRequest.ProtoReflect.Descriptor instead.
301
func (*PropagateTxRequest) Descriptor() ([]byte, []int) {
302
	return file_api_cranberry_proto_rawDescGZIP(), []int{5}
303
}
304

305
func (x *PropagateTxRequest) GetTxContainer() *TxContainer {
306
	if x != nil {
307
		return x.TxContainer
308
	}
309
	return nil
310
}
311

312
type PropagateTxResponse struct {
313
	state         protoimpl.MessageState
314
	sizeCache     protoimpl.SizeCache
315
	unknownFields protoimpl.UnknownFields
316
}
317

318
func (x *PropagateTxResponse) Reset() {
319
	*x = PropagateTxResponse{}
320
	if protoimpl.UnsafeEnabled {
321
		mi := &file_api_cranberry_proto_msgTypes[6]
322
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
323
		ms.StoreMessageInfo(mi)
324
	}
325
}
326

327
func (x *PropagateTxResponse) String() string {
328
	return protoimpl.X.MessageStringOf(x)
329
}
330

331
func (*PropagateTxResponse) ProtoMessage() {}
332

333
func (x *PropagateTxResponse) ProtoReflect() protoreflect.Message {
334
	mi := &file_api_cranberry_proto_msgTypes[6]
335
	if protoimpl.UnsafeEnabled && x != nil {
336
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
337
		if ms.LoadMessageInfo() == nil {
338
			ms.StoreMessageInfo(mi)
339
		}
340
		return ms
341
	}
342
	return mi.MessageOf(x)
343
}
344

345
// Deprecated: Use PropagateTxResponse.ProtoReflect.Descriptor instead.
346
func (*PropagateTxResponse) Descriptor() ([]byte, []int) {
347
	return file_api_cranberry_proto_rawDescGZIP(), []int{6}
348
}
349

350
type AddPeerRequest struct {
351
	state         protoimpl.MessageState
352
	sizeCache     protoimpl.SizeCache
353
	unknownFields protoimpl.UnknownFields
354

355
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
356
	Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
357
	Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
358
}
359

360
func (x *AddPeerRequest) Reset() {
361
	*x = AddPeerRequest{}
362
	if protoimpl.UnsafeEnabled {
363
		mi := &file_api_cranberry_proto_msgTypes[7]
364
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
365
		ms.StoreMessageInfo(mi)
366
	}
367
}
368

369
func (x *AddPeerRequest) String() string {
370
	return protoimpl.X.MessageStringOf(x)
371
}
372

373
func (*AddPeerRequest) ProtoMessage() {}
374

375
func (x *AddPeerRequest) ProtoReflect() protoreflect.Message {
376
	mi := &file_api_cranberry_proto_msgTypes[7]
377
	if protoimpl.UnsafeEnabled && x != nil {
378
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
379
		if ms.LoadMessageInfo() == nil {
380
			ms.StoreMessageInfo(mi)
381
		}
382
		return ms
383
	}
384
	return mi.MessageOf(x)
385
}
386

387
// Deprecated: Use AddPeerRequest.ProtoReflect.Descriptor instead.
388
func (*AddPeerRequest) Descriptor() ([]byte, []int) {
389
	return file_api_cranberry_proto_rawDescGZIP(), []int{7}
390
}
391

392
func (x *AddPeerRequest) GetName() string {
393
	if x != nil {
394
		return x.Name
395
	}
396
	return ""
397
}
398

399
func (x *AddPeerRequest) GetAddr() string {
400
	if x != nil {
401
		return x.Addr
402
	}
403
	return ""
404
}
405

406
func (x *AddPeerRequest) GetPort() uint32 {
407
	if x != nil {
408
		return x.Port
409
	}
410
	return 0
411
}
412

413
type AddPeerResponse struct {
414
	state         protoimpl.MessageState
415
	sizeCache     protoimpl.SizeCache
416
	unknownFields protoimpl.UnknownFields
417
}
418

419
func (x *AddPeerResponse) Reset() {
420
	*x = AddPeerResponse{}
421
	if protoimpl.UnsafeEnabled {
422
		mi := &file_api_cranberry_proto_msgTypes[8]
423
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
424
		ms.StoreMessageInfo(mi)
425
	}
426
}
427

428
func (x *AddPeerResponse) String() string {
429
	return protoimpl.X.MessageStringOf(x)
430
}
431

432
func (*AddPeerResponse) ProtoMessage() {}
433

434
func (x *AddPeerResponse) ProtoReflect() protoreflect.Message {
435
	mi := &file_api_cranberry_proto_msgTypes[8]
436
	if protoimpl.UnsafeEnabled && x != nil {
437
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
438
		if ms.LoadMessageInfo() == nil {
439
			ms.StoreMessageInfo(mi)
440
		}
441
		return ms
442
	}
443
	return mi.MessageOf(x)
444
}
445

446
// Deprecated: Use AddPeerResponse.ProtoReflect.Descriptor instead.
447
func (*AddPeerResponse) Descriptor() ([]byte, []int) {
448
	return file_api_cranberry_proto_rawDescGZIP(), []int{8}
449
}
450

451
type BlockContainer struct {
452
	state         protoimpl.MessageState
453
	sizeCache     protoimpl.SizeCache
454
	unknownFields protoimpl.UnknownFields
455

456
	Hash                string           `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
457
	Header              *BlockHeader     `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
458
	Txs                 []*TxContainer   `protobuf:"bytes,3,rep,name=txs,proto3" json:"txs,omitempty"`
459
	ValidatorSignatures []*SignatureItem `protobuf:"bytes,4,rep,name=validatorSignatures,proto3" json:"validatorSignatures,omitempty"`
460
}
461

462
func (x *BlockContainer) Reset() {
463
	*x = BlockContainer{}
464
	if protoimpl.UnsafeEnabled {
465
		mi := &file_api_cranberry_proto_msgTypes[9]
466
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
467
		ms.StoreMessageInfo(mi)
468
	}
469
}
470

471
func (x *BlockContainer) String() string {
472
	return protoimpl.X.MessageStringOf(x)
473
}
474

475
func (*BlockContainer) ProtoMessage() {}
476

477
func (x *BlockContainer) ProtoReflect() protoreflect.Message {
478
	mi := &file_api_cranberry_proto_msgTypes[9]
479
	if protoimpl.UnsafeEnabled && x != nil {
480
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
481
		if ms.LoadMessageInfo() == nil {
482
			ms.StoreMessageInfo(mi)
483
		}
484
		return ms
485
	}
486
	return mi.MessageOf(x)
487
}
488

489
// Deprecated: Use BlockContainer.ProtoReflect.Descriptor instead.
490
func (*BlockContainer) Descriptor() ([]byte, []int) {
491
	return file_api_cranberry_proto_rawDescGZIP(), []int{9}
492
}
493

494
func (x *BlockContainer) GetHash() string {
495
	if x != nil {
496
		return x.Hash
497
	}
498
	return ""
499
}
500

501
func (x *BlockContainer) GetHeader() *BlockHeader {
502
	if x != nil {
503
		return x.Header
504
	}
505
	return nil
506
}
507

508
func (x *BlockContainer) GetTxs() []*TxContainer {
509
	if x != nil {
510
		return x.Txs
511
	}
512
	return nil
513
}
514

515
func (x *BlockContainer) GetValidatorSignatures() []*SignatureItem {
516
	if x != nil {
517
		return x.ValidatorSignatures
518
	}
519
	return nil
520
}
521

522
type SignatureItem struct {
523
	state         protoimpl.MessageState
524
	sizeCache     protoimpl.SizeCache
525
	unknownFields protoimpl.UnknownFields
526

527
	Addr      string     `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
528
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
529
}
530

531
func (x *SignatureItem) Reset() {
532
	*x = SignatureItem{}
533
	if protoimpl.UnsafeEnabled {
534
		mi := &file_api_cranberry_proto_msgTypes[10]
535
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
536
		ms.StoreMessageInfo(mi)
537
	}
538
}
539

540
func (x *SignatureItem) String() string {
541
	return protoimpl.X.MessageStringOf(x)
542
}
543

544
func (*SignatureItem) ProtoMessage() {}
545

546
func (x *SignatureItem) ProtoReflect() protoreflect.Message {
547
	mi := &file_api_cranberry_proto_msgTypes[10]
548
	if protoimpl.UnsafeEnabled && x != nil {
549
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
550
		if ms.LoadMessageInfo() == nil {
551
			ms.StoreMessageInfo(mi)
552
		}
553
		return ms
554
	}
555
	return mi.MessageOf(x)
556
}
557

558
// Deprecated: Use SignatureItem.ProtoReflect.Descriptor instead.
559
func (*SignatureItem) Descriptor() ([]byte, []int) {
560
	return file_api_cranberry_proto_rawDescGZIP(), []int{10}
561
}
562

563
func (x *SignatureItem) GetAddr() string {
564
	if x != nil {
565
		return x.Addr
566
	}
567
	return ""
568
}
569

570
func (x *SignatureItem) GetSignature() *Signature {
571
	if x != nil {
572
		return x.Signature
573
	}
574
	return nil
575
}
576

577
type BlockHeader struct {
578
	state         protoimpl.MessageState
579
	sizeCache     protoimpl.SizeCache
580
	unknownFields protoimpl.UnknownFields
581

582
	MerkleRoot string `protobuf:"bytes,1,opt,name=merkleRoot,proto3" json:"merkleRoot,omitempty"`
583
	PrevHash   string `protobuf:"bytes,2,opt,name=prevHash,proto3" json:"prevHash,omitempty"`
584
	Height     uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
585
}
586

587
func (x *BlockHeader) Reset() {
588
	*x = BlockHeader{}
589
	if protoimpl.UnsafeEnabled {
590
		mi := &file_api_cranberry_proto_msgTypes[11]
591
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
592
		ms.StoreMessageInfo(mi)
593
	}
594
}
595

596
func (x *BlockHeader) String() string {
597
	return protoimpl.X.MessageStringOf(x)
598
}
599

600
func (*BlockHeader) ProtoMessage() {}
601

602
func (x *BlockHeader) ProtoReflect() protoreflect.Message {
603
	mi := &file_api_cranberry_proto_msgTypes[11]
604
	if protoimpl.UnsafeEnabled && x != nil {
605
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
606
		if ms.LoadMessageInfo() == nil {
607
			ms.StoreMessageInfo(mi)
608
		}
609
		return ms
610
	}
611
	return mi.MessageOf(x)
612
}
613

614
// Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead.
615
func (*BlockHeader) Descriptor() ([]byte, []int) {
616
	return file_api_cranberry_proto_rawDescGZIP(), []int{11}
617
}
618

619
func (x *BlockHeader) GetMerkleRoot() string {
620
	if x != nil {
621
		return x.MerkleRoot
622
	}
623
	return ""
624
}
625

626
func (x *BlockHeader) GetPrevHash() string {
627
	if x != nil {
628
		return x.PrevHash
629
	}
630
	return ""
631
}
632

633
func (x *BlockHeader) GetHeight() uint64 {
634
	if x != nil {
635
		return x.Height
636
	}
637
	return 0
638
}
639

640
type TxContainer struct {
641
	state         protoimpl.MessageState
642
	sizeCache     protoimpl.SizeCache
643
	unknownFields protoimpl.UnknownFields
644

645
	Tx           *Tx        `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
646
	Hash         string     `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
647
	OrderInBlock *uint64    `protobuf:"varint,3,opt,name=orderInBlock,proto3,oneof" json:"orderInBlock,omitempty"`
648
	Signature    *Signature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
649
	PubKey       []byte     `protobuf:"bytes,5,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
650
}
651

652
func (x *TxContainer) Reset() {
653
	*x = TxContainer{}
654
	if protoimpl.UnsafeEnabled {
655
		mi := &file_api_cranberry_proto_msgTypes[12]
656
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
657
		ms.StoreMessageInfo(mi)
658
	}
659
}
660

661
func (x *TxContainer) String() string {
662
	return protoimpl.X.MessageStringOf(x)
663
}
664

665
func (*TxContainer) ProtoMessage() {}
666

667
func (x *TxContainer) ProtoReflect() protoreflect.Message {
668
	mi := &file_api_cranberry_proto_msgTypes[12]
669
	if protoimpl.UnsafeEnabled && x != nil {
670
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
671
		if ms.LoadMessageInfo() == nil {
672
			ms.StoreMessageInfo(mi)
673
		}
674
		return ms
675
	}
676
	return mi.MessageOf(x)
677
}
678

679
// Deprecated: Use TxContainer.ProtoReflect.Descriptor instead.
680
func (*TxContainer) Descriptor() ([]byte, []int) {
681
	return file_api_cranberry_proto_rawDescGZIP(), []int{12}
682
}
683

684
func (x *TxContainer) GetTx() *Tx {
685
	if x != nil {
686
		return x.Tx
687
	}
688
	return nil
689
}
690

691
func (x *TxContainer) GetHash() string {
692
	if x != nil {
693
		return x.Hash
694
	}
695
	return ""
696
}
697

698
func (x *TxContainer) GetOrderInBlock() uint64 {
699
	if x != nil && x.OrderInBlock != nil {
700
		return *x.OrderInBlock
701
	}
702
	return 0
703
}
704

705
func (x *TxContainer) GetSignature() *Signature {
706
	if x != nil {
707
		return x.Signature
708
	}
709
	return nil
710
}
711

712
func (x *TxContainer) GetPubKey() []byte {
713
	if x != nil {
714
		return x.PubKey
715
	}
716
	return nil
717
}
718

719
type Tx struct {
720
	state         protoimpl.MessageState
721
	sizeCache     protoimpl.SizeCache
722
	unknownFields protoimpl.UnknownFields
723

724
	Index  uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
725
	To     string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
726
	Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
727
}
728

729
func (x *Tx) Reset() {
730
	*x = Tx{}
731
	if protoimpl.UnsafeEnabled {
732
		mi := &file_api_cranberry_proto_msgTypes[13]
733
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
734
		ms.StoreMessageInfo(mi)
735
	}
736
}
737

738
func (x *Tx) String() string {
739
	return protoimpl.X.MessageStringOf(x)
740
}
741

742
func (*Tx) ProtoMessage() {}
743

744
func (x *Tx) ProtoReflect() protoreflect.Message {
745
	mi := &file_api_cranberry_proto_msgTypes[13]
746
	if protoimpl.UnsafeEnabled && x != nil {
747
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
748
		if ms.LoadMessageInfo() == nil {
749
			ms.StoreMessageInfo(mi)
750
		}
751
		return ms
752
	}
753
	return mi.MessageOf(x)
754
}
755

756
// Deprecated: Use Tx.ProtoReflect.Descriptor instead.
757
func (*Tx) Descriptor() ([]byte, []int) {
758
	return file_api_cranberry_proto_rawDescGZIP(), []int{13}
759
}
760

761
func (x *Tx) GetIndex() uint64 {
762
	if x != nil {
763
		return x.Index
764
	}
765
	return 0
766
}
767

768
func (x *Tx) GetTo() string {
769
	if x != nil {
770
		return x.To
771
	}
772
	return ""
773
}
774

775
func (x *Tx) GetAmount() uint64 {
776
	if x != nil {
777
		return x.Amount
778
	}
779
	return 0
780
}
781

782
type Signature struct {
783
	state         protoimpl.MessageState
784
	sizeCache     protoimpl.SizeCache
785
	unknownFields protoimpl.UnknownFields
786

787
	R []byte `protobuf:"bytes,1,opt,name=r,proto3" json:"r,omitempty"`
788
	S []byte `protobuf:"bytes,2,opt,name=s,proto3" json:"s,omitempty"`
789
}
790

791
func (x *Signature) Reset() {
792
	*x = Signature{}
793
	if protoimpl.UnsafeEnabled {
794
		mi := &file_api_cranberry_proto_msgTypes[14]
795
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
796
		ms.StoreMessageInfo(mi)
797
	}
798
}
799

800
func (x *Signature) String() string {
801
	return protoimpl.X.MessageStringOf(x)
802
}
803

804
func (*Signature) ProtoMessage() {}
805

806
func (x *Signature) ProtoReflect() protoreflect.Message {
807
	mi := &file_api_cranberry_proto_msgTypes[14]
808
	if protoimpl.UnsafeEnabled && x != nil {
809
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
810
		if ms.LoadMessageInfo() == nil {
811
			ms.StoreMessageInfo(mi)
812
		}
813
		return ms
814
	}
815
	return mi.MessageOf(x)
816
}
817

818
// Deprecated: Use Signature.ProtoReflect.Descriptor instead.
819
func (*Signature) Descriptor() ([]byte, []int) {
820
	return file_api_cranberry_proto_rawDescGZIP(), []int{14}
821
}
822

823
func (x *Signature) GetR() []byte {
824
	if x != nil {
825
		return x.R
826
	}
827
	return nil
828
}
829

830
func (x *Signature) GetS() []byte {
831
	if x != nil {
832
		return x.S
833
	}
834
	return nil
835
}
836

837
type Account struct {
838
	state         protoimpl.MessageState
839
	sizeCache     protoimpl.SizeCache
840
	unknownFields protoimpl.UnknownFields
841

842
	Addr    string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
843
	PubKey  []byte `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
844
	Balance uint64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"`
845
}
846

847
func (x *Account) Reset() {
848
	*x = Account{}
849
	if protoimpl.UnsafeEnabled {
850
		mi := &file_api_cranberry_proto_msgTypes[15]
851
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
852
		ms.StoreMessageInfo(mi)
853
	}
854
}
855

856
func (x *Account) String() string {
857
	return protoimpl.X.MessageStringOf(x)
858
}
859

860
func (*Account) ProtoMessage() {}
861

862
func (x *Account) ProtoReflect() protoreflect.Message {
863
	mi := &file_api_cranberry_proto_msgTypes[15]
864
	if protoimpl.UnsafeEnabled && x != nil {
865
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
866
		if ms.LoadMessageInfo() == nil {
867
			ms.StoreMessageInfo(mi)
868
		}
869
		return ms
870
	}
871
	return mi.MessageOf(x)
872
}
873

874
// Deprecated: Use Account.ProtoReflect.Descriptor instead.
875
func (*Account) Descriptor() ([]byte, []int) {
876
	return file_api_cranberry_proto_rawDescGZIP(), []int{15}
877
}
878

879
func (x *Account) GetAddr() string {
880
	if x != nil {
881
		return x.Addr
882
	}
883
	return ""
884
}
885

886
func (x *Account) GetPubKey() []byte {
887
	if x != nil {
888
		return x.PubKey
889
	}
890
	return nil
891
}
892

893
func (x *Account) GetBalance() uint64 {
894
	if x != nil {
895
		return x.Balance
896
	}
897
	return 0
898
}
899

900
type Validator struct {
901
	state         protoimpl.MessageState
902
	sizeCache     protoimpl.SizeCache
903
	unknownFields protoimpl.UnknownFields
904

905
	Addr   string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
906
	PubKey []byte `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
907
}
908

909
func (x *Validator) Reset() {
910
	*x = Validator{}
911
	if protoimpl.UnsafeEnabled {
912
		mi := &file_api_cranberry_proto_msgTypes[16]
913
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
914
		ms.StoreMessageInfo(mi)
915
	}
916
}
917

918
func (x *Validator) String() string {
919
	return protoimpl.X.MessageStringOf(x)
920
}
921

922
func (*Validator) ProtoMessage() {}
923

924
func (x *Validator) ProtoReflect() protoreflect.Message {
925
	mi := &file_api_cranberry_proto_msgTypes[16]
926
	if protoimpl.UnsafeEnabled && x != nil {
927
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
928
		if ms.LoadMessageInfo() == nil {
929
			ms.StoreMessageInfo(mi)
930
		}
931
		return ms
932
	}
933
	return mi.MessageOf(x)
934
}
935

936
// Deprecated: Use Validator.ProtoReflect.Descriptor instead.
937
func (*Validator) Descriptor() ([]byte, []int) {
938
	return file_api_cranberry_proto_rawDescGZIP(), []int{16}
939
}
940

941
func (x *Validator) GetAddr() string {
942
	if x != nil {
943
		return x.Addr
944
	}
945
	return ""
946
}
947

948
func (x *Validator) GetPubKey() []byte {
949
	if x != nil {
950
		return x.PubKey
951
	}
952
	return nil
953
}
954

955
var File_api_cranberry_proto protoreflect.FileDescriptor
956

957
var file_api_cranberry_proto_rawDesc = []byte{
958
	0x0a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x72, 0x61, 0x6e, 0x62, 0x65, 0x72, 0x72, 0x79, 0x2e,
959
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x66, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x78, 0x52,
960
	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x13, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01,
961
	0x28, 0x0b, 0x32, 0x03, 0x2e, 0x54, 0x78, 0x52, 0x02, 0x74, 0x78, 0x12, 0x28, 0x0a, 0x09, 0x73,
962
	0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a,
963
	0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e,
964
	0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18,
965
	0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x10, 0x0a,
966
	0x0e, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
967
	0x4b, 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x73, 0x73,
968
	0x61, 0x67, 0x65, 0x12, 0x37, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74,
969
	0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x42, 0x6c,
970
	0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x0e, 0x62, 0x6c,
971
	0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x22, 0x31, 0x0a, 0x17,
972
	0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74,
973
	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68,
974
	0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22,
975
	0x53, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69,
976
	0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0e, 0x62,
977
	0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20,
978
	0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x61,
979
	0x69, 0x6e, 0x65, 0x72, 0x52, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74, 0x61,
980
	0x69, 0x6e, 0x65, 0x72, 0x22, 0x44, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74,
981
	0x65, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x0b, 0x74, 0x78,
982
	0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
983
	0x0c, 0x2e, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x0b, 0x74,
984
	0x78, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x22, 0x15, 0x0a, 0x13, 0x50, 0x72,
985
	0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
986
	0x65, 0x22, 0x4c, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
987
	0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
988
	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18,
989
	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70,
990
	0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22,
991
	0x11, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
992
	0x73, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x0e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x74,
993
	0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20,
994
	0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x24, 0x0a, 0x06, 0x68, 0x65, 0x61,
995
	0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x42, 0x6c, 0x6f, 0x63,
996
	0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
997
	0x1e, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x54,
998
	0x78, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x03, 0x74, 0x78, 0x73, 0x12,
999
	0x40, 0x0a, 0x13, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x69, 0x67, 0x6e,
1000
	0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x53,
1001
	0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x13, 0x76, 0x61,
1002
	0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
1003
	0x73, 0x22, 0x4d, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x49, 0x74,
1004
	0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
1005
	0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x28, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74,
1006
	0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x53, 0x69, 0x67, 0x6e,
1007
	0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
1008
	0x22, 0x61, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
1009
	0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x18, 0x01, 0x20,
1010
	0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x12,
1011
	0x1a, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x76, 0x48, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28,
1012
	0x09, 0x52, 0x08, 0x70, 0x72, 0x65, 0x76, 0x48, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68,
1013
	0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69,
1014
	0x67, 0x68, 0x74, 0x22, 0xb2, 0x01, 0x0a, 0x0b, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69,
1015
	0x6e, 0x65, 0x72, 0x12, 0x13, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
1016
	0x03, 0x2e, 0x54, 0x78, 0x52, 0x02, 0x74, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68,
1017
	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, 0x0c,
1018
	0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01,
1019
	0x28, 0x04, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x42, 0x6c, 0x6f,
1020
	0x63, 0x6b, 0x88, 0x01, 0x01, 0x12, 0x28, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
1021
	0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61,
1022
	0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12,
1023
	0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52,
1024
	0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6f, 0x72, 0x64, 0x65,
1025
	0x72, 0x49, 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x42, 0x0a, 0x02, 0x54, 0x78, 0x12, 0x14,
1026
	0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69,
1027
	0x6e, 0x64, 0x65, 0x78, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
1028
	0x52, 0x02, 0x74, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03,
1029
	0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x27, 0x0a, 0x09,
1030
	0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x72, 0x18, 0x01,
1031
	0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x72, 0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18, 0x02, 0x20, 0x01,
1032
	0x28, 0x0c, 0x52, 0x01, 0x73, 0x22, 0x4f, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
1033
	0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
1034
	0x61, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x02,
1035
	0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07,
1036
	0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x62,
1037
	0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x37, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61,
1038
	0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
1039
	0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65,
1040
	0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x32,
1041
	0x46, 0x0a, 0x0d, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
1042
	0x12, 0x35, 0x0a, 0x09, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x11, 0x2e,
1043
	0x53, 0x65, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
1044
	0x1a, 0x11, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x73, 0x73,
1045
	0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x32, 0xee, 0x01, 0x0a, 0x10, 0x43, 0x72, 0x61, 0x6e,
1046
	0x62, 0x65, 0x72, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x06,
1047
	0x53, 0x65, 0x6e, 0x64, 0x54, 0x78, 0x12, 0x0e, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x78, 0x52,
1048
	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x78, 0x52,
1049
	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x6c,
1050
	0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x2e, 0x47, 0x65,
1051
	0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65,
1052
	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
1053
	0x42, 0x79, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
1054
	0x12, 0x2c, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x50, 0x65, 0x65, 0x72, 0x12, 0x0f, 0x2e, 0x41, 0x64,
1055
	0x64, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x41,
1056
	0x64, 0x64, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38,
1057
	0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x54, 0x78, 0x12, 0x13, 0x2e,
1058
	0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65,
1059
	0x73, 0x74, 0x1a, 0x14, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x65, 0x54, 0x78,
1060
	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x07, 0x5a, 0x05, 0x67, 0x72, 0x70, 0x63,
1061
	0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1062
}
1063

1064
var (
1065
	file_api_cranberry_proto_rawDescOnce sync.Once
1066
	file_api_cranberry_proto_rawDescData = file_api_cranberry_proto_rawDesc
1067
)
1068

1069
func file_api_cranberry_proto_rawDescGZIP() []byte {
1070
	file_api_cranberry_proto_rawDescOnce.Do(func() {
1071
		file_api_cranberry_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_cranberry_proto_rawDescData)
1072
	})
1073
	return file_api_cranberry_proto_rawDescData
1074
}
1075

1076
var file_api_cranberry_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
1077
var file_api_cranberry_proto_goTypes = []any{
1078
	(*SendTxRequest)(nil),            // 0: SendTxRequest
1079
	(*SendTxResponse)(nil),           // 1: SendTxResponse
1080
	(*SendBlockMessage)(nil),         // 2: SendBlockMessage
1081
	(*GetBlockByHeightRequest)(nil),  // 3: GetBlockByHeightRequest
1082
	(*GetBlockByHeightResponse)(nil), // 4: GetBlockByHeightResponse
1083
	(*PropagateTxRequest)(nil),       // 5: PropagateTxRequest
1084
	(*PropagateTxResponse)(nil),      // 6: PropagateTxResponse
1085
	(*AddPeerRequest)(nil),           // 7: AddPeerRequest
1086
	(*AddPeerResponse)(nil),          // 8: AddPeerResponse
1087
	(*BlockContainer)(nil),           // 9: BlockContainer
1088
	(*SignatureItem)(nil),            // 10: SignatureItem
1089
	(*BlockHeader)(nil),              // 11: BlockHeader
1090
	(*TxContainer)(nil),              // 12: TxContainer
1091
	(*Tx)(nil),                       // 13: Tx
1092
	(*Signature)(nil),                // 14: Signature
1093
	(*Account)(nil),                  // 15: Account
1094
	(*Validator)(nil),                // 16: Validator
1095
}
1096
var file_api_cranberry_proto_depIdxs = []int32{
1097
	13, // 0: SendTxRequest.tx:type_name -> Tx
1098
	14, // 1: SendTxRequest.signature:type_name -> Signature
1099
	9,  // 2: SendBlockMessage.blockContainer:type_name -> BlockContainer
1100
	9,  // 3: GetBlockByHeightResponse.blockContainer:type_name -> BlockContainer
1101
	12, // 4: PropagateTxRequest.txContainer:type_name -> TxContainer
1102
	11, // 5: BlockContainer.header:type_name -> BlockHeader
1103
	12, // 6: BlockContainer.txs:type_name -> TxContainer
1104
	10, // 7: BlockContainer.validatorSignatures:type_name -> SignatureItem
1105
	14, // 8: SignatureItem.signature:type_name -> Signature
1106
	13, // 9: TxContainer.tx:type_name -> Tx
1107
	14, // 10: TxContainer.signature:type_name -> Signature
1108
	2,  // 11: GossipService.SendBlock:input_type -> SendBlockMessage
1109
	0,  // 12: CranberryService.SendTx:input_type -> SendTxRequest
1110
	3,  // 13: CranberryService.GetBlockByHeight:input_type -> GetBlockByHeightRequest
1111
	7,  // 14: CranberryService.AddPeer:input_type -> AddPeerRequest
1112
	5,  // 15: CranberryService.PropagateTx:input_type -> PropagateTxRequest
1113
	2,  // 16: GossipService.SendBlock:output_type -> SendBlockMessage
1114
	1,  // 17: CranberryService.SendTx:output_type -> SendTxResponse
1115
	4,  // 18: CranberryService.GetBlockByHeight:output_type -> GetBlockByHeightResponse
1116
	8,  // 19: CranberryService.AddPeer:output_type -> AddPeerResponse
1117
	6,  // 20: CranberryService.PropagateTx:output_type -> PropagateTxResponse
1118
	16, // [16:21] is the sub-list for method output_type
1119
	11, // [11:16] is the sub-list for method input_type
1120
	11, // [11:11] is the sub-list for extension type_name
1121
	11, // [11:11] is the sub-list for extension extendee
1122
	0,  // [0:11] is the sub-list for field type_name
1123
}
1124

1125
func init() { file_api_cranberry_proto_init() }
1126
func file_api_cranberry_proto_init() {
1127
	if File_api_cranberry_proto != nil {
1128
		return
1129
	}
1130
	if !protoimpl.UnsafeEnabled {
1131
		file_api_cranberry_proto_msgTypes[0].Exporter = func(v any, i int) any {
1132
			switch v := v.(*SendTxRequest); i {
1133
			case 0:
1134
				return &v.state
1135
			case 1:
1136
				return &v.sizeCache
1137
			case 2:
1138
				return &v.unknownFields
1139
			default:
1140
				return nil
1141
			}
1142
		}
1143
		file_api_cranberry_proto_msgTypes[1].Exporter = func(v any, i int) any {
1144
			switch v := v.(*SendTxResponse); i {
1145
			case 0:
1146
				return &v.state
1147
			case 1:
1148
				return &v.sizeCache
1149
			case 2:
1150
				return &v.unknownFields
1151
			default:
1152
				return nil
1153
			}
1154
		}
1155
		file_api_cranberry_proto_msgTypes[2].Exporter = func(v any, i int) any {
1156
			switch v := v.(*SendBlockMessage); i {
1157
			case 0:
1158
				return &v.state
1159
			case 1:
1160
				return &v.sizeCache
1161
			case 2:
1162
				return &v.unknownFields
1163
			default:
1164
				return nil
1165
			}
1166
		}
1167
		file_api_cranberry_proto_msgTypes[3].Exporter = func(v any, i int) any {
1168
			switch v := v.(*GetBlockByHeightRequest); i {
1169
			case 0:
1170
				return &v.state
1171
			case 1:
1172
				return &v.sizeCache
1173
			case 2:
1174
				return &v.unknownFields
1175
			default:
1176
				return nil
1177
			}
1178
		}
1179
		file_api_cranberry_proto_msgTypes[4].Exporter = func(v any, i int) any {
1180
			switch v := v.(*GetBlockByHeightResponse); i {
1181
			case 0:
1182
				return &v.state
1183
			case 1:
1184
				return &v.sizeCache
1185
			case 2:
1186
				return &v.unknownFields
1187
			default:
1188
				return nil
1189
			}
1190
		}
1191
		file_api_cranberry_proto_msgTypes[5].Exporter = func(v any, i int) any {
1192
			switch v := v.(*PropagateTxRequest); i {
1193
			case 0:
1194
				return &v.state
1195
			case 1:
1196
				return &v.sizeCache
1197
			case 2:
1198
				return &v.unknownFields
1199
			default:
1200
				return nil
1201
			}
1202
		}
1203
		file_api_cranberry_proto_msgTypes[6].Exporter = func(v any, i int) any {
1204
			switch v := v.(*PropagateTxResponse); i {
1205
			case 0:
1206
				return &v.state
1207
			case 1:
1208
				return &v.sizeCache
1209
			case 2:
1210
				return &v.unknownFields
1211
			default:
1212
				return nil
1213
			}
1214
		}
1215
		file_api_cranberry_proto_msgTypes[7].Exporter = func(v any, i int) any {
1216
			switch v := v.(*AddPeerRequest); i {
1217
			case 0:
1218
				return &v.state
1219
			case 1:
1220
				return &v.sizeCache
1221
			case 2:
1222
				return &v.unknownFields
1223
			default:
1224
				return nil
1225
			}
1226
		}
1227
		file_api_cranberry_proto_msgTypes[8].Exporter = func(v any, i int) any {
1228
			switch v := v.(*AddPeerResponse); i {
1229
			case 0:
1230
				return &v.state
1231
			case 1:
1232
				return &v.sizeCache
1233
			case 2:
1234
				return &v.unknownFields
1235
			default:
1236
				return nil
1237
			}
1238
		}
1239
		file_api_cranberry_proto_msgTypes[9].Exporter = func(v any, i int) any {
1240
			switch v := v.(*BlockContainer); i {
1241
			case 0:
1242
				return &v.state
1243
			case 1:
1244
				return &v.sizeCache
1245
			case 2:
1246
				return &v.unknownFields
1247
			default:
1248
				return nil
1249
			}
1250
		}
1251
		file_api_cranberry_proto_msgTypes[10].Exporter = func(v any, i int) any {
1252
			switch v := v.(*SignatureItem); i {
1253
			case 0:
1254
				return &v.state
1255
			case 1:
1256
				return &v.sizeCache
1257
			case 2:
1258
				return &v.unknownFields
1259
			default:
1260
				return nil
1261
			}
1262
		}
1263
		file_api_cranberry_proto_msgTypes[11].Exporter = func(v any, i int) any {
1264
			switch v := v.(*BlockHeader); i {
1265
			case 0:
1266
				return &v.state
1267
			case 1:
1268
				return &v.sizeCache
1269
			case 2:
1270
				return &v.unknownFields
1271
			default:
1272
				return nil
1273
			}
1274
		}
1275
		file_api_cranberry_proto_msgTypes[12].Exporter = func(v any, i int) any {
1276
			switch v := v.(*TxContainer); i {
1277
			case 0:
1278
				return &v.state
1279
			case 1:
1280
				return &v.sizeCache
1281
			case 2:
1282
				return &v.unknownFields
1283
			default:
1284
				return nil
1285
			}
1286
		}
1287
		file_api_cranberry_proto_msgTypes[13].Exporter = func(v any, i int) any {
1288
			switch v := v.(*Tx); i {
1289
			case 0:
1290
				return &v.state
1291
			case 1:
1292
				return &v.sizeCache
1293
			case 2:
1294
				return &v.unknownFields
1295
			default:
1296
				return nil
1297
			}
1298
		}
1299
		file_api_cranberry_proto_msgTypes[14].Exporter = func(v any, i int) any {
1300
			switch v := v.(*Signature); i {
1301
			case 0:
1302
				return &v.state
1303
			case 1:
1304
				return &v.sizeCache
1305
			case 2:
1306
				return &v.unknownFields
1307
			default:
1308
				return nil
1309
			}
1310
		}
1311
		file_api_cranberry_proto_msgTypes[15].Exporter = func(v any, i int) any {
1312
			switch v := v.(*Account); i {
1313
			case 0:
1314
				return &v.state
1315
			case 1:
1316
				return &v.sizeCache
1317
			case 2:
1318
				return &v.unknownFields
1319
			default:
1320
				return nil
1321
			}
1322
		}
1323
		file_api_cranberry_proto_msgTypes[16].Exporter = func(v any, i int) any {
1324
			switch v := v.(*Validator); i {
1325
			case 0:
1326
				return &v.state
1327
			case 1:
1328
				return &v.sizeCache
1329
			case 2:
1330
				return &v.unknownFields
1331
			default:
1332
				return nil
1333
			}
1334
		}
1335
	}
1336
	file_api_cranberry_proto_msgTypes[12].OneofWrappers = []any{}
1337
	type x struct{}
1338
	out := protoimpl.TypeBuilder{
1339
		File: protoimpl.DescBuilder{
1340
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1341
			RawDescriptor: file_api_cranberry_proto_rawDesc,
1342
			NumEnums:      0,
1343
			NumMessages:   17,
1344
			NumExtensions: 0,
1345
			NumServices:   2,
1346
		},
1347
		GoTypes:           file_api_cranberry_proto_goTypes,
1348
		DependencyIndexes: file_api_cranberry_proto_depIdxs,
1349
		MessageInfos:      file_api_cranberry_proto_msgTypes,
1350
	}.Build()
1351
	File_api_cranberry_proto = out.File
1352
	file_api_cranberry_proto_rawDesc = nil
1353
	file_api_cranberry_proto_goTypes = nil
1354
	file_api_cranberry_proto_depIdxs = nil
1355
}
1356

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.