@kimafinance/kima-transaction-api 1.0.20-beta.1 → 1.0.22-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,132 +72,6 @@ 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;
@@ -265,69 +86,37 @@ export interface MsgSetTxHashResponse {
265
86
  export interface MsgSetTxProcess {
266
87
  creator: string;
267
88
  txId: number;
268
- timestamp: string;
89
+ timestamp: number;
269
90
  msgId: string;
270
91
  }
271
92
 
272
93
  export interface MsgSetTxProcessResponse {
273
94
  }
274
95
 
275
- export interface MsgFinalizeTransaction {
96
+ export interface MsgRequestDrainTransaction {
276
97
  creator: string;
277
- txId: number;
278
- txHash: string;
279
- success: string;
280
- signedKey: string;
98
+ toChain: string;
99
+ toAddress: string;
100
+ symbol: string;
101
+ amount: string;
102
+ options: string;
281
103
  }
282
104
 
283
- export interface MsgFinalizeTransactionResponse {
105
+ export interface MsgRequestDrainTransactionResponse {
284
106
  code: string;
285
107
  msg: string;
108
+ txId: number;
286
109
  }
287
110
 
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 {
111
+ export interface MsgFinalizeDrainTransaction {
326
112
  creator: string;
327
- pubkey: string;
113
+ txId: number;
114
+ txHash: string;
115
+ success: string;
116
+ signedKey: string;
328
117
  }
329
118
 
330
- export interface MsgAddPubkeyEddsaResponse {
119
+ export interface MsgFinalizeDrainTransactionResponse {
331
120
  code: string;
332
121
  msg: string;
333
122
  }
@@ -522,20 +311,20 @@ export const MsgRequestTransactionResponse = {
522
311
  },
523
312
  };
524
313
 
525
- function createBaseMsgApproveTransaction(): MsgApproveTransaction {
526
- return { creator: "", txId: 0, txTHash: "", success: "", signedKey: "" };
314
+ function createBaseMsgFinalizeTransaction(): MsgFinalizeTransaction {
315
+ return { creator: "", txId: 0, txHash: "", success: "", signedKey: "" };
527
316
  }
528
317
 
529
- export const MsgApproveTransaction = {
530
- encode(message: MsgApproveTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
318
+ export const MsgFinalizeTransaction = {
319
+ encode(message: MsgFinalizeTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
531
320
  if (message.creator !== "") {
532
321
  writer.uint32(10).string(message.creator);
533
322
  }
534
323
  if (message.txId !== 0) {
535
324
  writer.uint32(16).uint64(message.txId);
536
325
  }
537
- if (message.txTHash !== "") {
538
- writer.uint32(26).string(message.txTHash);
326
+ if (message.txHash !== "") {
327
+ writer.uint32(26).string(message.txHash);
539
328
  }
540
329
  if (message.success !== "") {
541
330
  writer.uint32(34).string(message.success);
@@ -546,10 +335,10 @@ export const MsgApproveTransaction = {
546
335
  return writer;
547
336
  },
548
337
 
549
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgApproveTransaction {
338
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeTransaction {
550
339
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
551
340
  let end = length === undefined ? reader.len : reader.pos + length;
552
- const message = createBaseMsgApproveTransaction();
341
+ const message = createBaseMsgFinalizeTransaction();
553
342
  while (reader.pos < end) {
554
343
  const tag = reader.uint32();
555
344
  switch (tag >>> 3) {
@@ -560,7 +349,7 @@ export const MsgApproveTransaction = {
560
349
  message.txId = longToNumber(reader.uint64() as Long);
561
350
  break;
562
351
  case 3:
563
- message.txTHash = reader.string();
352
+ message.txHash = reader.string();
564
353
  break;
565
354
  case 4:
566
355
  message.success = reader.string();
@@ -576,43 +365,43 @@ export const MsgApproveTransaction = {
576
365
  return message;
577
366
  },
578
367
 
579
- fromJSON(object: any): MsgApproveTransaction {
368
+ fromJSON(object: any): MsgFinalizeTransaction {
580
369
  return {
581
370
  creator: isSet(object.creator) ? String(object.creator) : "",
582
371
  txId: isSet(object.txId) ? Number(object.txId) : 0,
583
- txTHash: isSet(object.txTHash) ? String(object.txTHash) : "",
372
+ txHash: isSet(object.txHash) ? String(object.txHash) : "",
584
373
  success: isSet(object.success) ? String(object.success) : "",
585
374
  signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
586
375
  };
587
376
  },
588
377
 
589
- toJSON(message: MsgApproveTransaction): unknown {
378
+ toJSON(message: MsgFinalizeTransaction): unknown {
590
379
  const obj: any = {};
591
380
  message.creator !== undefined && (obj.creator = message.creator);
592
381
  message.txId !== undefined && (obj.txId = Math.round(message.txId));
593
- message.txTHash !== undefined && (obj.txTHash = message.txTHash);
382
+ message.txHash !== undefined && (obj.txHash = message.txHash);
594
383
  message.success !== undefined && (obj.success = message.success);
595
384
  message.signedKey !== undefined && (obj.signedKey = message.signedKey);
596
385
  return obj;
597
386
  },
598
387
 
599
- fromPartial<I extends Exact<DeepPartial<MsgApproveTransaction>, I>>(object: I): MsgApproveTransaction {
600
- const message = createBaseMsgApproveTransaction();
388
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeTransaction>, I>>(object: I): MsgFinalizeTransaction {
389
+ const message = createBaseMsgFinalizeTransaction();
601
390
  message.creator = object.creator ?? "";
602
391
  message.txId = object.txId ?? 0;
603
- message.txTHash = object.txTHash ?? "";
392
+ message.txHash = object.txHash ?? "";
604
393
  message.success = object.success ?? "";
605
394
  message.signedKey = object.signedKey ?? "";
606
395
  return message;
607
396
  },
608
397
  };
609
398
 
610
- function createBaseMsgApproveTransactionResponse(): MsgApproveTransactionResponse {
399
+ function createBaseMsgFinalizeTransactionResponse(): MsgFinalizeTransactionResponse {
611
400
  return { code: "", msg: "" };
612
401
  }
613
402
 
614
- export const MsgApproveTransactionResponse = {
615
- encode(message: MsgApproveTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
403
+ export const MsgFinalizeTransactionResponse = {
404
+ encode(message: MsgFinalizeTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
616
405
  if (message.code !== "") {
617
406
  writer.uint32(10).string(message.code);
618
407
  }
@@ -622,10 +411,10 @@ export const MsgApproveTransactionResponse = {
622
411
  return writer;
623
412
  },
624
413
 
625
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgApproveTransactionResponse {
414
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeTransactionResponse {
626
415
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
627
416
  let end = length === undefined ? reader.len : reader.pos + length;
628
- const message = createBaseMsgApproveTransactionResponse();
417
+ const message = createBaseMsgFinalizeTransactionResponse();
629
418
  while (reader.pos < end) {
630
419
  const tag = reader.uint32();
631
420
  switch (tag >>> 3) {
@@ -643,67 +432,55 @@ export const MsgApproveTransactionResponse = {
643
432
  return message;
644
433
  },
645
434
 
646
- fromJSON(object: any): MsgApproveTransactionResponse {
435
+ fromJSON(object: any): MsgFinalizeTransactionResponse {
647
436
  return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
648
437
  },
649
438
 
650
- toJSON(message: MsgApproveTransactionResponse): unknown {
439
+ toJSON(message: MsgFinalizeTransactionResponse): unknown {
651
440
  const obj: any = {};
652
441
  message.code !== undefined && (obj.code = message.code);
653
442
  message.msg !== undefined && (obj.msg = message.msg);
654
443
  return obj;
655
444
  },
656
445
 
657
- fromPartial<I extends Exact<DeepPartial<MsgApproveTransactionResponse>, I>>(
446
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeTransactionResponse>, I>>(
658
447
  object: I,
659
- ): MsgApproveTransactionResponse {
660
- const message = createBaseMsgApproveTransactionResponse();
448
+ ): MsgFinalizeTransactionResponse {
449
+ const message = createBaseMsgFinalizeTransactionResponse();
661
450
  message.code = object.code ?? "";
662
451
  message.msg = object.msg ?? "";
663
452
  return message;
664
453
  },
665
454
  };
666
455
 
667
- function createBaseMsgObservationVote(): MsgObservationVote {
668
- return { creator: "", txHash: "", chainId: "", from: "", to: "", amount: "", payType: "", kimaTxID: 0, succeed: "" };
456
+ function createBaseMsgFinalizeProvisionTransaction(): MsgFinalizeProvisionTransaction {
457
+ return { creator: "", txId: 0, txHash: "", success: "", signedKey: "" };
669
458
  }
670
459
 
671
- export const MsgObservationVote = {
672
- encode(message: MsgObservationVote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
460
+ export const MsgFinalizeProvisionTransaction = {
461
+ encode(message: MsgFinalizeProvisionTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
673
462
  if (message.creator !== "") {
674
463
  writer.uint32(10).string(message.creator);
675
464
  }
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);
465
+ if (message.txId !== 0) {
466
+ writer.uint32(16).uint64(message.txId);
690
467
  }
691
- if (message.payType !== "") {
692
- writer.uint32(58).string(message.payType);
468
+ if (message.txHash !== "") {
469
+ writer.uint32(26).string(message.txHash);
693
470
  }
694
- if (message.kimaTxID !== 0) {
695
- writer.uint32(64).uint64(message.kimaTxID);
471
+ if (message.success !== "") {
472
+ writer.uint32(34).string(message.success);
696
473
  }
697
- if (message.succeed !== "") {
698
- writer.uint32(74).string(message.succeed);
474
+ if (message.signedKey !== "") {
475
+ writer.uint32(42).string(message.signedKey);
699
476
  }
700
477
  return writer;
701
478
  },
702
479
 
703
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgObservationVote {
480
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeProvisionTransaction {
704
481
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
705
482
  let end = length === undefined ? reader.len : reader.pos + length;
706
- const message = createBaseMsgObservationVote();
483
+ const message = createBaseMsgFinalizeProvisionTransaction();
707
484
  while (reader.pos < end) {
708
485
  const tag = reader.uint32();
709
486
  switch (tag >>> 3) {
@@ -711,28 +488,16 @@ export const MsgObservationVote = {
711
488
  message.creator = reader.string();
712
489
  break;
713
490
  case 2:
714
- message.txHash = reader.string();
491
+ message.txId = longToNumber(reader.uint64() as Long);
715
492
  break;
716
493
  case 3:
717
- message.chainId = reader.string();
494
+ message.txHash = reader.string();
718
495
  break;
719
496
  case 4:
720
- message.from = reader.string();
497
+ message.success = reader.string();
721
498
  break;
722
499
  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();
500
+ message.signedKey = reader.string();
736
501
  break;
737
502
  default:
738
503
  reader.skipType(tag & 7);
@@ -742,55 +507,45 @@ export const MsgObservationVote = {
742
507
  return message;
743
508
  },
744
509
 
745
- fromJSON(object: any): MsgObservationVote {
510
+ fromJSON(object: any): MsgFinalizeProvisionTransaction {
746
511
  return {
747
512
  creator: isSet(object.creator) ? String(object.creator) : "",
513
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
748
514
  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) : "",
515
+ success: isSet(object.success) ? String(object.success) : "",
516
+ signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
756
517
  };
757
518
  },
758
519
 
759
- toJSON(message: MsgObservationVote): unknown {
520
+ toJSON(message: MsgFinalizeProvisionTransaction): unknown {
760
521
  const obj: any = {};
761
522
  message.creator !== undefined && (obj.creator = message.creator);
523
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
762
524
  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);
525
+ message.success !== undefined && (obj.success = message.success);
526
+ message.signedKey !== undefined && (obj.signedKey = message.signedKey);
770
527
  return obj;
771
528
  },
772
529
 
773
- fromPartial<I extends Exact<DeepPartial<MsgObservationVote>, I>>(object: I): MsgObservationVote {
774
- const message = createBaseMsgObservationVote();
530
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeProvisionTransaction>, I>>(
531
+ object: I,
532
+ ): MsgFinalizeProvisionTransaction {
533
+ const message = createBaseMsgFinalizeProvisionTransaction();
775
534
  message.creator = object.creator ?? "";
535
+ message.txId = object.txId ?? 0;
776
536
  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 ?? "";
537
+ message.success = object.success ?? "";
538
+ message.signedKey = object.signedKey ?? "";
784
539
  return message;
785
540
  },
786
541
  };
787
542
 
788
- function createBaseMsgObservationVoteResponse(): MsgObservationVoteResponse {
543
+ function createBaseMsgFinalizeProvisionTransactionResponse(): MsgFinalizeProvisionTransactionResponse {
789
544
  return { code: "", msg: "" };
790
545
  }
791
546
 
792
- export const MsgObservationVoteResponse = {
793
- encode(message: MsgObservationVoteResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
547
+ export const MsgFinalizeProvisionTransactionResponse = {
548
+ encode(message: MsgFinalizeProvisionTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
794
549
  if (message.code !== "") {
795
550
  writer.uint32(10).string(message.code);
796
551
  }
@@ -800,10 +555,10 @@ export const MsgObservationVoteResponse = {
800
555
  return writer;
801
556
  },
802
557
 
803
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgObservationVoteResponse {
558
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeProvisionTransactionResponse {
804
559
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
805
560
  let end = length === undefined ? reader.len : reader.pos + length;
806
- const message = createBaseMsgObservationVoteResponse();
561
+ const message = createBaseMsgFinalizeProvisionTransactionResponse();
807
562
  while (reader.pos < end) {
808
563
  const tag = reader.uint32();
809
564
  switch (tag >>> 3) {
@@ -821,50 +576,58 @@ export const MsgObservationVoteResponse = {
821
576
  return message;
822
577
  },
823
578
 
824
- fromJSON(object: any): MsgObservationVoteResponse {
579
+ fromJSON(object: any): MsgFinalizeProvisionTransactionResponse {
825
580
  return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
826
581
  },
827
582
 
828
- toJSON(message: MsgObservationVoteResponse): unknown {
583
+ toJSON(message: MsgFinalizeProvisionTransactionResponse): unknown {
829
584
  const obj: any = {};
830
585
  message.code !== undefined && (obj.code = message.code);
831
586
  message.msg !== undefined && (obj.msg = message.msg);
832
587
  return obj;
833
588
  },
834
589
 
835
- fromPartial<I extends Exact<DeepPartial<MsgObservationVoteResponse>, I>>(object: I): MsgObservationVoteResponse {
836
- const message = createBaseMsgObservationVoteResponse();
590
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeProvisionTransactionResponse>, I>>(
591
+ object: I,
592
+ ): MsgFinalizeProvisionTransactionResponse {
593
+ const message = createBaseMsgFinalizeProvisionTransactionResponse();
837
594
  message.code = object.code ?? "";
838
595
  message.msg = object.msg ?? "";
839
596
  return message;
840
597
  },
841
598
  };
842
599
 
843
- function createBaseMsgUpdateBalance(): MsgUpdateBalance {
844
- return { creator: "", chainId: "", balance: "", decimal: "" };
600
+ function createBaseMsgRequestProvisionTransaction(): MsgRequestProvisionTransaction {
601
+ return { creator: "", chain: "", fromAddress: "", symbol: "", amount: "", options: "" };
845
602
  }
846
603
 
847
- export const MsgUpdateBalance = {
848
- encode(message: MsgUpdateBalance, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
604
+ export const MsgRequestProvisionTransaction = {
605
+ encode(message: MsgRequestProvisionTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
849
606
  if (message.creator !== "") {
850
607
  writer.uint32(10).string(message.creator);
851
608
  }
852
- if (message.chainId !== "") {
853
- writer.uint32(18).string(message.chainId);
609
+ if (message.chain !== "") {
610
+ writer.uint32(18).string(message.chain);
611
+ }
612
+ if (message.fromAddress !== "") {
613
+ writer.uint32(26).string(message.fromAddress);
614
+ }
615
+ if (message.symbol !== "") {
616
+ writer.uint32(34).string(message.symbol);
854
617
  }
855
- if (message.balance !== "") {
856
- writer.uint32(26).string(message.balance);
618
+ if (message.amount !== "") {
619
+ writer.uint32(42).string(message.amount);
857
620
  }
858
- if (message.decimal !== "") {
859
- writer.uint32(34).string(message.decimal);
621
+ if (message.options !== "") {
622
+ writer.uint32(50).string(message.options);
860
623
  }
861
624
  return writer;
862
625
  },
863
626
 
864
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateBalance {
627
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestProvisionTransaction {
865
628
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
866
629
  let end = length === undefined ? reader.len : reader.pos + length;
867
- const message = createBaseMsgUpdateBalance();
630
+ const message = createBaseMsgRequestProvisionTransaction();
868
631
  while (reader.pos < end) {
869
632
  const tag = reader.uint32();
870
633
  switch (tag >>> 3) {
@@ -872,69 +635,86 @@ export const MsgUpdateBalance = {
872
635
  message.creator = reader.string();
873
636
  break;
874
637
  case 2:
875
- message.chainId = reader.string();
638
+ message.chain = reader.string();
876
639
  break;
877
640
  case 3:
878
- message.balance = reader.string();
641
+ message.fromAddress = reader.string();
879
642
  break;
880
643
  case 4:
881
- message.decimal = reader.string();
644
+ message.symbol = reader.string();
882
645
  break;
883
- default:
884
- reader.skipType(tag & 7);
646
+ case 5:
647
+ message.amount = reader.string();
885
648
  break;
886
- }
649
+ case 6:
650
+ message.options = reader.string();
651
+ break;
652
+ default:
653
+ reader.skipType(tag & 7);
654
+ break;
655
+ }
887
656
  }
888
657
  return message;
889
658
  },
890
659
 
891
- fromJSON(object: any): MsgUpdateBalance {
660
+ fromJSON(object: any): MsgRequestProvisionTransaction {
892
661
  return {
893
662
  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) : "",
663
+ chain: isSet(object.chain) ? String(object.chain) : "",
664
+ fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "",
665
+ symbol: isSet(object.symbol) ? String(object.symbol) : "",
666
+ amount: isSet(object.amount) ? String(object.amount) : "",
667
+ options: isSet(object.options) ? String(object.options) : "",
897
668
  };
898
669
  },
899
670
 
900
- toJSON(message: MsgUpdateBalance): unknown {
671
+ toJSON(message: MsgRequestProvisionTransaction): unknown {
901
672
  const obj: any = {};
902
673
  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);
674
+ message.chain !== undefined && (obj.chain = message.chain);
675
+ message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress);
676
+ message.symbol !== undefined && (obj.symbol = message.symbol);
677
+ message.amount !== undefined && (obj.amount = message.amount);
678
+ message.options !== undefined && (obj.options = message.options);
906
679
  return obj;
907
680
  },
908
681
 
909
- fromPartial<I extends Exact<DeepPartial<MsgUpdateBalance>, I>>(object: I): MsgUpdateBalance {
910
- const message = createBaseMsgUpdateBalance();
682
+ fromPartial<I extends Exact<DeepPartial<MsgRequestProvisionTransaction>, I>>(
683
+ object: I,
684
+ ): MsgRequestProvisionTransaction {
685
+ const message = createBaseMsgRequestProvisionTransaction();
911
686
  message.creator = object.creator ?? "";
912
- message.chainId = object.chainId ?? "";
913
- message.balance = object.balance ?? "";
914
- message.decimal = object.decimal ?? "";
687
+ message.chain = object.chain ?? "";
688
+ message.fromAddress = object.fromAddress ?? "";
689
+ message.symbol = object.symbol ?? "";
690
+ message.amount = object.amount ?? "";
691
+ message.options = object.options ?? "";
915
692
  return message;
916
693
  },
917
694
  };
918
695
 
919
- function createBaseMsgUpdateBalanceResponse(): MsgUpdateBalanceResponse {
920
- return { code: "", msg: "" };
696
+ function createBaseMsgRequestProvisionTransactionResponse(): MsgRequestProvisionTransactionResponse {
697
+ return { code: "", msg: "", txId: 0 };
921
698
  }
922
699
 
923
- export const MsgUpdateBalanceResponse = {
924
- encode(message: MsgUpdateBalanceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
700
+ export const MsgRequestProvisionTransactionResponse = {
701
+ encode(message: MsgRequestProvisionTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
925
702
  if (message.code !== "") {
926
703
  writer.uint32(10).string(message.code);
927
704
  }
928
705
  if (message.msg !== "") {
929
706
  writer.uint32(18).string(message.msg);
930
707
  }
708
+ if (message.txId !== 0) {
709
+ writer.uint32(24).uint64(message.txId);
710
+ }
931
711
  return writer;
932
712
  },
933
713
 
934
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateBalanceResponse {
714
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestProvisionTransactionResponse {
935
715
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
936
716
  let end = length === undefined ? reader.len : reader.pos + length;
937
- const message = createBaseMsgUpdateBalanceResponse();
717
+ const message = createBaseMsgRequestProvisionTransactionResponse();
938
718
  while (reader.pos < end) {
939
719
  const tag = reader.uint32();
940
720
  switch (tag >>> 3) {
@@ -944,6 +724,9 @@ export const MsgUpdateBalanceResponse = {
944
724
  case 2:
945
725
  message.msg = reader.string();
946
726
  break;
727
+ case 3:
728
+ message.txId = longToNumber(reader.uint64() as Long);
729
+ break;
947
730
  default:
948
731
  reader.skipType(tag & 7);
949
732
  break;
@@ -952,47 +735,52 @@ export const MsgUpdateBalanceResponse = {
952
735
  return message;
953
736
  },
954
737
 
955
- fromJSON(object: any): MsgUpdateBalanceResponse {
956
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
738
+ fromJSON(object: any): MsgRequestProvisionTransactionResponse {
739
+ return {
740
+ code: isSet(object.code) ? String(object.code) : "",
741
+ msg: isSet(object.msg) ? String(object.msg) : "",
742
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
743
+ };
957
744
  },
958
745
 
959
- toJSON(message: MsgUpdateBalanceResponse): unknown {
746
+ toJSON(message: MsgRequestProvisionTransactionResponse): unknown {
960
747
  const obj: any = {};
961
748
  message.code !== undefined && (obj.code = message.code);
962
749
  message.msg !== undefined && (obj.msg = message.msg);
750
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
963
751
  return obj;
964
752
  },
965
753
 
966
- fromPartial<I extends Exact<DeepPartial<MsgUpdateBalanceResponse>, I>>(object: I): MsgUpdateBalanceResponse {
967
- const message = createBaseMsgUpdateBalanceResponse();
754
+ fromPartial<I extends Exact<DeepPartial<MsgRequestProvisionTransactionResponse>, I>>(
755
+ object: I,
756
+ ): MsgRequestProvisionTransactionResponse {
757
+ const message = createBaseMsgRequestProvisionTransactionResponse();
968
758
  message.code = object.code ?? "";
969
759
  message.msg = object.msg ?? "";
760
+ message.txId = object.txId ?? 0;
970
761
  return message;
971
762
  },
972
763
  };
973
764
 
974
- function createBaseMsgKeysignVote(): MsgKeysignVote {
975
- return { creator: "", txHash: "", pubKey: "" };
765
+ function createBaseMsgCancelTransaction(): MsgCancelTransaction {
766
+ return { creator: "", transactionId: "" };
976
767
  }
977
768
 
978
- export const MsgKeysignVote = {
979
- encode(message: MsgKeysignVote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
769
+ export const MsgCancelTransaction = {
770
+ encode(message: MsgCancelTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
980
771
  if (message.creator !== "") {
981
772
  writer.uint32(10).string(message.creator);
982
773
  }
983
- if (message.txHash !== "") {
984
- writer.uint32(18).string(message.txHash);
985
- }
986
- if (message.pubKey !== "") {
987
- writer.uint32(26).string(message.pubKey);
774
+ if (message.transactionId !== "") {
775
+ writer.uint32(18).string(message.transactionId);
988
776
  }
989
777
  return writer;
990
778
  },
991
779
 
992
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgKeysignVote {
780
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransaction {
993
781
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
994
782
  let end = length === undefined ? reader.len : reader.pos + length;
995
- const message = createBaseMsgKeysignVote();
783
+ const message = createBaseMsgCancelTransaction();
996
784
  while (reader.pos < end) {
997
785
  const tag = reader.uint32();
998
786
  switch (tag >>> 3) {
@@ -1000,10 +788,7 @@ export const MsgKeysignVote = {
1000
788
  message.creator = reader.string();
1001
789
  break;
1002
790
  case 2:
1003
- message.txHash = reader.string();
1004
- break;
1005
- case 3:
1006
- message.pubKey = reader.string();
791
+ message.transactionId = reader.string();
1007
792
  break;
1008
793
  default:
1009
794
  reader.skipType(tag & 7);
@@ -1013,37 +798,34 @@ export const MsgKeysignVote = {
1013
798
  return message;
1014
799
  },
1015
800
 
1016
- fromJSON(object: any): MsgKeysignVote {
801
+ fromJSON(object: any): MsgCancelTransaction {
1017
802
  return {
1018
803
  creator: isSet(object.creator) ? String(object.creator) : "",
1019
- txHash: isSet(object.txHash) ? String(object.txHash) : "",
1020
- pubKey: isSet(object.pubKey) ? String(object.pubKey) : "",
804
+ transactionId: isSet(object.transactionId) ? String(object.transactionId) : "",
1021
805
  };
1022
806
  },
1023
807
 
1024
- toJSON(message: MsgKeysignVote): unknown {
808
+ toJSON(message: MsgCancelTransaction): unknown {
1025
809
  const obj: any = {};
1026
810
  message.creator !== undefined && (obj.creator = message.creator);
1027
- message.txHash !== undefined && (obj.txHash = message.txHash);
1028
- message.pubKey !== undefined && (obj.pubKey = message.pubKey);
811
+ message.transactionId !== undefined && (obj.transactionId = message.transactionId);
1029
812
  return obj;
1030
813
  },
1031
814
 
1032
- fromPartial<I extends Exact<DeepPartial<MsgKeysignVote>, I>>(object: I): MsgKeysignVote {
1033
- const message = createBaseMsgKeysignVote();
815
+ fromPartial<I extends Exact<DeepPartial<MsgCancelTransaction>, I>>(object: I): MsgCancelTransaction {
816
+ const message = createBaseMsgCancelTransaction();
1034
817
  message.creator = object.creator ?? "";
1035
- message.txHash = object.txHash ?? "";
1036
- message.pubKey = object.pubKey ?? "";
818
+ message.transactionId = object.transactionId ?? "";
1037
819
  return message;
1038
820
  },
1039
821
  };
1040
822
 
1041
- function createBaseMsgKeysignVoteResponse(): MsgKeysignVoteResponse {
823
+ function createBaseMsgCancelTransactionResponse(): MsgCancelTransactionResponse {
1042
824
  return { code: "", msg: "" };
1043
825
  }
1044
826
 
1045
- export const MsgKeysignVoteResponse = {
1046
- encode(message: MsgKeysignVoteResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
827
+ export const MsgCancelTransactionResponse = {
828
+ encode(message: MsgCancelTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1047
829
  if (message.code !== "") {
1048
830
  writer.uint32(10).string(message.code);
1049
831
  }
@@ -1053,10 +835,10 @@ export const MsgKeysignVoteResponse = {
1053
835
  return writer;
1054
836
  },
1055
837
 
1056
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgKeysignVoteResponse {
838
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransactionResponse {
1057
839
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1058
840
  let end = length === undefined ? reader.len : reader.pos + length;
1059
- const message = createBaseMsgKeysignVoteResponse();
841
+ const message = createBaseMsgCancelTransactionResponse();
1060
842
  while (reader.pos < end) {
1061
843
  const tag = reader.uint32();
1062
844
  switch (tag >>> 3) {
@@ -1074,47 +856,47 @@ export const MsgKeysignVoteResponse = {
1074
856
  return message;
1075
857
  },
1076
858
 
1077
- fromJSON(object: any): MsgKeysignVoteResponse {
859
+ fromJSON(object: any): MsgCancelTransactionResponse {
1078
860
  return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1079
861
  },
1080
862
 
1081
- toJSON(message: MsgKeysignVoteResponse): unknown {
863
+ toJSON(message: MsgCancelTransactionResponse): unknown {
1082
864
  const obj: any = {};
1083
865
  message.code !== undefined && (obj.code = message.code);
1084
866
  message.msg !== undefined && (obj.msg = message.msg);
1085
867
  return obj;
1086
868
  },
1087
869
 
1088
- fromPartial<I extends Exact<DeepPartial<MsgKeysignVoteResponse>, I>>(object: I): MsgKeysignVoteResponse {
1089
- const message = createBaseMsgKeysignVoteResponse();
870
+ fromPartial<I extends Exact<DeepPartial<MsgCancelTransactionResponse>, I>>(object: I): MsgCancelTransactionResponse {
871
+ const message = createBaseMsgCancelTransactionResponse();
1090
872
  message.code = object.code ?? "";
1091
873
  message.msg = object.msg ?? "";
1092
874
  return message;
1093
875
  },
1094
876
  };
1095
877
 
1096
- function createBaseMsgUpdateGasFee(): MsgUpdateGasFee {
1097
- return { creator: "", chainId: "", fee: "" };
878
+ function createBaseMsgSetTxHash(): MsgSetTxHash {
879
+ return { creator: "", txId: 0, txHash: "" };
1098
880
  }
1099
881
 
1100
- export const MsgUpdateGasFee = {
1101
- encode(message: MsgUpdateGasFee, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
882
+ export const MsgSetTxHash = {
883
+ encode(message: MsgSetTxHash, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1102
884
  if (message.creator !== "") {
1103
885
  writer.uint32(10).string(message.creator);
1104
886
  }
1105
- if (message.chainId !== "") {
1106
- writer.uint32(18).string(message.chainId);
887
+ if (message.txId !== 0) {
888
+ writer.uint32(16).uint64(message.txId);
1107
889
  }
1108
- if (message.fee !== "") {
1109
- writer.uint32(26).string(message.fee);
890
+ if (message.txHash !== "") {
891
+ writer.uint32(26).string(message.txHash);
1110
892
  }
1111
893
  return writer;
1112
894
  },
1113
895
 
1114
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGasFee {
896
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxHash {
1115
897
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1116
898
  let end = length === undefined ? reader.len : reader.pos + length;
1117
- const message = createBaseMsgUpdateGasFee();
899
+ const message = createBaseMsgSetTxHash();
1118
900
  while (reader.pos < end) {
1119
901
  const tag = reader.uint32();
1120
902
  switch (tag >>> 3) {
@@ -1122,10 +904,10 @@ export const MsgUpdateGasFee = {
1122
904
  message.creator = reader.string();
1123
905
  break;
1124
906
  case 2:
1125
- message.chainId = reader.string();
907
+ message.txId = longToNumber(reader.uint64() as Long);
1126
908
  break;
1127
909
  case 3:
1128
- message.fee = reader.string();
910
+ message.txHash = reader.string();
1129
911
  break;
1130
912
  default:
1131
913
  reader.skipType(tag & 7);
@@ -1135,37 +917,37 @@ export const MsgUpdateGasFee = {
1135
917
  return message;
1136
918
  },
1137
919
 
1138
- fromJSON(object: any): MsgUpdateGasFee {
920
+ fromJSON(object: any): MsgSetTxHash {
1139
921
  return {
1140
922
  creator: isSet(object.creator) ? String(object.creator) : "",
1141
- chainId: isSet(object.chainId) ? String(object.chainId) : "",
1142
- fee: isSet(object.fee) ? String(object.fee) : "",
923
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
924
+ txHash: isSet(object.txHash) ? String(object.txHash) : "",
1143
925
  };
1144
926
  },
1145
927
 
1146
- toJSON(message: MsgUpdateGasFee): unknown {
928
+ toJSON(message: MsgSetTxHash): unknown {
1147
929
  const obj: any = {};
1148
930
  message.creator !== undefined && (obj.creator = message.creator);
1149
- message.chainId !== undefined && (obj.chainId = message.chainId);
1150
- message.fee !== undefined && (obj.fee = message.fee);
931
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
932
+ message.txHash !== undefined && (obj.txHash = message.txHash);
1151
933
  return obj;
1152
934
  },
1153
935
 
1154
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGasFee>, I>>(object: I): MsgUpdateGasFee {
1155
- const message = createBaseMsgUpdateGasFee();
936
+ fromPartial<I extends Exact<DeepPartial<MsgSetTxHash>, I>>(object: I): MsgSetTxHash {
937
+ const message = createBaseMsgSetTxHash();
1156
938
  message.creator = object.creator ?? "";
1157
- message.chainId = object.chainId ?? "";
1158
- message.fee = object.fee ?? "";
939
+ message.txId = object.txId ?? 0;
940
+ message.txHash = object.txHash ?? "";
1159
941
  return message;
1160
942
  },
1161
943
  };
1162
944
 
1163
- function createBaseMsgUpdateGasFeeResponse(): MsgUpdateGasFeeResponse {
945
+ function createBaseMsgSetTxHashResponse(): MsgSetTxHashResponse {
1164
946
  return { code: "", msg: "" };
1165
947
  }
1166
948
 
1167
- export const MsgUpdateGasFeeResponse = {
1168
- encode(message: MsgUpdateGasFeeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
949
+ export const MsgSetTxHashResponse = {
950
+ encode(message: MsgSetTxHashResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1169
951
  if (message.code !== "") {
1170
952
  writer.uint32(10).string(message.code);
1171
953
  }
@@ -1175,10 +957,10 @@ export const MsgUpdateGasFeeResponse = {
1175
957
  return writer;
1176
958
  },
1177
959
 
1178
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGasFeeResponse {
960
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxHashResponse {
1179
961
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1180
962
  let end = length === undefined ? reader.len : reader.pos + length;
1181
- const message = createBaseMsgUpdateGasFeeResponse();
963
+ const message = createBaseMsgSetTxHashResponse();
1182
964
  while (reader.pos < end) {
1183
965
  const tag = reader.uint32();
1184
966
  switch (tag >>> 3) {
@@ -1196,59 +978,50 @@ export const MsgUpdateGasFeeResponse = {
1196
978
  return message;
1197
979
  },
1198
980
 
1199
- fromJSON(object: any): MsgUpdateGasFeeResponse {
981
+ fromJSON(object: any): MsgSetTxHashResponse {
1200
982
  return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1201
983
  },
1202
984
 
1203
- toJSON(message: MsgUpdateGasFeeResponse): unknown {
985
+ toJSON(message: MsgSetTxHashResponse): unknown {
1204
986
  const obj: any = {};
1205
987
  message.code !== undefined && (obj.code = message.code);
1206
988
  message.msg !== undefined && (obj.msg = message.msg);
1207
989
  return obj;
1208
990
  },
1209
991
 
1210
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGasFeeResponse>, I>>(object: I): MsgUpdateGasFeeResponse {
1211
- const message = createBaseMsgUpdateGasFeeResponse();
992
+ fromPartial<I extends Exact<DeepPartial<MsgSetTxHashResponse>, I>>(object: I): MsgSetTxHashResponse {
993
+ const message = createBaseMsgSetTxHashResponse();
1212
994
  message.code = object.code ?? "";
1213
995
  message.msg = object.msg ?? "";
1214
996
  return message;
1215
997
  },
1216
998
  };
1217
999
 
1218
- function createBaseMsgProvisionTransaction(): MsgProvisionTransaction {
1219
- return { creator: "", fromChain: "", fromAddress: "", symbol: "", tokenAddr: "", amount: "", options: "" };
1000
+ function createBaseMsgSetTxProcess(): MsgSetTxProcess {
1001
+ return { creator: "", txId: 0, timestamp: 0, msgId: "" };
1220
1002
  }
1221
1003
 
1222
- export const MsgProvisionTransaction = {
1223
- encode(message: MsgProvisionTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1004
+ export const MsgSetTxProcess = {
1005
+ encode(message: MsgSetTxProcess, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1224
1006
  if (message.creator !== "") {
1225
1007
  writer.uint32(10).string(message.creator);
1226
1008
  }
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);
1235
- }
1236
- if (message.tokenAddr !== "") {
1237
- writer.uint32(42).string(message.tokenAddr);
1009
+ if (message.txId !== 0) {
1010
+ writer.uint32(16).uint64(message.txId);
1238
1011
  }
1239
- if (message.amount !== "") {
1240
- writer.uint32(50).string(message.amount);
1012
+ if (message.timestamp !== 0) {
1013
+ writer.uint32(24).uint64(message.timestamp);
1241
1014
  }
1242
- if (message.options !== "") {
1243
- writer.uint32(58).string(message.options);
1015
+ if (message.msgId !== "") {
1016
+ writer.uint32(34).string(message.msgId);
1244
1017
  }
1245
1018
  return writer;
1246
1019
  },
1247
1020
 
1248
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgProvisionTransaction {
1021
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxProcess {
1249
1022
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1250
1023
  let end = length === undefined ? reader.len : reader.pos + length;
1251
- const message = createBaseMsgProvisionTransaction();
1024
+ const message = createBaseMsgSetTxProcess();
1252
1025
  while (reader.pos < end) {
1253
1026
  const tag = reader.uint32();
1254
1027
  switch (tag >>> 3) {
@@ -1256,22 +1029,13 @@ export const MsgProvisionTransaction = {
1256
1029
  message.creator = reader.string();
1257
1030
  break;
1258
1031
  case 2:
1259
- message.fromChain = reader.string();
1032
+ message.txId = longToNumber(reader.uint64() as Long);
1260
1033
  break;
1261
1034
  case 3:
1262
- message.fromAddress = reader.string();
1035
+ message.timestamp = longToNumber(reader.uint64() as Long);
1263
1036
  break;
1264
1037
  case 4:
1265
- message.symbol = reader.string();
1266
- break;
1267
- 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();
1038
+ message.msgId = reader.string();
1275
1039
  break;
1276
1040
  default:
1277
1041
  reader.skipType(tag & 7);
@@ -1281,71 +1045,50 @@ export const MsgProvisionTransaction = {
1281
1045
  return message;
1282
1046
  },
1283
1047
 
1284
- fromJSON(object: any): MsgProvisionTransaction {
1048
+ fromJSON(object: any): MsgSetTxProcess {
1285
1049
  return {
1286
1050
  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) : "",
1051
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
1052
+ timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
1053
+ msgId: isSet(object.msgId) ? String(object.msgId) : "",
1293
1054
  };
1294
1055
  },
1295
1056
 
1296
- toJSON(message: MsgProvisionTransaction): unknown {
1057
+ toJSON(message: MsgSetTxProcess): unknown {
1297
1058
  const obj: any = {};
1298
1059
  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);
1060
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
1061
+ message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
1062
+ message.msgId !== undefined && (obj.msgId = message.msgId);
1305
1063
  return obj;
1306
1064
  },
1307
1065
 
1308
- fromPartial<I extends Exact<DeepPartial<MsgProvisionTransaction>, I>>(object: I): MsgProvisionTransaction {
1309
- const message = createBaseMsgProvisionTransaction();
1066
+ fromPartial<I extends Exact<DeepPartial<MsgSetTxProcess>, I>>(object: I): MsgSetTxProcess {
1067
+ const message = createBaseMsgSetTxProcess();
1310
1068
  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 ?? "";
1069
+ message.txId = object.txId ?? 0;
1070
+ message.timestamp = object.timestamp ?? 0;
1071
+ message.msgId = object.msgId ?? "";
1317
1072
  return message;
1318
1073
  },
1319
1074
  };
1320
1075
 
1321
- function createBaseMsgProvisionTransactionResponse(): MsgProvisionTransactionResponse {
1322
- return { code: "", msg: "" };
1076
+ function createBaseMsgSetTxProcessResponse(): MsgSetTxProcessResponse {
1077
+ return {};
1323
1078
  }
1324
1079
 
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
- }
1080
+ export const MsgSetTxProcessResponse = {
1081
+ encode(_: MsgSetTxProcessResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1333
1082
  return writer;
1334
1083
  },
1335
1084
 
1336
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgProvisionTransactionResponse {
1085
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxProcessResponse {
1337
1086
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1338
1087
  let end = length === undefined ? reader.len : reader.pos + length;
1339
- const message = createBaseMsgProvisionTransactionResponse();
1088
+ const message = createBaseMsgSetTxProcessResponse();
1340
1089
  while (reader.pos < end) {
1341
1090
  const tag = reader.uint32();
1342
1091
  switch (tag >>> 3) {
1343
- case 1:
1344
- message.code = reader.string();
1345
- break;
1346
- case 2:
1347
- message.msg = reader.string();
1348
- break;
1349
1092
  default:
1350
1093
  reader.skipType(tag & 7);
1351
1094
  break;
@@ -1354,61 +1097,52 @@ export const MsgProvisionTransactionResponse = {
1354
1097
  return message;
1355
1098
  },
1356
1099
 
1357
- fromJSON(object: any): MsgProvisionTransactionResponse {
1358
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1100
+ fromJSON(_: any): MsgSetTxProcessResponse {
1101
+ return {};
1359
1102
  },
1360
1103
 
1361
- toJSON(message: MsgProvisionTransactionResponse): unknown {
1104
+ toJSON(_: MsgSetTxProcessResponse): unknown {
1362
1105
  const obj: any = {};
1363
- message.code !== undefined && (obj.code = message.code);
1364
- message.msg !== undefined && (obj.msg = message.msg);
1365
1106
  return obj;
1366
1107
  },
1367
1108
 
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 ?? "";
1109
+ fromPartial<I extends Exact<DeepPartial<MsgSetTxProcessResponse>, I>>(_: I): MsgSetTxProcessResponse {
1110
+ const message = createBaseMsgSetTxProcessResponse();
1374
1111
  return message;
1375
1112
  },
1376
1113
  };
1377
1114
 
1378
- function createBaseMsgDrainTransaction(): MsgDrainTransaction {
1379
- return { creator: "", fromChain: "", toChain: "", toAddress: "", nftAddr: "", amount: "", options: "" };
1115
+ function createBaseMsgRequestDrainTransaction(): MsgRequestDrainTransaction {
1116
+ return { creator: "", toChain: "", toAddress: "", symbol: "", amount: "", options: "" };
1380
1117
  }
1381
1118
 
1382
- export const MsgDrainTransaction = {
1383
- encode(message: MsgDrainTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1119
+ export const MsgRequestDrainTransaction = {
1120
+ encode(message: MsgRequestDrainTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1384
1121
  if (message.creator !== "") {
1385
1122
  writer.uint32(10).string(message.creator);
1386
1123
  }
1387
- if (message.fromChain !== "") {
1388
- writer.uint32(18).string(message.fromChain);
1389
- }
1390
1124
  if (message.toChain !== "") {
1391
- writer.uint32(26).string(message.toChain);
1125
+ writer.uint32(18).string(message.toChain);
1392
1126
  }
1393
1127
  if (message.toAddress !== "") {
1394
- writer.uint32(34).string(message.toAddress);
1128
+ writer.uint32(26).string(message.toAddress);
1395
1129
  }
1396
- if (message.nftAddr !== "") {
1397
- writer.uint32(42).string(message.nftAddr);
1130
+ if (message.symbol !== "") {
1131
+ writer.uint32(34).string(message.symbol);
1398
1132
  }
1399
1133
  if (message.amount !== "") {
1400
- writer.uint32(50).string(message.amount);
1134
+ writer.uint32(42).string(message.amount);
1401
1135
  }
1402
1136
  if (message.options !== "") {
1403
- writer.uint32(58).string(message.options);
1137
+ writer.uint32(50).string(message.options);
1404
1138
  }
1405
1139
  return writer;
1406
1140
  },
1407
1141
 
1408
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgDrainTransaction {
1142
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestDrainTransaction {
1409
1143
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1410
1144
  let end = length === undefined ? reader.len : reader.pos + length;
1411
- const message = createBaseMsgDrainTransaction();
1145
+ const message = createBaseMsgRequestDrainTransaction();
1412
1146
  while (reader.pos < end) {
1413
1147
  const tag = reader.uint32();
1414
1148
  switch (tag >>> 3) {
@@ -1416,21 +1150,18 @@ export const MsgDrainTransaction = {
1416
1150
  message.creator = reader.string();
1417
1151
  break;
1418
1152
  case 2:
1419
- message.fromChain = reader.string();
1153
+ message.toChain = reader.string();
1420
1154
  break;
1421
1155
  case 3:
1422
- message.toChain = reader.string();
1156
+ message.toAddress = reader.string();
1423
1157
  break;
1424
1158
  case 4:
1425
- message.toAddress = reader.string();
1159
+ message.symbol = reader.string();
1426
1160
  break;
1427
1161
  case 5:
1428
- message.nftAddr = reader.string();
1429
- break;
1430
- case 6:
1431
1162
  message.amount = reader.string();
1432
1163
  break;
1433
- case 7:
1164
+ case 6:
1434
1165
  message.options = reader.string();
1435
1166
  break;
1436
1167
  default:
@@ -1441,62 +1172,62 @@ export const MsgDrainTransaction = {
1441
1172
  return message;
1442
1173
  },
1443
1174
 
1444
- fromJSON(object: any): MsgDrainTransaction {
1175
+ fromJSON(object: any): MsgRequestDrainTransaction {
1445
1176
  return {
1446
1177
  creator: isSet(object.creator) ? String(object.creator) : "",
1447
- fromChain: isSet(object.fromChain) ? String(object.fromChain) : "",
1448
1178
  toChain: isSet(object.toChain) ? String(object.toChain) : "",
1449
1179
  toAddress: isSet(object.toAddress) ? String(object.toAddress) : "",
1450
- nftAddr: isSet(object.nftAddr) ? String(object.nftAddr) : "",
1180
+ symbol: isSet(object.symbol) ? String(object.symbol) : "",
1451
1181
  amount: isSet(object.amount) ? String(object.amount) : "",
1452
1182
  options: isSet(object.options) ? String(object.options) : "",
1453
1183
  };
1454
1184
  },
1455
1185
 
1456
- toJSON(message: MsgDrainTransaction): unknown {
1186
+ toJSON(message: MsgRequestDrainTransaction): unknown {
1457
1187
  const obj: any = {};
1458
1188
  message.creator !== undefined && (obj.creator = message.creator);
1459
- message.fromChain !== undefined && (obj.fromChain = message.fromChain);
1460
1189
  message.toChain !== undefined && (obj.toChain = message.toChain);
1461
1190
  message.toAddress !== undefined && (obj.toAddress = message.toAddress);
1462
- message.nftAddr !== undefined && (obj.nftAddr = message.nftAddr);
1191
+ message.symbol !== undefined && (obj.symbol = message.symbol);
1463
1192
  message.amount !== undefined && (obj.amount = message.amount);
1464
1193
  message.options !== undefined && (obj.options = message.options);
1465
1194
  return obj;
1466
1195
  },
1467
1196
 
1468
- fromPartial<I extends Exact<DeepPartial<MsgDrainTransaction>, I>>(object: I): MsgDrainTransaction {
1469
- const message = createBaseMsgDrainTransaction();
1197
+ fromPartial<I extends Exact<DeepPartial<MsgRequestDrainTransaction>, I>>(object: I): MsgRequestDrainTransaction {
1198
+ const message = createBaseMsgRequestDrainTransaction();
1470
1199
  message.creator = object.creator ?? "";
1471
- message.fromChain = object.fromChain ?? "";
1472
1200
  message.toChain = object.toChain ?? "";
1473
1201
  message.toAddress = object.toAddress ?? "";
1474
- message.nftAddr = object.nftAddr ?? "";
1202
+ message.symbol = object.symbol ?? "";
1475
1203
  message.amount = object.amount ?? "";
1476
1204
  message.options = object.options ?? "";
1477
1205
  return message;
1478
1206
  },
1479
1207
  };
1480
1208
 
1481
- function createBaseMsgDrainTransactionResponse(): MsgDrainTransactionResponse {
1482
- return { code: "", msg: "" };
1209
+ function createBaseMsgRequestDrainTransactionResponse(): MsgRequestDrainTransactionResponse {
1210
+ return { code: "", msg: "", txId: 0 };
1483
1211
  }
1484
1212
 
1485
- export const MsgDrainTransactionResponse = {
1486
- encode(message: MsgDrainTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1213
+ export const MsgRequestDrainTransactionResponse = {
1214
+ encode(message: MsgRequestDrainTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1487
1215
  if (message.code !== "") {
1488
1216
  writer.uint32(10).string(message.code);
1489
1217
  }
1490
1218
  if (message.msg !== "") {
1491
1219
  writer.uint32(18).string(message.msg);
1492
1220
  }
1221
+ if (message.txId !== 0) {
1222
+ writer.uint32(24).uint64(message.txId);
1223
+ }
1493
1224
  return writer;
1494
1225
  },
1495
1226
 
1496
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgDrainTransactionResponse {
1227
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestDrainTransactionResponse {
1497
1228
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1498
1229
  let end = length === undefined ? reader.len : reader.pos + length;
1499
- const message = createBaseMsgDrainTransactionResponse();
1230
+ const message = createBaseMsgRequestDrainTransactionResponse();
1500
1231
  while (reader.pos < end) {
1501
1232
  const tag = reader.uint32();
1502
1233
  switch (tag >>> 3) {
@@ -1506,6 +1237,9 @@ export const MsgDrainTransactionResponse = {
1506
1237
  case 2:
1507
1238
  message.msg = reader.string();
1508
1239
  break;
1240
+ case 3:
1241
+ message.txId = longToNumber(reader.uint64() as Long);
1242
+ break;
1509
1243
  default:
1510
1244
  reader.skipType(tag & 7);
1511
1245
  break;
@@ -1514,44 +1248,61 @@ export const MsgDrainTransactionResponse = {
1514
1248
  return message;
1515
1249
  },
1516
1250
 
1517
- fromJSON(object: any): MsgDrainTransactionResponse {
1518
- return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
1251
+ fromJSON(object: any): MsgRequestDrainTransactionResponse {
1252
+ return {
1253
+ code: isSet(object.code) ? String(object.code) : "",
1254
+ msg: isSet(object.msg) ? String(object.msg) : "",
1255
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
1256
+ };
1519
1257
  },
1520
1258
 
1521
- toJSON(message: MsgDrainTransactionResponse): unknown {
1259
+ toJSON(message: MsgRequestDrainTransactionResponse): unknown {
1522
1260
  const obj: any = {};
1523
1261
  message.code !== undefined && (obj.code = message.code);
1524
1262
  message.msg !== undefined && (obj.msg = message.msg);
1263
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
1525
1264
  return obj;
1526
1265
  },
1527
1266
 
1528
- fromPartial<I extends Exact<DeepPartial<MsgDrainTransactionResponse>, I>>(object: I): MsgDrainTransactionResponse {
1529
- const message = createBaseMsgDrainTransactionResponse();
1267
+ fromPartial<I extends Exact<DeepPartial<MsgRequestDrainTransactionResponse>, I>>(
1268
+ object: I,
1269
+ ): MsgRequestDrainTransactionResponse {
1270
+ const message = createBaseMsgRequestDrainTransactionResponse();
1530
1271
  message.code = object.code ?? "";
1531
1272
  message.msg = object.msg ?? "";
1273
+ message.txId = object.txId ?? 0;
1532
1274
  return message;
1533
1275
  },
1534
1276
  };
1535
1277
 
1536
- function createBaseMsgCancelTransaction(): MsgCancelTransaction {
1537
- return { creator: "", transactionId: "" };
1278
+ function createBaseMsgFinalizeDrainTransaction(): MsgFinalizeDrainTransaction {
1279
+ return { creator: "", txId: 0, txHash: "", success: "", signedKey: "" };
1538
1280
  }
1539
1281
 
1540
- export const MsgCancelTransaction = {
1541
- encode(message: MsgCancelTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1282
+ export const MsgFinalizeDrainTransaction = {
1283
+ encode(message: MsgFinalizeDrainTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1542
1284
  if (message.creator !== "") {
1543
1285
  writer.uint32(10).string(message.creator);
1544
1286
  }
1545
- if (message.transactionId !== "") {
1546
- writer.uint32(18).string(message.transactionId);
1287
+ if (message.txId !== 0) {
1288
+ writer.uint32(16).uint64(message.txId);
1289
+ }
1290
+ if (message.txHash !== "") {
1291
+ writer.uint32(26).string(message.txHash);
1292
+ }
1293
+ if (message.success !== "") {
1294
+ writer.uint32(34).string(message.success);
1295
+ }
1296
+ if (message.signedKey !== "") {
1297
+ writer.uint32(42).string(message.signedKey);
1547
1298
  }
1548
1299
  return writer;
1549
1300
  },
1550
1301
 
1551
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransaction {
1302
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeDrainTransaction {
1552
1303
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1553
1304
  let end = length === undefined ? reader.len : reader.pos + length;
1554
- const message = createBaseMsgCancelTransaction();
1305
+ const message = createBaseMsgFinalizeDrainTransaction();
1555
1306
  while (reader.pos < end) {
1556
1307
  const tag = reader.uint32();
1557
1308
  switch (tag >>> 3) {
@@ -1559,7 +1310,16 @@ export const MsgCancelTransaction = {
1559
1310
  message.creator = reader.string();
1560
1311
  break;
1561
1312
  case 2:
1562
- message.transactionId = reader.string();
1313
+ message.txId = longToNumber(reader.uint64() as Long);
1314
+ break;
1315
+ case 3:
1316
+ message.txHash = reader.string();
1317
+ break;
1318
+ case 4:
1319
+ message.success = reader.string();
1320
+ break;
1321
+ case 5:
1322
+ message.signedKey = reader.string();
1563
1323
  break;
1564
1324
  default:
1565
1325
  reader.skipType(tag & 7);
@@ -1569,2373 +1329,43 @@ export const MsgCancelTransaction = {
1569
1329
  return message;
1570
1330
  },
1571
1331
 
1572
- fromJSON(object: any): MsgCancelTransaction {
1332
+ fromJSON(object: any): MsgFinalizeDrainTransaction {
1573
1333
  return {
1574
1334
  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) : "",
1335
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
1336
+ txHash: isSet(object.txHash) ? String(object.txHash) : "",
1337
+ success: isSet(object.success) ? String(object.success) : "",
1338
+ signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
3915
1339
  };
3916
1340
  },
3917
1341
 
3918
- toJSON(message: MsgAddPubkeyEddsa): unknown {
1342
+ toJSON(message: MsgFinalizeDrainTransaction): unknown {
3919
1343
  const obj: any = {};
3920
1344
  message.creator !== undefined && (obj.creator = message.creator);
3921
- message.pubkey !== undefined && (obj.pubkey = message.pubkey);
1345
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
1346
+ message.txHash !== undefined && (obj.txHash = message.txHash);
1347
+ message.success !== undefined && (obj.success = message.success);
1348
+ message.signedKey !== undefined && (obj.signedKey = message.signedKey);
3922
1349
  return obj;
3923
1350
  },
3924
1351
 
3925
- fromPartial<I extends Exact<DeepPartial<MsgAddPubkeyEddsa>, I>>(object: I): MsgAddPubkeyEddsa {
3926
- const message = createBaseMsgAddPubkeyEddsa();
1352
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeDrainTransaction>, I>>(object: I): MsgFinalizeDrainTransaction {
1353
+ const message = createBaseMsgFinalizeDrainTransaction();
3927
1354
  message.creator = object.creator ?? "";
3928
- message.pubkey = object.pubkey ?? "";
1355
+ message.txId = object.txId ?? 0;
1356
+ message.txHash = object.txHash ?? "";
1357
+ message.success = object.success ?? "";
1358
+ message.signedKey = object.signedKey ?? "";
3929
1359
  return message;
3930
1360
  },
3931
1361
  };
3932
1362
 
3933
- function createBaseMsgAddPubkeyEddsaResponse(): MsgAddPubkeyEddsaResponse {
1363
+ function createBaseMsgFinalizeDrainTransactionResponse(): MsgFinalizeDrainTransactionResponse {
3934
1364
  return { code: "", msg: "" };
3935
1365
  }
3936
1366
 
3937
- export const MsgAddPubkeyEddsaResponse = {
3938
- encode(message: MsgAddPubkeyEddsaResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1367
+ export const MsgFinalizeDrainTransactionResponse = {
1368
+ encode(message: MsgFinalizeDrainTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3939
1369
  if (message.code !== "") {
3940
1370
  writer.uint32(10).string(message.code);
3941
1371
  }
@@ -3945,10 +1375,10 @@ export const MsgAddPubkeyEddsaResponse = {
3945
1375
  return writer;
3946
1376
  },
3947
1377
 
3948
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddPubkeyEddsaResponse {
1378
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeDrainTransactionResponse {
3949
1379
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3950
1380
  let end = length === undefined ? reader.len : reader.pos + length;
3951
- const message = createBaseMsgAddPubkeyEddsaResponse();
1381
+ const message = createBaseMsgFinalizeDrainTransactionResponse();
3952
1382
  while (reader.pos < end) {
3953
1383
  const tag = reader.uint32();
3954
1384
  switch (tag >>> 3) {
@@ -3966,19 +1396,21 @@ export const MsgAddPubkeyEddsaResponse = {
3966
1396
  return message;
3967
1397
  },
3968
1398
 
3969
- fromJSON(object: any): MsgAddPubkeyEddsaResponse {
1399
+ fromJSON(object: any): MsgFinalizeDrainTransactionResponse {
3970
1400
  return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
3971
1401
  },
3972
1402
 
3973
- toJSON(message: MsgAddPubkeyEddsaResponse): unknown {
1403
+ toJSON(message: MsgFinalizeDrainTransactionResponse): unknown {
3974
1404
  const obj: any = {};
3975
1405
  message.code !== undefined && (obj.code = message.code);
3976
1406
  message.msg !== undefined && (obj.msg = message.msg);
3977
1407
  return obj;
3978
1408
  },
3979
1409
 
3980
- fromPartial<I extends Exact<DeepPartial<MsgAddPubkeyEddsaResponse>, I>>(object: I): MsgAddPubkeyEddsaResponse {
3981
- const message = createBaseMsgAddPubkeyEddsaResponse();
1410
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeDrainTransactionResponse>, I>>(
1411
+ object: I,
1412
+ ): MsgFinalizeDrainTransactionResponse {
1413
+ const message = createBaseMsgFinalizeDrainTransactionResponse();
3982
1414
  message.code = object.code ?? "";
3983
1415
  message.msg = object.msg ?? "";
3984
1416
  return message;
@@ -3988,34 +1420,16 @@ export const MsgAddPubkeyEddsaResponse = {
3988
1420
  /** Msg defines the Msg service. */
3989
1421
  export interface Msg {
3990
1422
  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>;
1423
+ FinalizeTransaction(request: MsgFinalizeTransaction): Promise<MsgFinalizeTransactionResponse>;
1424
+ RequestProvisionTransaction(request: MsgRequestProvisionTransaction): Promise<MsgRequestProvisionTransactionResponse>;
3998
1425
  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
1426
  SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse>;
4012
1427
  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>;
1428
+ FinalizeProvisionTransaction(
1429
+ request: MsgFinalizeProvisionTransaction,
1430
+ ): Promise<MsgFinalizeProvisionTransactionResponse>;
1431
+ RequestDrainTransaction(request: MsgRequestDrainTransaction): Promise<MsgRequestDrainTransactionResponse>;
1432
+ FinalizeDrainTransaction(request: MsgFinalizeDrainTransaction): Promise<MsgFinalizeDrainTransactionResponse>;
4019
1433
  }
4020
1434
 
4021
1435
  export class MsgClientImpl implements Msg {
@@ -4023,207 +1437,71 @@ export class MsgClientImpl implements Msg {
4023
1437
  constructor(rpc: Rpc) {
4024
1438
  this.rpc = rpc;
4025
1439
  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);
1440
+ this.FinalizeTransaction = this.FinalizeTransaction.bind(this);
1441
+ this.RequestProvisionTransaction = this.RequestProvisionTransaction.bind(this);
4033
1442
  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
1443
  this.SetTxHash = this.SetTxHash.bind(this);
4047
1444
  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);
1445
+ this.FinalizeProvisionTransaction = this.FinalizeProvisionTransaction.bind(this);
1446
+ this.RequestDrainTransaction = this.RequestDrainTransaction.bind(this);
1447
+ this.FinalizeDrainTransaction = this.FinalizeDrainTransaction.bind(this);
4054
1448
  }
4055
1449
  RequestTransaction(request: MsgRequestTransaction): Promise<MsgRequestTransactionResponse> {
4056
1450
  const data = MsgRequestTransaction.encode(request).finish();
4057
- const promise = this.rpc.request("kimablockchain.kima.Msg", "RequestTransaction", data);
1451
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestTransaction", data);
4058
1452
  return promise.then((data) => MsgRequestTransactionResponse.decode(new _m0.Reader(data)));
4059
1453
  }
4060
1454
 
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)));
1455
+ FinalizeTransaction(request: MsgFinalizeTransaction): Promise<MsgFinalizeTransactionResponse> {
1456
+ const data = MsgFinalizeTransaction.encode(request).finish();
1457
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeTransaction", data);
1458
+ return promise.then((data) => MsgFinalizeTransactionResponse.decode(new _m0.Reader(data)));
4095
1459
  }
4096
1460
 
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)));
1461
+ RequestProvisionTransaction(
1462
+ request: MsgRequestProvisionTransaction,
1463
+ ): Promise<MsgRequestProvisionTransactionResponse> {
1464
+ const data = MsgRequestProvisionTransaction.encode(request).finish();
1465
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestProvisionTransaction", data);
1466
+ return promise.then((data) => MsgRequestProvisionTransactionResponse.decode(new _m0.Reader(data)));
4101
1467
  }
4102
1468
 
4103
1469
  CancelTransaction(request: MsgCancelTransaction): Promise<MsgCancelTransactionResponse> {
4104
1470
  const data = MsgCancelTransaction.encode(request).finish();
4105
- const promise = this.rpc.request("kimablockchain.kima.Msg", "CancelTransaction", data);
1471
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "CancelTransaction", data);
4106
1472
  return promise.then((data) => MsgCancelTransactionResponse.decode(new _m0.Reader(data)));
4107
1473
  }
4108
1474
 
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
1475
  SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse> {
4182
1476
  const data = MsgSetTxHash.encode(request).finish();
4183
- const promise = this.rpc.request("kimablockchain.kima.Msg", "SetTxHash", data);
1477
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "SetTxHash", data);
4184
1478
  return promise.then((data) => MsgSetTxHashResponse.decode(new _m0.Reader(data)));
4185
1479
  }
4186
1480
 
4187
1481
  SetTxProcess(request: MsgSetTxProcess): Promise<MsgSetTxProcessResponse> {
4188
1482
  const data = MsgSetTxProcess.encode(request).finish();
4189
- const promise = this.rpc.request("kimablockchain.kima.Msg", "SetTxProcess", data);
1483
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "SetTxProcess", data);
4190
1484
  return promise.then((data) => MsgSetTxProcessResponse.decode(new _m0.Reader(data)));
4191
1485
  }
4192
1486
 
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)));
1487
+ FinalizeProvisionTransaction(
1488
+ request: MsgFinalizeProvisionTransaction,
1489
+ ): Promise<MsgFinalizeProvisionTransactionResponse> {
1490
+ const data = MsgFinalizeProvisionTransaction.encode(request).finish();
1491
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeProvisionTransaction", data);
1492
+ return promise.then((data) => MsgFinalizeProvisionTransactionResponse.decode(new _m0.Reader(data)));
4215
1493
  }
4216
1494
 
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)));
1495
+ RequestDrainTransaction(request: MsgRequestDrainTransaction): Promise<MsgRequestDrainTransactionResponse> {
1496
+ const data = MsgRequestDrainTransaction.encode(request).finish();
1497
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestDrainTransaction", data);
1498
+ return promise.then((data) => MsgRequestDrainTransactionResponse.decode(new _m0.Reader(data)));
4221
1499
  }
4222
1500
 
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)));
1501
+ FinalizeDrainTransaction(request: MsgFinalizeDrainTransaction): Promise<MsgFinalizeDrainTransactionResponse> {
1502
+ const data = MsgFinalizeDrainTransaction.encode(request).finish();
1503
+ const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeDrainTransaction", data);
1504
+ return promise.then((data) => MsgFinalizeDrainTransactionResponse.decode(new _m0.Reader(data)));
4227
1505
  }
4228
1506
  }
4229
1507