10
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
18
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23
type SendTxRequest struct {
24
state protoimpl.MessageState
25
sizeCache protoimpl.SizeCache
26
unknownFields protoimpl.UnknownFields
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"`
33
func (x *SendTxRequest) Reset() {
35
if protoimpl.UnsafeEnabled {
36
mi := &file_api_cranberry_proto_msgTypes[0]
37
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38
ms.StoreMessageInfo(mi)
42
func (x *SendTxRequest) String() string {
43
return protoimpl.X.MessageStringOf(x)
46
func (*SendTxRequest) ProtoMessage() {}
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)
57
return mi.MessageOf(x)
61
func (*SendTxRequest) Descriptor() ([]byte, []int) {
62
return file_api_cranberry_proto_rawDescGZIP(), []int{0}
65
func (x *SendTxRequest) GetTx() *Tx {
72
func (x *SendTxRequest) GetSignature() *Signature {
79
func (x *SendTxRequest) GetPubKey() []byte {
86
type SendTxResponse struct {
87
state protoimpl.MessageState
88
sizeCache protoimpl.SizeCache
89
unknownFields protoimpl.UnknownFields
92
func (x *SendTxResponse) Reset() {
94
if protoimpl.UnsafeEnabled {
95
mi := &file_api_cranberry_proto_msgTypes[1]
96
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
97
ms.StoreMessageInfo(mi)
101
func (x *SendTxResponse) String() string {
102
return protoimpl.X.MessageStringOf(x)
105
func (*SendTxResponse) ProtoMessage() {}
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)
116
return mi.MessageOf(x)
120
func (*SendTxResponse) Descriptor() ([]byte, []int) {
121
return file_api_cranberry_proto_rawDescGZIP(), []int{1}
124
type SendBlockMessage struct {
125
state protoimpl.MessageState
126
sizeCache protoimpl.SizeCache
127
unknownFields protoimpl.UnknownFields
129
BlockContainer *BlockContainer `protobuf:"bytes,1,opt,name=blockContainer,proto3" json:"blockContainer,omitempty"`
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)
141
func (x *SendBlockMessage) String() string {
142
return protoimpl.X.MessageStringOf(x)
145
func (*SendBlockMessage) ProtoMessage() {}
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)
156
return mi.MessageOf(x)
160
func (*SendBlockMessage) Descriptor() ([]byte, []int) {
161
return file_api_cranberry_proto_rawDescGZIP(), []int{2}
164
func (x *SendBlockMessage) GetBlockContainer() *BlockContainer {
166
return x.BlockContainer
171
type GetBlockByHeightRequest struct {
172
state protoimpl.MessageState
173
sizeCache protoimpl.SizeCache
174
unknownFields protoimpl.UnknownFields
176
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
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)
188
func (x *GetBlockByHeightRequest) String() string {
189
return protoimpl.X.MessageStringOf(x)
192
func (*GetBlockByHeightRequest) ProtoMessage() {}
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)
203
return mi.MessageOf(x)
207
func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int) {
208
return file_api_cranberry_proto_rawDescGZIP(), []int{3}
211
func (x *GetBlockByHeightRequest) GetHeight() uint64 {
218
type GetBlockByHeightResponse struct {
219
state protoimpl.MessageState
220
sizeCache protoimpl.SizeCache
221
unknownFields protoimpl.UnknownFields
223
BlockContainer *BlockContainer `protobuf:"bytes,1,opt,name=blockContainer,proto3" json:"blockContainer,omitempty"`
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)
235
func (x *GetBlockByHeightResponse) String() string {
236
return protoimpl.X.MessageStringOf(x)
239
func (*GetBlockByHeightResponse) ProtoMessage() {}
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)
250
return mi.MessageOf(x)
254
func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int) {
255
return file_api_cranberry_proto_rawDescGZIP(), []int{4}
258
func (x *GetBlockByHeightResponse) GetBlockContainer() *BlockContainer {
260
return x.BlockContainer
265
type PropagateTxRequest struct {
266
state protoimpl.MessageState
267
sizeCache protoimpl.SizeCache
268
unknownFields protoimpl.UnknownFields
270
TxContainer *TxContainer `protobuf:"bytes,1,opt,name=txContainer,proto3" json:"txContainer,omitempty"`
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)
282
func (x *PropagateTxRequest) String() string {
283
return protoimpl.X.MessageStringOf(x)
286
func (*PropagateTxRequest) ProtoMessage() {}
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)
297
return mi.MessageOf(x)
301
func (*PropagateTxRequest) Descriptor() ([]byte, []int) {
302
return file_api_cranberry_proto_rawDescGZIP(), []int{5}
305
func (x *PropagateTxRequest) GetTxContainer() *TxContainer {
312
type PropagateTxResponse struct {
313
state protoimpl.MessageState
314
sizeCache protoimpl.SizeCache
315
unknownFields protoimpl.UnknownFields
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)
327
func (x *PropagateTxResponse) String() string {
328
return protoimpl.X.MessageStringOf(x)
331
func (*PropagateTxResponse) ProtoMessage() {}
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)
342
return mi.MessageOf(x)
346
func (*PropagateTxResponse) Descriptor() ([]byte, []int) {
347
return file_api_cranberry_proto_rawDescGZIP(), []int{6}
350
type AddPeerRequest struct {
351
state protoimpl.MessageState
352
sizeCache protoimpl.SizeCache
353
unknownFields protoimpl.UnknownFields
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"`
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)
369
func (x *AddPeerRequest) String() string {
370
return protoimpl.X.MessageStringOf(x)
373
func (*AddPeerRequest) ProtoMessage() {}
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)
384
return mi.MessageOf(x)
388
func (*AddPeerRequest) Descriptor() ([]byte, []int) {
389
return file_api_cranberry_proto_rawDescGZIP(), []int{7}
392
func (x *AddPeerRequest) GetName() string {
399
func (x *AddPeerRequest) GetAddr() string {
406
func (x *AddPeerRequest) GetPort() uint32 {
413
type AddPeerResponse struct {
414
state protoimpl.MessageState
415
sizeCache protoimpl.SizeCache
416
unknownFields protoimpl.UnknownFields
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)
428
func (x *AddPeerResponse) String() string {
429
return protoimpl.X.MessageStringOf(x)
432
func (*AddPeerResponse) ProtoMessage() {}
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)
443
return mi.MessageOf(x)
447
func (*AddPeerResponse) Descriptor() ([]byte, []int) {
448
return file_api_cranberry_proto_rawDescGZIP(), []int{8}
451
type BlockContainer struct {
452
state protoimpl.MessageState
453
sizeCache protoimpl.SizeCache
454
unknownFields protoimpl.UnknownFields
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"`
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)
471
func (x *BlockContainer) String() string {
472
return protoimpl.X.MessageStringOf(x)
475
func (*BlockContainer) ProtoMessage() {}
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)
486
return mi.MessageOf(x)
490
func (*BlockContainer) Descriptor() ([]byte, []int) {
491
return file_api_cranberry_proto_rawDescGZIP(), []int{9}
494
func (x *BlockContainer) GetHash() string {
501
func (x *BlockContainer) GetHeader() *BlockHeader {
508
func (x *BlockContainer) GetTxs() []*TxContainer {
515
func (x *BlockContainer) GetValidatorSignatures() []*SignatureItem {
517
return x.ValidatorSignatures
522
type SignatureItem struct {
523
state protoimpl.MessageState
524
sizeCache protoimpl.SizeCache
525
unknownFields protoimpl.UnknownFields
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"`
531
func (x *SignatureItem) Reset() {
533
if protoimpl.UnsafeEnabled {
534
mi := &file_api_cranberry_proto_msgTypes[10]
535
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
536
ms.StoreMessageInfo(mi)
540
func (x *SignatureItem) String() string {
541
return protoimpl.X.MessageStringOf(x)
544
func (*SignatureItem) ProtoMessage() {}
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)
555
return mi.MessageOf(x)
559
func (*SignatureItem) Descriptor() ([]byte, []int) {
560
return file_api_cranberry_proto_rawDescGZIP(), []int{10}
563
func (x *SignatureItem) GetAddr() string {
570
func (x *SignatureItem) GetSignature() *Signature {
577
type BlockHeader struct {
578
state protoimpl.MessageState
579
sizeCache protoimpl.SizeCache
580
unknownFields protoimpl.UnknownFields
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"`
587
func (x *BlockHeader) Reset() {
589
if protoimpl.UnsafeEnabled {
590
mi := &file_api_cranberry_proto_msgTypes[11]
591
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
592
ms.StoreMessageInfo(mi)
596
func (x *BlockHeader) String() string {
597
return protoimpl.X.MessageStringOf(x)
600
func (*BlockHeader) ProtoMessage() {}
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)
611
return mi.MessageOf(x)
615
func (*BlockHeader) Descriptor() ([]byte, []int) {
616
return file_api_cranberry_proto_rawDescGZIP(), []int{11}
619
func (x *BlockHeader) GetMerkleRoot() string {
626
func (x *BlockHeader) GetPrevHash() string {
633
func (x *BlockHeader) GetHeight() uint64 {
640
type TxContainer struct {
641
state protoimpl.MessageState
642
sizeCache protoimpl.SizeCache
643
unknownFields protoimpl.UnknownFields
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"`
652
func (x *TxContainer) Reset() {
654
if protoimpl.UnsafeEnabled {
655
mi := &file_api_cranberry_proto_msgTypes[12]
656
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
657
ms.StoreMessageInfo(mi)
661
func (x *TxContainer) String() string {
662
return protoimpl.X.MessageStringOf(x)
665
func (*TxContainer) ProtoMessage() {}
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)
676
return mi.MessageOf(x)
680
func (*TxContainer) Descriptor() ([]byte, []int) {
681
return file_api_cranberry_proto_rawDescGZIP(), []int{12}
684
func (x *TxContainer) GetTx() *Tx {
691
func (x *TxContainer) GetHash() string {
698
func (x *TxContainer) GetOrderInBlock() uint64 {
699
if x != nil && x.OrderInBlock != nil {
700
return *x.OrderInBlock
705
func (x *TxContainer) GetSignature() *Signature {
712
func (x *TxContainer) GetPubKey() []byte {
720
state protoimpl.MessageState
721
sizeCache protoimpl.SizeCache
722
unknownFields protoimpl.UnknownFields
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"`
729
func (x *Tx) Reset() {
731
if protoimpl.UnsafeEnabled {
732
mi := &file_api_cranberry_proto_msgTypes[13]
733
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
734
ms.StoreMessageInfo(mi)
738
func (x *Tx) String() string {
739
return protoimpl.X.MessageStringOf(x)
742
func (*Tx) ProtoMessage() {}
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)
753
return mi.MessageOf(x)
757
func (*Tx) Descriptor() ([]byte, []int) {
758
return file_api_cranberry_proto_rawDescGZIP(), []int{13}
761
func (x *Tx) GetIndex() uint64 {
768
func (x *Tx) GetTo() string {
775
func (x *Tx) GetAmount() uint64 {
782
type Signature struct {
783
state protoimpl.MessageState
784
sizeCache protoimpl.SizeCache
785
unknownFields protoimpl.UnknownFields
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"`
791
func (x *Signature) Reset() {
793
if protoimpl.UnsafeEnabled {
794
mi := &file_api_cranberry_proto_msgTypes[14]
795
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
796
ms.StoreMessageInfo(mi)
800
func (x *Signature) String() string {
801
return protoimpl.X.MessageStringOf(x)
804
func (*Signature) ProtoMessage() {}
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)
815
return mi.MessageOf(x)
819
func (*Signature) Descriptor() ([]byte, []int) {
820
return file_api_cranberry_proto_rawDescGZIP(), []int{14}
823
func (x *Signature) GetR() []byte {
830
func (x *Signature) GetS() []byte {
838
state protoimpl.MessageState
839
sizeCache protoimpl.SizeCache
840
unknownFields protoimpl.UnknownFields
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"`
847
func (x *Account) Reset() {
849
if protoimpl.UnsafeEnabled {
850
mi := &file_api_cranberry_proto_msgTypes[15]
851
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
852
ms.StoreMessageInfo(mi)
856
func (x *Account) String() string {
857
return protoimpl.X.MessageStringOf(x)
860
func (*Account) ProtoMessage() {}
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)
871
return mi.MessageOf(x)
875
func (*Account) Descriptor() ([]byte, []int) {
876
return file_api_cranberry_proto_rawDescGZIP(), []int{15}
879
func (x *Account) GetAddr() string {
886
func (x *Account) GetPubKey() []byte {
893
func (x *Account) GetBalance() uint64 {
900
type Validator struct {
901
state protoimpl.MessageState
902
sizeCache protoimpl.SizeCache
903
unknownFields protoimpl.UnknownFields
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"`
909
func (x *Validator) Reset() {
911
if protoimpl.UnsafeEnabled {
912
mi := &file_api_cranberry_proto_msgTypes[16]
913
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
914
ms.StoreMessageInfo(mi)
918
func (x *Validator) String() string {
919
return protoimpl.X.MessageStringOf(x)
922
func (*Validator) ProtoMessage() {}
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)
933
return mi.MessageOf(x)
937
func (*Validator) Descriptor() ([]byte, []int) {
938
return file_api_cranberry_proto_rawDescGZIP(), []int{16}
941
func (x *Validator) GetAddr() string {
948
func (x *Validator) GetPubKey() []byte {
955
var File_api_cranberry_proto protoreflect.FileDescriptor
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,
1065
file_api_cranberry_proto_rawDescOnce sync.Once
1066
file_api_cranberry_proto_rawDescData = file_api_cranberry_proto_rawDesc
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)
1073
return file_api_cranberry_proto_rawDescData
1076
var file_api_cranberry_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
1077
var file_api_cranberry_proto_goTypes = []any{
1078
(*SendTxRequest)(nil),
1079
(*SendTxResponse)(nil),
1080
(*SendBlockMessage)(nil),
1081
(*GetBlockByHeightRequest)(nil),
1082
(*GetBlockByHeightResponse)(nil),
1083
(*PropagateTxRequest)(nil),
1084
(*PropagateTxResponse)(nil),
1085
(*AddPeerRequest)(nil),
1086
(*AddPeerResponse)(nil),
1087
(*BlockContainer)(nil),
1088
(*SignatureItem)(nil),
1089
(*BlockHeader)(nil),
1090
(*TxContainer)(nil),
1096
var file_api_cranberry_proto_depIdxs = []int32{
1125
func init() { file_api_cranberry_proto_init() }
1126
func file_api_cranberry_proto_init() {
1127
if File_api_cranberry_proto != nil {
1130
if !protoimpl.UnsafeEnabled {
1131
file_api_cranberry_proto_msgTypes[0].Exporter = func(v any, i int) any {
1132
switch v := v.(*SendTxRequest); i {
1138
return &v.unknownFields
1143
file_api_cranberry_proto_msgTypes[1].Exporter = func(v any, i int) any {
1144
switch v := v.(*SendTxResponse); i {
1150
return &v.unknownFields
1155
file_api_cranberry_proto_msgTypes[2].Exporter = func(v any, i int) any {
1156
switch v := v.(*SendBlockMessage); i {
1162
return &v.unknownFields
1167
file_api_cranberry_proto_msgTypes[3].Exporter = func(v any, i int) any {
1168
switch v := v.(*GetBlockByHeightRequest); i {
1174
return &v.unknownFields
1179
file_api_cranberry_proto_msgTypes[4].Exporter = func(v any, i int) any {
1180
switch v := v.(*GetBlockByHeightResponse); i {
1186
return &v.unknownFields
1191
file_api_cranberry_proto_msgTypes[5].Exporter = func(v any, i int) any {
1192
switch v := v.(*PropagateTxRequest); i {
1198
return &v.unknownFields
1203
file_api_cranberry_proto_msgTypes[6].Exporter = func(v any, i int) any {
1204
switch v := v.(*PropagateTxResponse); i {
1210
return &v.unknownFields
1215
file_api_cranberry_proto_msgTypes[7].Exporter = func(v any, i int) any {
1216
switch v := v.(*AddPeerRequest); i {
1222
return &v.unknownFields
1227
file_api_cranberry_proto_msgTypes[8].Exporter = func(v any, i int) any {
1228
switch v := v.(*AddPeerResponse); i {
1234
return &v.unknownFields
1239
file_api_cranberry_proto_msgTypes[9].Exporter = func(v any, i int) any {
1240
switch v := v.(*BlockContainer); i {
1246
return &v.unknownFields
1251
file_api_cranberry_proto_msgTypes[10].Exporter = func(v any, i int) any {
1252
switch v := v.(*SignatureItem); i {
1258
return &v.unknownFields
1263
file_api_cranberry_proto_msgTypes[11].Exporter = func(v any, i int) any {
1264
switch v := v.(*BlockHeader); i {
1270
return &v.unknownFields
1275
file_api_cranberry_proto_msgTypes[12].Exporter = func(v any, i int) any {
1276
switch v := v.(*TxContainer); i {
1282
return &v.unknownFields
1287
file_api_cranberry_proto_msgTypes[13].Exporter = func(v any, i int) any {
1288
switch v := v.(*Tx); i {
1294
return &v.unknownFields
1299
file_api_cranberry_proto_msgTypes[14].Exporter = func(v any, i int) any {
1300
switch v := v.(*Signature); i {
1306
return &v.unknownFields
1311
file_api_cranberry_proto_msgTypes[15].Exporter = func(v any, i int) any {
1312
switch v := v.(*Account); i {
1318
return &v.unknownFields
1323
file_api_cranberry_proto_msgTypes[16].Exporter = func(v any, i int) any {
1324
switch v := v.(*Validator); i {
1330
return &v.unknownFields
1336
file_api_cranberry_proto_msgTypes[12].OneofWrappers = []any{}
1338
out := protoimpl.TypeBuilder{
1339
File: protoimpl.DescBuilder{
1340
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1341
RawDescriptor: file_api_cranberry_proto_rawDesc,
1347
GoTypes: file_api_cranberry_proto_goTypes,
1348
DependencyIndexes: file_api_cranberry_proto_depIdxs,
1349
MessageInfos: file_api_cranberry_proto_msgTypes,
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