-
Notifications
You must be signed in to change notification settings - Fork 2
/
rpc.pb.go
4889 lines (4379 loc) · 174 KB
/
rpc.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
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: rpc/pb/rpc.proto
package rpcpb
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
)
// 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
// The enumeration defines transaction receipt status code.
type TxReceipt_StatusCode int32
const (
// success
TxReceipt_SUCCESS TxReceipt_StatusCode = 0
// run out of gas
TxReceipt_GAS_RUN_OUT TxReceipt_StatusCode = 1
// balance not enough
TxReceipt_BALANCE_NOT_ENOUGH TxReceipt_StatusCode = 2
// wrong parameter
TxReceipt_WRONG_PARAMETER TxReceipt_StatusCode = 3
// runtime error
TxReceipt_RUNTIME_ERROR TxReceipt_StatusCode = 4
// run out of time
TxReceipt_TIMEOUT TxReceipt_StatusCode = 5
// wrong transaction format
TxReceipt_WRONG_TX_FORMAT TxReceipt_StatusCode = 6
// more than one set code action in a transaction
TxReceipt_DUPLICATE_SET_CODE TxReceipt_StatusCode = 7
// unknown error
TxReceipt_UNKNOWN_ERROR TxReceipt_StatusCode = 8
)
var TxReceipt_StatusCode_name = map[int32]string{
0: "SUCCESS",
1: "GAS_RUN_OUT",
2: "BALANCE_NOT_ENOUGH",
3: "WRONG_PARAMETER",
4: "RUNTIME_ERROR",
5: "TIMEOUT",
6: "WRONG_TX_FORMAT",
7: "DUPLICATE_SET_CODE",
8: "UNKNOWN_ERROR",
}
var TxReceipt_StatusCode_value = map[string]int32{
"SUCCESS": 0,
"GAS_RUN_OUT": 1,
"BALANCE_NOT_ENOUGH": 2,
"WRONG_PARAMETER": 3,
"RUNTIME_ERROR": 4,
"TIMEOUT": 5,
"WRONG_TX_FORMAT": 6,
"DUPLICATE_SET_CODE": 7,
"UNKNOWN_ERROR": 8,
}
func (x TxReceipt_StatusCode) String() string {
return proto.EnumName(TxReceipt_StatusCode_name, int32(x))
}
func (TxReceipt_StatusCode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{6, 0}
}
// The enumeration defines transaction status.
type TransactionResponse_Status int32
const (
// pending in transaction pool
TransactionResponse_PENDING TransactionResponse_Status = 0
// packed in a block that has not been confirmed
TransactionResponse_PACKED TransactionResponse_Status = 1
// packed in a block that is irreversible
TransactionResponse_IRREVERSIBLE TransactionResponse_Status = 2
)
var TransactionResponse_Status_name = map[int32]string{
0: "PENDING",
1: "PACKED",
2: "IRREVERSIBLE",
}
var TransactionResponse_Status_value = map[string]int32{
"PENDING": 0,
"PACKED": 1,
"IRREVERSIBLE": 2,
}
func (x TransactionResponse_Status) String() string {
return proto.EnumName(TransactionResponse_Status_name, int32(x))
}
func (TransactionResponse_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{8, 0}
}
// The enumeration defines the signature algorithm.
type Signature_Algorithm int32
const (
// unknown
Signature_UNKNOWN Signature_Algorithm = 0
// secp256k1
Signature_SECP256K1 Signature_Algorithm = 1
// ed25519
Signature_ED25519 Signature_Algorithm = 2
)
var Signature_Algorithm_name = map[int32]string{
0: "UNKNOWN",
1: "SECP256K1",
2: "ED25519",
}
var Signature_Algorithm_value = map[string]int32{
"UNKNOWN": 0,
"SECP256K1": 1,
"ED25519": 2,
}
func (x Signature_Algorithm) String() string {
return proto.EnumName(Signature_Algorithm_name, int32(x))
}
func (Signature_Algorithm) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{9, 0}
}
// The enumeration defines block status.
type BlockResponse_Status int32
const (
// pending in block cache
BlockResponse_PENDING BlockResponse_Status = 0
// irreversible
BlockResponse_IRREVERSIBLE BlockResponse_Status = 1
)
var BlockResponse_Status_name = map[int32]string{
0: "PENDING",
1: "IRREVERSIBLE",
}
var BlockResponse_Status_value = map[string]int32{
"PENDING": 0,
"IRREVERSIBLE": 1,
}
func (x BlockResponse_Status) String() string {
return proto.EnumName(BlockResponse_Status_name, int32(x))
}
func (BlockResponse_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{12, 0}
}
type Event_Topic int32
const (
// contract receipt
Event_CONTRACT_RECEIPT Event_Topic = 0
// contract event
Event_CONTRACT_EVENT Event_Topic = 1
)
var Event_Topic_name = map[int32]string{
0: "CONTRACT_RECEIPT",
1: "CONTRACT_EVENT",
}
var Event_Topic_value = map[string]int32{
"CONTRACT_RECEIPT": 0,
"CONTRACT_EVENT": 1,
}
func (x Event_Topic) String() string {
return proto.EnumName(Event_Topic_name, int32(x))
}
func (Event_Topic) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{40, 0}
}
// The message defines an empty request.
type EmptyRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EmptyRequest) Reset() { *m = EmptyRequest{} }
func (m *EmptyRequest) String() string { return proto.CompactTextString(m) }
func (*EmptyRequest) ProtoMessage() {}
func (*EmptyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{0}
}
func (m *EmptyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EmptyRequest.Unmarshal(m, b)
}
func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EmptyRequest.Marshal(b, m, deterministic)
}
func (m *EmptyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_EmptyRequest.Merge(m, src)
}
func (m *EmptyRequest) XXX_Size() int {
return xxx_messageInfo_EmptyRequest.Size(m)
}
func (m *EmptyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_EmptyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_EmptyRequest proto.InternalMessageInfo
// The message defines network connection information.
type NetworkInfo struct {
// local network ID
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// peer connection count
PeerCount int32 `protobuf:"varint,2,opt,name=peer_count,json=peerCount,proto3" json:"peer_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NetworkInfo) Reset() { *m = NetworkInfo{} }
func (m *NetworkInfo) String() string { return proto.CompactTextString(m) }
func (*NetworkInfo) ProtoMessage() {}
func (*NetworkInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{1}
}
func (m *NetworkInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NetworkInfo.Unmarshal(m, b)
}
func (m *NetworkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NetworkInfo.Marshal(b, m, deterministic)
}
func (m *NetworkInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_NetworkInfo.Merge(m, src)
}
func (m *NetworkInfo) XXX_Size() int {
return xxx_messageInfo_NetworkInfo.Size(m)
}
func (m *NetworkInfo) XXX_DiscardUnknown() {
xxx_messageInfo_NetworkInfo.DiscardUnknown(m)
}
var xxx_messageInfo_NetworkInfo proto.InternalMessageInfo
func (m *NetworkInfo) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *NetworkInfo) GetPeerCount() int32 {
if m != nil {
return m.PeerCount
}
return 0
}
// The message containing blockchain's ram information.
type RAMInfoResponse struct {
// how many bytes have been used
UsedRam int64 `protobuf:"varint,1,opt,name=used_ram,json=usedRam,proto3" json:"used_ram,omitempty"`
// how many bytes have not been used
AvailableRam int64 `protobuf:"varint,2,opt,name=available_ram,json=availableRam,proto3" json:"available_ram,omitempty"`
// total ram byte
TotalRam int64 `protobuf:"varint,3,opt,name=total_ram,json=totalRam,proto3" json:"total_ram,omitempty"`
// User can sell NUM bytes RAM to system to get `NUM * sell_price` EMPOWs
SellPrice float64 `protobuf:"fixed64,4,opt,name=sell_price,json=sellPrice,proto3" json:"sell_price,omitempty"`
// User can spend approximate `NUM * buy_price` EMPOWs for NUM bytes RAM
BuyPrice float64 `protobuf:"fixed64,5,opt,name=buy_price,json=buyPrice,proto3" json:"buy_price,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RAMInfoResponse) Reset() { *m = RAMInfoResponse{} }
func (m *RAMInfoResponse) String() string { return proto.CompactTextString(m) }
func (*RAMInfoResponse) ProtoMessage() {}
func (*RAMInfoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{2}
}
func (m *RAMInfoResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RAMInfoResponse.Unmarshal(m, b)
}
func (m *RAMInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RAMInfoResponse.Marshal(b, m, deterministic)
}
func (m *RAMInfoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RAMInfoResponse.Merge(m, src)
}
func (m *RAMInfoResponse) XXX_Size() int {
return xxx_messageInfo_RAMInfoResponse.Size(m)
}
func (m *RAMInfoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RAMInfoResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RAMInfoResponse proto.InternalMessageInfo
func (m *RAMInfoResponse) GetUsedRam() int64 {
if m != nil {
return m.UsedRam
}
return 0
}
func (m *RAMInfoResponse) GetAvailableRam() int64 {
if m != nil {
return m.AvailableRam
}
return 0
}
func (m *RAMInfoResponse) GetTotalRam() int64 {
if m != nil {
return m.TotalRam
}
return 0
}
func (m *RAMInfoResponse) GetSellPrice() float64 {
if m != nil {
return m.SellPrice
}
return 0
}
func (m *RAMInfoResponse) GetBuyPrice() float64 {
if m != nil {
return m.BuyPrice
}
return 0
}
// The message containing the node's information.
type NodeInfoResponse struct {
// build time
BuildTime string `protobuf:"bytes,1,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
// git hash
GitHash string `protobuf:"bytes,2,opt,name=git_hash,json=gitHash,proto3" json:"git_hash,omitempty"`
// node mode
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
// network connection information
Network *NetworkInfo `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
// code version string
CodeVersion string `protobuf:"bytes,5,opt,name=code_version,json=codeVersion,proto3" json:"code_version,omitempty"`
// server time
ServerTime int64 `protobuf:"varint,6,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NodeInfoResponse) Reset() { *m = NodeInfoResponse{} }
func (m *NodeInfoResponse) String() string { return proto.CompactTextString(m) }
func (*NodeInfoResponse) ProtoMessage() {}
func (*NodeInfoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{3}
}
func (m *NodeInfoResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NodeInfoResponse.Unmarshal(m, b)
}
func (m *NodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NodeInfoResponse.Marshal(b, m, deterministic)
}
func (m *NodeInfoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_NodeInfoResponse.Merge(m, src)
}
func (m *NodeInfoResponse) XXX_Size() int {
return xxx_messageInfo_NodeInfoResponse.Size(m)
}
func (m *NodeInfoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_NodeInfoResponse.DiscardUnknown(m)
}
var xxx_messageInfo_NodeInfoResponse proto.InternalMessageInfo
func (m *NodeInfoResponse) GetBuildTime() string {
if m != nil {
return m.BuildTime
}
return ""
}
func (m *NodeInfoResponse) GetGitHash() string {
if m != nil {
return m.GitHash
}
return ""
}
func (m *NodeInfoResponse) GetMode() string {
if m != nil {
return m.Mode
}
return ""
}
func (m *NodeInfoResponse) GetNetwork() *NetworkInfo {
if m != nil {
return m.Network
}
return nil
}
func (m *NodeInfoResponse) GetCodeVersion() string {
if m != nil {
return m.CodeVersion
}
return ""
}
func (m *NodeInfoResponse) GetServerTime() int64 {
if m != nil {
return m.ServerTime
}
return 0
}
// The message defines transaction amount limit struct.
type AmountLimit struct {
// token name
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// limit value
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AmountLimit) Reset() { *m = AmountLimit{} }
func (m *AmountLimit) String() string { return proto.CompactTextString(m) }
func (*AmountLimit) ProtoMessage() {}
func (*AmountLimit) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{4}
}
func (m *AmountLimit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AmountLimit.Unmarshal(m, b)
}
func (m *AmountLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AmountLimit.Marshal(b, m, deterministic)
}
func (m *AmountLimit) XXX_Merge(src proto.Message) {
xxx_messageInfo_AmountLimit.Merge(m, src)
}
func (m *AmountLimit) XXX_Size() int {
return xxx_messageInfo_AmountLimit.Size(m)
}
func (m *AmountLimit) XXX_DiscardUnknown() {
xxx_messageInfo_AmountLimit.DiscardUnknown(m)
}
var xxx_messageInfo_AmountLimit proto.InternalMessageInfo
func (m *AmountLimit) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
func (m *AmountLimit) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// The message defines transaction action struct.
type Action struct {
// contract name
Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
// action name
ActionName string `protobuf:"bytes,2,opt,name=action_name,json=actionName,proto3" json:"action_name,omitempty"`
// data
Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Action) Reset() { *m = Action{} }
func (m *Action) String() string { return proto.CompactTextString(m) }
func (*Action) ProtoMessage() {}
func (*Action) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{5}
}
func (m *Action) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Action.Unmarshal(m, b)
}
func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Action.Marshal(b, m, deterministic)
}
func (m *Action) XXX_Merge(src proto.Message) {
xxx_messageInfo_Action.Merge(m, src)
}
func (m *Action) XXX_Size() int {
return xxx_messageInfo_Action.Size(m)
}
func (m *Action) XXX_DiscardUnknown() {
xxx_messageInfo_Action.DiscardUnknown(m)
}
var xxx_messageInfo_Action proto.InternalMessageInfo
func (m *Action) GetContract() string {
if m != nil {
return m.Contract
}
return ""
}
func (m *Action) GetActionName() string {
if m != nil {
return m.ActionName
}
return ""
}
func (m *Action) GetData() string {
if m != nil {
return m.Data
}
return ""
}
// The message defines the transaction receipt struct.
type TxReceipt struct {
// transaction hash
TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
// gas usage
GasUsage float64 `protobuf:"fixed64,2,opt,name=gas_usage,json=gasUsage,proto3" json:"gas_usage,omitempty"`
// ram usage
RamUsage map[string]int64 `protobuf:"bytes,3,rep,name=ram_usage,json=ramUsage,proto3" json:"ram_usage,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// status code
StatusCode TxReceipt_StatusCode `protobuf:"varint,4,opt,name=status_code,json=statusCode,proto3,enum=rpcpb.TxReceipt_StatusCode" json:"status_code,omitempty"`
// message
Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
// transaction returns
Returns []string `protobuf:"bytes,6,rep,name=returns,proto3" json:"returns,omitempty"`
// transaction receipts
Receipts []*TxReceipt_Receipt `protobuf:"bytes,7,rep,name=receipts,proto3" json:"receipts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TxReceipt) Reset() { *m = TxReceipt{} }
func (m *TxReceipt) String() string { return proto.CompactTextString(m) }
func (*TxReceipt) ProtoMessage() {}
func (*TxReceipt) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{6}
}
func (m *TxReceipt) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxReceipt.Unmarshal(m, b)
}
func (m *TxReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxReceipt.Marshal(b, m, deterministic)
}
func (m *TxReceipt) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxReceipt.Merge(m, src)
}
func (m *TxReceipt) XXX_Size() int {
return xxx_messageInfo_TxReceipt.Size(m)
}
func (m *TxReceipt) XXX_DiscardUnknown() {
xxx_messageInfo_TxReceipt.DiscardUnknown(m)
}
var xxx_messageInfo_TxReceipt proto.InternalMessageInfo
func (m *TxReceipt) GetTxHash() string {
if m != nil {
return m.TxHash
}
return ""
}
func (m *TxReceipt) GetGasUsage() float64 {
if m != nil {
return m.GasUsage
}
return 0
}
func (m *TxReceipt) GetRamUsage() map[string]int64 {
if m != nil {
return m.RamUsage
}
return nil
}
func (m *TxReceipt) GetStatusCode() TxReceipt_StatusCode {
if m != nil {
return m.StatusCode
}
return TxReceipt_SUCCESS
}
func (m *TxReceipt) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *TxReceipt) GetReturns() []string {
if m != nil {
return m.Returns
}
return nil
}
func (m *TxReceipt) GetReceipts() []*TxReceipt_Receipt {
if m != nil {
return m.Receipts
}
return nil
}
// The message defines transaction execution receipt.
type TxReceipt_Receipt struct {
// function name
FuncName string `protobuf:"bytes,1,opt,name=func_name,json=funcName,proto3" json:"func_name,omitempty"`
// content
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TxReceipt_Receipt) Reset() { *m = TxReceipt_Receipt{} }
func (m *TxReceipt_Receipt) String() string { return proto.CompactTextString(m) }
func (*TxReceipt_Receipt) ProtoMessage() {}
func (*TxReceipt_Receipt) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{6, 1}
}
func (m *TxReceipt_Receipt) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxReceipt_Receipt.Unmarshal(m, b)
}
func (m *TxReceipt_Receipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxReceipt_Receipt.Marshal(b, m, deterministic)
}
func (m *TxReceipt_Receipt) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxReceipt_Receipt.Merge(m, src)
}
func (m *TxReceipt_Receipt) XXX_Size() int {
return xxx_messageInfo_TxReceipt_Receipt.Size(m)
}
func (m *TxReceipt_Receipt) XXX_DiscardUnknown() {
xxx_messageInfo_TxReceipt_Receipt.DiscardUnknown(m)
}
var xxx_messageInfo_TxReceipt_Receipt proto.InternalMessageInfo
func (m *TxReceipt_Receipt) GetFuncName() string {
if m != nil {
return m.FuncName
}
return ""
}
func (m *TxReceipt_Receipt) GetContent() string {
if m != nil {
return m.Content
}
return ""
}
// The message defines transaction struct.
type Transaction struct {
// transaction hash
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// transaction timestamp
Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
// expiration timestamp
Expiration int64 `protobuf:"varint,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
// gas gas_ratio
GasRatio float64 `protobuf:"fixed64,4,opt,name=gas_ratio,json=gasRatio,proto3" json:"gas_ratio,omitempty"`
// gas limit
GasLimit float64 `protobuf:"fixed64,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
// delay nanoseconds
Delay int64 `protobuf:"varint,6,opt,name=delay,proto3" json:"delay,omitempty"`
// chain id
ChainId uint32 `protobuf:"varint,7,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
// action list
Actions []*Action `protobuf:"bytes,8,rep,name=actions,proto3" json:"actions,omitempty"`
// signer list
Signers []string `protobuf:"bytes,9,rep,name=signers,proto3" json:"signers,omitempty"`
// publisher
Publisher string `protobuf:"bytes,10,opt,name=publisher,proto3" json:"publisher,omitempty"`
// referred transaction hash
ReferredTx string `protobuf:"bytes,11,opt,name=referred_tx,json=referredTx,proto3" json:"referred_tx,omitempty"`
// amount limit
AmountLimit []*AmountLimit `protobuf:"bytes,12,rep,name=amount_limit,json=amountLimit,proto3" json:"amount_limit,omitempty"`
// transaction receipt
TxReceipt *TxReceipt `protobuf:"bytes,13,opt,name=tx_receipt,json=txReceipt,proto3" json:"tx_receipt,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Transaction) Reset() { *m = Transaction{} }
func (m *Transaction) String() string { return proto.CompactTextString(m) }
func (*Transaction) ProtoMessage() {}
func (*Transaction) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{7}
}
func (m *Transaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Transaction.Unmarshal(m, b)
}
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Transaction.Marshal(b, m, deterministic)
}
func (m *Transaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_Transaction.Merge(m, src)
}
func (m *Transaction) XXX_Size() int {
return xxx_messageInfo_Transaction.Size(m)
}
func (m *Transaction) XXX_DiscardUnknown() {
xxx_messageInfo_Transaction.DiscardUnknown(m)
}
var xxx_messageInfo_Transaction proto.InternalMessageInfo
func (m *Transaction) GetHash() string {
if m != nil {
return m.Hash
}
return ""
}
func (m *Transaction) GetTime() int64 {
if m != nil {
return m.Time
}
return 0
}
func (m *Transaction) GetExpiration() int64 {
if m != nil {
return m.Expiration
}
return 0
}
func (m *Transaction) GetGasRatio() float64 {
if m != nil {
return m.GasRatio
}
return 0
}
func (m *Transaction) GetGasLimit() float64 {
if m != nil {
return m.GasLimit
}
return 0
}
func (m *Transaction) GetDelay() int64 {
if m != nil {
return m.Delay
}
return 0
}
func (m *Transaction) GetChainId() uint32 {
if m != nil {
return m.ChainId
}
return 0
}
func (m *Transaction) GetActions() []*Action {
if m != nil {
return m.Actions
}
return nil
}
func (m *Transaction) GetSigners() []string {
if m != nil {
return m.Signers
}
return nil
}
func (m *Transaction) GetPublisher() string {
if m != nil {
return m.Publisher
}
return ""
}
func (m *Transaction) GetReferredTx() string {
if m != nil {
return m.ReferredTx
}
return ""
}
func (m *Transaction) GetAmountLimit() []*AmountLimit {
if m != nil {
return m.AmountLimit
}
return nil
}
func (m *Transaction) GetTxReceipt() *TxReceipt {
if m != nil {
return m.TxReceipt
}
return nil
}
// The message defines transaction response.
type TransactionResponse struct {
// transaction status
Status TransactionResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=rpcpb.TransactionResponse_Status" json:"status,omitempty"`
// transaction
Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
// block number
BlockNumber int64 `protobuf:"varint,3,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TransactionResponse) Reset() { *m = TransactionResponse{} }
func (m *TransactionResponse) String() string { return proto.CompactTextString(m) }
func (*TransactionResponse) ProtoMessage() {}
func (*TransactionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{8}
}
func (m *TransactionResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TransactionResponse.Unmarshal(m, b)
}
func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TransactionResponse.Marshal(b, m, deterministic)
}
func (m *TransactionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_TransactionResponse.Merge(m, src)
}
func (m *TransactionResponse) XXX_Size() int {
return xxx_messageInfo_TransactionResponse.Size(m)
}
func (m *TransactionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_TransactionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_TransactionResponse proto.InternalMessageInfo
func (m *TransactionResponse) GetStatus() TransactionResponse_Status {
if m != nil {
return m.Status
}
return TransactionResponse_PENDING
}
func (m *TransactionResponse) GetTransaction() *Transaction {
if m != nil {
return m.Transaction
}
return nil
}
func (m *TransactionResponse) GetBlockNumber() int64 {
if m != nil {
return m.BlockNumber
}
return 0
}
// The message defines signature struct.
type Signature struct {
// signature algorithm
Algorithm Signature_Algorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=rpcpb.Signature_Algorithm" json:"algorithm,omitempty"`
// signature bytes
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// public key
PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Signature) Reset() { *m = Signature{} }
func (m *Signature) String() string { return proto.CompactTextString(m) }
func (*Signature) ProtoMessage() {}
func (*Signature) Descriptor() ([]byte, []int) {
return fileDescriptor_1b773bf3e696f610, []int{9}
}
func (m *Signature) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Signature.Unmarshal(m, b)
}
func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Signature.Marshal(b, m, deterministic)
}
func (m *Signature) XXX_Merge(src proto.Message) {
xxx_messageInfo_Signature.Merge(m, src)
}
func (m *Signature) XXX_Size() int {
return xxx_messageInfo_Signature.Size(m)
}
func (m *Signature) XXX_DiscardUnknown() {
xxx_messageInfo_Signature.DiscardUnknown(m)
}
var xxx_messageInfo_Signature proto.InternalMessageInfo
func (m *Signature) GetAlgorithm() Signature_Algorithm {
if m != nil {
return m.Algorithm
}
return Signature_UNKNOWN
}
func (m *Signature) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *Signature) GetPublicKey() []byte {
if m != nil {
return m.PublicKey
}
return nil
}
// The message defines the transaction request.
type TransactionRequest struct {
// transaction timestamp
Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
// expiration timestamp
Expiration int64 `protobuf:"varint,2,opt,name=expiration,proto3" json:"expiration,omitempty"`
// gas price
GasRatio float64 `protobuf:"fixed64,3,opt,name=gas_ratio,json=gasRatio,proto3" json:"gas_ratio,omitempty"`
// gas limit
GasLimit float64 `protobuf:"fixed64,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
// delay nanoseconds
Delay int64 `protobuf:"varint,5,opt,name=delay,proto3" json:"delay,omitempty"`
// chain id
ChainId uint32 `protobuf:"varint,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
// action list
Actions []*Action `protobuf:"bytes,7,rep,name=actions,proto3" json:"actions,omitempty"`
// amount limit
AmountLimit []*AmountLimit `protobuf:"bytes,8,rep,name=amount_limit,json=amountLimit,proto3" json:"amount_limit,omitempty"`
// signer list
Signers []string `protobuf:"bytes,9,rep,name=signers,proto3" json:"signers,omitempty"`
// signatures of signers
Signatures []*Signature `protobuf:"bytes,10,rep,name=signatures,proto3" json:"signatures,omitempty"`
// publisher
Publisher string `protobuf:"bytes,11,opt,name=publisher,proto3" json:"publisher,omitempty"`
// signatures of publisher
PublisherSigs []*Signature `protobuf:"bytes,12,rep,name=publisher_sigs,json=publisherSigs,proto3" json:"publisher_sigs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TransactionRequest) Reset() { *m = TransactionRequest{} }
func (m *TransactionRequest) String() string { return proto.CompactTextString(m) }