@kimafinance/kima-transaction-api 1.0.21-beta.1 → 1.0.23-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/kima/tx.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
4
 
5
- export const protobufPackage = "kimablockchain.kima";
5
+ export const protobufPackage = "kimablockchain.transaction";
6
6
 
7
7
  export interface MsgRequestTransaction {
8
8
  creator: string;
@@ -21,98 +21,45 @@ export interface MsgRequestTransactionResponse {
21
21
  txId: number;
22
22
  }
23
23
 
24
- export interface MsgApproveTransaction {
24
+ export interface MsgFinalizeTransaction {
25
25
  creator: string;
26
26
  txId: number;
27
- txTHash: string;
27
+ txHash: string;
28
28
  success: string;
29
29
  signedKey: string;
30
30
  }
31
31
 
32
- export interface MsgApproveTransactionResponse {
33
- code: string;
34
- msg: string;
35
- }
36
-
37
- export interface MsgObservationVote {
38
- creator: string;
39
- txHash: string;
40
- chainId: string;
41
- from: string;
42
- to: string;
43
- amount: string;
44
- payType: string;
45
- kimaTxID: number;
46
- succeed: string;
47
- }
48
-
49
- export interface MsgObservationVoteResponse {
50
- code: string;
51
- msg: string;
52
- }
53
-
54
- export interface MsgUpdateBalance {
55
- creator: string;
56
- chainId: string;
57
- balance: string;
58
- decimal: string;
59
- }
60
-
61
- export interface MsgUpdateBalanceResponse {
32
+ export interface MsgFinalizeTransactionResponse {
62
33
  code: string;
63
34
  msg: string;
64
35
  }
65
36
 
66
- export interface MsgKeysignVote {
37
+ export interface MsgFinalizeProvisionTransaction {
67
38
  creator: string;
39
+ txId: number;
68
40
  txHash: string;
69
- pubKey: string;
70
- }
71
-
72
- export interface MsgKeysignVoteResponse {
73
- code: string;
74
- msg: string;
75
- }
76
-
77
- export interface MsgUpdateGasFee {
78
- creator: string;
79
- chainId: string;
80
- fee: string;
41
+ success: string;
42
+ signedKey: string;
81
43
  }
82
44
 
83
- export interface MsgUpdateGasFeeResponse {
45
+ export interface MsgFinalizeProvisionTransactionResponse {
84
46
  code: string;
85
47
  msg: string;
86
48
  }
87
49
 
88
- export interface MsgProvisionTransaction {
50
+ export interface MsgRequestProvisionTransaction {
89
51
  creator: string;
90
- fromChain: string;
52
+ chain: string;
91
53
  fromAddress: string;
92
54
  symbol: string;
93
- tokenAddr: string;
94
- amount: string;
95
- options: string;
96
- }
97
-
98
- export interface MsgProvisionTransactionResponse {
99
- code: string;
100
- msg: string;
101
- }
102
-
103
- export interface MsgDrainTransaction {
104
- creator: string;
105
- fromChain: string;
106
- toChain: string;
107
- toAddress: string;
108
- nftAddr: string;
109
55
  amount: string;
110
56
  options: string;
111
57
  }
112
58
 
113
- export interface MsgDrainTransactionResponse {
59
+ export interface MsgRequestProvisionTransactionResponse {
114
60
  code: string;
115
61
  msg: string;
62
+ txId: number;
116
63
  }
117
64
 
118
65
  export interface MsgCancelTransaction {
@@ -125,136 +72,12 @@ export interface MsgCancelTransactionResponse {
125
72
  msg: string;
126
73
  }
127
74
 
128
- export interface MsgAddWhitelisted {
129
- creator: string;
130
- address: string;
131
- }
132
-
133
- export interface MsgAddWhitelistedResponse {
134
- code: string;
135
- msg: string;
136
- }
137
-
138
- export interface MsgSetAdmin {
139
- creator: string;
140
- }
141
-
142
- export interface MsgSetAdminResponse {
143
- code: string;
144
- msg: string;
145
- }
146
-
147
- export interface MsgAddPubkey {
148
- creator: string;
149
- pubkey: string;
150
- }
151
-
152
- export interface MsgAddPubkeyResponse {
153
- code: string;
154
- msg: string;
155
- }
156
-
157
- export interface MsgUpdatePubkeys {
158
- creator: string;
159
- pubkeys: string[];
160
- }
161
-
162
- export interface MsgUpdatePubkeysResponse {
163
- code: string;
164
- msg: string;
165
- }
166
-
167
- export interface MsgUpdateTssPubkey {
168
- creator: string;
169
- tssPubkey: string;
170
- ecdsa: string;
171
- eddsa: string;
172
- reserved: string;
173
- }
174
-
175
- export interface MsgUpdateTssPubkeyResponse {
176
- code: string;
177
- msg: string;
178
- }
179
-
180
- export interface MsgRemoveWhitelisted {
181
- creator: string;
182
- address: string;
183
- }
184
-
185
- export interface MsgRemoveWhitelistedResponse {
186
- code: string;
187
- msg: string;
188
- }
189
-
190
- export interface MsgClearTssInfo {
191
- creator: string;
192
- }
193
-
194
- export interface MsgClearTssInfoResponse {
195
- code: string;
196
- msg: string;
197
- }
198
-
199
- export interface MsgAddChain {
200
- creator: string;
201
- name: string;
202
- symbol: string;
203
- tokens: string[];
204
- }
205
-
206
- export interface MsgAddChainResponse {
207
- code: string;
208
- msg: string;
209
- }
210
-
211
- export interface MsgUpdateTssHash {
212
- creator: string;
213
- txId: number;
214
- tssPullHash: string;
215
- }
216
-
217
- export interface MsgUpdateTssHashResponse {
218
- code: string;
219
- msg: string;
220
- }
221
-
222
- export interface MsgUpdateChainStatus {
223
- creator: string;
224
- chainSymbol: string;
225
- disabled: boolean;
226
- }
227
-
228
- export interface MsgUpdateChainStatusResponse {
229
- code: string;
230
- msg: string;
231
- }
232
-
233
- export interface MsgAddToken {
234
- creator: string;
235
- chainSymbol: string;
236
- tokenSymbol: string;
237
- }
238
-
239
- export interface MsgAddTokenResponse {
240
- code: string;
241
- msg: string;
242
- }
243
-
244
- export interface MsgUpdateTssStatus {
245
- creator: string;
246
- status: string;
247
- }
248
-
249
- export interface MsgUpdateTssStatusResponse {
250
- code: string;
251
- msg: string;
252
- }
253
-
254
75
  export interface MsgSetTxHash {
255
76
  creator: string;
256
77
  txId: number;
257
78
  txHash: string;
79
+ /** request_transaction, request_provision_transaction, request_drain_transaction */
80
+ txType: string;
258
81
  }
259
82
 
260
83
  export interface MsgSetTxHashResponse {
@@ -265,69 +88,39 @@ export interface MsgSetTxHashResponse {
265
88
  export interface MsgSetTxProcess {
266
89
  creator: string;
267
90
  txId: number;
268
- timestamp: string;
91
+ timestamp: number;
269
92
  msgId: string;
93
+ /** request_transaction, request_provision_transaction, request_drain_transaction */
94
+ txType: string;
270
95
  }
271
96
 
272
97
  export interface MsgSetTxProcessResponse {
273
98
  }
274
99
 
275
- export interface MsgFinalizeTransaction {
100
+ export interface MsgRequestDrainTransaction {
276
101
  creator: string;
277
- txId: number;
278
- txHash: string;
279
- success: string;
280
- signedKey: string;
102
+ toChain: string;
103
+ toAddress: string;
104
+ symbol: string;
105
+ amount: string;
106
+ options: string;
281
107
  }
282
108
 
283
- export interface MsgFinalizeTransactionResponse {
109
+ export interface MsgRequestDrainTransactionResponse {
284
110
  code: string;
285
111
  msg: string;
112
+ txId: number;
286
113
  }
287
114
 
288
- export interface MsgWithdrawPool {
289
- creator: string;
290
- chain: string;
291
- targetAddress: string;
292
- amount: string;
293
- }
294
-
295
- export interface MsgWithdrawPoolResponse {
296
- }
297
-
298
- export interface MsgUpdateToken {
299
- creator: string;
300
- chain: string;
301
- address: string;
302
- }
303
-
304
- export interface MsgUpdateTokenResponse {
305
- }
306
-
307
- export interface MsgUpdatePoolRequest {
308
- creator: string;
309
- reqId: number;
310
- processed: string;
311
- }
312
-
313
- export interface MsgUpdatePoolRequestResponse {
314
- }
315
-
316
- export interface MsgLeaderIsReady {
317
- creator: string;
318
- msgId: string;
319
- peerId: string;
320
- }
321
-
322
- export interface MsgLeaderIsReadyResponse {
323
- }
324
-
325
- export interface MsgAddPubkeyEddsa {
115
+ export interface MsgFinalizeDrainTransaction {
326
116
  creator: string;
327
- pubkey: string;
117
+ txId: number;
118
+ txHash: string;
119
+ success: string;
120
+ signedKey: string;
328
121
  }
329
122
 
330
- export interface MsgAddPubkeyEddsaResponse {
123
+ export interface MsgFinalizeDrainTransactionResponse {
331
124
  code: string;
332
125
  msg: string;
333
126
  }
@@ -522,20 +315,20 @@ export const MsgRequestTransactionResponse = {
522
315
  },
523
316
  };
524
317
 
525
- function createBaseMsgApproveTransaction(): MsgApproveTransaction {
526
- return { creator: "", txId: 0, txTHash: "", success: "", signedKey: "" };
318
+ function createBaseMsgFinalizeTransaction(): MsgFinalizeTransaction {
319
+ return { creator: "", txId: 0, txHash: "", success: "", signedKey: "" };
527
320
  }
528
321
 
529
- export const MsgApproveTransaction = {
530
- encode(message: MsgApproveTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
322
+ export const MsgFinalizeTransaction = {
323
+ encode(message: MsgFinalizeTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
531
324
  if (message.creator !== "") {
532
325
  writer.uint32(10).string(message.creator);
533
326
  }
534
327
  if (message.txId !== 0) {
535
328
  writer.uint32(16).uint64(message.txId);
536
329
  }
537
- if (message.txTHash !== "") {
538
- writer.uint32(26).string(message.txTHash);
330
+ if (message.txHash !== "") {
331
+ writer.uint32(26).string(message.txHash);
539
332
  }
540
333
  if (message.success !== "") {
541
334
  writer.uint32(34).string(message.success);
@@ -546,10 +339,10 @@ export const MsgApproveTransaction = {
546
339
  return writer;
547
340
  },
548
341
 
549
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgApproveTransaction {
342
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeTransaction {
550
343
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
551
344
  let end = length === undefined ? reader.len : reader.pos + length;
552
- const message = createBaseMsgApproveTransaction();
345
+ const message = createBaseMsgFinalizeTransaction();
553
346
  while (reader.pos < end) {
554
347
  const tag = reader.uint32();
555
348
  switch (tag >>> 3) {
@@ -560,7 +353,7 @@ export const MsgApproveTransaction = {
560
353
  message.txId = longToNumber(reader.uint64() as Long);
561
354
  break;
562
355
  case 3:
563
- message.txTHash = reader.string();
356
+ message.txHash = reader.string();
564
357
  break;
565
358
  case 4:
566
359
  message.success = reader.string();
@@ -576,43 +369,43 @@ export const MsgApproveTransaction = {
576
369
  return message;
577
370
  },
578
371
 
579
- fromJSON(object: any): MsgApproveTransaction {
372
+ fromJSON(object: any): MsgFinalizeTransaction {
580
373
  return {
581
374
  creator: isSet(object.creator) ? String(object.creator) : "",
582
375
  txId: isSet(object.txId) ? Number(object.txId) : 0,
583
- txTHash: isSet(object.txTHash) ? String(object.txTHash) : "",
376
+ txHash: isSet(object.txHash) ? String(object.txHash) : "",
584
377
  success: isSet(object.success) ? String(object.success) : "",
585
378
  signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
586
379
  };
587
380
  },
588
381
 
589
- toJSON(message: MsgApproveTransaction): unknown {
382
+ toJSON(message: MsgFinalizeTransaction): unknown {
590
383
  const obj: any = {};
591
384
  message.creator !== undefined && (obj.creator = message.creator);
592
385
  message.txId !== undefined && (obj.txId = Math.round(message.txId));
593
- message.txTHash !== undefined && (obj.txTHash = message.txTHash);
386
+ message.txHash !== undefined && (obj.txHash = message.txHash);
594
387
  message.success !== undefined && (obj.success = message.success);
595
388
  message.signedKey !== undefined && (obj.signedKey = message.signedKey);
596
389
  return obj;
597
390
  },
598
391
 
599
- fromPartial<I extends Exact<DeepPartial<MsgApproveTransaction>, I>>(object: I): MsgApproveTransaction {
600
- const message = createBaseMsgApproveTransaction();
392
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeTransaction>, I>>(object: I): MsgFinalizeTransaction {
393
+ const message = createBaseMsgFinalizeTransaction();
601
394
  message.creator = object.creator ?? "";
602
395
  message.txId = object.txId ?? 0;
603
- message.txTHash = object.txTHash ?? "";
396
+ message.txHash = object.txHash ?? "";
604
397
  message.success = object.success ?? "";
605
398
  message.signedKey = object.signedKey ?? "";
606
399
  return message;
607
400
  },
608
401
  };
609
402
 
610
- function createBaseMsgApproveTransactionResponse(): MsgApproveTransactionResponse {
403
+ function createBaseMsgFinalizeTransactionResponse(): MsgFinalizeTransactionResponse {
611
404
  return { code: "", msg: "" };
612
405
  }
613
406
 
614
- export const MsgApproveTransactionResponse = {
615
- encode(message: MsgApproveTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
407
+ export const MsgFinalizeTransactionResponse = {
408
+ encode(message: MsgFinalizeTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
616
409
  if (message.code !== "") {
617
410
  writer.uint32(10).string(message.code);
618
411
  }
@@ -622,10 +415,10 @@ export const MsgApproveTransactionResponse = {
622
415
  return writer;
623
416
  },
624
417
 
625
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgApproveTransactionResponse {
418
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeTransactionResponse {
626
419
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
627
420
  let end = length === undefined ? reader.len : reader.pos + length;
628
- const message = createBaseMsgApproveTransactionResponse();
421
+ const message = createBaseMsgFinalizeTransactionResponse();
629
422
  while (reader.pos < end) {
630
423
  const tag = reader.uint32();
631
424
  switch (tag >>> 3) {
@@ -643,67 +436,55 @@ export const MsgApproveTransactionResponse = {
643
436
  return message;
644
437
  },
645
438
 
646
- fromJSON(object: any): MsgApproveTransactionResponse {
439
+ fromJSON(object: any): MsgFinalizeTransactionResponse {
647
440
  return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
648
441
  },
649
442
 
650
- toJSON(message: MsgApproveTransactionResponse): unknown {
443
+ toJSON(message: MsgFinalizeTransactionResponse): unknown {
651
444
  const obj: any = {};
652
445
  message.code !== undefined && (obj.code = message.code);
653
446
  message.msg !== undefined && (obj.msg = message.msg);
654
447
  return obj;
655
448
  },
656
449
 
657
- fromPartial<I extends Exact<DeepPartial<MsgApproveTransactionResponse>, I>>(
450
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeTransactionResponse>, I>>(
658
451
  object: I,
659
- ): MsgApproveTransactionResponse {
660
- const message = createBaseMsgApproveTransactionResponse();
452
+ ): MsgFinalizeTransactionResponse {
453
+ const message = createBaseMsgFinalizeTransactionResponse();
661
454
  message.code = object.code ?? "";
662
455
  message.msg = object.msg ?? "";
663
456
  return message;
664
457
  },
665
458
  };
666
459
 
667
- function createBaseMsgObservationVote(): MsgObservationVote {
668
- return { creator: "", txHash: "", chainId: "", from: "", to: "", amount: "", payType: "", kimaTxID: 0, succeed: "" };
460
+ function createBaseMsgFinalizeProvisionTransaction(): MsgFinalizeProvisionTransaction {
461
+ return { creator: "", txId: 0, txHash: "", success: "", signedKey: "" };
669
462
  }
670
463
 
671
- export const MsgObservationVote = {
672
- encode(message: MsgObservationVote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
464
+ export const MsgFinalizeProvisionTransaction = {
465
+ encode(message: MsgFinalizeProvisionTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
673
466
  if (message.creator !== "") {
674
467
  writer.uint32(10).string(message.creator);
675
468
  }
676
- if (message.txHash !== "") {
677
- writer.uint32(18).string(message.txHash);
678
- }
679
- if (message.chainId !== "") {
680
- writer.uint32(26).string(message.chainId);
681
- }
682
- if (message.from !== "") {
683
- writer.uint32(34).string(message.from);
684
- }
685
- if (message.to !== "") {
686
- writer.uint32(42).string(message.to);
687
- }
688
- if (message.amount !== "") {
689
- writer.uint32(50).string(message.amount);
469
+ if (message.txId !== 0) {
470
+ writer.uint32(16).uint64(message.txId);
690
471
  }
691
- if (message.payType !== "") {
692
- writer.uint32(58).string(message.payType);
472
+ if (message.txHash !== "") {
473
+ writer.uint32(26).string(message.txHash);
693
474
  }
694
- if (message.kimaTxID !== 0) {
695
- writer.uint32(64).uint64(message.kimaTxID);
475
+ if (message.success !== "") {
476
+ writer.uint32(34).string(message.success);
696
477
  }
697
- if (message.succeed !== "") {
698
- writer.uint32(74).string(message.succeed);
478
+ if (message.signedKey !== "") {
479
+ writer.uint32(42).string(message.signedKey);
699
480
  }
700
481
  return writer;
701
482
  },
702
483
 
703
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgObservationVote {
484
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeProvisionTransaction {
704
485
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
705
486
  let end = length === undefined ? reader.len : reader.pos + length;
706
- const message = createBaseMsgObservationVote();
487
+ const message = createBaseMsgFinalizeProvisionTransaction();
707
488
  while (reader.pos < end) {
708
489
  const tag = reader.uint32();
709
490
  switch (tag >>> 3) {
@@ -711,28 +492,16 @@ export const MsgObservationVote = {
711
492
  message.creator = reader.string();
712
493
  break;
713
494
  case 2:
714
- message.txHash = reader.string();
495
+ message.txId = longToNumber(reader.uint64() as Long);
715
496
  break;
716
497
  case 3:
717
- message.chainId = reader.string();
498
+ message.txHash = reader.string();
718
499
  break;
719
500
  case 4:
720
- message.from = reader.string();
501
+ message.success = reader.string();
721
502
  break;
722
503
  case 5:
723
- message.to = reader.string();
724
- break;
725
- case 6:
726
- message.amount = reader.string();
727
- break;
728
- case 7:
729
- message.payType = reader.string();
730
- break;
731
- case 8:
732
- message.kimaTxID = longToNumber(reader.uint64() as Long);
733
- break;
734
- case 9:
735
- message.succeed = reader.string();
504
+ message.signedKey = reader.string();
736
505
  break;
737
506
  default:
738
507
  reader.skipType(tag & 7);
@@ -742,55 +511,45 @@ export const MsgObservationVote = {
742
511
  return message;
743
512
  },
744
513
 
745
- fromJSON(object: any): MsgObservationVote {
514
+ fromJSON(object: any): MsgFinalizeProvisionTransaction {
746
515
  return {
747
516
  creator: isSet(object.creator) ? String(object.creator) : "",
517
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
748
518
  txHash: isSet(object.txHash) ? String(object.txHash) : "",
749
- chainId: isSet(object.chainId) ? String(object.chainId) : "",
750
- from: isSet(object.from) ? String(object.from) : "",
751
- to: isSet(object.to) ? String(object.to) : "",
752
- amount: isSet(object.amount) ? String(object.amount) : "",
753
- payType: isSet(object.payType) ? String(object.payType) : "",
754
- kimaTxID: isSet(object.kimaTxID) ? Number(object.kimaTxID) : 0,
755
- succeed: isSet(object.succeed) ? String(object.succeed) : "",
519
+ success: isSet(object.success) ? String(object.success) : "",
520
+ signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
756
521
  };
757
522
  },
758
523
 
759
- toJSON(message: MsgObservationVote): unknown {
524
+ toJSON(message: MsgFinalizeProvisionTransaction): unknown {
760
525
  const obj: any = {};
761
526
  message.creator !== undefined && (obj.creator = message.creator);
527
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
762
528
  message.txHash !== undefined && (obj.txHash = message.txHash);
763
- message.chainId !== undefined && (obj.chainId = message.chainId);
764
- message.from !== undefined && (obj.from = message.from);
765
- message.to !== undefined && (obj.to = message.to);
766
- message.amount !== undefined && (obj.amount = message.amount);
767
- message.payType !== undefined && (obj.payType = message.payType);
768
- message.kimaTxID !== undefined && (obj.kimaTxID = Math.round(message.kimaTxID));
769
- message.succeed !== undefined && (obj.succeed = message.succeed);
529
+ message.success !== undefined && (obj.success = message.success);
530
+ message.signedKey !== undefined && (obj.signedKey = message.signedKey);
770
531
  return obj;
771
532
  },
772
533
 
773
- fromPartial<I extends Exact<DeepPartial<MsgObservationVote>, I>>(object: I): MsgObservationVote {
774
- const message = createBaseMsgObservationVote();
534
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeProvisionTransaction>, I>>(
535
+ object: I,
536
+ ): MsgFinalizeProvisionTransaction {
537
+ const message = createBaseMsgFinalizeProvisionTransaction();
775
538
  message.creator = object.creator ?? "";
539
+ message.txId = object.txId ?? 0;
776
540
  message.txHash = object.txHash ?? "";
777
- message.chainId = object.chainId ?? "";
778
- message.from = object.from ?? "";
779
- message.to = object.to ?? "";
780
- message.amount = object.amount ?? "";
781
- message.payType = object.payType ?? "";
782
- message.kimaTxID = object.kimaTxID ?? 0;
783
- message.succeed = object.succeed ?? "";
541
+ message.success = object.success ?? "";
542
+ message.signedKey = object.signedKey ?? "";
784
543
  return message;
785
544
  },
786
545
  };
787
546
 
788
- function createBaseMsgObservationVoteResponse(): MsgObservationVoteResponse {
547
+ function createBaseMsgFinalizeProvisionTransactionResponse(): MsgFinalizeProvisionTransactionResponse {
789
548
  return { code: "", msg: "" };
790
549
  }
791
550
 
792
- export const MsgObservationVoteResponse = {
793
- encode(message: MsgObservationVoteResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
551
+ export const MsgFinalizeProvisionTransactionResponse = {
552
+ encode(message: MsgFinalizeProvisionTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
794
553
  if (message.code !== "") {
795
554
  writer.uint32(10).string(message.code);
796
555
  }
@@ -800,10 +559,10 @@ export const MsgObservationVoteResponse = {
800
559
  return writer;
801
560
  },
802
561
 
803
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgObservationVoteResponse {
562
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeProvisionTransactionResponse {
804
563
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
805
564
  let end = length === undefined ? reader.len : reader.pos + length;
806
- const message = createBaseMsgObservationVoteResponse();
565
+ const message = createBaseMsgFinalizeProvisionTransactionResponse();
807
566
  while (reader.pos < end) {
808
567
  const tag = reader.uint32();
809
568
  switch (tag >>> 3) {
@@ -821,50 +580,58 @@ export const MsgObservationVoteResponse = {
821
580
  return message;
822
581
  },
823
582
 
824
- fromJSON(object: any): MsgObservationVoteResponse {
583
+ fromJSON(object: any): MsgFinalizeProvisionTransactionResponse {
825
584
  return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
826
585
  },
827
586
 
828
- toJSON(message: MsgObservationVoteResponse): unknown {
587
+ toJSON(message: MsgFinalizeProvisionTransactionResponse): unknown {
829
588
  const obj: any = {};
830
589
  message.code !== undefined && (obj.code = message.code);
831
590
  message.msg !== undefined && (obj.msg = message.msg);
832
591
  return obj;
833
592
  },
834
593
 
835
- fromPartial<I extends Exact<DeepPartial<MsgObservationVoteResponse>, I>>(object: I): MsgObservationVoteResponse {
836
- const message = createBaseMsgObservationVoteResponse();
594
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeProvisionTransactionResponse>, I>>(
595
+ object: I,
596
+ ): MsgFinalizeProvisionTransactionResponse {
597
+ const message = createBaseMsgFinalizeProvisionTransactionResponse();
837
598
  message.code = object.code ?? "";
838
599
  message.msg = object.msg ?? "";
839
600
  return message;
840
601
  },
841
602
  };
842
603
 
843
- function createBaseMsgUpdateBalance(): MsgUpdateBalance {
844
- return { creator: "", chainId: "", balance: "", decimal: "" };
604
+ function createBaseMsgRequestProvisionTransaction(): MsgRequestProvisionTransaction {
605
+ return { creator: "", chain: "", fromAddress: "", symbol: "", amount: "", options: "" };
845
606
  }
846
607
 
847
- export const MsgUpdateBalance = {
848
- encode(message: MsgUpdateBalance, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
608
+ export const MsgRequestProvisionTransaction = {
609
+ encode(message: MsgRequestProvisionTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
849
610
  if (message.creator !== "") {
850
611
  writer.uint32(10).string(message.creator);
851
612
  }
852
- if (message.chainId !== "") {
853
- writer.uint32(18).string(message.chainId);
613
+ if (message.chain !== "") {
614
+ writer.uint32(18).string(message.chain);
615
+ }
616
+ if (message.fromAddress !== "") {
617
+ writer.uint32(26).string(message.fromAddress);
618
+ }
619
+ if (message.symbol !== "") {
620
+ writer.uint32(34).string(message.symbol);
854
621
  }
855
- if (message.balance !== "") {
856
- writer.uint32(26).string(message.balance);
622
+ if (message.amount !== "") {
623
+ writer.uint32(42).string(message.amount);
857
624
  }
858
- if (message.decimal !== "") {
859
- writer.uint32(34).string(message.decimal);
625
+ if (message.options !== "") {
626
+ writer.uint32(50).string(message.options);
860
627
  }
861
628
  return writer;
862
629
  },
863
630
 
864
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateBalance {
631
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestProvisionTransaction {
865
632
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
866
633
  let end = length === undefined ? reader.len : reader.pos + length;
867
- const message = createBaseMsgUpdateBalance();
634
+ const message = createBaseMsgRequestProvisionTransaction();
868
635
  while (reader.pos < end) {
869
636
  const tag = reader.uint32();
870
637
  switch (tag >>> 3) {
@@ -872,69 +639,86 @@ export const MsgUpdateBalance = {
872
639
  message.creator = reader.string();
873
640
  break;
874
641
  case 2:
875
- message.chainId = reader.string();
642
+ message.chain = reader.string();
876
643
  break;
877
644
  case 3:
878
- message.balance = reader.string();
645
+ message.fromAddress = reader.string();
879
646
  break;
880
647
  case 4:
881
- message.decimal = reader.string();
648
+ message.symbol = reader.string();
882
649
  break;
883
- default:
884
- reader.skipType(tag & 7);
650
+ case 5:
651
+ message.amount = reader.string();
885
652
  break;
886
- }
653
+ case 6:
654
+ message.options = reader.string();
655
+ break;
656
+ default:
657
+ reader.skipType(tag & 7);
658
+ break;
659
+ }
887
660
  }
888
661
  return message;
889
662
  },
890
663
 
891
- fromJSON(object: any): MsgUpdateBalance {
664
+ fromJSON(object: any): MsgRequestProvisionTransaction {
892
665
  return {
893
666
  creator: isSet(object.creator) ? String(object.creator) : "",
894
- chainId: isSet(object.chainId) ? String(object.chainId) : "",
895
- balance: isSet(object.balance) ? String(object.balance) : "",
896
- decimal: isSet(object.decimal) ? String(object.decimal) : "",
667
+ chain: isSet(object.chain) ? String(object.chain) : "",
668
+ fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "",
669
+ symbol: isSet(object.symbol) ? String(object.symbol) : "",
670
+ amount: isSet(object.amount) ? String(object.amount) : "",
671
+ options: isSet(object.options) ? String(object.options) : "",
897
672
  };
898
673
  },
899
674
 
900
- toJSON(message: MsgUpdateBalance): unknown {
675
+ toJSON(message: MsgRequestProvisionTransaction): unknown {
901
676
  const obj: any = {};
902
677
  message.creator !== undefined && (obj.creator = message.creator);
903
- message.chainId !== undefined && (obj.chainId = message.chainId);
904
- message.balance !== undefined && (obj.balance = message.balance);
905
- message.decimal !== undefined && (obj.decimal = message.decimal);
678
+ message.chain !== undefined && (obj.chain = message.chain);
679
+ message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress);
680
+ message.symbol !== undefined && (obj.symbol = message.symbol);
681
+ message.amount !== undefined && (obj.amount = message.amount);
682
+ message.options !== undefined && (obj.options = message.options);
906
683
  return obj;
907
684
  },
908
685
 
909
- fromPartial<I extends Exact<DeepPartial<MsgUpdateBalance>, I>>(object: I): MsgUpdateBalance {
910
- const message = createBaseMsgUpdateBalance();
686
+ fromPartial<I extends Exact<DeepPartial<MsgRequestProvisionTransaction>, I>>(
687
+ object: I,
688
+ ): MsgRequestProvisionTransaction {
689
+ const message = createBaseMsgRequestProvisionTransaction();
911
690
  message.creator = object.creator ?? "";
912
- message.chainId = object.chainId ?? "";
913
- message.balance = object.balance ?? "";
914
- message.decimal = object.decimal ?? "";
691
+ message.chain = object.chain ?? "";
692
+ message.fromAddress = object.fromAddress ?? "";
693
+ message.symbol = object.symbol ?? "";
694
+ message.amount = object.amount ?? "";
695
+ message.options = object.options ?? "";
915
696
  return message;
916
697
  },
917
698
  };
918
699
 
919
- function createBaseMsgUpdateBalanceResponse(): MsgUpdateBalanceResponse {
920
- return { code: "", msg: "" };
700
+ function createBaseMsgRequestProvisionTransactionResponse(): MsgRequestProvisionTransactionResponse {
701
+ return { code: "", msg: "", txId: 0 };
921
702
  }
922
703
 
923
- export const MsgUpdateBalanceResponse = {
924
- encode(message: MsgUpdateBalanceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
704
+ export const MsgRequestProvisionTransactionResponse = {
705
+ encode(message: MsgRequestProvisionTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
925
706
  if (message.code !== "") {
926
707
  writer.uint32(10).string(message.code);
927
708
  }
928
709
  if (message.msg !== "") {
929
710
  writer.uint32(18).string(message.msg);
930
711
  }
712
+ if (message.txId !== 0) {
713
+ writer.uint32(24).uint64(message.txId);
714
+ }
931
715
  return writer;
932
716
  },
933
717
 
934
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateBalanceResponse {
718
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestProvisionTransactionResponse {
935
719
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
936
720
  let end = length === undefined ? reader.len : reader.pos + length;
937
- const message = createBaseMsgUpdateBalanceResponse();
721
+ const message = createBaseMsgRequestProvisionTransactionResponse();
938
722
  while (reader.pos < end) {
939
723
  const tag = reader.uint32();
940
724
  switch (tag >>> 3) {
@@ -944,6 +728,9 @@ export const MsgUpdateBalanceResponse = {
944
728
  case 2:
945
729
  message.msg = reader.string();
946
730
  break;
731
+ case 3:
732
+ message.txId = longToNumber(reader.uint64() as Long);
733
+ break;
947
734
  default:
948
735
  reader.skipType(tag & 7);
949
736
  break;
@@ -952,47 +739,52 @@ export const MsgUpdateBalanceResponse = {
952
739
  return message;
953
740
  },
954
741
 
955
- fromJSON(object: any): MsgUpdateBalanceResponse {
956
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
742
+ fromJSON(object: any): MsgRequestProvisionTransactionResponse {
743
+ return {
744
+ code: isSet(object.code) ? String(object.code) : "",
745
+ msg: isSet(object.msg) ? String(object.msg) : "",
746
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
747
+ };
957
748
  },
958
749
 
959
- toJSON(message: MsgUpdateBalanceResponse): unknown {
750
+ toJSON(message: MsgRequestProvisionTransactionResponse): unknown {
960
751
  const obj: any = {};
961
752
  message.code !== undefined && (obj.code = message.code);
962
753
  message.msg !== undefined && (obj.msg = message.msg);
754
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
963
755
  return obj;
964
756
  },
965
757
 
966
- fromPartial<I extends Exact<DeepPartial<MsgUpdateBalanceResponse>, I>>(object: I): MsgUpdateBalanceResponse {
967
- const message = createBaseMsgUpdateBalanceResponse();
758
+ fromPartial<I extends Exact<DeepPartial<MsgRequestProvisionTransactionResponse>, I>>(
759
+ object: I,
760
+ ): MsgRequestProvisionTransactionResponse {
761
+ const message = createBaseMsgRequestProvisionTransactionResponse();
968
762
  message.code = object.code ?? "";
969
763
  message.msg = object.msg ?? "";
764
+ message.txId = object.txId ?? 0;
970
765
  return message;
971
766
  },
972
767
  };
973
768
 
974
- function createBaseMsgKeysignVote(): MsgKeysignVote {
975
- return { creator: "", txHash: "", pubKey: "" };
769
+ function createBaseMsgCancelTransaction(): MsgCancelTransaction {
770
+ return { creator: "", transactionId: "" };
976
771
  }
977
772
 
978
- export const MsgKeysignVote = {
979
- encode(message: MsgKeysignVote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
773
+ export const MsgCancelTransaction = {
774
+ encode(message: MsgCancelTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
980
775
  if (message.creator !== "") {
981
776
  writer.uint32(10).string(message.creator);
982
777
  }
983
- if (message.txHash !== "") {
984
- writer.uint32(18).string(message.txHash);
985
- }
986
- if (message.pubKey !== "") {
987
- writer.uint32(26).string(message.pubKey);
778
+ if (message.transactionId !== "") {
779
+ writer.uint32(18).string(message.transactionId);
988
780
  }
989
781
  return writer;
990
782
  },
991
783
 
992
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgKeysignVote {
784
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransaction {
993
785
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
994
786
  let end = length === undefined ? reader.len : reader.pos + length;
995
- const message = createBaseMsgKeysignVote();
787
+ const message = createBaseMsgCancelTransaction();
996
788
  while (reader.pos < end) {
997
789
  const tag = reader.uint32();
998
790
  switch (tag >>> 3) {
@@ -1000,10 +792,7 @@ export const MsgKeysignVote = {
1000
792
  message.creator = reader.string();
1001
793
  break;
1002
794
  case 2:
1003
- message.txHash = reader.string();
1004
- break;
1005
- case 3:
1006
- message.pubKey = reader.string();
795
+ message.transactionId = reader.string();
1007
796
  break;
1008
797
  default:
1009
798
  reader.skipType(tag & 7);
@@ -1013,37 +802,34 @@ export const MsgKeysignVote = {
1013
802
  return message;
1014
803
  },
1015
804
 
1016
- fromJSON(object: any): MsgKeysignVote {
805
+ fromJSON(object: any): MsgCancelTransaction {
1017
806
  return {
1018
807
  creator: isSet(object.creator) ? String(object.creator) : "",
1019
- txHash: isSet(object.txHash) ? String(object.txHash) : "",
1020
- pubKey: isSet(object.pubKey) ? String(object.pubKey) : "",
808
+ transactionId: isSet(object.transactionId) ? String(object.transactionId) : "",
1021
809
  };
1022
810
  },
1023
811
 
1024
- toJSON(message: MsgKeysignVote): unknown {
812
+ toJSON(message: MsgCancelTransaction): unknown {
1025
813
  const obj: any = {};
1026
814
  message.creator !== undefined && (obj.creator = message.creator);
1027
- message.txHash !== undefined && (obj.txHash = message.txHash);
1028
- message.pubKey !== undefined && (obj.pubKey = message.pubKey);
815
+ message.transactionId !== undefined && (obj.transactionId = message.transactionId);
1029
816
  return obj;
1030
817
  },
1031
818
 
1032
- fromPartial<I extends Exact<DeepPartial<MsgKeysignVote>, I>>(object: I): MsgKeysignVote {
1033
- const message = createBaseMsgKeysignVote();
819
+ fromPartial<I extends Exact<DeepPartial<MsgCancelTransaction>, I>>(object: I): MsgCancelTransaction {
820
+ const message = createBaseMsgCancelTransaction();
1034
821
  message.creator = object.creator ?? "";
1035
- message.txHash = object.txHash ?? "";
1036
- message.pubKey = object.pubKey ?? "";
822
+ message.transactionId = object.transactionId ?? "";
1037
823
  return message;
1038
824
  },
1039
825
  };
1040
826
 
1041
- function createBaseMsgKeysignVoteResponse(): MsgKeysignVoteResponse {
827
+ function createBaseMsgCancelTransactionResponse(): MsgCancelTransactionResponse {
1042
828
  return { code: "", msg: "" };
1043
829
  }
1044
830
 
1045
- export const MsgKeysignVoteResponse = {
1046
- encode(message: MsgKeysignVoteResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
831
+ export const MsgCancelTransactionResponse = {
832
+ encode(message: MsgCancelTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1047
833
  if (message.code !== "") {
1048
834
  writer.uint32(10).string(message.code);
1049
835
  }
@@ -1053,10 +839,10 @@ export const MsgKeysignVoteResponse = {
1053
839
  return writer;
1054
840
  },
1055
841
 
1056
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgKeysignVoteResponse {
842
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransactionResponse {
1057
843
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1058
844
  let end = length === undefined ? reader.len : reader.pos + length;
1059
- const message = createBaseMsgKeysignVoteResponse();
845
+ const message = createBaseMsgCancelTransactionResponse();
1060
846
  while (reader.pos < end) {
1061
847
  const tag = reader.uint32();
1062
848
  switch (tag >>> 3) {
@@ -1074,47 +860,50 @@ export const MsgKeysignVoteResponse = {
1074
860
  return message;
1075
861
  },
1076
862
 
1077
- fromJSON(object: any): MsgKeysignVoteResponse {
863
+ fromJSON(object: any): MsgCancelTransactionResponse {
1078
864
  return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1079
865
  },
1080
866
 
1081
- toJSON(message: MsgKeysignVoteResponse): unknown {
867
+ toJSON(message: MsgCancelTransactionResponse): unknown {
1082
868
  const obj: any = {};
1083
869
  message.code !== undefined && (obj.code = message.code);
1084
870
  message.msg !== undefined && (obj.msg = message.msg);
1085
871
  return obj;
1086
872
  },
1087
873
 
1088
- fromPartial<I extends Exact<DeepPartial<MsgKeysignVoteResponse>, I>>(object: I): MsgKeysignVoteResponse {
1089
- const message = createBaseMsgKeysignVoteResponse();
874
+ fromPartial<I extends Exact<DeepPartial<MsgCancelTransactionResponse>, I>>(object: I): MsgCancelTransactionResponse {
875
+ const message = createBaseMsgCancelTransactionResponse();
1090
876
  message.code = object.code ?? "";
1091
877
  message.msg = object.msg ?? "";
1092
878
  return message;
1093
879
  },
1094
880
  };
1095
881
 
1096
- function createBaseMsgUpdateGasFee(): MsgUpdateGasFee {
1097
- return { creator: "", chainId: "", fee: "" };
882
+ function createBaseMsgSetTxHash(): MsgSetTxHash {
883
+ return { creator: "", txId: 0, txHash: "", txType: "" };
1098
884
  }
1099
885
 
1100
- export const MsgUpdateGasFee = {
1101
- encode(message: MsgUpdateGasFee, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
886
+ export const MsgSetTxHash = {
887
+ encode(message: MsgSetTxHash, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1102
888
  if (message.creator !== "") {
1103
889
  writer.uint32(10).string(message.creator);
1104
890
  }
1105
- if (message.chainId !== "") {
1106
- writer.uint32(18).string(message.chainId);
891
+ if (message.txId !== 0) {
892
+ writer.uint32(16).uint64(message.txId);
1107
893
  }
1108
- if (message.fee !== "") {
1109
- writer.uint32(26).string(message.fee);
894
+ if (message.txHash !== "") {
895
+ writer.uint32(26).string(message.txHash);
896
+ }
897
+ if (message.txType !== "") {
898
+ writer.uint32(34).string(message.txType);
1110
899
  }
1111
900
  return writer;
1112
901
  },
1113
902
 
1114
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGasFee {
903
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxHash {
1115
904
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1116
905
  let end = length === undefined ? reader.len : reader.pos + length;
1117
- const message = createBaseMsgUpdateGasFee();
906
+ const message = createBaseMsgSetTxHash();
1118
907
  while (reader.pos < end) {
1119
908
  const tag = reader.uint32();
1120
909
  switch (tag >>> 3) {
@@ -1122,10 +911,13 @@ export const MsgUpdateGasFee = {
1122
911
  message.creator = reader.string();
1123
912
  break;
1124
913
  case 2:
1125
- message.chainId = reader.string();
914
+ message.txId = longToNumber(reader.uint64() as Long);
1126
915
  break;
1127
916
  case 3:
1128
- message.fee = reader.string();
917
+ message.txHash = reader.string();
918
+ break;
919
+ case 4:
920
+ message.txType = reader.string();
1129
921
  break;
1130
922
  default:
1131
923
  reader.skipType(tag & 7);
@@ -1135,37 +927,40 @@ export const MsgUpdateGasFee = {
1135
927
  return message;
1136
928
  },
1137
929
 
1138
- fromJSON(object: any): MsgUpdateGasFee {
930
+ fromJSON(object: any): MsgSetTxHash {
1139
931
  return {
1140
932
  creator: isSet(object.creator) ? String(object.creator) : "",
1141
- chainId: isSet(object.chainId) ? String(object.chainId) : "",
1142
- fee: isSet(object.fee) ? String(object.fee) : "",
933
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
934
+ txHash: isSet(object.txHash) ? String(object.txHash) : "",
935
+ txType: isSet(object.txType) ? String(object.txType) : "",
1143
936
  };
1144
937
  },
1145
938
 
1146
- toJSON(message: MsgUpdateGasFee): unknown {
939
+ toJSON(message: MsgSetTxHash): unknown {
1147
940
  const obj: any = {};
1148
941
  message.creator !== undefined && (obj.creator = message.creator);
1149
- message.chainId !== undefined && (obj.chainId = message.chainId);
1150
- message.fee !== undefined && (obj.fee = message.fee);
942
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
943
+ message.txHash !== undefined && (obj.txHash = message.txHash);
944
+ message.txType !== undefined && (obj.txType = message.txType);
1151
945
  return obj;
1152
946
  },
1153
947
 
1154
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGasFee>, I>>(object: I): MsgUpdateGasFee {
1155
- const message = createBaseMsgUpdateGasFee();
948
+ fromPartial<I extends Exact<DeepPartial<MsgSetTxHash>, I>>(object: I): MsgSetTxHash {
949
+ const message = createBaseMsgSetTxHash();
1156
950
  message.creator = object.creator ?? "";
1157
- message.chainId = object.chainId ?? "";
1158
- message.fee = object.fee ?? "";
951
+ message.txId = object.txId ?? 0;
952
+ message.txHash = object.txHash ?? "";
953
+ message.txType = object.txType ?? "";
1159
954
  return message;
1160
955
  },
1161
956
  };
1162
957
 
1163
- function createBaseMsgUpdateGasFeeResponse(): MsgUpdateGasFeeResponse {
958
+ function createBaseMsgSetTxHashResponse(): MsgSetTxHashResponse {
1164
959
  return { code: "", msg: "" };
1165
960
  }
1166
961
 
1167
- export const MsgUpdateGasFeeResponse = {
1168
- encode(message: MsgUpdateGasFeeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
962
+ export const MsgSetTxHashResponse = {
963
+ encode(message: MsgSetTxHashResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1169
964
  if (message.code !== "") {
1170
965
  writer.uint32(10).string(message.code);
1171
966
  }
@@ -1175,10 +970,10 @@ export const MsgUpdateGasFeeResponse = {
1175
970
  return writer;
1176
971
  },
1177
972
 
1178
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGasFeeResponse {
973
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxHashResponse {
1179
974
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1180
975
  let end = length === undefined ? reader.len : reader.pos + length;
1181
- const message = createBaseMsgUpdateGasFeeResponse();
976
+ const message = createBaseMsgSetTxHashResponse();
1182
977
  while (reader.pos < end) {
1183
978
  const tag = reader.uint32();
1184
979
  switch (tag >>> 3) {
@@ -1196,59 +991,53 @@ export const MsgUpdateGasFeeResponse = {
1196
991
  return message;
1197
992
  },
1198
993
 
1199
- fromJSON(object: any): MsgUpdateGasFeeResponse {
994
+ fromJSON(object: any): MsgSetTxHashResponse {
1200
995
  return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1201
996
  },
1202
997
 
1203
- toJSON(message: MsgUpdateGasFeeResponse): unknown {
998
+ toJSON(message: MsgSetTxHashResponse): unknown {
1204
999
  const obj: any = {};
1205
1000
  message.code !== undefined && (obj.code = message.code);
1206
1001
  message.msg !== undefined && (obj.msg = message.msg);
1207
1002
  return obj;
1208
1003
  },
1209
1004
 
1210
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGasFeeResponse>, I>>(object: I): MsgUpdateGasFeeResponse {
1211
- const message = createBaseMsgUpdateGasFeeResponse();
1005
+ fromPartial<I extends Exact<DeepPartial<MsgSetTxHashResponse>, I>>(object: I): MsgSetTxHashResponse {
1006
+ const message = createBaseMsgSetTxHashResponse();
1212
1007
  message.code = object.code ?? "";
1213
1008
  message.msg = object.msg ?? "";
1214
1009
  return message;
1215
1010
  },
1216
1011
  };
1217
1012
 
1218
- function createBaseMsgProvisionTransaction(): MsgProvisionTransaction {
1219
- return { creator: "", fromChain: "", fromAddress: "", symbol: "", tokenAddr: "", amount: "", options: "" };
1013
+ function createBaseMsgSetTxProcess(): MsgSetTxProcess {
1014
+ return { creator: "", txId: 0, timestamp: 0, msgId: "", txType: "" };
1220
1015
  }
1221
1016
 
1222
- export const MsgProvisionTransaction = {
1223
- encode(message: MsgProvisionTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1017
+ export const MsgSetTxProcess = {
1018
+ encode(message: MsgSetTxProcess, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1224
1019
  if (message.creator !== "") {
1225
1020
  writer.uint32(10).string(message.creator);
1226
1021
  }
1227
- if (message.fromChain !== "") {
1228
- writer.uint32(18).string(message.fromChain);
1229
- }
1230
- if (message.fromAddress !== "") {
1231
- writer.uint32(26).string(message.fromAddress);
1232
- }
1233
- if (message.symbol !== "") {
1234
- writer.uint32(34).string(message.symbol);
1022
+ if (message.txId !== 0) {
1023
+ writer.uint32(16).uint64(message.txId);
1235
1024
  }
1236
- if (message.tokenAddr !== "") {
1237
- writer.uint32(42).string(message.tokenAddr);
1025
+ if (message.timestamp !== 0) {
1026
+ writer.uint32(24).uint64(message.timestamp);
1238
1027
  }
1239
- if (message.amount !== "") {
1240
- writer.uint32(50).string(message.amount);
1028
+ if (message.msgId !== "") {
1029
+ writer.uint32(34).string(message.msgId);
1241
1030
  }
1242
- if (message.options !== "") {
1243
- writer.uint32(58).string(message.options);
1031
+ if (message.txType !== "") {
1032
+ writer.uint32(42).string(message.txType);
1244
1033
  }
1245
1034
  return writer;
1246
1035
  },
1247
1036
 
1248
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgProvisionTransaction {
1037
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxProcess {
1249
1038
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1250
1039
  let end = length === undefined ? reader.len : reader.pos + length;
1251
- const message = createBaseMsgProvisionTransaction();
1040
+ const message = createBaseMsgSetTxProcess();
1252
1041
  while (reader.pos < end) {
1253
1042
  const tag = reader.uint32();
1254
1043
  switch (tag >>> 3) {
@@ -1256,22 +1045,16 @@ export const MsgProvisionTransaction = {
1256
1045
  message.creator = reader.string();
1257
1046
  break;
1258
1047
  case 2:
1259
- message.fromChain = reader.string();
1048
+ message.txId = longToNumber(reader.uint64() as Long);
1260
1049
  break;
1261
1050
  case 3:
1262
- message.fromAddress = reader.string();
1051
+ message.timestamp = longToNumber(reader.uint64() as Long);
1263
1052
  break;
1264
1053
  case 4:
1265
- message.symbol = reader.string();
1054
+ message.msgId = reader.string();
1266
1055
  break;
1267
1056
  case 5:
1268
- message.tokenAddr = reader.string();
1269
- break;
1270
- case 6:
1271
- message.amount = reader.string();
1272
- break;
1273
- case 7:
1274
- message.options = reader.string();
1057
+ message.txType = reader.string();
1275
1058
  break;
1276
1059
  default:
1277
1060
  reader.skipType(tag & 7);
@@ -1281,71 +1064,53 @@ export const MsgProvisionTransaction = {
1281
1064
  return message;
1282
1065
  },
1283
1066
 
1284
- fromJSON(object: any): MsgProvisionTransaction {
1067
+ fromJSON(object: any): MsgSetTxProcess {
1285
1068
  return {
1286
1069
  creator: isSet(object.creator) ? String(object.creator) : "",
1287
- fromChain: isSet(object.fromChain) ? String(object.fromChain) : "",
1288
- fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "",
1289
- symbol: isSet(object.symbol) ? String(object.symbol) : "",
1290
- tokenAddr: isSet(object.tokenAddr) ? String(object.tokenAddr) : "",
1291
- amount: isSet(object.amount) ? String(object.amount) : "",
1292
- options: isSet(object.options) ? String(object.options) : "",
1070
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
1071
+ timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
1072
+ msgId: isSet(object.msgId) ? String(object.msgId) : "",
1073
+ txType: isSet(object.txType) ? String(object.txType) : "",
1293
1074
  };
1294
1075
  },
1295
1076
 
1296
- toJSON(message: MsgProvisionTransaction): unknown {
1077
+ toJSON(message: MsgSetTxProcess): unknown {
1297
1078
  const obj: any = {};
1298
1079
  message.creator !== undefined && (obj.creator = message.creator);
1299
- message.fromChain !== undefined && (obj.fromChain = message.fromChain);
1300
- message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress);
1301
- message.symbol !== undefined && (obj.symbol = message.symbol);
1302
- message.tokenAddr !== undefined && (obj.tokenAddr = message.tokenAddr);
1303
- message.amount !== undefined && (obj.amount = message.amount);
1304
- message.options !== undefined && (obj.options = message.options);
1080
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
1081
+ message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
1082
+ message.msgId !== undefined && (obj.msgId = message.msgId);
1083
+ message.txType !== undefined && (obj.txType = message.txType);
1305
1084
  return obj;
1306
1085
  },
1307
1086
 
1308
- fromPartial<I extends Exact<DeepPartial<MsgProvisionTransaction>, I>>(object: I): MsgProvisionTransaction {
1309
- const message = createBaseMsgProvisionTransaction();
1087
+ fromPartial<I extends Exact<DeepPartial<MsgSetTxProcess>, I>>(object: I): MsgSetTxProcess {
1088
+ const message = createBaseMsgSetTxProcess();
1310
1089
  message.creator = object.creator ?? "";
1311
- message.fromChain = object.fromChain ?? "";
1312
- message.fromAddress = object.fromAddress ?? "";
1313
- message.symbol = object.symbol ?? "";
1314
- message.tokenAddr = object.tokenAddr ?? "";
1315
- message.amount = object.amount ?? "";
1316
- message.options = object.options ?? "";
1090
+ message.txId = object.txId ?? 0;
1091
+ message.timestamp = object.timestamp ?? 0;
1092
+ message.msgId = object.msgId ?? "";
1093
+ message.txType = object.txType ?? "";
1317
1094
  return message;
1318
1095
  },
1319
1096
  };
1320
1097
 
1321
- function createBaseMsgProvisionTransactionResponse(): MsgProvisionTransactionResponse {
1322
- return { code: "", msg: "" };
1098
+ function createBaseMsgSetTxProcessResponse(): MsgSetTxProcessResponse {
1099
+ return {};
1323
1100
  }
1324
1101
 
1325
- export const MsgProvisionTransactionResponse = {
1326
- encode(message: MsgProvisionTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1327
- if (message.code !== "") {
1328
- writer.uint32(10).string(message.code);
1329
- }
1330
- if (message.msg !== "") {
1331
- writer.uint32(18).string(message.msg);
1332
- }
1102
+ export const MsgSetTxProcessResponse = {
1103
+ encode(_: MsgSetTxProcessResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1333
1104
  return writer;
1334
1105
  },
1335
1106
 
1336
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgProvisionTransactionResponse {
1107
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxProcessResponse {
1337
1108
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1338
1109
  let end = length === undefined ? reader.len : reader.pos + length;
1339
- const message = createBaseMsgProvisionTransactionResponse();
1110
+ const message = createBaseMsgSetTxProcessResponse();
1340
1111
  while (reader.pos < end) {
1341
1112
  const tag = reader.uint32();
1342
1113
  switch (tag >>> 3) {
1343
- case 1:
1344
- message.code = reader.string();
1345
- break;
1346
- case 2:
1347
- message.msg = reader.string();
1348
- break;
1349
1114
  default:
1350
1115
  reader.skipType(tag & 7);
1351
1116
  break;
@@ -1354,61 +1119,52 @@ export const MsgProvisionTransactionResponse = {
1354
1119
  return message;
1355
1120
  },
1356
1121
 
1357
- fromJSON(object: any): MsgProvisionTransactionResponse {
1358
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1122
+ fromJSON(_: any): MsgSetTxProcessResponse {
1123
+ return {};
1359
1124
  },
1360
1125
 
1361
- toJSON(message: MsgProvisionTransactionResponse): unknown {
1126
+ toJSON(_: MsgSetTxProcessResponse): unknown {
1362
1127
  const obj: any = {};
1363
- message.code !== undefined && (obj.code = message.code);
1364
- message.msg !== undefined && (obj.msg = message.msg);
1365
1128
  return obj;
1366
1129
  },
1367
1130
 
1368
- fromPartial<I extends Exact<DeepPartial<MsgProvisionTransactionResponse>, I>>(
1369
- object: I,
1370
- ): MsgProvisionTransactionResponse {
1371
- const message = createBaseMsgProvisionTransactionResponse();
1372
- message.code = object.code ?? "";
1373
- message.msg = object.msg ?? "";
1131
+ fromPartial<I extends Exact<DeepPartial<MsgSetTxProcessResponse>, I>>(_: I): MsgSetTxProcessResponse {
1132
+ const message = createBaseMsgSetTxProcessResponse();
1374
1133
  return message;
1375
1134
  },
1376
1135
  };
1377
1136
 
1378
- function createBaseMsgDrainTransaction(): MsgDrainTransaction {
1379
- return { creator: "", fromChain: "", toChain: "", toAddress: "", nftAddr: "", amount: "", options: "" };
1137
+ function createBaseMsgRequestDrainTransaction(): MsgRequestDrainTransaction {
1138
+ return { creator: "", toChain: "", toAddress: "", symbol: "", amount: "", options: "" };
1380
1139
  }
1381
1140
 
1382
- export const MsgDrainTransaction = {
1383
- encode(message: MsgDrainTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1141
+ export const MsgRequestDrainTransaction = {
1142
+ encode(message: MsgRequestDrainTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1384
1143
  if (message.creator !== "") {
1385
1144
  writer.uint32(10).string(message.creator);
1386
1145
  }
1387
- if (message.fromChain !== "") {
1388
- writer.uint32(18).string(message.fromChain);
1389
- }
1390
1146
  if (message.toChain !== "") {
1391
- writer.uint32(26).string(message.toChain);
1147
+ writer.uint32(18).string(message.toChain);
1392
1148
  }
1393
1149
  if (message.toAddress !== "") {
1394
- writer.uint32(34).string(message.toAddress);
1150
+ writer.uint32(26).string(message.toAddress);
1395
1151
  }
1396
- if (message.nftAddr !== "") {
1397
- writer.uint32(42).string(message.nftAddr);
1152
+ if (message.symbol !== "") {
1153
+ writer.uint32(34).string(message.symbol);
1398
1154
  }
1399
1155
  if (message.amount !== "") {
1400
- writer.uint32(50).string(message.amount);
1156
+ writer.uint32(42).string(message.amount);
1401
1157
  }
1402
1158
  if (message.options !== "") {
1403
- writer.uint32(58).string(message.options);
1159
+ writer.uint32(50).string(message.options);
1404
1160
  }
1405
1161
  return writer;
1406
1162
  },
1407
1163
 
1408
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgDrainTransaction {
1164
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestDrainTransaction {
1409
1165
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1410
1166
  let end = length === undefined ? reader.len : reader.pos + length;
1411
- const message = createBaseMsgDrainTransaction();
1167
+ const message = createBaseMsgRequestDrainTransaction();
1412
1168
  while (reader.pos < end) {
1413
1169
  const tag = reader.uint32();
1414
1170
  switch (tag >>> 3) {
@@ -1416,21 +1172,18 @@ export const MsgDrainTransaction = {
1416
1172
  message.creator = reader.string();
1417
1173
  break;
1418
1174
  case 2:
1419
- message.fromChain = reader.string();
1175
+ message.toChain = reader.string();
1420
1176
  break;
1421
1177
  case 3:
1422
- message.toChain = reader.string();
1178
+ message.toAddress = reader.string();
1423
1179
  break;
1424
1180
  case 4:
1425
- message.toAddress = reader.string();
1181
+ message.symbol = reader.string();
1426
1182
  break;
1427
1183
  case 5:
1428
- message.nftAddr = reader.string();
1429
- break;
1430
- case 6:
1431
1184
  message.amount = reader.string();
1432
1185
  break;
1433
- case 7:
1186
+ case 6:
1434
1187
  message.options = reader.string();
1435
1188
  break;
1436
1189
  default:
@@ -1441,62 +1194,62 @@ export const MsgDrainTransaction = {
1441
1194
  return message;
1442
1195
  },
1443
1196
 
1444
- fromJSON(object: any): MsgDrainTransaction {
1197
+ fromJSON(object: any): MsgRequestDrainTransaction {
1445
1198
  return {
1446
1199
  creator: isSet(object.creator) ? String(object.creator) : "",
1447
- fromChain: isSet(object.fromChain) ? String(object.fromChain) : "",
1448
1200
  toChain: isSet(object.toChain) ? String(object.toChain) : "",
1449
1201
  toAddress: isSet(object.toAddress) ? String(object.toAddress) : "",
1450
- nftAddr: isSet(object.nftAddr) ? String(object.nftAddr) : "",
1202
+ symbol: isSet(object.symbol) ? String(object.symbol) : "",
1451
1203
  amount: isSet(object.amount) ? String(object.amount) : "",
1452
1204
  options: isSet(object.options) ? String(object.options) : "",
1453
1205
  };
1454
1206
  },
1455
1207
 
1456
- toJSON(message: MsgDrainTransaction): unknown {
1208
+ toJSON(message: MsgRequestDrainTransaction): unknown {
1457
1209
  const obj: any = {};
1458
1210
  message.creator !== undefined && (obj.creator = message.creator);
1459
- message.fromChain !== undefined && (obj.fromChain = message.fromChain);
1460
1211
  message.toChain !== undefined && (obj.toChain = message.toChain);
1461
1212
  message.toAddress !== undefined && (obj.toAddress = message.toAddress);
1462
- message.nftAddr !== undefined && (obj.nftAddr = message.nftAddr);
1213
+ message.symbol !== undefined && (obj.symbol = message.symbol);
1463
1214
  message.amount !== undefined && (obj.amount = message.amount);
1464
1215
  message.options !== undefined && (obj.options = message.options);
1465
1216
  return obj;
1466
1217
  },
1467
1218
 
1468
- fromPartial<I extends Exact<DeepPartial<MsgDrainTransaction>, I>>(object: I): MsgDrainTransaction {
1469
- const message = createBaseMsgDrainTransaction();
1219
+ fromPartial<I extends Exact<DeepPartial<MsgRequestDrainTransaction>, I>>(object: I): MsgRequestDrainTransaction {
1220
+ const message = createBaseMsgRequestDrainTransaction();
1470
1221
  message.creator = object.creator ?? "";
1471
- message.fromChain = object.fromChain ?? "";
1472
1222
  message.toChain = object.toChain ?? "";
1473
1223
  message.toAddress = object.toAddress ?? "";
1474
- message.nftAddr = object.nftAddr ?? "";
1224
+ message.symbol = object.symbol ?? "";
1475
1225
  message.amount = object.amount ?? "";
1476
1226
  message.options = object.options ?? "";
1477
1227
  return message;
1478
1228
  },
1479
1229
  };
1480
1230
 
1481
- function createBaseMsgDrainTransactionResponse(): MsgDrainTransactionResponse {
1482
- return { code: "", msg: "" };
1231
+ function createBaseMsgRequestDrainTransactionResponse(): MsgRequestDrainTransactionResponse {
1232
+ return { code: "", msg: "", txId: 0 };
1483
1233
  }
1484
1234
 
1485
- export const MsgDrainTransactionResponse = {
1486
- encode(message: MsgDrainTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1235
+ export const MsgRequestDrainTransactionResponse = {
1236
+ encode(message: MsgRequestDrainTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1487
1237
  if (message.code !== "") {
1488
1238
  writer.uint32(10).string(message.code);
1489
1239
  }
1490
1240
  if (message.msg !== "") {
1491
1241
  writer.uint32(18).string(message.msg);
1492
1242
  }
1243
+ if (message.txId !== 0) {
1244
+ writer.uint32(24).uint64(message.txId);
1245
+ }
1493
1246
  return writer;
1494
1247
  },
1495
1248
 
1496
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgDrainTransactionResponse {
1249
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestDrainTransactionResponse {
1497
1250
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1498
1251
  let end = length === undefined ? reader.len : reader.pos + length;
1499
- const message = createBaseMsgDrainTransactionResponse();
1252
+ const message = createBaseMsgRequestDrainTransactionResponse();
1500
1253
  while (reader.pos < end) {
1501
1254
  const tag = reader.uint32();
1502
1255
  switch (tag >>> 3) {
@@ -1506,6 +1259,9 @@ export const MsgDrainTransactionResponse = {
1506
1259
  case 2:
1507
1260
  message.msg = reader.string();
1508
1261
  break;
1262
+ case 3:
1263
+ message.txId = longToNumber(reader.uint64() as Long);
1264
+ break;
1509
1265
  default:
1510
1266
  reader.skipType(tag & 7);
1511
1267
  break;
@@ -1514,44 +1270,61 @@ export const MsgDrainTransactionResponse = {
1514
1270
  return message;
1515
1271
  },
1516
1272
 
1517
- fromJSON(object: any): MsgDrainTransactionResponse {
1518
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1273
+ fromJSON(object: any): MsgRequestDrainTransactionResponse {
1274
+ return {
1275
+ code: isSet(object.code) ? String(object.code) : "",
1276
+ msg: isSet(object.msg) ? String(object.msg) : "",
1277
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
1278
+ };
1519
1279
  },
1520
1280
 
1521
- toJSON(message: MsgDrainTransactionResponse): unknown {
1281
+ toJSON(message: MsgRequestDrainTransactionResponse): unknown {
1522
1282
  const obj: any = {};
1523
1283
  message.code !== undefined && (obj.code = message.code);
1524
1284
  message.msg !== undefined && (obj.msg = message.msg);
1285
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
1525
1286
  return obj;
1526
1287
  },
1527
1288
 
1528
- fromPartial<I extends Exact<DeepPartial<MsgDrainTransactionResponse>, I>>(object: I): MsgDrainTransactionResponse {
1529
- const message = createBaseMsgDrainTransactionResponse();
1289
+ fromPartial<I extends Exact<DeepPartial<MsgRequestDrainTransactionResponse>, I>>(
1290
+ object: I,
1291
+ ): MsgRequestDrainTransactionResponse {
1292
+ const message = createBaseMsgRequestDrainTransactionResponse();
1530
1293
  message.code = object.code ?? "";
1531
1294
  message.msg = object.msg ?? "";
1295
+ message.txId = object.txId ?? 0;
1532
1296
  return message;
1533
1297
  },
1534
1298
  };
1535
1299
 
1536
- function createBaseMsgCancelTransaction(): MsgCancelTransaction {
1537
- return { creator: "", transactionId: "" };
1300
+ function createBaseMsgFinalizeDrainTransaction(): MsgFinalizeDrainTransaction {
1301
+ return { creator: "", txId: 0, txHash: "", success: "", signedKey: "" };
1538
1302
  }
1539
1303
 
1540
- export const MsgCancelTransaction = {
1541
- encode(message: MsgCancelTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1304
+ export const MsgFinalizeDrainTransaction = {
1305
+ encode(message: MsgFinalizeDrainTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1542
1306
  if (message.creator !== "") {
1543
1307
  writer.uint32(10).string(message.creator);
1544
1308
  }
1545
- if (message.transactionId !== "") {
1546
- writer.uint32(18).string(message.transactionId);
1309
+ if (message.txId !== 0) {
1310
+ writer.uint32(16).uint64(message.txId);
1311
+ }
1312
+ if (message.txHash !== "") {
1313
+ writer.uint32(26).string(message.txHash);
1314
+ }
1315
+ if (message.success !== "") {
1316
+ writer.uint32(34).string(message.success);
1317
+ }
1318
+ if (message.signedKey !== "") {
1319
+ writer.uint32(42).string(message.signedKey);
1547
1320
  }
1548
1321
  return writer;
1549
1322
  },
1550
1323
 
1551
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransaction {
1324
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeDrainTransaction {
1552
1325
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1553
1326
  let end = length === undefined ? reader.len : reader.pos + length;
1554
- const message = createBaseMsgCancelTransaction();
1327
+ const message = createBaseMsgFinalizeDrainTransaction();
1555
1328
  while (reader.pos < end) {
1556
1329
  const tag = reader.uint32();
1557
1330
  switch (tag >>> 3) {
@@ -1559,7 +1332,16 @@ export const MsgCancelTransaction = {
1559
1332
  message.creator = reader.string();
1560
1333
  break;
1561
1334
  case 2:
1562
- message.transactionId = reader.string();
1335
+ message.txId = longToNumber(reader.uint64() as Long);
1336
+ break;
1337
+ case 3:
1338
+ message.txHash = reader.string();
1339
+ break;
1340
+ case 4:
1341
+ message.success = reader.string();
1342
+ break;
1343
+ case 5:
1344
+ message.signedKey = reader.string();
1563
1345
  break;
1564
1346
  default:
1565
1347
  reader.skipType(tag & 7);
@@ -1569,2373 +1351,43 @@ export const MsgCancelTransaction = {
1569
1351
  return message;
1570
1352
  },
1571
1353
 
1572
- fromJSON(object: any): MsgCancelTransaction {
1354
+ fromJSON(object: any): MsgFinalizeDrainTransaction {
1573
1355
  return {
1574
1356
  creator: isSet(object.creator) ? String(object.creator) : "",
1575
- transactionId: isSet(object.transactionId) ? String(object.transactionId) : "",
1576
- };
1577
- },
1578
-
1579
- toJSON(message: MsgCancelTransaction): unknown {
1580
- const obj: any = {};
1581
- message.creator !== undefined && (obj.creator = message.creator);
1582
- message.transactionId !== undefined && (obj.transactionId = message.transactionId);
1583
- return obj;
1584
- },
1585
-
1586
- fromPartial<I extends Exact<DeepPartial<MsgCancelTransaction>, I>>(object: I): MsgCancelTransaction {
1587
- const message = createBaseMsgCancelTransaction();
1588
- message.creator = object.creator ?? "";
1589
- message.transactionId = object.transactionId ?? "";
1590
- return message;
1591
- },
1592
- };
1593
-
1594
- function createBaseMsgCancelTransactionResponse(): MsgCancelTransactionResponse {
1595
- return { code: "", msg: "" };
1596
- }
1597
-
1598
- export const MsgCancelTransactionResponse = {
1599
- encode(message: MsgCancelTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1600
- if (message.code !== "") {
1601
- writer.uint32(10).string(message.code);
1602
- }
1603
- if (message.msg !== "") {
1604
- writer.uint32(18).string(message.msg);
1605
- }
1606
- return writer;
1607
- },
1608
-
1609
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransactionResponse {
1610
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1611
- let end = length === undefined ? reader.len : reader.pos + length;
1612
- const message = createBaseMsgCancelTransactionResponse();
1613
- while (reader.pos < end) {
1614
- const tag = reader.uint32();
1615
- switch (tag >>> 3) {
1616
- case 1:
1617
- message.code = reader.string();
1618
- break;
1619
- case 2:
1620
- message.msg = reader.string();
1621
- break;
1622
- default:
1623
- reader.skipType(tag & 7);
1624
- break;
1625
- }
1626
- }
1627
- return message;
1628
- },
1629
-
1630
- fromJSON(object: any): MsgCancelTransactionResponse {
1631
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1632
- },
1633
-
1634
- toJSON(message: MsgCancelTransactionResponse): unknown {
1635
- const obj: any = {};
1636
- message.code !== undefined && (obj.code = message.code);
1637
- message.msg !== undefined && (obj.msg = message.msg);
1638
- return obj;
1639
- },
1640
-
1641
- fromPartial<I extends Exact<DeepPartial<MsgCancelTransactionResponse>, I>>(object: I): MsgCancelTransactionResponse {
1642
- const message = createBaseMsgCancelTransactionResponse();
1643
- message.code = object.code ?? "";
1644
- message.msg = object.msg ?? "";
1645
- return message;
1646
- },
1647
- };
1648
-
1649
- function createBaseMsgAddWhitelisted(): MsgAddWhitelisted {
1650
- return { creator: "", address: "" };
1651
- }
1652
-
1653
- export const MsgAddWhitelisted = {
1654
- encode(message: MsgAddWhitelisted, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1655
- if (message.creator !== "") {
1656
- writer.uint32(10).string(message.creator);
1657
- }
1658
- if (message.address !== "") {
1659
- writer.uint32(18).string(message.address);
1660
- }
1661
- return writer;
1662
- },
1663
-
1664
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddWhitelisted {
1665
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1666
- let end = length === undefined ? reader.len : reader.pos + length;
1667
- const message = createBaseMsgAddWhitelisted();
1668
- while (reader.pos < end) {
1669
- const tag = reader.uint32();
1670
- switch (tag >>> 3) {
1671
- case 1:
1672
- message.creator = reader.string();
1673
- break;
1674
- case 2:
1675
- message.address = reader.string();
1676
- break;
1677
- default:
1678
- reader.skipType(tag & 7);
1679
- break;
1680
- }
1681
- }
1682
- return message;
1683
- },
1684
-
1685
- fromJSON(object: any): MsgAddWhitelisted {
1686
- return {
1687
- creator: isSet(object.creator) ? String(object.creator) : "",
1688
- address: isSet(object.address) ? String(object.address) : "",
1689
- };
1690
- },
1691
-
1692
- toJSON(message: MsgAddWhitelisted): unknown {
1693
- const obj: any = {};
1694
- message.creator !== undefined && (obj.creator = message.creator);
1695
- message.address !== undefined && (obj.address = message.address);
1696
- return obj;
1697
- },
1698
-
1699
- fromPartial<I extends Exact<DeepPartial<MsgAddWhitelisted>, I>>(object: I): MsgAddWhitelisted {
1700
- const message = createBaseMsgAddWhitelisted();
1701
- message.creator = object.creator ?? "";
1702
- message.address = object.address ?? "";
1703
- return message;
1704
- },
1705
- };
1706
-
1707
- function createBaseMsgAddWhitelistedResponse(): MsgAddWhitelistedResponse {
1708
- return { code: "", msg: "" };
1709
- }
1710
-
1711
- export const MsgAddWhitelistedResponse = {
1712
- encode(message: MsgAddWhitelistedResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1713
- if (message.code !== "") {
1714
- writer.uint32(10).string(message.code);
1715
- }
1716
- if (message.msg !== "") {
1717
- writer.uint32(18).string(message.msg);
1718
- }
1719
- return writer;
1720
- },
1721
-
1722
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddWhitelistedResponse {
1723
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1724
- let end = length === undefined ? reader.len : reader.pos + length;
1725
- const message = createBaseMsgAddWhitelistedResponse();
1726
- while (reader.pos < end) {
1727
- const tag = reader.uint32();
1728
- switch (tag >>> 3) {
1729
- case 1:
1730
- message.code = reader.string();
1731
- break;
1732
- case 2:
1733
- message.msg = reader.string();
1734
- break;
1735
- default:
1736
- reader.skipType(tag & 7);
1737
- break;
1738
- }
1739
- }
1740
- return message;
1741
- },
1742
-
1743
- fromJSON(object: any): MsgAddWhitelistedResponse {
1744
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1745
- },
1746
-
1747
- toJSON(message: MsgAddWhitelistedResponse): unknown {
1748
- const obj: any = {};
1749
- message.code !== undefined && (obj.code = message.code);
1750
- message.msg !== undefined && (obj.msg = message.msg);
1751
- return obj;
1752
- },
1753
-
1754
- fromPartial<I extends Exact<DeepPartial<MsgAddWhitelistedResponse>, I>>(object: I): MsgAddWhitelistedResponse {
1755
- const message = createBaseMsgAddWhitelistedResponse();
1756
- message.code = object.code ?? "";
1757
- message.msg = object.msg ?? "";
1758
- return message;
1759
- },
1760
- };
1761
-
1762
- function createBaseMsgSetAdmin(): MsgSetAdmin {
1763
- return { creator: "" };
1764
- }
1765
-
1766
- export const MsgSetAdmin = {
1767
- encode(message: MsgSetAdmin, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1768
- if (message.creator !== "") {
1769
- writer.uint32(10).string(message.creator);
1770
- }
1771
- return writer;
1772
- },
1773
-
1774
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetAdmin {
1775
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1776
- let end = length === undefined ? reader.len : reader.pos + length;
1777
- const message = createBaseMsgSetAdmin();
1778
- while (reader.pos < end) {
1779
- const tag = reader.uint32();
1780
- switch (tag >>> 3) {
1781
- case 1:
1782
- message.creator = reader.string();
1783
- break;
1784
- default:
1785
- reader.skipType(tag & 7);
1786
- break;
1787
- }
1788
- }
1789
- return message;
1790
- },
1791
-
1792
- fromJSON(object: any): MsgSetAdmin {
1793
- return { creator: isSet(object.creator) ? String(object.creator) : "" };
1794
- },
1795
-
1796
- toJSON(message: MsgSetAdmin): unknown {
1797
- const obj: any = {};
1798
- message.creator !== undefined && (obj.creator = message.creator);
1799
- return obj;
1800
- },
1801
-
1802
- fromPartial<I extends Exact<DeepPartial<MsgSetAdmin>, I>>(object: I): MsgSetAdmin {
1803
- const message = createBaseMsgSetAdmin();
1804
- message.creator = object.creator ?? "";
1805
- return message;
1806
- },
1807
- };
1808
-
1809
- function createBaseMsgSetAdminResponse(): MsgSetAdminResponse {
1810
- return { code: "", msg: "" };
1811
- }
1812
-
1813
- export const MsgSetAdminResponse = {
1814
- encode(message: MsgSetAdminResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1815
- if (message.code !== "") {
1816
- writer.uint32(10).string(message.code);
1817
- }
1818
- if (message.msg !== "") {
1819
- writer.uint32(18).string(message.msg);
1820
- }
1821
- return writer;
1822
- },
1823
-
1824
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetAdminResponse {
1825
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1826
- let end = length === undefined ? reader.len : reader.pos + length;
1827
- const message = createBaseMsgSetAdminResponse();
1828
- while (reader.pos < end) {
1829
- const tag = reader.uint32();
1830
- switch (tag >>> 3) {
1831
- case 1:
1832
- message.code = reader.string();
1833
- break;
1834
- case 2:
1835
- message.msg = reader.string();
1836
- break;
1837
- default:
1838
- reader.skipType(tag & 7);
1839
- break;
1840
- }
1841
- }
1842
- return message;
1843
- },
1844
-
1845
- fromJSON(object: any): MsgSetAdminResponse {
1846
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1847
- },
1848
-
1849
- toJSON(message: MsgSetAdminResponse): unknown {
1850
- const obj: any = {};
1851
- message.code !== undefined && (obj.code = message.code);
1852
- message.msg !== undefined && (obj.msg = message.msg);
1853
- return obj;
1854
- },
1855
-
1856
- fromPartial<I extends Exact<DeepPartial<MsgSetAdminResponse>, I>>(object: I): MsgSetAdminResponse {
1857
- const message = createBaseMsgSetAdminResponse();
1858
- message.code = object.code ?? "";
1859
- message.msg = object.msg ?? "";
1860
- return message;
1861
- },
1862
- };
1863
-
1864
- function createBaseMsgAddPubkey(): MsgAddPubkey {
1865
- return { creator: "", pubkey: "" };
1866
- }
1867
-
1868
- export const MsgAddPubkey = {
1869
- encode(message: MsgAddPubkey, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1870
- if (message.creator !== "") {
1871
- writer.uint32(10).string(message.creator);
1872
- }
1873
- if (message.pubkey !== "") {
1874
- writer.uint32(18).string(message.pubkey);
1875
- }
1876
- return writer;
1877
- },
1878
-
1879
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddPubkey {
1880
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1881
- let end = length === undefined ? reader.len : reader.pos + length;
1882
- const message = createBaseMsgAddPubkey();
1883
- while (reader.pos < end) {
1884
- const tag = reader.uint32();
1885
- switch (tag >>> 3) {
1886
- case 1:
1887
- message.creator = reader.string();
1888
- break;
1889
- case 2:
1890
- message.pubkey = reader.string();
1891
- break;
1892
- default:
1893
- reader.skipType(tag & 7);
1894
- break;
1895
- }
1896
- }
1897
- return message;
1898
- },
1899
-
1900
- fromJSON(object: any): MsgAddPubkey {
1901
- return {
1902
- creator: isSet(object.creator) ? String(object.creator) : "",
1903
- pubkey: isSet(object.pubkey) ? String(object.pubkey) : "",
1904
- };
1905
- },
1906
-
1907
- toJSON(message: MsgAddPubkey): unknown {
1908
- const obj: any = {};
1909
- message.creator !== undefined && (obj.creator = message.creator);
1910
- message.pubkey !== undefined && (obj.pubkey = message.pubkey);
1911
- return obj;
1912
- },
1913
-
1914
- fromPartial<I extends Exact<DeepPartial<MsgAddPubkey>, I>>(object: I): MsgAddPubkey {
1915
- const message = createBaseMsgAddPubkey();
1916
- message.creator = object.creator ?? "";
1917
- message.pubkey = object.pubkey ?? "";
1918
- return message;
1919
- },
1920
- };
1921
-
1922
- function createBaseMsgAddPubkeyResponse(): MsgAddPubkeyResponse {
1923
- return { code: "", msg: "" };
1924
- }
1925
-
1926
- export const MsgAddPubkeyResponse = {
1927
- encode(message: MsgAddPubkeyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1928
- if (message.code !== "") {
1929
- writer.uint32(10).string(message.code);
1930
- }
1931
- if (message.msg !== "") {
1932
- writer.uint32(18).string(message.msg);
1933
- }
1934
- return writer;
1935
- },
1936
-
1937
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddPubkeyResponse {
1938
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1939
- let end = length === undefined ? reader.len : reader.pos + length;
1940
- const message = createBaseMsgAddPubkeyResponse();
1941
- while (reader.pos < end) {
1942
- const tag = reader.uint32();
1943
- switch (tag >>> 3) {
1944
- case 1:
1945
- message.code = reader.string();
1946
- break;
1947
- case 2:
1948
- message.msg = reader.string();
1949
- break;
1950
- default:
1951
- reader.skipType(tag & 7);
1952
- break;
1953
- }
1954
- }
1955
- return message;
1956
- },
1957
-
1958
- fromJSON(object: any): MsgAddPubkeyResponse {
1959
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1960
- },
1961
-
1962
- toJSON(message: MsgAddPubkeyResponse): unknown {
1963
- const obj: any = {};
1964
- message.code !== undefined && (obj.code = message.code);
1965
- message.msg !== undefined && (obj.msg = message.msg);
1966
- return obj;
1967
- },
1968
-
1969
- fromPartial<I extends Exact<DeepPartial<MsgAddPubkeyResponse>, I>>(object: I): MsgAddPubkeyResponse {
1970
- const message = createBaseMsgAddPubkeyResponse();
1971
- message.code = object.code ?? "";
1972
- message.msg = object.msg ?? "";
1973
- return message;
1974
- },
1975
- };
1976
-
1977
- function createBaseMsgUpdatePubkeys(): MsgUpdatePubkeys {
1978
- return { creator: "", pubkeys: [] };
1979
- }
1980
-
1981
- export const MsgUpdatePubkeys = {
1982
- encode(message: MsgUpdatePubkeys, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1983
- if (message.creator !== "") {
1984
- writer.uint32(10).string(message.creator);
1985
- }
1986
- for (const v of message.pubkeys) {
1987
- writer.uint32(18).string(v!);
1988
- }
1989
- return writer;
1990
- },
1991
-
1992
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdatePubkeys {
1993
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1994
- let end = length === undefined ? reader.len : reader.pos + length;
1995
- const message = createBaseMsgUpdatePubkeys();
1996
- while (reader.pos < end) {
1997
- const tag = reader.uint32();
1998
- switch (tag >>> 3) {
1999
- case 1:
2000
- message.creator = reader.string();
2001
- break;
2002
- case 2:
2003
- message.pubkeys.push(reader.string());
2004
- break;
2005
- default:
2006
- reader.skipType(tag & 7);
2007
- break;
2008
- }
2009
- }
2010
- return message;
2011
- },
2012
-
2013
- fromJSON(object: any): MsgUpdatePubkeys {
2014
- return {
2015
- creator: isSet(object.creator) ? String(object.creator) : "",
2016
- pubkeys: Array.isArray(object?.pubkeys) ? object.pubkeys.map((e: any) => String(e)) : [],
2017
- };
2018
- },
2019
-
2020
- toJSON(message: MsgUpdatePubkeys): unknown {
2021
- const obj: any = {};
2022
- message.creator !== undefined && (obj.creator = message.creator);
2023
- if (message.pubkeys) {
2024
- obj.pubkeys = message.pubkeys.map((e) => e);
2025
- } else {
2026
- obj.pubkeys = [];
2027
- }
2028
- return obj;
2029
- },
2030
-
2031
- fromPartial<I extends Exact<DeepPartial<MsgUpdatePubkeys>, I>>(object: I): MsgUpdatePubkeys {
2032
- const message = createBaseMsgUpdatePubkeys();
2033
- message.creator = object.creator ?? "";
2034
- message.pubkeys = object.pubkeys?.map((e) => e) || [];
2035
- return message;
2036
- },
2037
- };
2038
-
2039
- function createBaseMsgUpdatePubkeysResponse(): MsgUpdatePubkeysResponse {
2040
- return { code: "", msg: "" };
2041
- }
2042
-
2043
- export const MsgUpdatePubkeysResponse = {
2044
- encode(message: MsgUpdatePubkeysResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2045
- if (message.code !== "") {
2046
- writer.uint32(10).string(message.code);
2047
- }
2048
- if (message.msg !== "") {
2049
- writer.uint32(18).string(message.msg);
2050
- }
2051
- return writer;
2052
- },
2053
-
2054
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdatePubkeysResponse {
2055
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2056
- let end = length === undefined ? reader.len : reader.pos + length;
2057
- const message = createBaseMsgUpdatePubkeysResponse();
2058
- while (reader.pos < end) {
2059
- const tag = reader.uint32();
2060
- switch (tag >>> 3) {
2061
- case 1:
2062
- message.code = reader.string();
2063
- break;
2064
- case 2:
2065
- message.msg = reader.string();
2066
- break;
2067
- default:
2068
- reader.skipType(tag & 7);
2069
- break;
2070
- }
2071
- }
2072
- return message;
2073
- },
2074
-
2075
- fromJSON(object: any): MsgUpdatePubkeysResponse {
2076
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
2077
- },
2078
-
2079
- toJSON(message: MsgUpdatePubkeysResponse): unknown {
2080
- const obj: any = {};
2081
- message.code !== undefined && (obj.code = message.code);
2082
- message.msg !== undefined && (obj.msg = message.msg);
2083
- return obj;
2084
- },
2085
-
2086
- fromPartial<I extends Exact<DeepPartial<MsgUpdatePubkeysResponse>, I>>(object: I): MsgUpdatePubkeysResponse {
2087
- const message = createBaseMsgUpdatePubkeysResponse();
2088
- message.code = object.code ?? "";
2089
- message.msg = object.msg ?? "";
2090
- return message;
2091
- },
2092
- };
2093
-
2094
- function createBaseMsgUpdateTssPubkey(): MsgUpdateTssPubkey {
2095
- return { creator: "", tssPubkey: "", ecdsa: "", eddsa: "", reserved: "" };
2096
- }
2097
-
2098
- export const MsgUpdateTssPubkey = {
2099
- encode(message: MsgUpdateTssPubkey, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2100
- if (message.creator !== "") {
2101
- writer.uint32(10).string(message.creator);
2102
- }
2103
- if (message.tssPubkey !== "") {
2104
- writer.uint32(18).string(message.tssPubkey);
2105
- }
2106
- if (message.ecdsa !== "") {
2107
- writer.uint32(26).string(message.ecdsa);
2108
- }
2109
- if (message.eddsa !== "") {
2110
- writer.uint32(34).string(message.eddsa);
2111
- }
2112
- if (message.reserved !== "") {
2113
- writer.uint32(42).string(message.reserved);
2114
- }
2115
- return writer;
2116
- },
2117
-
2118
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTssPubkey {
2119
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2120
- let end = length === undefined ? reader.len : reader.pos + length;
2121
- const message = createBaseMsgUpdateTssPubkey();
2122
- while (reader.pos < end) {
2123
- const tag = reader.uint32();
2124
- switch (tag >>> 3) {
2125
- case 1:
2126
- message.creator = reader.string();
2127
- break;
2128
- case 2:
2129
- message.tssPubkey = reader.string();
2130
- break;
2131
- case 3:
2132
- message.ecdsa = reader.string();
2133
- break;
2134
- case 4:
2135
- message.eddsa = reader.string();
2136
- break;
2137
- case 5:
2138
- message.reserved = reader.string();
2139
- break;
2140
- default:
2141
- reader.skipType(tag & 7);
2142
- break;
2143
- }
2144
- }
2145
- return message;
2146
- },
2147
-
2148
- fromJSON(object: any): MsgUpdateTssPubkey {
2149
- return {
2150
- creator: isSet(object.creator) ? String(object.creator) : "",
2151
- tssPubkey: isSet(object.tssPubkey) ? String(object.tssPubkey) : "",
2152
- ecdsa: isSet(object.ecdsa) ? String(object.ecdsa) : "",
2153
- eddsa: isSet(object.eddsa) ? String(object.eddsa) : "",
2154
- reserved: isSet(object.reserved) ? String(object.reserved) : "",
2155
- };
2156
- },
2157
-
2158
- toJSON(message: MsgUpdateTssPubkey): unknown {
2159
- const obj: any = {};
2160
- message.creator !== undefined && (obj.creator = message.creator);
2161
- message.tssPubkey !== undefined && (obj.tssPubkey = message.tssPubkey);
2162
- message.ecdsa !== undefined && (obj.ecdsa = message.ecdsa);
2163
- message.eddsa !== undefined && (obj.eddsa = message.eddsa);
2164
- message.reserved !== undefined && (obj.reserved = message.reserved);
2165
- return obj;
2166
- },
2167
-
2168
- fromPartial<I extends Exact<DeepPartial<MsgUpdateTssPubkey>, I>>(object: I): MsgUpdateTssPubkey {
2169
- const message = createBaseMsgUpdateTssPubkey();
2170
- message.creator = object.creator ?? "";
2171
- message.tssPubkey = object.tssPubkey ?? "";
2172
- message.ecdsa = object.ecdsa ?? "";
2173
- message.eddsa = object.eddsa ?? "";
2174
- message.reserved = object.reserved ?? "";
2175
- return message;
2176
- },
2177
- };
2178
-
2179
- function createBaseMsgUpdateTssPubkeyResponse(): MsgUpdateTssPubkeyResponse {
2180
- return { code: "", msg: "" };
2181
- }
2182
-
2183
- export const MsgUpdateTssPubkeyResponse = {
2184
- encode(message: MsgUpdateTssPubkeyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2185
- if (message.code !== "") {
2186
- writer.uint32(10).string(message.code);
2187
- }
2188
- if (message.msg !== "") {
2189
- writer.uint32(18).string(message.msg);
2190
- }
2191
- return writer;
2192
- },
2193
-
2194
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTssPubkeyResponse {
2195
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2196
- let end = length === undefined ? reader.len : reader.pos + length;
2197
- const message = createBaseMsgUpdateTssPubkeyResponse();
2198
- while (reader.pos < end) {
2199
- const tag = reader.uint32();
2200
- switch (tag >>> 3) {
2201
- case 1:
2202
- message.code = reader.string();
2203
- break;
2204
- case 2:
2205
- message.msg = reader.string();
2206
- break;
2207
- default:
2208
- reader.skipType(tag & 7);
2209
- break;
2210
- }
2211
- }
2212
- return message;
2213
- },
2214
-
2215
- fromJSON(object: any): MsgUpdateTssPubkeyResponse {
2216
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
2217
- },
2218
-
2219
- toJSON(message: MsgUpdateTssPubkeyResponse): unknown {
2220
- const obj: any = {};
2221
- message.code !== undefined && (obj.code = message.code);
2222
- message.msg !== undefined && (obj.msg = message.msg);
2223
- return obj;
2224
- },
2225
-
2226
- fromPartial<I extends Exact<DeepPartial<MsgUpdateTssPubkeyResponse>, I>>(object: I): MsgUpdateTssPubkeyResponse {
2227
- const message = createBaseMsgUpdateTssPubkeyResponse();
2228
- message.code = object.code ?? "";
2229
- message.msg = object.msg ?? "";
2230
- return message;
2231
- },
2232
- };
2233
-
2234
- function createBaseMsgRemoveWhitelisted(): MsgRemoveWhitelisted {
2235
- return { creator: "", address: "" };
2236
- }
2237
-
2238
- export const MsgRemoveWhitelisted = {
2239
- encode(message: MsgRemoveWhitelisted, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2240
- if (message.creator !== "") {
2241
- writer.uint32(10).string(message.creator);
2242
- }
2243
- if (message.address !== "") {
2244
- writer.uint32(18).string(message.address);
2245
- }
2246
- return writer;
2247
- },
2248
-
2249
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveWhitelisted {
2250
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2251
- let end = length === undefined ? reader.len : reader.pos + length;
2252
- const message = createBaseMsgRemoveWhitelisted();
2253
- while (reader.pos < end) {
2254
- const tag = reader.uint32();
2255
- switch (tag >>> 3) {
2256
- case 1:
2257
- message.creator = reader.string();
2258
- break;
2259
- case 2:
2260
- message.address = reader.string();
2261
- break;
2262
- default:
2263
- reader.skipType(tag & 7);
2264
- break;
2265
- }
2266
- }
2267
- return message;
2268
- },
2269
-
2270
- fromJSON(object: any): MsgRemoveWhitelisted {
2271
- return {
2272
- creator: isSet(object.creator) ? String(object.creator) : "",
2273
- address: isSet(object.address) ? String(object.address) : "",
2274
- };
2275
- },
2276
-
2277
- toJSON(message: MsgRemoveWhitelisted): unknown {
2278
- const obj: any = {};
2279
- message.creator !== undefined && (obj.creator = message.creator);
2280
- message.address !== undefined && (obj.address = message.address);
2281
- return obj;
2282
- },
2283
-
2284
- fromPartial<I extends Exact<DeepPartial<MsgRemoveWhitelisted>, I>>(object: I): MsgRemoveWhitelisted {
2285
- const message = createBaseMsgRemoveWhitelisted();
2286
- message.creator = object.creator ?? "";
2287
- message.address = object.address ?? "";
2288
- return message;
2289
- },
2290
- };
2291
-
2292
- function createBaseMsgRemoveWhitelistedResponse(): MsgRemoveWhitelistedResponse {
2293
- return { code: "", msg: "" };
2294
- }
2295
-
2296
- export const MsgRemoveWhitelistedResponse = {
2297
- encode(message: MsgRemoveWhitelistedResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2298
- if (message.code !== "") {
2299
- writer.uint32(10).string(message.code);
2300
- }
2301
- if (message.msg !== "") {
2302
- writer.uint32(18).string(message.msg);
2303
- }
2304
- return writer;
2305
- },
2306
-
2307
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveWhitelistedResponse {
2308
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2309
- let end = length === undefined ? reader.len : reader.pos + length;
2310
- const message = createBaseMsgRemoveWhitelistedResponse();
2311
- while (reader.pos < end) {
2312
- const tag = reader.uint32();
2313
- switch (tag >>> 3) {
2314
- case 1:
2315
- message.code = reader.string();
2316
- break;
2317
- case 2:
2318
- message.msg = reader.string();
2319
- break;
2320
- default:
2321
- reader.skipType(tag & 7);
2322
- break;
2323
- }
2324
- }
2325
- return message;
2326
- },
2327
-
2328
- fromJSON(object: any): MsgRemoveWhitelistedResponse {
2329
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
2330
- },
2331
-
2332
- toJSON(message: MsgRemoveWhitelistedResponse): unknown {
2333
- const obj: any = {};
2334
- message.code !== undefined && (obj.code = message.code);
2335
- message.msg !== undefined && (obj.msg = message.msg);
2336
- return obj;
2337
- },
2338
-
2339
- fromPartial<I extends Exact<DeepPartial<MsgRemoveWhitelistedResponse>, I>>(object: I): MsgRemoveWhitelistedResponse {
2340
- const message = createBaseMsgRemoveWhitelistedResponse();
2341
- message.code = object.code ?? "";
2342
- message.msg = object.msg ?? "";
2343
- return message;
2344
- },
2345
- };
2346
-
2347
- function createBaseMsgClearTssInfo(): MsgClearTssInfo {
2348
- return { creator: "" };
2349
- }
2350
-
2351
- export const MsgClearTssInfo = {
2352
- encode(message: MsgClearTssInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2353
- if (message.creator !== "") {
2354
- writer.uint32(10).string(message.creator);
2355
- }
2356
- return writer;
2357
- },
2358
-
2359
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgClearTssInfo {
2360
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2361
- let end = length === undefined ? reader.len : reader.pos + length;
2362
- const message = createBaseMsgClearTssInfo();
2363
- while (reader.pos < end) {
2364
- const tag = reader.uint32();
2365
- switch (tag >>> 3) {
2366
- case 1:
2367
- message.creator = reader.string();
2368
- break;
2369
- default:
2370
- reader.skipType(tag & 7);
2371
- break;
2372
- }
2373
- }
2374
- return message;
2375
- },
2376
-
2377
- fromJSON(object: any): MsgClearTssInfo {
2378
- return { creator: isSet(object.creator) ? String(object.creator) : "" };
2379
- },
2380
-
2381
- toJSON(message: MsgClearTssInfo): unknown {
2382
- const obj: any = {};
2383
- message.creator !== undefined && (obj.creator = message.creator);
2384
- return obj;
2385
- },
2386
-
2387
- fromPartial<I extends Exact<DeepPartial<MsgClearTssInfo>, I>>(object: I): MsgClearTssInfo {
2388
- const message = createBaseMsgClearTssInfo();
2389
- message.creator = object.creator ?? "";
2390
- return message;
2391
- },
2392
- };
2393
-
2394
- function createBaseMsgClearTssInfoResponse(): MsgClearTssInfoResponse {
2395
- return { code: "", msg: "" };
2396
- }
2397
-
2398
- export const MsgClearTssInfoResponse = {
2399
- encode(message: MsgClearTssInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2400
- if (message.code !== "") {
2401
- writer.uint32(10).string(message.code);
2402
- }
2403
- if (message.msg !== "") {
2404
- writer.uint32(18).string(message.msg);
2405
- }
2406
- return writer;
2407
- },
2408
-
2409
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgClearTssInfoResponse {
2410
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2411
- let end = length === undefined ? reader.len : reader.pos + length;
2412
- const message = createBaseMsgClearTssInfoResponse();
2413
- while (reader.pos < end) {
2414
- const tag = reader.uint32();
2415
- switch (tag >>> 3) {
2416
- case 1:
2417
- message.code = reader.string();
2418
- break;
2419
- case 2:
2420
- message.msg = reader.string();
2421
- break;
2422
- default:
2423
- reader.skipType(tag & 7);
2424
- break;
2425
- }
2426
- }
2427
- return message;
2428
- },
2429
-
2430
- fromJSON(object: any): MsgClearTssInfoResponse {
2431
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
2432
- },
2433
-
2434
- toJSON(message: MsgClearTssInfoResponse): unknown {
2435
- const obj: any = {};
2436
- message.code !== undefined && (obj.code = message.code);
2437
- message.msg !== undefined && (obj.msg = message.msg);
2438
- return obj;
2439
- },
2440
-
2441
- fromPartial<I extends Exact<DeepPartial<MsgClearTssInfoResponse>, I>>(object: I): MsgClearTssInfoResponse {
2442
- const message = createBaseMsgClearTssInfoResponse();
2443
- message.code = object.code ?? "";
2444
- message.msg = object.msg ?? "";
2445
- return message;
2446
- },
2447
- };
2448
-
2449
- function createBaseMsgAddChain(): MsgAddChain {
2450
- return { creator: "", name: "", symbol: "", tokens: [] };
2451
- }
2452
-
2453
- export const MsgAddChain = {
2454
- encode(message: MsgAddChain, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2455
- if (message.creator !== "") {
2456
- writer.uint32(10).string(message.creator);
2457
- }
2458
- if (message.name !== "") {
2459
- writer.uint32(18).string(message.name);
2460
- }
2461
- if (message.symbol !== "") {
2462
- writer.uint32(26).string(message.symbol);
2463
- }
2464
- for (const v of message.tokens) {
2465
- writer.uint32(34).string(v!);
2466
- }
2467
- return writer;
2468
- },
2469
-
2470
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddChain {
2471
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2472
- let end = length === undefined ? reader.len : reader.pos + length;
2473
- const message = createBaseMsgAddChain();
2474
- while (reader.pos < end) {
2475
- const tag = reader.uint32();
2476
- switch (tag >>> 3) {
2477
- case 1:
2478
- message.creator = reader.string();
2479
- break;
2480
- case 2:
2481
- message.name = reader.string();
2482
- break;
2483
- case 3:
2484
- message.symbol = reader.string();
2485
- break;
2486
- case 4:
2487
- message.tokens.push(reader.string());
2488
- break;
2489
- default:
2490
- reader.skipType(tag & 7);
2491
- break;
2492
- }
2493
- }
2494
- return message;
2495
- },
2496
-
2497
- fromJSON(object: any): MsgAddChain {
2498
- return {
2499
- creator: isSet(object.creator) ? String(object.creator) : "",
2500
- name: isSet(object.name) ? String(object.name) : "",
2501
- symbol: isSet(object.symbol) ? String(object.symbol) : "",
2502
- tokens: Array.isArray(object?.tokens) ? object.tokens.map((e: any) => String(e)) : [],
2503
- };
2504
- },
2505
-
2506
- toJSON(message: MsgAddChain): unknown {
2507
- const obj: any = {};
2508
- message.creator !== undefined && (obj.creator = message.creator);
2509
- message.name !== undefined && (obj.name = message.name);
2510
- message.symbol !== undefined && (obj.symbol = message.symbol);
2511
- if (message.tokens) {
2512
- obj.tokens = message.tokens.map((e) => e);
2513
- } else {
2514
- obj.tokens = [];
2515
- }
2516
- return obj;
2517
- },
2518
-
2519
- fromPartial<I extends Exact<DeepPartial<MsgAddChain>, I>>(object: I): MsgAddChain {
2520
- const message = createBaseMsgAddChain();
2521
- message.creator = object.creator ?? "";
2522
- message.name = object.name ?? "";
2523
- message.symbol = object.symbol ?? "";
2524
- message.tokens = object.tokens?.map((e) => e) || [];
2525
- return message;
2526
- },
2527
- };
2528
-
2529
- function createBaseMsgAddChainResponse(): MsgAddChainResponse {
2530
- return { code: "", msg: "" };
2531
- }
2532
-
2533
- export const MsgAddChainResponse = {
2534
- encode(message: MsgAddChainResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2535
- if (message.code !== "") {
2536
- writer.uint32(10).string(message.code);
2537
- }
2538
- if (message.msg !== "") {
2539
- writer.uint32(18).string(message.msg);
2540
- }
2541
- return writer;
2542
- },
2543
-
2544
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddChainResponse {
2545
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2546
- let end = length === undefined ? reader.len : reader.pos + length;
2547
- const message = createBaseMsgAddChainResponse();
2548
- while (reader.pos < end) {
2549
- const tag = reader.uint32();
2550
- switch (tag >>> 3) {
2551
- case 1:
2552
- message.code = reader.string();
2553
- break;
2554
- case 2:
2555
- message.msg = reader.string();
2556
- break;
2557
- default:
2558
- reader.skipType(tag & 7);
2559
- break;
2560
- }
2561
- }
2562
- return message;
2563
- },
2564
-
2565
- fromJSON(object: any): MsgAddChainResponse {
2566
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
2567
- },
2568
-
2569
- toJSON(message: MsgAddChainResponse): unknown {
2570
- const obj: any = {};
2571
- message.code !== undefined && (obj.code = message.code);
2572
- message.msg !== undefined && (obj.msg = message.msg);
2573
- return obj;
2574
- },
2575
-
2576
- fromPartial<I extends Exact<DeepPartial<MsgAddChainResponse>, I>>(object: I): MsgAddChainResponse {
2577
- const message = createBaseMsgAddChainResponse();
2578
- message.code = object.code ?? "";
2579
- message.msg = object.msg ?? "";
2580
- return message;
2581
- },
2582
- };
2583
-
2584
- function createBaseMsgUpdateTssHash(): MsgUpdateTssHash {
2585
- return { creator: "", txId: 0, tssPullHash: "" };
2586
- }
2587
-
2588
- export const MsgUpdateTssHash = {
2589
- encode(message: MsgUpdateTssHash, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2590
- if (message.creator !== "") {
2591
- writer.uint32(10).string(message.creator);
2592
- }
2593
- if (message.txId !== 0) {
2594
- writer.uint32(16).uint64(message.txId);
2595
- }
2596
- if (message.tssPullHash !== "") {
2597
- writer.uint32(26).string(message.tssPullHash);
2598
- }
2599
- return writer;
2600
- },
2601
-
2602
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTssHash {
2603
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2604
- let end = length === undefined ? reader.len : reader.pos + length;
2605
- const message = createBaseMsgUpdateTssHash();
2606
- while (reader.pos < end) {
2607
- const tag = reader.uint32();
2608
- switch (tag >>> 3) {
2609
- case 1:
2610
- message.creator = reader.string();
2611
- break;
2612
- case 2:
2613
- message.txId = longToNumber(reader.uint64() as Long);
2614
- break;
2615
- case 3:
2616
- message.tssPullHash = reader.string();
2617
- break;
2618
- default:
2619
- reader.skipType(tag & 7);
2620
- break;
2621
- }
2622
- }
2623
- return message;
2624
- },
2625
-
2626
- fromJSON(object: any): MsgUpdateTssHash {
2627
- return {
2628
- creator: isSet(object.creator) ? String(object.creator) : "",
2629
- txId: isSet(object.txId) ? Number(object.txId) : 0,
2630
- tssPullHash: isSet(object.tssPullHash) ? String(object.tssPullHash) : "",
2631
- };
2632
- },
2633
-
2634
- toJSON(message: MsgUpdateTssHash): unknown {
2635
- const obj: any = {};
2636
- message.creator !== undefined && (obj.creator = message.creator);
2637
- message.txId !== undefined && (obj.txId = Math.round(message.txId));
2638
- message.tssPullHash !== undefined && (obj.tssPullHash = message.tssPullHash);
2639
- return obj;
2640
- },
2641
-
2642
- fromPartial<I extends Exact<DeepPartial<MsgUpdateTssHash>, I>>(object: I): MsgUpdateTssHash {
2643
- const message = createBaseMsgUpdateTssHash();
2644
- message.creator = object.creator ?? "";
2645
- message.txId = object.txId ?? 0;
2646
- message.tssPullHash = object.tssPullHash ?? "";
2647
- return message;
2648
- },
2649
- };
2650
-
2651
- function createBaseMsgUpdateTssHashResponse(): MsgUpdateTssHashResponse {
2652
- return { code: "", msg: "" };
2653
- }
2654
-
2655
- export const MsgUpdateTssHashResponse = {
2656
- encode(message: MsgUpdateTssHashResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2657
- if (message.code !== "") {
2658
- writer.uint32(10).string(message.code);
2659
- }
2660
- if (message.msg !== "") {
2661
- writer.uint32(18).string(message.msg);
2662
- }
2663
- return writer;
2664
- },
2665
-
2666
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTssHashResponse {
2667
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2668
- let end = length === undefined ? reader.len : reader.pos + length;
2669
- const message = createBaseMsgUpdateTssHashResponse();
2670
- while (reader.pos < end) {
2671
- const tag = reader.uint32();
2672
- switch (tag >>> 3) {
2673
- case 1:
2674
- message.code = reader.string();
2675
- break;
2676
- case 2:
2677
- message.msg = reader.string();
2678
- break;
2679
- default:
2680
- reader.skipType(tag & 7);
2681
- break;
2682
- }
2683
- }
2684
- return message;
2685
- },
2686
-
2687
- fromJSON(object: any): MsgUpdateTssHashResponse {
2688
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
2689
- },
2690
-
2691
- toJSON(message: MsgUpdateTssHashResponse): unknown {
2692
- const obj: any = {};
2693
- message.code !== undefined && (obj.code = message.code);
2694
- message.msg !== undefined && (obj.msg = message.msg);
2695
- return obj;
2696
- },
2697
-
2698
- fromPartial<I extends Exact<DeepPartial<MsgUpdateTssHashResponse>, I>>(object: I): MsgUpdateTssHashResponse {
2699
- const message = createBaseMsgUpdateTssHashResponse();
2700
- message.code = object.code ?? "";
2701
- message.msg = object.msg ?? "";
2702
- return message;
2703
- },
2704
- };
2705
-
2706
- function createBaseMsgUpdateChainStatus(): MsgUpdateChainStatus {
2707
- return { creator: "", chainSymbol: "", disabled: false };
2708
- }
2709
-
2710
- export const MsgUpdateChainStatus = {
2711
- encode(message: MsgUpdateChainStatus, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2712
- if (message.creator !== "") {
2713
- writer.uint32(10).string(message.creator);
2714
- }
2715
- if (message.chainSymbol !== "") {
2716
- writer.uint32(18).string(message.chainSymbol);
2717
- }
2718
- if (message.disabled === true) {
2719
- writer.uint32(24).bool(message.disabled);
2720
- }
2721
- return writer;
2722
- },
2723
-
2724
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateChainStatus {
2725
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2726
- let end = length === undefined ? reader.len : reader.pos + length;
2727
- const message = createBaseMsgUpdateChainStatus();
2728
- while (reader.pos < end) {
2729
- const tag = reader.uint32();
2730
- switch (tag >>> 3) {
2731
- case 1:
2732
- message.creator = reader.string();
2733
- break;
2734
- case 2:
2735
- message.chainSymbol = reader.string();
2736
- break;
2737
- case 3:
2738
- message.disabled = reader.bool();
2739
- break;
2740
- default:
2741
- reader.skipType(tag & 7);
2742
- break;
2743
- }
2744
- }
2745
- return message;
2746
- },
2747
-
2748
- fromJSON(object: any): MsgUpdateChainStatus {
2749
- return {
2750
- creator: isSet(object.creator) ? String(object.creator) : "",
2751
- chainSymbol: isSet(object.chainSymbol) ? String(object.chainSymbol) : "",
2752
- disabled: isSet(object.disabled) ? Boolean(object.disabled) : false,
2753
- };
2754
- },
2755
-
2756
- toJSON(message: MsgUpdateChainStatus): unknown {
2757
- const obj: any = {};
2758
- message.creator !== undefined && (obj.creator = message.creator);
2759
- message.chainSymbol !== undefined && (obj.chainSymbol = message.chainSymbol);
2760
- message.disabled !== undefined && (obj.disabled = message.disabled);
2761
- return obj;
2762
- },
2763
-
2764
- fromPartial<I extends Exact<DeepPartial<MsgUpdateChainStatus>, I>>(object: I): MsgUpdateChainStatus {
2765
- const message = createBaseMsgUpdateChainStatus();
2766
- message.creator = object.creator ?? "";
2767
- message.chainSymbol = object.chainSymbol ?? "";
2768
- message.disabled = object.disabled ?? false;
2769
- return message;
2770
- },
2771
- };
2772
-
2773
- function createBaseMsgUpdateChainStatusResponse(): MsgUpdateChainStatusResponse {
2774
- return { code: "", msg: "" };
2775
- }
2776
-
2777
- export const MsgUpdateChainStatusResponse = {
2778
- encode(message: MsgUpdateChainStatusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2779
- if (message.code !== "") {
2780
- writer.uint32(10).string(message.code);
2781
- }
2782
- if (message.msg !== "") {
2783
- writer.uint32(18).string(message.msg);
2784
- }
2785
- return writer;
2786
- },
2787
-
2788
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateChainStatusResponse {
2789
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2790
- let end = length === undefined ? reader.len : reader.pos + length;
2791
- const message = createBaseMsgUpdateChainStatusResponse();
2792
- while (reader.pos < end) {
2793
- const tag = reader.uint32();
2794
- switch (tag >>> 3) {
2795
- case 1:
2796
- message.code = reader.string();
2797
- break;
2798
- case 2:
2799
- message.msg = reader.string();
2800
- break;
2801
- default:
2802
- reader.skipType(tag & 7);
2803
- break;
2804
- }
2805
- }
2806
- return message;
2807
- },
2808
-
2809
- fromJSON(object: any): MsgUpdateChainStatusResponse {
2810
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
2811
- },
2812
-
2813
- toJSON(message: MsgUpdateChainStatusResponse): unknown {
2814
- const obj: any = {};
2815
- message.code !== undefined && (obj.code = message.code);
2816
- message.msg !== undefined && (obj.msg = message.msg);
2817
- return obj;
2818
- },
2819
-
2820
- fromPartial<I extends Exact<DeepPartial<MsgUpdateChainStatusResponse>, I>>(object: I): MsgUpdateChainStatusResponse {
2821
- const message = createBaseMsgUpdateChainStatusResponse();
2822
- message.code = object.code ?? "";
2823
- message.msg = object.msg ?? "";
2824
- return message;
2825
- },
2826
- };
2827
-
2828
- function createBaseMsgAddToken(): MsgAddToken {
2829
- return { creator: "", chainSymbol: "", tokenSymbol: "" };
2830
- }
2831
-
2832
- export const MsgAddToken = {
2833
- encode(message: MsgAddToken, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2834
- if (message.creator !== "") {
2835
- writer.uint32(10).string(message.creator);
2836
- }
2837
- if (message.chainSymbol !== "") {
2838
- writer.uint32(18).string(message.chainSymbol);
2839
- }
2840
- if (message.tokenSymbol !== "") {
2841
- writer.uint32(26).string(message.tokenSymbol);
2842
- }
2843
- return writer;
2844
- },
2845
-
2846
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddToken {
2847
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2848
- let end = length === undefined ? reader.len : reader.pos + length;
2849
- const message = createBaseMsgAddToken();
2850
- while (reader.pos < end) {
2851
- const tag = reader.uint32();
2852
- switch (tag >>> 3) {
2853
- case 1:
2854
- message.creator = reader.string();
2855
- break;
2856
- case 2:
2857
- message.chainSymbol = reader.string();
2858
- break;
2859
- case 3:
2860
- message.tokenSymbol = reader.string();
2861
- break;
2862
- default:
2863
- reader.skipType(tag & 7);
2864
- break;
2865
- }
2866
- }
2867
- return message;
2868
- },
2869
-
2870
- fromJSON(object: any): MsgAddToken {
2871
- return {
2872
- creator: isSet(object.creator) ? String(object.creator) : "",
2873
- chainSymbol: isSet(object.chainSymbol) ? String(object.chainSymbol) : "",
2874
- tokenSymbol: isSet(object.tokenSymbol) ? String(object.tokenSymbol) : "",
2875
- };
2876
- },
2877
-
2878
- toJSON(message: MsgAddToken): unknown {
2879
- const obj: any = {};
2880
- message.creator !== undefined && (obj.creator = message.creator);
2881
- message.chainSymbol !== undefined && (obj.chainSymbol = message.chainSymbol);
2882
- message.tokenSymbol !== undefined && (obj.tokenSymbol = message.tokenSymbol);
2883
- return obj;
2884
- },
2885
-
2886
- fromPartial<I extends Exact<DeepPartial<MsgAddToken>, I>>(object: I): MsgAddToken {
2887
- const message = createBaseMsgAddToken();
2888
- message.creator = object.creator ?? "";
2889
- message.chainSymbol = object.chainSymbol ?? "";
2890
- message.tokenSymbol = object.tokenSymbol ?? "";
2891
- return message;
2892
- },
2893
- };
2894
-
2895
- function createBaseMsgAddTokenResponse(): MsgAddTokenResponse {
2896
- return { code: "", msg: "" };
2897
- }
2898
-
2899
- export const MsgAddTokenResponse = {
2900
- encode(message: MsgAddTokenResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2901
- if (message.code !== "") {
2902
- writer.uint32(10).string(message.code);
2903
- }
2904
- if (message.msg !== "") {
2905
- writer.uint32(18).string(message.msg);
2906
- }
2907
- return writer;
2908
- },
2909
-
2910
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddTokenResponse {
2911
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2912
- let end = length === undefined ? reader.len : reader.pos + length;
2913
- const message = createBaseMsgAddTokenResponse();
2914
- while (reader.pos < end) {
2915
- const tag = reader.uint32();
2916
- switch (tag >>> 3) {
2917
- case 1:
2918
- message.code = reader.string();
2919
- break;
2920
- case 2:
2921
- message.msg = reader.string();
2922
- break;
2923
- default:
2924
- reader.skipType(tag & 7);
2925
- break;
2926
- }
2927
- }
2928
- return message;
2929
- },
2930
-
2931
- fromJSON(object: any): MsgAddTokenResponse {
2932
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
2933
- },
2934
-
2935
- toJSON(message: MsgAddTokenResponse): unknown {
2936
- const obj: any = {};
2937
- message.code !== undefined && (obj.code = message.code);
2938
- message.msg !== undefined && (obj.msg = message.msg);
2939
- return obj;
2940
- },
2941
-
2942
- fromPartial<I extends Exact<DeepPartial<MsgAddTokenResponse>, I>>(object: I): MsgAddTokenResponse {
2943
- const message = createBaseMsgAddTokenResponse();
2944
- message.code = object.code ?? "";
2945
- message.msg = object.msg ?? "";
2946
- return message;
2947
- },
2948
- };
2949
-
2950
- function createBaseMsgUpdateTssStatus(): MsgUpdateTssStatus {
2951
- return { creator: "", status: "" };
2952
- }
2953
-
2954
- export const MsgUpdateTssStatus = {
2955
- encode(message: MsgUpdateTssStatus, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2956
- if (message.creator !== "") {
2957
- writer.uint32(10).string(message.creator);
2958
- }
2959
- if (message.status !== "") {
2960
- writer.uint32(18).string(message.status);
2961
- }
2962
- return writer;
2963
- },
2964
-
2965
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTssStatus {
2966
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2967
- let end = length === undefined ? reader.len : reader.pos + length;
2968
- const message = createBaseMsgUpdateTssStatus();
2969
- while (reader.pos < end) {
2970
- const tag = reader.uint32();
2971
- switch (tag >>> 3) {
2972
- case 1:
2973
- message.creator = reader.string();
2974
- break;
2975
- case 2:
2976
- message.status = reader.string();
2977
- break;
2978
- default:
2979
- reader.skipType(tag & 7);
2980
- break;
2981
- }
2982
- }
2983
- return message;
2984
- },
2985
-
2986
- fromJSON(object: any): MsgUpdateTssStatus {
2987
- return {
2988
- creator: isSet(object.creator) ? String(object.creator) : "",
2989
- status: isSet(object.status) ? String(object.status) : "",
2990
- };
2991
- },
2992
-
2993
- toJSON(message: MsgUpdateTssStatus): unknown {
2994
- const obj: any = {};
2995
- message.creator !== undefined && (obj.creator = message.creator);
2996
- message.status !== undefined && (obj.status = message.status);
2997
- return obj;
2998
- },
2999
-
3000
- fromPartial<I extends Exact<DeepPartial<MsgUpdateTssStatus>, I>>(object: I): MsgUpdateTssStatus {
3001
- const message = createBaseMsgUpdateTssStatus();
3002
- message.creator = object.creator ?? "";
3003
- message.status = object.status ?? "";
3004
- return message;
3005
- },
3006
- };
3007
-
3008
- function createBaseMsgUpdateTssStatusResponse(): MsgUpdateTssStatusResponse {
3009
- return { code: "", msg: "" };
3010
- }
3011
-
3012
- export const MsgUpdateTssStatusResponse = {
3013
- encode(message: MsgUpdateTssStatusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3014
- if (message.code !== "") {
3015
- writer.uint32(10).string(message.code);
3016
- }
3017
- if (message.msg !== "") {
3018
- writer.uint32(18).string(message.msg);
3019
- }
3020
- return writer;
3021
- },
3022
-
3023
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTssStatusResponse {
3024
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3025
- let end = length === undefined ? reader.len : reader.pos + length;
3026
- const message = createBaseMsgUpdateTssStatusResponse();
3027
- while (reader.pos < end) {
3028
- const tag = reader.uint32();
3029
- switch (tag >>> 3) {
3030
- case 1:
3031
- message.code = reader.string();
3032
- break;
3033
- case 2:
3034
- message.msg = reader.string();
3035
- break;
3036
- default:
3037
- reader.skipType(tag & 7);
3038
- break;
3039
- }
3040
- }
3041
- return message;
3042
- },
3043
-
3044
- fromJSON(object: any): MsgUpdateTssStatusResponse {
3045
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
3046
- },
3047
-
3048
- toJSON(message: MsgUpdateTssStatusResponse): unknown {
3049
- const obj: any = {};
3050
- message.code !== undefined && (obj.code = message.code);
3051
- message.msg !== undefined && (obj.msg = message.msg);
3052
- return obj;
3053
- },
3054
-
3055
- fromPartial<I extends Exact<DeepPartial<MsgUpdateTssStatusResponse>, I>>(object: I): MsgUpdateTssStatusResponse {
3056
- const message = createBaseMsgUpdateTssStatusResponse();
3057
- message.code = object.code ?? "";
3058
- message.msg = object.msg ?? "";
3059
- return message;
3060
- },
3061
- };
3062
-
3063
- function createBaseMsgSetTxHash(): MsgSetTxHash {
3064
- return { creator: "", txId: 0, txHash: "" };
3065
- }
3066
-
3067
- export const MsgSetTxHash = {
3068
- encode(message: MsgSetTxHash, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3069
- if (message.creator !== "") {
3070
- writer.uint32(10).string(message.creator);
3071
- }
3072
- if (message.txId !== 0) {
3073
- writer.uint32(16).uint64(message.txId);
3074
- }
3075
- if (message.txHash !== "") {
3076
- writer.uint32(26).string(message.txHash);
3077
- }
3078
- return writer;
3079
- },
3080
-
3081
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxHash {
3082
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3083
- let end = length === undefined ? reader.len : reader.pos + length;
3084
- const message = createBaseMsgSetTxHash();
3085
- while (reader.pos < end) {
3086
- const tag = reader.uint32();
3087
- switch (tag >>> 3) {
3088
- case 1:
3089
- message.creator = reader.string();
3090
- break;
3091
- case 2:
3092
- message.txId = longToNumber(reader.uint64() as Long);
3093
- break;
3094
- case 3:
3095
- message.txHash = reader.string();
3096
- break;
3097
- default:
3098
- reader.skipType(tag & 7);
3099
- break;
3100
- }
3101
- }
3102
- return message;
3103
- },
3104
-
3105
- fromJSON(object: any): MsgSetTxHash {
3106
- return {
3107
- creator: isSet(object.creator) ? String(object.creator) : "",
3108
- txId: isSet(object.txId) ? Number(object.txId) : 0,
3109
- txHash: isSet(object.txHash) ? String(object.txHash) : "",
3110
- };
3111
- },
3112
-
3113
- toJSON(message: MsgSetTxHash): unknown {
3114
- const obj: any = {};
3115
- message.creator !== undefined && (obj.creator = message.creator);
3116
- message.txId !== undefined && (obj.txId = Math.round(message.txId));
3117
- message.txHash !== undefined && (obj.txHash = message.txHash);
3118
- return obj;
3119
- },
3120
-
3121
- fromPartial<I extends Exact<DeepPartial<MsgSetTxHash>, I>>(object: I): MsgSetTxHash {
3122
- const message = createBaseMsgSetTxHash();
3123
- message.creator = object.creator ?? "";
3124
- message.txId = object.txId ?? 0;
3125
- message.txHash = object.txHash ?? "";
3126
- return message;
3127
- },
3128
- };
3129
-
3130
- function createBaseMsgSetTxHashResponse(): MsgSetTxHashResponse {
3131
- return { code: "", msg: "" };
3132
- }
3133
-
3134
- export const MsgSetTxHashResponse = {
3135
- encode(message: MsgSetTxHashResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3136
- if (message.code !== "") {
3137
- writer.uint32(10).string(message.code);
3138
- }
3139
- if (message.msg !== "") {
3140
- writer.uint32(18).string(message.msg);
3141
- }
3142
- return writer;
3143
- },
3144
-
3145
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxHashResponse {
3146
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3147
- let end = length === undefined ? reader.len : reader.pos + length;
3148
- const message = createBaseMsgSetTxHashResponse();
3149
- while (reader.pos < end) {
3150
- const tag = reader.uint32();
3151
- switch (tag >>> 3) {
3152
- case 1:
3153
- message.code = reader.string();
3154
- break;
3155
- case 2:
3156
- message.msg = reader.string();
3157
- break;
3158
- default:
3159
- reader.skipType(tag & 7);
3160
- break;
3161
- }
3162
- }
3163
- return message;
3164
- },
3165
-
3166
- fromJSON(object: any): MsgSetTxHashResponse {
3167
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
3168
- },
3169
-
3170
- toJSON(message: MsgSetTxHashResponse): unknown {
3171
- const obj: any = {};
3172
- message.code !== undefined && (obj.code = message.code);
3173
- message.msg !== undefined && (obj.msg = message.msg);
3174
- return obj;
3175
- },
3176
-
3177
- fromPartial<I extends Exact<DeepPartial<MsgSetTxHashResponse>, I>>(object: I): MsgSetTxHashResponse {
3178
- const message = createBaseMsgSetTxHashResponse();
3179
- message.code = object.code ?? "";
3180
- message.msg = object.msg ?? "";
3181
- return message;
3182
- },
3183
- };
3184
-
3185
- function createBaseMsgSetTxProcess(): MsgSetTxProcess {
3186
- return { creator: "", txId: 0, timestamp: "", msgId: "" };
3187
- }
3188
-
3189
- export const MsgSetTxProcess = {
3190
- encode(message: MsgSetTxProcess, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3191
- if (message.creator !== "") {
3192
- writer.uint32(10).string(message.creator);
3193
- }
3194
- if (message.txId !== 0) {
3195
- writer.uint32(16).uint64(message.txId);
3196
- }
3197
- if (message.timestamp !== "") {
3198
- writer.uint32(26).string(message.timestamp);
3199
- }
3200
- if (message.msgId !== "") {
3201
- writer.uint32(34).string(message.msgId);
3202
- }
3203
- return writer;
3204
- },
3205
-
3206
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxProcess {
3207
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3208
- let end = length === undefined ? reader.len : reader.pos + length;
3209
- const message = createBaseMsgSetTxProcess();
3210
- while (reader.pos < end) {
3211
- const tag = reader.uint32();
3212
- switch (tag >>> 3) {
3213
- case 1:
3214
- message.creator = reader.string();
3215
- break;
3216
- case 2:
3217
- message.txId = longToNumber(reader.uint64() as Long);
3218
- break;
3219
- case 3:
3220
- message.timestamp = reader.string();
3221
- break;
3222
- case 4:
3223
- message.msgId = reader.string();
3224
- break;
3225
- default:
3226
- reader.skipType(tag & 7);
3227
- break;
3228
- }
3229
- }
3230
- return message;
3231
- },
3232
-
3233
- fromJSON(object: any): MsgSetTxProcess {
3234
- return {
3235
- creator: isSet(object.creator) ? String(object.creator) : "",
3236
- txId: isSet(object.txId) ? Number(object.txId) : 0,
3237
- timestamp: isSet(object.timestamp) ? String(object.timestamp) : "",
3238
- msgId: isSet(object.msgId) ? String(object.msgId) : "",
3239
- };
3240
- },
3241
-
3242
- toJSON(message: MsgSetTxProcess): unknown {
3243
- const obj: any = {};
3244
- message.creator !== undefined && (obj.creator = message.creator);
3245
- message.txId !== undefined && (obj.txId = Math.round(message.txId));
3246
- message.timestamp !== undefined && (obj.timestamp = message.timestamp);
3247
- message.msgId !== undefined && (obj.msgId = message.msgId);
3248
- return obj;
3249
- },
3250
-
3251
- fromPartial<I extends Exact<DeepPartial<MsgSetTxProcess>, I>>(object: I): MsgSetTxProcess {
3252
- const message = createBaseMsgSetTxProcess();
3253
- message.creator = object.creator ?? "";
3254
- message.txId = object.txId ?? 0;
3255
- message.timestamp = object.timestamp ?? "";
3256
- message.msgId = object.msgId ?? "";
3257
- return message;
3258
- },
3259
- };
3260
-
3261
- function createBaseMsgSetTxProcessResponse(): MsgSetTxProcessResponse {
3262
- return {};
3263
- }
3264
-
3265
- export const MsgSetTxProcessResponse = {
3266
- encode(_: MsgSetTxProcessResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3267
- return writer;
3268
- },
3269
-
3270
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxProcessResponse {
3271
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3272
- let end = length === undefined ? reader.len : reader.pos + length;
3273
- const message = createBaseMsgSetTxProcessResponse();
3274
- while (reader.pos < end) {
3275
- const tag = reader.uint32();
3276
- switch (tag >>> 3) {
3277
- default:
3278
- reader.skipType(tag & 7);
3279
- break;
3280
- }
3281
- }
3282
- return message;
3283
- },
3284
-
3285
- fromJSON(_: any): MsgSetTxProcessResponse {
3286
- return {};
3287
- },
3288
-
3289
- toJSON(_: MsgSetTxProcessResponse): unknown {
3290
- const obj: any = {};
3291
- return obj;
3292
- },
3293
-
3294
- fromPartial<I extends Exact<DeepPartial<MsgSetTxProcessResponse>, I>>(_: I): MsgSetTxProcessResponse {
3295
- const message = createBaseMsgSetTxProcessResponse();
3296
- return message;
3297
- },
3298
- };
3299
-
3300
- function createBaseMsgFinalizeTransaction(): MsgFinalizeTransaction {
3301
- return { creator: "", txId: 0, txHash: "", success: "", signedKey: "" };
3302
- }
3303
-
3304
- export const MsgFinalizeTransaction = {
3305
- encode(message: MsgFinalizeTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3306
- if (message.creator !== "") {
3307
- writer.uint32(10).string(message.creator);
3308
- }
3309
- if (message.txId !== 0) {
3310
- writer.uint32(16).uint64(message.txId);
3311
- }
3312
- if (message.txHash !== "") {
3313
- writer.uint32(26).string(message.txHash);
3314
- }
3315
- if (message.success !== "") {
3316
- writer.uint32(34).string(message.success);
3317
- }
3318
- if (message.signedKey !== "") {
3319
- writer.uint32(42).string(message.signedKey);
3320
- }
3321
- return writer;
3322
- },
3323
-
3324
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeTransaction {
3325
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3326
- let end = length === undefined ? reader.len : reader.pos + length;
3327
- const message = createBaseMsgFinalizeTransaction();
3328
- while (reader.pos < end) {
3329
- const tag = reader.uint32();
3330
- switch (tag >>> 3) {
3331
- case 1:
3332
- message.creator = reader.string();
3333
- break;
3334
- case 2:
3335
- message.txId = longToNumber(reader.uint64() as Long);
3336
- break;
3337
- case 3:
3338
- message.txHash = reader.string();
3339
- break;
3340
- case 4:
3341
- message.success = reader.string();
3342
- break;
3343
- case 5:
3344
- message.signedKey = reader.string();
3345
- break;
3346
- default:
3347
- reader.skipType(tag & 7);
3348
- break;
3349
- }
3350
- }
3351
- return message;
3352
- },
3353
-
3354
- fromJSON(object: any): MsgFinalizeTransaction {
3355
- return {
3356
- creator: isSet(object.creator) ? String(object.creator) : "",
3357
- txId: isSet(object.txId) ? Number(object.txId) : 0,
3358
- txHash: isSet(object.txHash) ? String(object.txHash) : "",
3359
- success: isSet(object.success) ? String(object.success) : "",
3360
- signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
3361
- };
3362
- },
3363
-
3364
- toJSON(message: MsgFinalizeTransaction): unknown {
3365
- const obj: any = {};
3366
- message.creator !== undefined && (obj.creator = message.creator);
3367
- message.txId !== undefined && (obj.txId = Math.round(message.txId));
3368
- message.txHash !== undefined && (obj.txHash = message.txHash);
3369
- message.success !== undefined && (obj.success = message.success);
3370
- message.signedKey !== undefined && (obj.signedKey = message.signedKey);
3371
- return obj;
3372
- },
3373
-
3374
- fromPartial<I extends Exact<DeepPartial<MsgFinalizeTransaction>, I>>(object: I): MsgFinalizeTransaction {
3375
- const message = createBaseMsgFinalizeTransaction();
3376
- message.creator = object.creator ?? "";
3377
- message.txId = object.txId ?? 0;
3378
- message.txHash = object.txHash ?? "";
3379
- message.success = object.success ?? "";
3380
- message.signedKey = object.signedKey ?? "";
3381
- return message;
3382
- },
3383
- };
3384
-
3385
- function createBaseMsgFinalizeTransactionResponse(): MsgFinalizeTransactionResponse {
3386
- return { code: "", msg: "" };
3387
- }
3388
-
3389
- export const MsgFinalizeTransactionResponse = {
3390
- encode(message: MsgFinalizeTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3391
- if (message.code !== "") {
3392
- writer.uint32(10).string(message.code);
3393
- }
3394
- if (message.msg !== "") {
3395
- writer.uint32(18).string(message.msg);
3396
- }
3397
- return writer;
3398
- },
3399
-
3400
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeTransactionResponse {
3401
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3402
- let end = length === undefined ? reader.len : reader.pos + length;
3403
- const message = createBaseMsgFinalizeTransactionResponse();
3404
- while (reader.pos < end) {
3405
- const tag = reader.uint32();
3406
- switch (tag >>> 3) {
3407
- case 1:
3408
- message.code = reader.string();
3409
- break;
3410
- case 2:
3411
- message.msg = reader.string();
3412
- break;
3413
- default:
3414
- reader.skipType(tag & 7);
3415
- break;
3416
- }
3417
- }
3418
- return message;
3419
- },
3420
-
3421
- fromJSON(object: any): MsgFinalizeTransactionResponse {
3422
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
3423
- },
3424
-
3425
- toJSON(message: MsgFinalizeTransactionResponse): unknown {
3426
- const obj: any = {};
3427
- message.code !== undefined && (obj.code = message.code);
3428
- message.msg !== undefined && (obj.msg = message.msg);
3429
- return obj;
3430
- },
3431
-
3432
- fromPartial<I extends Exact<DeepPartial<MsgFinalizeTransactionResponse>, I>>(
3433
- object: I,
3434
- ): MsgFinalizeTransactionResponse {
3435
- const message = createBaseMsgFinalizeTransactionResponse();
3436
- message.code = object.code ?? "";
3437
- message.msg = object.msg ?? "";
3438
- return message;
3439
- },
3440
- };
3441
-
3442
- function createBaseMsgWithdrawPool(): MsgWithdrawPool {
3443
- return { creator: "", chain: "", targetAddress: "", amount: "" };
3444
- }
3445
-
3446
- export const MsgWithdrawPool = {
3447
- encode(message: MsgWithdrawPool, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3448
- if (message.creator !== "") {
3449
- writer.uint32(10).string(message.creator);
3450
- }
3451
- if (message.chain !== "") {
3452
- writer.uint32(18).string(message.chain);
3453
- }
3454
- if (message.targetAddress !== "") {
3455
- writer.uint32(26).string(message.targetAddress);
3456
- }
3457
- if (message.amount !== "") {
3458
- writer.uint32(34).string(message.amount);
3459
- }
3460
- return writer;
3461
- },
3462
-
3463
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawPool {
3464
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3465
- let end = length === undefined ? reader.len : reader.pos + length;
3466
- const message = createBaseMsgWithdrawPool();
3467
- while (reader.pos < end) {
3468
- const tag = reader.uint32();
3469
- switch (tag >>> 3) {
3470
- case 1:
3471
- message.creator = reader.string();
3472
- break;
3473
- case 2:
3474
- message.chain = reader.string();
3475
- break;
3476
- case 3:
3477
- message.targetAddress = reader.string();
3478
- break;
3479
- case 4:
3480
- message.amount = reader.string();
3481
- break;
3482
- default:
3483
- reader.skipType(tag & 7);
3484
- break;
3485
- }
3486
- }
3487
- return message;
3488
- },
3489
-
3490
- fromJSON(object: any): MsgWithdrawPool {
3491
- return {
3492
- creator: isSet(object.creator) ? String(object.creator) : "",
3493
- chain: isSet(object.chain) ? String(object.chain) : "",
3494
- targetAddress: isSet(object.targetAddress) ? String(object.targetAddress) : "",
3495
- amount: isSet(object.amount) ? String(object.amount) : "",
3496
- };
3497
- },
3498
-
3499
- toJSON(message: MsgWithdrawPool): unknown {
3500
- const obj: any = {};
3501
- message.creator !== undefined && (obj.creator = message.creator);
3502
- message.chain !== undefined && (obj.chain = message.chain);
3503
- message.targetAddress !== undefined && (obj.targetAddress = message.targetAddress);
3504
- message.amount !== undefined && (obj.amount = message.amount);
3505
- return obj;
3506
- },
3507
-
3508
- fromPartial<I extends Exact<DeepPartial<MsgWithdrawPool>, I>>(object: I): MsgWithdrawPool {
3509
- const message = createBaseMsgWithdrawPool();
3510
- message.creator = object.creator ?? "";
3511
- message.chain = object.chain ?? "";
3512
- message.targetAddress = object.targetAddress ?? "";
3513
- message.amount = object.amount ?? "";
3514
- return message;
3515
- },
3516
- };
3517
-
3518
- function createBaseMsgWithdrawPoolResponse(): MsgWithdrawPoolResponse {
3519
- return {};
3520
- }
3521
-
3522
- export const MsgWithdrawPoolResponse = {
3523
- encode(_: MsgWithdrawPoolResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3524
- return writer;
3525
- },
3526
-
3527
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawPoolResponse {
3528
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3529
- let end = length === undefined ? reader.len : reader.pos + length;
3530
- const message = createBaseMsgWithdrawPoolResponse();
3531
- while (reader.pos < end) {
3532
- const tag = reader.uint32();
3533
- switch (tag >>> 3) {
3534
- default:
3535
- reader.skipType(tag & 7);
3536
- break;
3537
- }
3538
- }
3539
- return message;
3540
- },
3541
-
3542
- fromJSON(_: any): MsgWithdrawPoolResponse {
3543
- return {};
3544
- },
3545
-
3546
- toJSON(_: MsgWithdrawPoolResponse): unknown {
3547
- const obj: any = {};
3548
- return obj;
3549
- },
3550
-
3551
- fromPartial<I extends Exact<DeepPartial<MsgWithdrawPoolResponse>, I>>(_: I): MsgWithdrawPoolResponse {
3552
- const message = createBaseMsgWithdrawPoolResponse();
3553
- return message;
3554
- },
3555
- };
3556
-
3557
- function createBaseMsgUpdateToken(): MsgUpdateToken {
3558
- return { creator: "", chain: "", address: "" };
3559
- }
3560
-
3561
- export const MsgUpdateToken = {
3562
- encode(message: MsgUpdateToken, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3563
- if (message.creator !== "") {
3564
- writer.uint32(10).string(message.creator);
3565
- }
3566
- if (message.chain !== "") {
3567
- writer.uint32(18).string(message.chain);
3568
- }
3569
- if (message.address !== "") {
3570
- writer.uint32(26).string(message.address);
3571
- }
3572
- return writer;
3573
- },
3574
-
3575
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateToken {
3576
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3577
- let end = length === undefined ? reader.len : reader.pos + length;
3578
- const message = createBaseMsgUpdateToken();
3579
- while (reader.pos < end) {
3580
- const tag = reader.uint32();
3581
- switch (tag >>> 3) {
3582
- case 1:
3583
- message.creator = reader.string();
3584
- break;
3585
- case 2:
3586
- message.chain = reader.string();
3587
- break;
3588
- case 3:
3589
- message.address = reader.string();
3590
- break;
3591
- default:
3592
- reader.skipType(tag & 7);
3593
- break;
3594
- }
3595
- }
3596
- return message;
3597
- },
3598
-
3599
- fromJSON(object: any): MsgUpdateToken {
3600
- return {
3601
- creator: isSet(object.creator) ? String(object.creator) : "",
3602
- chain: isSet(object.chain) ? String(object.chain) : "",
3603
- address: isSet(object.address) ? String(object.address) : "",
3604
- };
3605
- },
3606
-
3607
- toJSON(message: MsgUpdateToken): unknown {
3608
- const obj: any = {};
3609
- message.creator !== undefined && (obj.creator = message.creator);
3610
- message.chain !== undefined && (obj.chain = message.chain);
3611
- message.address !== undefined && (obj.address = message.address);
3612
- return obj;
3613
- },
3614
-
3615
- fromPartial<I extends Exact<DeepPartial<MsgUpdateToken>, I>>(object: I): MsgUpdateToken {
3616
- const message = createBaseMsgUpdateToken();
3617
- message.creator = object.creator ?? "";
3618
- message.chain = object.chain ?? "";
3619
- message.address = object.address ?? "";
3620
- return message;
3621
- },
3622
- };
3623
-
3624
- function createBaseMsgUpdateTokenResponse(): MsgUpdateTokenResponse {
3625
- return {};
3626
- }
3627
-
3628
- export const MsgUpdateTokenResponse = {
3629
- encode(_: MsgUpdateTokenResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3630
- return writer;
3631
- },
3632
-
3633
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTokenResponse {
3634
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3635
- let end = length === undefined ? reader.len : reader.pos + length;
3636
- const message = createBaseMsgUpdateTokenResponse();
3637
- while (reader.pos < end) {
3638
- const tag = reader.uint32();
3639
- switch (tag >>> 3) {
3640
- default:
3641
- reader.skipType(tag & 7);
3642
- break;
3643
- }
3644
- }
3645
- return message;
3646
- },
3647
-
3648
- fromJSON(_: any): MsgUpdateTokenResponse {
3649
- return {};
3650
- },
3651
-
3652
- toJSON(_: MsgUpdateTokenResponse): unknown {
3653
- const obj: any = {};
3654
- return obj;
3655
- },
3656
-
3657
- fromPartial<I extends Exact<DeepPartial<MsgUpdateTokenResponse>, I>>(_: I): MsgUpdateTokenResponse {
3658
- const message = createBaseMsgUpdateTokenResponse();
3659
- return message;
3660
- },
3661
- };
3662
-
3663
- function createBaseMsgUpdatePoolRequest(): MsgUpdatePoolRequest {
3664
- return { creator: "", reqId: 0, processed: "" };
3665
- }
3666
-
3667
- export const MsgUpdatePoolRequest = {
3668
- encode(message: MsgUpdatePoolRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3669
- if (message.creator !== "") {
3670
- writer.uint32(10).string(message.creator);
3671
- }
3672
- if (message.reqId !== 0) {
3673
- writer.uint32(16).uint64(message.reqId);
3674
- }
3675
- if (message.processed !== "") {
3676
- writer.uint32(26).string(message.processed);
3677
- }
3678
- return writer;
3679
- },
3680
-
3681
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdatePoolRequest {
3682
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3683
- let end = length === undefined ? reader.len : reader.pos + length;
3684
- const message = createBaseMsgUpdatePoolRequest();
3685
- while (reader.pos < end) {
3686
- const tag = reader.uint32();
3687
- switch (tag >>> 3) {
3688
- case 1:
3689
- message.creator = reader.string();
3690
- break;
3691
- case 2:
3692
- message.reqId = longToNumber(reader.uint64() as Long);
3693
- break;
3694
- case 3:
3695
- message.processed = reader.string();
3696
- break;
3697
- default:
3698
- reader.skipType(tag & 7);
3699
- break;
3700
- }
3701
- }
3702
- return message;
3703
- },
3704
-
3705
- fromJSON(object: any): MsgUpdatePoolRequest {
3706
- return {
3707
- creator: isSet(object.creator) ? String(object.creator) : "",
3708
- reqId: isSet(object.reqId) ? Number(object.reqId) : 0,
3709
- processed: isSet(object.processed) ? String(object.processed) : "",
3710
- };
3711
- },
3712
-
3713
- toJSON(message: MsgUpdatePoolRequest): unknown {
3714
- const obj: any = {};
3715
- message.creator !== undefined && (obj.creator = message.creator);
3716
- message.reqId !== undefined && (obj.reqId = Math.round(message.reqId));
3717
- message.processed !== undefined && (obj.processed = message.processed);
3718
- return obj;
3719
- },
3720
-
3721
- fromPartial<I extends Exact<DeepPartial<MsgUpdatePoolRequest>, I>>(object: I): MsgUpdatePoolRequest {
3722
- const message = createBaseMsgUpdatePoolRequest();
3723
- message.creator = object.creator ?? "";
3724
- message.reqId = object.reqId ?? 0;
3725
- message.processed = object.processed ?? "";
3726
- return message;
3727
- },
3728
- };
3729
-
3730
- function createBaseMsgUpdatePoolRequestResponse(): MsgUpdatePoolRequestResponse {
3731
- return {};
3732
- }
3733
-
3734
- export const MsgUpdatePoolRequestResponse = {
3735
- encode(_: MsgUpdatePoolRequestResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3736
- return writer;
3737
- },
3738
-
3739
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdatePoolRequestResponse {
3740
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3741
- let end = length === undefined ? reader.len : reader.pos + length;
3742
- const message = createBaseMsgUpdatePoolRequestResponse();
3743
- while (reader.pos < end) {
3744
- const tag = reader.uint32();
3745
- switch (tag >>> 3) {
3746
- default:
3747
- reader.skipType(tag & 7);
3748
- break;
3749
- }
3750
- }
3751
- return message;
3752
- },
3753
-
3754
- fromJSON(_: any): MsgUpdatePoolRequestResponse {
3755
- return {};
3756
- },
3757
-
3758
- toJSON(_: MsgUpdatePoolRequestResponse): unknown {
3759
- const obj: any = {};
3760
- return obj;
3761
- },
3762
-
3763
- fromPartial<I extends Exact<DeepPartial<MsgUpdatePoolRequestResponse>, I>>(_: I): MsgUpdatePoolRequestResponse {
3764
- const message = createBaseMsgUpdatePoolRequestResponse();
3765
- return message;
3766
- },
3767
- };
3768
-
3769
- function createBaseMsgLeaderIsReady(): MsgLeaderIsReady {
3770
- return { creator: "", msgId: "", peerId: "" };
3771
- }
3772
-
3773
- export const MsgLeaderIsReady = {
3774
- encode(message: MsgLeaderIsReady, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3775
- if (message.creator !== "") {
3776
- writer.uint32(10).string(message.creator);
3777
- }
3778
- if (message.msgId !== "") {
3779
- writer.uint32(18).string(message.msgId);
3780
- }
3781
- if (message.peerId !== "") {
3782
- writer.uint32(26).string(message.peerId);
3783
- }
3784
- return writer;
3785
- },
3786
-
3787
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaderIsReady {
3788
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3789
- let end = length === undefined ? reader.len : reader.pos + length;
3790
- const message = createBaseMsgLeaderIsReady();
3791
- while (reader.pos < end) {
3792
- const tag = reader.uint32();
3793
- switch (tag >>> 3) {
3794
- case 1:
3795
- message.creator = reader.string();
3796
- break;
3797
- case 2:
3798
- message.msgId = reader.string();
3799
- break;
3800
- case 3:
3801
- message.peerId = reader.string();
3802
- break;
3803
- default:
3804
- reader.skipType(tag & 7);
3805
- break;
3806
- }
3807
- }
3808
- return message;
3809
- },
3810
-
3811
- fromJSON(object: any): MsgLeaderIsReady {
3812
- return {
3813
- creator: isSet(object.creator) ? String(object.creator) : "",
3814
- msgId: isSet(object.msgId) ? String(object.msgId) : "",
3815
- peerId: isSet(object.peerId) ? String(object.peerId) : "",
3816
- };
3817
- },
3818
-
3819
- toJSON(message: MsgLeaderIsReady): unknown {
3820
- const obj: any = {};
3821
- message.creator !== undefined && (obj.creator = message.creator);
3822
- message.msgId !== undefined && (obj.msgId = message.msgId);
3823
- message.peerId !== undefined && (obj.peerId = message.peerId);
3824
- return obj;
3825
- },
3826
-
3827
- fromPartial<I extends Exact<DeepPartial<MsgLeaderIsReady>, I>>(object: I): MsgLeaderIsReady {
3828
- const message = createBaseMsgLeaderIsReady();
3829
- message.creator = object.creator ?? "";
3830
- message.msgId = object.msgId ?? "";
3831
- message.peerId = object.peerId ?? "";
3832
- return message;
3833
- },
3834
- };
3835
-
3836
- function createBaseMsgLeaderIsReadyResponse(): MsgLeaderIsReadyResponse {
3837
- return {};
3838
- }
3839
-
3840
- export const MsgLeaderIsReadyResponse = {
3841
- encode(_: MsgLeaderIsReadyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3842
- return writer;
3843
- },
3844
-
3845
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaderIsReadyResponse {
3846
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3847
- let end = length === undefined ? reader.len : reader.pos + length;
3848
- const message = createBaseMsgLeaderIsReadyResponse();
3849
- while (reader.pos < end) {
3850
- const tag = reader.uint32();
3851
- switch (tag >>> 3) {
3852
- default:
3853
- reader.skipType(tag & 7);
3854
- break;
3855
- }
3856
- }
3857
- return message;
3858
- },
3859
-
3860
- fromJSON(_: any): MsgLeaderIsReadyResponse {
3861
- return {};
3862
- },
3863
-
3864
- toJSON(_: MsgLeaderIsReadyResponse): unknown {
3865
- const obj: any = {};
3866
- return obj;
3867
- },
3868
-
3869
- fromPartial<I extends Exact<DeepPartial<MsgLeaderIsReadyResponse>, I>>(_: I): MsgLeaderIsReadyResponse {
3870
- const message = createBaseMsgLeaderIsReadyResponse();
3871
- return message;
3872
- },
3873
- };
3874
-
3875
- function createBaseMsgAddPubkeyEddsa(): MsgAddPubkeyEddsa {
3876
- return { creator: "", pubkey: "" };
3877
- }
3878
-
3879
- export const MsgAddPubkeyEddsa = {
3880
- encode(message: MsgAddPubkeyEddsa, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3881
- if (message.creator !== "") {
3882
- writer.uint32(10).string(message.creator);
3883
- }
3884
- if (message.pubkey !== "") {
3885
- writer.uint32(18).string(message.pubkey);
3886
- }
3887
- return writer;
3888
- },
3889
-
3890
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddPubkeyEddsa {
3891
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3892
- let end = length === undefined ? reader.len : reader.pos + length;
3893
- const message = createBaseMsgAddPubkeyEddsa();
3894
- while (reader.pos < end) {
3895
- const tag = reader.uint32();
3896
- switch (tag >>> 3) {
3897
- case 1:
3898
- message.creator = reader.string();
3899
- break;
3900
- case 2:
3901
- message.pubkey = reader.string();
3902
- break;
3903
- default:
3904
- reader.skipType(tag & 7);
3905
- break;
3906
- }
3907
- }
3908
- return message;
3909
- },
3910
-
3911
- fromJSON(object: any): MsgAddPubkeyEddsa {
3912
- return {
3913
- creator: isSet(object.creator) ? String(object.creator) : "",
3914
- pubkey: isSet(object.pubkey) ? String(object.pubkey) : "",
1357
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
1358
+ txHash: isSet(object.txHash) ? String(object.txHash) : "",
1359
+ success: isSet(object.success) ? String(object.success) : "",
1360
+ signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
3915
1361
  };
3916
1362
  },
3917
1363
 
3918
- toJSON(message: MsgAddPubkeyEddsa): unknown {
1364
+ toJSON(message: MsgFinalizeDrainTransaction): unknown {
3919
1365
  const obj: any = {};
3920
1366
  message.creator !== undefined && (obj.creator = message.creator);
3921
- message.pubkey !== undefined && (obj.pubkey = message.pubkey);
1367
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
1368
+ message.txHash !== undefined && (obj.txHash = message.txHash);
1369
+ message.success !== undefined && (obj.success = message.success);
1370
+ message.signedKey !== undefined && (obj.signedKey = message.signedKey);
3922
1371
  return obj;
3923
1372
  },
3924
1373
 
3925
- fromPartial<I extends Exact<DeepPartial<MsgAddPubkeyEddsa>, I>>(object: I): MsgAddPubkeyEddsa {
3926
- const message = createBaseMsgAddPubkeyEddsa();
1374
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeDrainTransaction>, I>>(object: I): MsgFinalizeDrainTransaction {
1375
+ const message = createBaseMsgFinalizeDrainTransaction();
3927
1376
  message.creator = object.creator ?? "";
3928
- message.pubkey = object.pubkey ?? "";
1377
+ message.txId = object.txId ?? 0;
1378
+ message.txHash = object.txHash ?? "";
1379
+ message.success = object.success ?? "";
1380
+ message.signedKey = object.signedKey ?? "";
3929
1381
  return message;
3930
1382
  },
3931
1383
  };
3932
1384
 
3933
- function createBaseMsgAddPubkeyEddsaResponse(): MsgAddPubkeyEddsaResponse {
1385
+ function createBaseMsgFinalizeDrainTransactionResponse(): MsgFinalizeDrainTransactionResponse {
3934
1386
  return { code: "", msg: "" };
3935
1387
  }
3936
1388
 
3937
- export const MsgAddPubkeyEddsaResponse = {
3938
- encode(message: MsgAddPubkeyEddsaResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1389
+ export const MsgFinalizeDrainTransactionResponse = {
1390
+ encode(message: MsgFinalizeDrainTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3939
1391
  if (message.code !== "") {
3940
1392
  writer.uint32(10).string(message.code);
3941
1393
  }
@@ -3945,10 +1397,10 @@ export const MsgAddPubkeyEddsaResponse = {
3945
1397
  return writer;
3946
1398
  },
3947
1399
 
3948
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddPubkeyEddsaResponse {
1400
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeDrainTransactionResponse {
3949
1401
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3950
1402
  let end = length === undefined ? reader.len : reader.pos + length;
3951
- const message = createBaseMsgAddPubkeyEddsaResponse();
1403
+ const message = createBaseMsgFinalizeDrainTransactionResponse();
3952
1404
  while (reader.pos < end) {
3953
1405
  const tag = reader.uint32();
3954
1406
  switch (tag >>> 3) {
@@ -3966,19 +1418,21 @@ export const MsgAddPubkeyEddsaResponse = {
3966
1418
  return message;
3967
1419
  },
3968
1420
 
3969
- fromJSON(object: any): MsgAddPubkeyEddsaResponse {
1421
+ fromJSON(object: any): MsgFinalizeDrainTransactionResponse {
3970
1422
  return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
3971
1423
  },
3972
1424
 
3973
- toJSON(message: MsgAddPubkeyEddsaResponse): unknown {
1425
+ toJSON(message: MsgFinalizeDrainTransactionResponse): unknown {
3974
1426
  const obj: any = {};
3975
1427
  message.code !== undefined && (obj.code = message.code);
3976
1428
  message.msg !== undefined && (obj.msg = message.msg);
3977
1429
  return obj;
3978
1430
  },
3979
1431
 
3980
- fromPartial<I extends Exact<DeepPartial<MsgAddPubkeyEddsaResponse>, I>>(object: I): MsgAddPubkeyEddsaResponse {
3981
- const message = createBaseMsgAddPubkeyEddsaResponse();
1432
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeDrainTransactionResponse>, I>>(
1433
+ object: I,
1434
+ ): MsgFinalizeDrainTransactionResponse {
1435
+ const message = createBaseMsgFinalizeDrainTransactionResponse();
3982
1436
  message.code = object.code ?? "";
3983
1437
  message.msg = object.msg ?? "";
3984
1438
  return message;
@@ -3988,34 +1442,16 @@ export const MsgAddPubkeyEddsaResponse = {
3988
1442
  /** Msg defines the Msg service. */
3989
1443
  export interface Msg {
3990
1444
  RequestTransaction(request: MsgRequestTransaction): Promise<MsgRequestTransactionResponse>;
3991
- ApproveTransaction(request: MsgApproveTransaction): Promise<MsgApproveTransactionResponse>;
3992
- ObservationVote(request: MsgObservationVote): Promise<MsgObservationVoteResponse>;
3993
- UpdateBalance(request: MsgUpdateBalance): Promise<MsgUpdateBalanceResponse>;
3994
- KeysignVote(request: MsgKeysignVote): Promise<MsgKeysignVoteResponse>;
3995
- UpdateGasFee(request: MsgUpdateGasFee): Promise<MsgUpdateGasFeeResponse>;
3996
- ProvisionTransaction(request: MsgProvisionTransaction): Promise<MsgProvisionTransactionResponse>;
3997
- DrainTransaction(request: MsgDrainTransaction): Promise<MsgDrainTransactionResponse>;
1445
+ FinalizeTransaction(request: MsgFinalizeTransaction): Promise<MsgFinalizeTransactionResponse>;
1446
+ RequestProvisionTransaction(request: MsgRequestProvisionTransaction): Promise<MsgRequestProvisionTransactionResponse>;
3998
1447
  CancelTransaction(request: MsgCancelTransaction): Promise<MsgCancelTransactionResponse>;
3999
- AddWhitelisted(request: MsgAddWhitelisted): Promise<MsgAddWhitelistedResponse>;
4000
- SetAdmin(request: MsgSetAdmin): Promise<MsgSetAdminResponse>;
4001
- AddPubkey(request: MsgAddPubkey): Promise<MsgAddPubkeyResponse>;
4002
- UpdatePubkeys(request: MsgUpdatePubkeys): Promise<MsgUpdatePubkeysResponse>;
4003
- UpdateTssPubkey(request: MsgUpdateTssPubkey): Promise<MsgUpdateTssPubkeyResponse>;
4004
- RemoveWhitelisted(request: MsgRemoveWhitelisted): Promise<MsgRemoveWhitelistedResponse>;
4005
- ClearTssInfo(request: MsgClearTssInfo): Promise<MsgClearTssInfoResponse>;
4006
- AddChain(request: MsgAddChain): Promise<MsgAddChainResponse>;
4007
- UpdateTssHash(request: MsgUpdateTssHash): Promise<MsgUpdateTssHashResponse>;
4008
- UpdateChainStatus(request: MsgUpdateChainStatus): Promise<MsgUpdateChainStatusResponse>;
4009
- AddToken(request: MsgAddToken): Promise<MsgAddTokenResponse>;
4010
- UpdateTssStatus(request: MsgUpdateTssStatus): Promise<MsgUpdateTssStatusResponse>;
4011
1448
  SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse>;
4012
1449
  SetTxProcess(request: MsgSetTxProcess): Promise<MsgSetTxProcessResponse>;
4013
- FinalizeTransaction(request: MsgFinalizeTransaction): Promise<MsgFinalizeTransactionResponse>;
4014
- WithdrawPool(request: MsgWithdrawPool): Promise<MsgWithdrawPoolResponse>;
4015
- UpdateToken(request: MsgUpdateToken): Promise<MsgUpdateTokenResponse>;
4016
- UpdatePoolRequest(request: MsgUpdatePoolRequest): Promise<MsgUpdatePoolRequestResponse>;
4017
- LeaderIsReady(request: MsgLeaderIsReady): Promise<MsgLeaderIsReadyResponse>;
4018
- AddPubkeyEddsa(request: MsgAddPubkeyEddsa): Promise<MsgAddPubkeyEddsaResponse>;
1450
+ FinalizeProvisionTransaction(
1451
+ request: MsgFinalizeProvisionTransaction,
1452
+ ): Promise<MsgFinalizeProvisionTransactionResponse>;
1453
+ RequestDrainTransaction(request: MsgRequestDrainTransaction): Promise<MsgRequestDrainTransactionResponse>;
1454
+ FinalizeDrainTransaction(request: MsgFinalizeDrainTransaction): Promise<MsgFinalizeDrainTransactionResponse>;
4019
1455
  }
4020
1456
 
4021
1457
  export class MsgClientImpl implements Msg {
@@ -4023,207 +1459,71 @@ export class MsgClientImpl implements Msg {
4023
1459
  constructor(rpc: Rpc) {
4024
1460
  this.rpc = rpc;
4025
1461
  this.RequestTransaction = this.RequestTransaction.bind(this);
4026
- this.ApproveTransaction = this.ApproveTransaction.bind(this);
4027
- this.ObservationVote = this.ObservationVote.bind(this);
4028
- this.UpdateBalance = this.UpdateBalance.bind(this);
4029
- this.KeysignVote = this.KeysignVote.bind(this);
4030
- this.UpdateGasFee = this.UpdateGasFee.bind(this);
4031
- this.ProvisionTransaction = this.ProvisionTransaction.bind(this);
4032
- this.DrainTransaction = this.DrainTransaction.bind(this);
1462
+ this.FinalizeTransaction = this.FinalizeTransaction.bind(this);
1463
+ this.RequestProvisionTransaction = this.RequestProvisionTransaction.bind(this);
4033
1464
  this.CancelTransaction = this.CancelTransaction.bind(this);
4034
- this.AddWhitelisted = this.AddWhitelisted.bind(this);
4035
- this.SetAdmin = this.SetAdmin.bind(this);
4036
- this.AddPubkey = this.AddPubkey.bind(this);
4037
- this.UpdatePubkeys = this.UpdatePubkeys.bind(this);
4038
- this.UpdateTssPubkey = this.UpdateTssPubkey.bind(this);
4039
- this.RemoveWhitelisted = this.RemoveWhitelisted.bind(this);
4040
- this.ClearTssInfo = this.ClearTssInfo.bind(this);
4041
- this.AddChain = this.AddChain.bind(this);
4042
- this.UpdateTssHash = this.UpdateTssHash.bind(this);
4043
- this.UpdateChainStatus = this.UpdateChainStatus.bind(this);
4044
- this.AddToken = this.AddToken.bind(this);
4045
- this.UpdateTssStatus = this.UpdateTssStatus.bind(this);
4046
1465
  this.SetTxHash = this.SetTxHash.bind(this);
4047
1466
  this.SetTxProcess = this.SetTxProcess.bind(this);
4048
- this.FinalizeTransaction = this.FinalizeTransaction.bind(this);
4049
- this.WithdrawPool = this.WithdrawPool.bind(this);
4050
- this.UpdateToken = this.UpdateToken.bind(this);
4051
- this.UpdatePoolRequest = this.UpdatePoolRequest.bind(this);
4052
- this.LeaderIsReady = this.LeaderIsReady.bind(this);
4053
- this.AddPubkeyEddsa = this.AddPubkeyEddsa.bind(this);
1467
+ this.FinalizeProvisionTransaction = this.FinalizeProvisionTransaction.bind(this);
1468
+ this.RequestDrainTransaction = this.RequestDrainTransaction.bind(this);
1469
+ this.FinalizeDrainTransaction = this.FinalizeDrainTransaction.bind(this);
4054
1470
  }
4055
1471
  RequestTransaction(request: MsgRequestTransaction): Promise<MsgRequestTransactionResponse> {
4056
1472
  const data = MsgRequestTransaction.encode(request).finish();
4057
- const promise = this.rpc.request("kimablockchain.kima.Msg", "RequestTransaction", data);
1473
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestTransaction", data);
4058
1474
  return promise.then((data) => MsgRequestTransactionResponse.decode(new _m0.Reader(data)));
4059
1475
  }
4060
1476
 
4061
- ApproveTransaction(request: MsgApproveTransaction): Promise<MsgApproveTransactionResponse> {
4062
- const data = MsgApproveTransaction.encode(request).finish();
4063
- const promise = this.rpc.request("kimablockchain.kima.Msg", "ApproveTransaction", data);
4064
- return promise.then((data) => MsgApproveTransactionResponse.decode(new _m0.Reader(data)));
4065
- }
4066
-
4067
- ObservationVote(request: MsgObservationVote): Promise<MsgObservationVoteResponse> {
4068
- const data = MsgObservationVote.encode(request).finish();
4069
- const promise = this.rpc.request("kimablockchain.kima.Msg", "ObservationVote", data);
4070
- return promise.then((data) => MsgObservationVoteResponse.decode(new _m0.Reader(data)));
4071
- }
4072
-
4073
- UpdateBalance(request: MsgUpdateBalance): Promise<MsgUpdateBalanceResponse> {
4074
- const data = MsgUpdateBalance.encode(request).finish();
4075
- const promise = this.rpc.request("kimablockchain.kima.Msg", "UpdateBalance", data);
4076
- return promise.then((data) => MsgUpdateBalanceResponse.decode(new _m0.Reader(data)));
4077
- }
4078
-
4079
- KeysignVote(request: MsgKeysignVote): Promise<MsgKeysignVoteResponse> {
4080
- const data = MsgKeysignVote.encode(request).finish();
4081
- const promise = this.rpc.request("kimablockchain.kima.Msg", "KeysignVote", data);
4082
- return promise.then((data) => MsgKeysignVoteResponse.decode(new _m0.Reader(data)));
4083
- }
4084
-
4085
- UpdateGasFee(request: MsgUpdateGasFee): Promise<MsgUpdateGasFeeResponse> {
4086
- const data = MsgUpdateGasFee.encode(request).finish();
4087
- const promise = this.rpc.request("kimablockchain.kima.Msg", "UpdateGasFee", data);
4088
- return promise.then((data) => MsgUpdateGasFeeResponse.decode(new _m0.Reader(data)));
4089
- }
4090
-
4091
- ProvisionTransaction(request: MsgProvisionTransaction): Promise<MsgProvisionTransactionResponse> {
4092
- const data = MsgProvisionTransaction.encode(request).finish();
4093
- const promise = this.rpc.request("kimablockchain.kima.Msg", "ProvisionTransaction", data);
4094
- return promise.then((data) => MsgProvisionTransactionResponse.decode(new _m0.Reader(data)));
1477
+ FinalizeTransaction(request: MsgFinalizeTransaction): Promise<MsgFinalizeTransactionResponse> {
1478
+ const data = MsgFinalizeTransaction.encode(request).finish();
1479
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeTransaction", data);
1480
+ return promise.then((data) => MsgFinalizeTransactionResponse.decode(new _m0.Reader(data)));
4095
1481
  }
4096
1482
 
4097
- DrainTransaction(request: MsgDrainTransaction): Promise<MsgDrainTransactionResponse> {
4098
- const data = MsgDrainTransaction.encode(request).finish();
4099
- const promise = this.rpc.request("kimablockchain.kima.Msg", "DrainTransaction", data);
4100
- return promise.then((data) => MsgDrainTransactionResponse.decode(new _m0.Reader(data)));
1483
+ RequestProvisionTransaction(
1484
+ request: MsgRequestProvisionTransaction,
1485
+ ): Promise<MsgRequestProvisionTransactionResponse> {
1486
+ const data = MsgRequestProvisionTransaction.encode(request).finish();
1487
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestProvisionTransaction", data);
1488
+ return promise.then((data) => MsgRequestProvisionTransactionResponse.decode(new _m0.Reader(data)));
4101
1489
  }
4102
1490
 
4103
1491
  CancelTransaction(request: MsgCancelTransaction): Promise<MsgCancelTransactionResponse> {
4104
1492
  const data = MsgCancelTransaction.encode(request).finish();
4105
- const promise = this.rpc.request("kimablockchain.kima.Msg", "CancelTransaction", data);
1493
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "CancelTransaction", data);
4106
1494
  return promise.then((data) => MsgCancelTransactionResponse.decode(new _m0.Reader(data)));
4107
1495
  }
4108
1496
 
4109
- AddWhitelisted(request: MsgAddWhitelisted): Promise<MsgAddWhitelistedResponse> {
4110
- const data = MsgAddWhitelisted.encode(request).finish();
4111
- const promise = this.rpc.request("kimablockchain.kima.Msg", "AddWhitelisted", data);
4112
- return promise.then((data) => MsgAddWhitelistedResponse.decode(new _m0.Reader(data)));
4113
- }
4114
-
4115
- SetAdmin(request: MsgSetAdmin): Promise<MsgSetAdminResponse> {
4116
- const data = MsgSetAdmin.encode(request).finish();
4117
- const promise = this.rpc.request("kimablockchain.kima.Msg", "SetAdmin", data);
4118
- return promise.then((data) => MsgSetAdminResponse.decode(new _m0.Reader(data)));
4119
- }
4120
-
4121
- AddPubkey(request: MsgAddPubkey): Promise<MsgAddPubkeyResponse> {
4122
- const data = MsgAddPubkey.encode(request).finish();
4123
- const promise = this.rpc.request("kimablockchain.kima.Msg", "AddPubkey", data);
4124
- return promise.then((data) => MsgAddPubkeyResponse.decode(new _m0.Reader(data)));
4125
- }
4126
-
4127
- UpdatePubkeys(request: MsgUpdatePubkeys): Promise<MsgUpdatePubkeysResponse> {
4128
- const data = MsgUpdatePubkeys.encode(request).finish();
4129
- const promise = this.rpc.request("kimablockchain.kima.Msg", "UpdatePubkeys", data);
4130
- return promise.then((data) => MsgUpdatePubkeysResponse.decode(new _m0.Reader(data)));
4131
- }
4132
-
4133
- UpdateTssPubkey(request: MsgUpdateTssPubkey): Promise<MsgUpdateTssPubkeyResponse> {
4134
- const data = MsgUpdateTssPubkey.encode(request).finish();
4135
- const promise = this.rpc.request("kimablockchain.kima.Msg", "UpdateTssPubkey", data);
4136
- return promise.then((data) => MsgUpdateTssPubkeyResponse.decode(new _m0.Reader(data)));
4137
- }
4138
-
4139
- RemoveWhitelisted(request: MsgRemoveWhitelisted): Promise<MsgRemoveWhitelistedResponse> {
4140
- const data = MsgRemoveWhitelisted.encode(request).finish();
4141
- const promise = this.rpc.request("kimablockchain.kima.Msg", "RemoveWhitelisted", data);
4142
- return promise.then((data) => MsgRemoveWhitelistedResponse.decode(new _m0.Reader(data)));
4143
- }
4144
-
4145
- ClearTssInfo(request: MsgClearTssInfo): Promise<MsgClearTssInfoResponse> {
4146
- const data = MsgClearTssInfo.encode(request).finish();
4147
- const promise = this.rpc.request("kimablockchain.kima.Msg", "ClearTssInfo", data);
4148
- return promise.then((data) => MsgClearTssInfoResponse.decode(new _m0.Reader(data)));
4149
- }
4150
-
4151
- AddChain(request: MsgAddChain): Promise<MsgAddChainResponse> {
4152
- const data = MsgAddChain.encode(request).finish();
4153
- const promise = this.rpc.request("kimablockchain.kima.Msg", "AddChain", data);
4154
- return promise.then((data) => MsgAddChainResponse.decode(new _m0.Reader(data)));
4155
- }
4156
-
4157
- UpdateTssHash(request: MsgUpdateTssHash): Promise<MsgUpdateTssHashResponse> {
4158
- const data = MsgUpdateTssHash.encode(request).finish();
4159
- const promise = this.rpc.request("kimablockchain.kima.Msg", "UpdateTssHash", data);
4160
- return promise.then((data) => MsgUpdateTssHashResponse.decode(new _m0.Reader(data)));
4161
- }
4162
-
4163
- UpdateChainStatus(request: MsgUpdateChainStatus): Promise<MsgUpdateChainStatusResponse> {
4164
- const data = MsgUpdateChainStatus.encode(request).finish();
4165
- const promise = this.rpc.request("kimablockchain.kima.Msg", "UpdateChainStatus", data);
4166
- return promise.then((data) => MsgUpdateChainStatusResponse.decode(new _m0.Reader(data)));
4167
- }
4168
-
4169
- AddToken(request: MsgAddToken): Promise<MsgAddTokenResponse> {
4170
- const data = MsgAddToken.encode(request).finish();
4171
- const promise = this.rpc.request("kimablockchain.kima.Msg", "AddToken", data);
4172
- return promise.then((data) => MsgAddTokenResponse.decode(new _m0.Reader(data)));
4173
- }
4174
-
4175
- UpdateTssStatus(request: MsgUpdateTssStatus): Promise<MsgUpdateTssStatusResponse> {
4176
- const data = MsgUpdateTssStatus.encode(request).finish();
4177
- const promise = this.rpc.request("kimablockchain.kima.Msg", "UpdateTssStatus", data);
4178
- return promise.then((data) => MsgUpdateTssStatusResponse.decode(new _m0.Reader(data)));
4179
- }
4180
-
4181
1497
  SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse> {
4182
1498
  const data = MsgSetTxHash.encode(request).finish();
4183
- const promise = this.rpc.request("kimablockchain.kima.Msg", "SetTxHash", data);
1499
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "SetTxHash", data);
4184
1500
  return promise.then((data) => MsgSetTxHashResponse.decode(new _m0.Reader(data)));
4185
1501
  }
4186
1502
 
4187
1503
  SetTxProcess(request: MsgSetTxProcess): Promise<MsgSetTxProcessResponse> {
4188
1504
  const data = MsgSetTxProcess.encode(request).finish();
4189
- const promise = this.rpc.request("kimablockchain.kima.Msg", "SetTxProcess", data);
1505
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "SetTxProcess", data);
4190
1506
  return promise.then((data) => MsgSetTxProcessResponse.decode(new _m0.Reader(data)));
4191
1507
  }
4192
1508
 
4193
- FinalizeTransaction(request: MsgFinalizeTransaction): Promise<MsgFinalizeTransactionResponse> {
4194
- const data = MsgFinalizeTransaction.encode(request).finish();
4195
- const promise = this.rpc.request("kimablockchain.kima.Msg", "FinalizeTransaction", data);
4196
- return promise.then((data) => MsgFinalizeTransactionResponse.decode(new _m0.Reader(data)));
4197
- }
4198
-
4199
- WithdrawPool(request: MsgWithdrawPool): Promise<MsgWithdrawPoolResponse> {
4200
- const data = MsgWithdrawPool.encode(request).finish();
4201
- const promise = this.rpc.request("kimablockchain.kima.Msg", "WithdrawPool", data);
4202
- return promise.then((data) => MsgWithdrawPoolResponse.decode(new _m0.Reader(data)));
4203
- }
4204
-
4205
- UpdateToken(request: MsgUpdateToken): Promise<MsgUpdateTokenResponse> {
4206
- const data = MsgUpdateToken.encode(request).finish();
4207
- const promise = this.rpc.request("kimablockchain.kima.Msg", "UpdateToken", data);
4208
- return promise.then((data) => MsgUpdateTokenResponse.decode(new _m0.Reader(data)));
4209
- }
4210
-
4211
- UpdatePoolRequest(request: MsgUpdatePoolRequest): Promise<MsgUpdatePoolRequestResponse> {
4212
- const data = MsgUpdatePoolRequest.encode(request).finish();
4213
- const promise = this.rpc.request("kimablockchain.kima.Msg", "UpdatePoolRequest", data);
4214
- return promise.then((data) => MsgUpdatePoolRequestResponse.decode(new _m0.Reader(data)));
1509
+ FinalizeProvisionTransaction(
1510
+ request: MsgFinalizeProvisionTransaction,
1511
+ ): Promise<MsgFinalizeProvisionTransactionResponse> {
1512
+ const data = MsgFinalizeProvisionTransaction.encode(request).finish();
1513
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeProvisionTransaction", data);
1514
+ return promise.then((data) => MsgFinalizeProvisionTransactionResponse.decode(new _m0.Reader(data)));
4215
1515
  }
4216
1516
 
4217
- LeaderIsReady(request: MsgLeaderIsReady): Promise<MsgLeaderIsReadyResponse> {
4218
- const data = MsgLeaderIsReady.encode(request).finish();
4219
- const promise = this.rpc.request("kimablockchain.kima.Msg", "LeaderIsReady", data);
4220
- return promise.then((data) => MsgLeaderIsReadyResponse.decode(new _m0.Reader(data)));
1517
+ RequestDrainTransaction(request: MsgRequestDrainTransaction): Promise<MsgRequestDrainTransactionResponse> {
1518
+ const data = MsgRequestDrainTransaction.encode(request).finish();
1519
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestDrainTransaction", data);
1520
+ return promise.then((data) => MsgRequestDrainTransactionResponse.decode(new _m0.Reader(data)));
4221
1521
  }
4222
1522
 
4223
- AddPubkeyEddsa(request: MsgAddPubkeyEddsa): Promise<MsgAddPubkeyEddsaResponse> {
4224
- const data = MsgAddPubkeyEddsa.encode(request).finish();
4225
- const promise = this.rpc.request("kimablockchain.kima.Msg", "AddPubkeyEddsa", data);
4226
- return promise.then((data) => MsgAddPubkeyEddsaResponse.decode(new _m0.Reader(data)));
1523
+ FinalizeDrainTransaction(request: MsgFinalizeDrainTransaction): Promise<MsgFinalizeDrainTransactionResponse> {
1524
+ const data = MsgFinalizeDrainTransaction.encode(request).finish();
1525
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeDrainTransaction", data);
1526
+ return promise.then((data) => MsgFinalizeDrainTransactionResponse.decode(new _m0.Reader(data)));
4227
1527
  }
4228
1528
  }
4229
1529