-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallet.pb.go
1824 lines (1608 loc) · 62 KB
/
wallet.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: wallet.proto
package types
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
)
// 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
//钱包模块存贮的tx交易详细信息
// tx : tx交易信息
// receipt :交易收据信息
// height :交易所在的区块高度
// index :交易所在区块中的索引
// blocktime :交易所在区块的时标
// amount :交易量
// fromaddr :交易打出地址
// txhash : 交易对应的哈希值
// actionName :交易对应的函数调用
// payload: 保存额外的一些信息,主要是给插件使用
type WalletTxDetail struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
Receipt *ReceiptData `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
Index int64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
Blocktime int64 `protobuf:"varint,5,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
Amount int64 `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"`
Fromaddr string `protobuf:"bytes,7,opt,name=fromaddr,proto3" json:"fromaddr,omitempty"`
Txhash []byte `protobuf:"bytes,8,opt,name=txhash,proto3" json:"txhash,omitempty"`
ActionName string `protobuf:"bytes,9,opt,name=actionName,proto3" json:"actionName,omitempty"`
Payload []byte `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WalletTxDetail) Reset() { *m = WalletTxDetail{} }
func (m *WalletTxDetail) String() string { return proto.CompactTextString(m) }
func (*WalletTxDetail) ProtoMessage() {}
func (*WalletTxDetail) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{0}
}
func (m *WalletTxDetail) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletTxDetail.Unmarshal(m, b)
}
func (m *WalletTxDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletTxDetail.Marshal(b, m, deterministic)
}
func (m *WalletTxDetail) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletTxDetail.Merge(m, src)
}
func (m *WalletTxDetail) XXX_Size() int {
return xxx_messageInfo_WalletTxDetail.Size(m)
}
func (m *WalletTxDetail) XXX_DiscardUnknown() {
xxx_messageInfo_WalletTxDetail.DiscardUnknown(m)
}
var xxx_messageInfo_WalletTxDetail proto.InternalMessageInfo
func (m *WalletTxDetail) GetTx() *Transaction {
if m != nil {
return m.Tx
}
return nil
}
func (m *WalletTxDetail) GetReceipt() *ReceiptData {
if m != nil {
return m.Receipt
}
return nil
}
func (m *WalletTxDetail) GetHeight() int64 {
if m != nil {
return m.Height
}
return 0
}
func (m *WalletTxDetail) GetIndex() int64 {
if m != nil {
return m.Index
}
return 0
}
func (m *WalletTxDetail) GetBlocktime() int64 {
if m != nil {
return m.Blocktime
}
return 0
}
func (m *WalletTxDetail) GetAmount() int64 {
if m != nil {
return m.Amount
}
return 0
}
func (m *WalletTxDetail) GetFromaddr() string {
if m != nil {
return m.Fromaddr
}
return ""
}
func (m *WalletTxDetail) GetTxhash() []byte {
if m != nil {
return m.Txhash
}
return nil
}
func (m *WalletTxDetail) GetActionName() string {
if m != nil {
return m.ActionName
}
return ""
}
func (m *WalletTxDetail) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
type WalletTxDetails struct {
TxDetails []*WalletTxDetail `protobuf:"bytes,1,rep,name=txDetails,proto3" json:"txDetails,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WalletTxDetails) Reset() { *m = WalletTxDetails{} }
func (m *WalletTxDetails) String() string { return proto.CompactTextString(m) }
func (*WalletTxDetails) ProtoMessage() {}
func (*WalletTxDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{1}
}
func (m *WalletTxDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletTxDetails.Unmarshal(m, b)
}
func (m *WalletTxDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletTxDetails.Marshal(b, m, deterministic)
}
func (m *WalletTxDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletTxDetails.Merge(m, src)
}
func (m *WalletTxDetails) XXX_Size() int {
return xxx_messageInfo_WalletTxDetails.Size(m)
}
func (m *WalletTxDetails) XXX_DiscardUnknown() {
xxx_messageInfo_WalletTxDetails.DiscardUnknown(m)
}
var xxx_messageInfo_WalletTxDetails proto.InternalMessageInfo
func (m *WalletTxDetails) GetTxDetails() []*WalletTxDetail {
if m != nil {
return m.TxDetails
}
return nil
}
//钱包模块存贮的账户信息
// privkey : 账户地址对应的私钥
// label :账户地址对应的标签
// addr :账户地址
// timeStamp :创建账户时的时标
type WalletAccountStore struct {
Privkey string `protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
TimeStamp string `protobuf:"bytes,4,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WalletAccountStore) Reset() { *m = WalletAccountStore{} }
func (m *WalletAccountStore) String() string { return proto.CompactTextString(m) }
func (*WalletAccountStore) ProtoMessage() {}
func (*WalletAccountStore) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{2}
}
func (m *WalletAccountStore) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletAccountStore.Unmarshal(m, b)
}
func (m *WalletAccountStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletAccountStore.Marshal(b, m, deterministic)
}
func (m *WalletAccountStore) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletAccountStore.Merge(m, src)
}
func (m *WalletAccountStore) XXX_Size() int {
return xxx_messageInfo_WalletAccountStore.Size(m)
}
func (m *WalletAccountStore) XXX_DiscardUnknown() {
xxx_messageInfo_WalletAccountStore.DiscardUnknown(m)
}
var xxx_messageInfo_WalletAccountStore proto.InternalMessageInfo
func (m *WalletAccountStore) GetPrivkey() string {
if m != nil {
return m.Privkey
}
return ""
}
func (m *WalletAccountStore) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
func (m *WalletAccountStore) GetAddr() string {
if m != nil {
return m.Addr
}
return ""
}
func (m *WalletAccountStore) GetTimeStamp() string {
if m != nil {
return m.TimeStamp
}
return ""
}
//钱包模块通过一个随机值对钱包密码加密
// pwHash : 对钱包密码和一个随机值组合进行哈希计算
// randstr :对钱包密码加密的一个随机值
type WalletPwHash struct {
PwHash []byte `protobuf:"bytes,1,opt,name=pwHash,proto3" json:"pwHash,omitempty"`
Randstr string `protobuf:"bytes,2,opt,name=randstr,proto3" json:"randstr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WalletPwHash) Reset() { *m = WalletPwHash{} }
func (m *WalletPwHash) String() string { return proto.CompactTextString(m) }
func (*WalletPwHash) ProtoMessage() {}
func (*WalletPwHash) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{3}
}
func (m *WalletPwHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletPwHash.Unmarshal(m, b)
}
func (m *WalletPwHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletPwHash.Marshal(b, m, deterministic)
}
func (m *WalletPwHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletPwHash.Merge(m, src)
}
func (m *WalletPwHash) XXX_Size() int {
return xxx_messageInfo_WalletPwHash.Size(m)
}
func (m *WalletPwHash) XXX_DiscardUnknown() {
xxx_messageInfo_WalletPwHash.DiscardUnknown(m)
}
var xxx_messageInfo_WalletPwHash proto.InternalMessageInfo
func (m *WalletPwHash) GetPwHash() []byte {
if m != nil {
return m.PwHash
}
return nil
}
func (m *WalletPwHash) GetRandstr() string {
if m != nil {
return m.Randstr
}
return ""
}
//钱包当前的状态
// isWalletLock : 钱包是否锁状态,true锁定,false解锁
// isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿
// isHasSeed : 钱包是否有种子,true已有,false没有
// isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账
type WalletStatus struct {
IsWalletLock bool `protobuf:"varint,1,opt,name=isWalletLock,proto3" json:"isWalletLock,omitempty"`
IsAutoMining bool `protobuf:"varint,2,opt,name=isAutoMining,proto3" json:"isAutoMining,omitempty"`
IsHasSeed bool `protobuf:"varint,3,opt,name=isHasSeed,proto3" json:"isHasSeed,omitempty"`
IsTicketLock bool `protobuf:"varint,4,opt,name=isTicketLock,proto3" json:"isTicketLock,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WalletStatus) Reset() { *m = WalletStatus{} }
func (m *WalletStatus) String() string { return proto.CompactTextString(m) }
func (*WalletStatus) ProtoMessage() {}
func (*WalletStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{4}
}
func (m *WalletStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletStatus.Unmarshal(m, b)
}
func (m *WalletStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletStatus.Marshal(b, m, deterministic)
}
func (m *WalletStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletStatus.Merge(m, src)
}
func (m *WalletStatus) XXX_Size() int {
return xxx_messageInfo_WalletStatus.Size(m)
}
func (m *WalletStatus) XXX_DiscardUnknown() {
xxx_messageInfo_WalletStatus.DiscardUnknown(m)
}
var xxx_messageInfo_WalletStatus proto.InternalMessageInfo
func (m *WalletStatus) GetIsWalletLock() bool {
if m != nil {
return m.IsWalletLock
}
return false
}
func (m *WalletStatus) GetIsAutoMining() bool {
if m != nil {
return m.IsAutoMining
}
return false
}
func (m *WalletStatus) GetIsHasSeed() bool {
if m != nil {
return m.IsHasSeed
}
return false
}
func (m *WalletStatus) GetIsTicketLock() bool {
if m != nil {
return m.IsTicketLock
}
return false
}
type WalletAccounts struct {
Wallets []*WalletAccount `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WalletAccounts) Reset() { *m = WalletAccounts{} }
func (m *WalletAccounts) String() string { return proto.CompactTextString(m) }
func (*WalletAccounts) ProtoMessage() {}
func (*WalletAccounts) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{5}
}
func (m *WalletAccounts) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletAccounts.Unmarshal(m, b)
}
func (m *WalletAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletAccounts.Marshal(b, m, deterministic)
}
func (m *WalletAccounts) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletAccounts.Merge(m, src)
}
func (m *WalletAccounts) XXX_Size() int {
return xxx_messageInfo_WalletAccounts.Size(m)
}
func (m *WalletAccounts) XXX_DiscardUnknown() {
xxx_messageInfo_WalletAccounts.DiscardUnknown(m)
}
var xxx_messageInfo_WalletAccounts proto.InternalMessageInfo
func (m *WalletAccounts) GetWallets() []*WalletAccount {
if m != nil {
return m.Wallets
}
return nil
}
type WalletAccount struct {
Acc *Account `protobuf:"bytes,1,opt,name=acc,proto3" json:"acc,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WalletAccount) Reset() { *m = WalletAccount{} }
func (m *WalletAccount) String() string { return proto.CompactTextString(m) }
func (*WalletAccount) ProtoMessage() {}
func (*WalletAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{6}
}
func (m *WalletAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletAccount.Unmarshal(m, b)
}
func (m *WalletAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletAccount.Marshal(b, m, deterministic)
}
func (m *WalletAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletAccount.Merge(m, src)
}
func (m *WalletAccount) XXX_Size() int {
return xxx_messageInfo_WalletAccount.Size(m)
}
func (m *WalletAccount) XXX_DiscardUnknown() {
xxx_messageInfo_WalletAccount.DiscardUnknown(m)
}
var xxx_messageInfo_WalletAccount proto.InternalMessageInfo
func (m *WalletAccount) GetAcc() *Account {
if m != nil {
return m.Acc
}
return nil
}
func (m *WalletAccount) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
//钱包解锁
// passwd : 钱包密码
// timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定
// walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包
type WalletUnLock struct {
Passwd string `protobuf:"bytes,1,opt,name=passwd,proto3" json:"passwd,omitempty"`
Timeout int64 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
WalletOrTicket bool `protobuf:"varint,3,opt,name=walletOrTicket,proto3" json:"walletOrTicket,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WalletUnLock) Reset() { *m = WalletUnLock{} }
func (m *WalletUnLock) String() string { return proto.CompactTextString(m) }
func (*WalletUnLock) ProtoMessage() {}
func (*WalletUnLock) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{7}
}
func (m *WalletUnLock) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WalletUnLock.Unmarshal(m, b)
}
func (m *WalletUnLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WalletUnLock.Marshal(b, m, deterministic)
}
func (m *WalletUnLock) XXX_Merge(src proto.Message) {
xxx_messageInfo_WalletUnLock.Merge(m, src)
}
func (m *WalletUnLock) XXX_Size() int {
return xxx_messageInfo_WalletUnLock.Size(m)
}
func (m *WalletUnLock) XXX_DiscardUnknown() {
xxx_messageInfo_WalletUnLock.DiscardUnknown(m)
}
var xxx_messageInfo_WalletUnLock proto.InternalMessageInfo
func (m *WalletUnLock) GetPasswd() string {
if m != nil {
return m.Passwd
}
return ""
}
func (m *WalletUnLock) GetTimeout() int64 {
if m != nil {
return m.Timeout
}
return 0
}
func (m *WalletUnLock) GetWalletOrTicket() bool {
if m != nil {
return m.WalletOrTicket
}
return false
}
type GenSeedLang struct {
Lang int32 `protobuf:"varint,1,opt,name=lang,proto3" json:"lang,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GenSeedLang) Reset() { *m = GenSeedLang{} }
func (m *GenSeedLang) String() string { return proto.CompactTextString(m) }
func (*GenSeedLang) ProtoMessage() {}
func (*GenSeedLang) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{8}
}
func (m *GenSeedLang) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GenSeedLang.Unmarshal(m, b)
}
func (m *GenSeedLang) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GenSeedLang.Marshal(b, m, deterministic)
}
func (m *GenSeedLang) XXX_Merge(src proto.Message) {
xxx_messageInfo_GenSeedLang.Merge(m, src)
}
func (m *GenSeedLang) XXX_Size() int {
return xxx_messageInfo_GenSeedLang.Size(m)
}
func (m *GenSeedLang) XXX_DiscardUnknown() {
xxx_messageInfo_GenSeedLang.DiscardUnknown(m)
}
var xxx_messageInfo_GenSeedLang proto.InternalMessageInfo
func (m *GenSeedLang) GetLang() int32 {
if m != nil {
return m.Lang
}
return 0
}
type GetSeedByPw struct {
Passwd string `protobuf:"bytes,1,opt,name=passwd,proto3" json:"passwd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetSeedByPw) Reset() { *m = GetSeedByPw{} }
func (m *GetSeedByPw) String() string { return proto.CompactTextString(m) }
func (*GetSeedByPw) ProtoMessage() {}
func (*GetSeedByPw) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{9}
}
func (m *GetSeedByPw) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetSeedByPw.Unmarshal(m, b)
}
func (m *GetSeedByPw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetSeedByPw.Marshal(b, m, deterministic)
}
func (m *GetSeedByPw) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetSeedByPw.Merge(m, src)
}
func (m *GetSeedByPw) XXX_Size() int {
return xxx_messageInfo_GetSeedByPw.Size(m)
}
func (m *GetSeedByPw) XXX_DiscardUnknown() {
xxx_messageInfo_GetSeedByPw.DiscardUnknown(m)
}
var xxx_messageInfo_GetSeedByPw proto.InternalMessageInfo
func (m *GetSeedByPw) GetPasswd() string {
if m != nil {
return m.Passwd
}
return ""
}
//存储钱包的种子
// seed : 钱包种子
// passwd :钱包密码
type SaveSeedByPw struct {
Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
Passwd string `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SaveSeedByPw) Reset() { *m = SaveSeedByPw{} }
func (m *SaveSeedByPw) String() string { return proto.CompactTextString(m) }
func (*SaveSeedByPw) ProtoMessage() {}
func (*SaveSeedByPw) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{10}
}
func (m *SaveSeedByPw) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SaveSeedByPw.Unmarshal(m, b)
}
func (m *SaveSeedByPw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SaveSeedByPw.Marshal(b, m, deterministic)
}
func (m *SaveSeedByPw) XXX_Merge(src proto.Message) {
xxx_messageInfo_SaveSeedByPw.Merge(m, src)
}
func (m *SaveSeedByPw) XXX_Size() int {
return xxx_messageInfo_SaveSeedByPw.Size(m)
}
func (m *SaveSeedByPw) XXX_DiscardUnknown() {
xxx_messageInfo_SaveSeedByPw.DiscardUnknown(m)
}
var xxx_messageInfo_SaveSeedByPw proto.InternalMessageInfo
func (m *SaveSeedByPw) GetSeed() string {
if m != nil {
return m.Seed
}
return ""
}
func (m *SaveSeedByPw) GetPasswd() string {
if m != nil {
return m.Passwd
}
return ""
}
type ReplySeed struct {
Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplySeed) Reset() { *m = ReplySeed{} }
func (m *ReplySeed) String() string { return proto.CompactTextString(m) }
func (*ReplySeed) ProtoMessage() {}
func (*ReplySeed) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{11}
}
func (m *ReplySeed) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplySeed.Unmarshal(m, b)
}
func (m *ReplySeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplySeed.Marshal(b, m, deterministic)
}
func (m *ReplySeed) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplySeed.Merge(m, src)
}
func (m *ReplySeed) XXX_Size() int {
return xxx_messageInfo_ReplySeed.Size(m)
}
func (m *ReplySeed) XXX_DiscardUnknown() {
xxx_messageInfo_ReplySeed.DiscardUnknown(m)
}
var xxx_messageInfo_ReplySeed proto.InternalMessageInfo
func (m *ReplySeed) GetSeed() string {
if m != nil {
return m.Seed
}
return ""
}
type ReqWalletSetPasswd struct {
OldPass string `protobuf:"bytes,1,opt,name=oldPass,proto3" json:"oldPass,omitempty"`
NewPass string `protobuf:"bytes,2,opt,name=newPass,proto3" json:"newPass,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqWalletSetPasswd) Reset() { *m = ReqWalletSetPasswd{} }
func (m *ReqWalletSetPasswd) String() string { return proto.CompactTextString(m) }
func (*ReqWalletSetPasswd) ProtoMessage() {}
func (*ReqWalletSetPasswd) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{12}
}
func (m *ReqWalletSetPasswd) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletSetPasswd.Unmarshal(m, b)
}
func (m *ReqWalletSetPasswd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletSetPasswd.Marshal(b, m, deterministic)
}
func (m *ReqWalletSetPasswd) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletSetPasswd.Merge(m, src)
}
func (m *ReqWalletSetPasswd) XXX_Size() int {
return xxx_messageInfo_ReqWalletSetPasswd.Size(m)
}
func (m *ReqWalletSetPasswd) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletSetPasswd.DiscardUnknown(m)
}
var xxx_messageInfo_ReqWalletSetPasswd proto.InternalMessageInfo
func (m *ReqWalletSetPasswd) GetOldPass() string {
if m != nil {
return m.OldPass
}
return ""
}
func (m *ReqWalletSetPasswd) GetNewPass() string {
if m != nil {
return m.NewPass
}
return ""
}
type ReqNewAccount struct {
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqNewAccount) Reset() { *m = ReqNewAccount{} }
func (m *ReqNewAccount) String() string { return proto.CompactTextString(m) }
func (*ReqNewAccount) ProtoMessage() {}
func (*ReqNewAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{13}
}
func (m *ReqNewAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqNewAccount.Unmarshal(m, b)
}
func (m *ReqNewAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqNewAccount.Marshal(b, m, deterministic)
}
func (m *ReqNewAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqNewAccount.Merge(m, src)
}
func (m *ReqNewAccount) XXX_Size() int {
return xxx_messageInfo_ReqNewAccount.Size(m)
}
func (m *ReqNewAccount) XXX_DiscardUnknown() {
xxx_messageInfo_ReqNewAccount.DiscardUnknown(m)
}
var xxx_messageInfo_ReqNewAccount proto.InternalMessageInfo
func (m *ReqNewAccount) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
//根据label获取账户地址
type ReqGetAccount struct {
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqGetAccount) Reset() { *m = ReqGetAccount{} }
func (m *ReqGetAccount) String() string { return proto.CompactTextString(m) }
func (*ReqGetAccount) ProtoMessage() {}
func (*ReqGetAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{14}
}
func (m *ReqGetAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqGetAccount.Unmarshal(m, b)
}
func (m *ReqGetAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqGetAccount.Marshal(b, m, deterministic)
}
func (m *ReqGetAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqGetAccount.Merge(m, src)
}
func (m *ReqGetAccount) XXX_Size() int {
return xxx_messageInfo_ReqGetAccount.Size(m)
}
func (m *ReqGetAccount) XXX_DiscardUnknown() {
xxx_messageInfo_ReqGetAccount.DiscardUnknown(m)
}
var xxx_messageInfo_ReqGetAccount proto.InternalMessageInfo
func (m *ReqGetAccount) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
//获取钱包交易的详细信息
// fromTx : []byte( Sprintf("%018d", height*100000 + index),
// 表示从高度 height 中的 index 开始获取交易列表;
// 第一次传参为空,获取最新的交易。)
// count :获取交易列表的个数。
// direction :查找方式;0,上一页;1,下一页。
type ReqWalletTransactionList struct {
FromTx []byte `protobuf:"bytes,1,opt,name=fromTx,proto3" json:"fromTx,omitempty"`
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
Direction int32 `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqWalletTransactionList) Reset() { *m = ReqWalletTransactionList{} }
func (m *ReqWalletTransactionList) String() string { return proto.CompactTextString(m) }
func (*ReqWalletTransactionList) ProtoMessage() {}
func (*ReqWalletTransactionList) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{15}
}
func (m *ReqWalletTransactionList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletTransactionList.Unmarshal(m, b)
}
func (m *ReqWalletTransactionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletTransactionList.Marshal(b, m, deterministic)
}
func (m *ReqWalletTransactionList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletTransactionList.Merge(m, src)
}
func (m *ReqWalletTransactionList) XXX_Size() int {
return xxx_messageInfo_ReqWalletTransactionList.Size(m)
}
func (m *ReqWalletTransactionList) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletTransactionList.DiscardUnknown(m)
}
var xxx_messageInfo_ReqWalletTransactionList proto.InternalMessageInfo
func (m *ReqWalletTransactionList) GetFromTx() []byte {
if m != nil {
return m.FromTx
}
return nil
}
func (m *ReqWalletTransactionList) GetCount() int32 {
if m != nil {
return m.Count
}
return 0
}
func (m *ReqWalletTransactionList) GetDirection() int32 {
if m != nil {
return m.Direction
}
return 0
}
type ReqWalletImportPrivkey struct {
// bitcoin 的私钥格式
Privkey string `protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqWalletImportPrivkey) Reset() { *m = ReqWalletImportPrivkey{} }
func (m *ReqWalletImportPrivkey) String() string { return proto.CompactTextString(m) }
func (*ReqWalletImportPrivkey) ProtoMessage() {}
func (*ReqWalletImportPrivkey) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{16}
}
func (m *ReqWalletImportPrivkey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletImportPrivkey.Unmarshal(m, b)
}
func (m *ReqWalletImportPrivkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletImportPrivkey.Marshal(b, m, deterministic)
}
func (m *ReqWalletImportPrivkey) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletImportPrivkey.Merge(m, src)
}
func (m *ReqWalletImportPrivkey) XXX_Size() int {
return xxx_messageInfo_ReqWalletImportPrivkey.Size(m)
}
func (m *ReqWalletImportPrivkey) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletImportPrivkey.DiscardUnknown(m)
}
var xxx_messageInfo_ReqWalletImportPrivkey proto.InternalMessageInfo
func (m *ReqWalletImportPrivkey) GetPrivkey() string {
if m != nil {
return m.Privkey
}
return ""
}
func (m *ReqWalletImportPrivkey) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
//发送交易
// from : 打出地址
// to :接受地址
// amount : 转账额度
// note :转账备注
type ReqWalletSendToAddress struct {
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
IsToken bool `protobuf:"varint,5,opt,name=isToken,proto3" json:"isToken,omitempty"`
TokenSymbol string `protobuf:"bytes,6,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqWalletSendToAddress) Reset() { *m = ReqWalletSendToAddress{} }
func (m *ReqWalletSendToAddress) String() string { return proto.CompactTextString(m) }
func (*ReqWalletSendToAddress) ProtoMessage() {}
func (*ReqWalletSendToAddress) Descriptor() ([]byte, []int) {
return fileDescriptor_b88fd140af4deb6f, []int{17}
}
func (m *ReqWalletSendToAddress) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqWalletSendToAddress.Unmarshal(m, b)
}
func (m *ReqWalletSendToAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqWalletSendToAddress.Marshal(b, m, deterministic)
}
func (m *ReqWalletSendToAddress) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqWalletSendToAddress.Merge(m, src)
}
func (m *ReqWalletSendToAddress) XXX_Size() int {
return xxx_messageInfo_ReqWalletSendToAddress.Size(m)
}
func (m *ReqWalletSendToAddress) XXX_DiscardUnknown() {
xxx_messageInfo_ReqWalletSendToAddress.DiscardUnknown(m)
}
var xxx_messageInfo_ReqWalletSendToAddress proto.InternalMessageInfo
func (m *ReqWalletSendToAddress) GetFrom() string {
if m != nil {
return m.From
}
return ""
}
func (m *ReqWalletSendToAddress) GetTo() string {
if m != nil {
return m.To
}
return ""
}
func (m *ReqWalletSendToAddress) GetAmount() int64 {
if m != nil {
return m.Amount
}
return 0
}
func (m *ReqWalletSendToAddress) GetNote() string {
if m != nil {
return m.Note
}
return ""
}
func (m *ReqWalletSendToAddress) GetIsToken() bool {
if m != nil {
return m.IsToken
}
return false
}
func (m *ReqWalletSendToAddress) GetTokenSymbol() string {
if m != nil {
return m.TokenSymbol
}
return ""
}