@kimafinance/kima-transaction-api 1.0.1 → 1.0.2
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/README.md +1 -0
- package/build/index.js +20 -2
- package/build/kima/common.d.ts +2 -1
- package/build/kima/common.js +5 -0
- package/build/kima/tx.d.ts +152 -2
- package/build/kima/tx.js +1126 -99
- package/package.json +1 -1
- package/src/index.ts +24 -2
- package/src/kima/common.ts +6 -1
- package/src/kima/tx.ts +1322 -126
package/src/kima/tx.ts
CHANGED
|
@@ -22,7 +22,8 @@ export interface MsgRequestTransactionResponse {
|
|
|
22
22
|
|
|
23
23
|
export interface MsgApproveTransaction {
|
|
24
24
|
creator: string;
|
|
25
|
-
|
|
25
|
+
txCHash: string;
|
|
26
|
+
txTHash: string;
|
|
26
27
|
success: string;
|
|
27
28
|
signedKey: string;
|
|
28
29
|
}
|
|
@@ -48,6 +49,7 @@ export interface MsgObservationVote {
|
|
|
48
49
|
from: string;
|
|
49
50
|
to: string;
|
|
50
51
|
amount: string;
|
|
52
|
+
payType: string;
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
export interface MsgObservationVoteResponse {
|
|
@@ -190,6 +192,69 @@ export interface MsgClearTssInfoResponse {
|
|
|
190
192
|
msg: string;
|
|
191
193
|
}
|
|
192
194
|
|
|
195
|
+
export interface MsgAddChain {
|
|
196
|
+
creator: string;
|
|
197
|
+
name: string;
|
|
198
|
+
symbol: string;
|
|
199
|
+
tokens: string[];
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface MsgAddChainResponse {
|
|
203
|
+
code: string;
|
|
204
|
+
msg: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface MsgUpdateTssHash {
|
|
208
|
+
creator: string;
|
|
209
|
+
txId: string;
|
|
210
|
+
tssPullHash: string;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface MsgUpdateTssHashResponse {
|
|
214
|
+
code: string;
|
|
215
|
+
msg: string;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface MsgUpdateChainStatus {
|
|
219
|
+
creator: string;
|
|
220
|
+
chainSymbol: string;
|
|
221
|
+
disabled: boolean;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface MsgUpdateChainStatusResponse {
|
|
225
|
+
code: string;
|
|
226
|
+
msg: string;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export interface MsgAddToken {
|
|
230
|
+
creator: string;
|
|
231
|
+
chainSymbol: string;
|
|
232
|
+
tokenSymbol: string;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface MsgAddTokenResponse {
|
|
236
|
+
code: string;
|
|
237
|
+
msg: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface MsgUpdateTssStatus {
|
|
241
|
+
creator: string;
|
|
242
|
+
status: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface MsgUpdateTssStatusResponse {}
|
|
246
|
+
|
|
247
|
+
export interface MsgSetTxHash {
|
|
248
|
+
creator: string;
|
|
249
|
+
txId: string;
|
|
250
|
+
txHash: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface MsgSetTxHashResponse {
|
|
254
|
+
code: string;
|
|
255
|
+
msg: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
193
258
|
const baseMsgRequestTransaction: object = {
|
|
194
259
|
creator: "",
|
|
195
260
|
originChain: "",
|
|
@@ -491,7 +556,8 @@ export const MsgRequestTransactionResponse = {
|
|
|
491
556
|
|
|
492
557
|
const baseMsgApproveTransaction: object = {
|
|
493
558
|
creator: "",
|
|
494
|
-
|
|
559
|
+
txCHash: "",
|
|
560
|
+
txTHash: "",
|
|
495
561
|
success: "",
|
|
496
562
|
signedKey: "",
|
|
497
563
|
};
|
|
@@ -504,14 +570,17 @@ export const MsgApproveTransaction = {
|
|
|
504
570
|
if (message.creator !== "") {
|
|
505
571
|
writer.uint32(10).string(message.creator);
|
|
506
572
|
}
|
|
507
|
-
if (message.
|
|
508
|
-
writer.uint32(18).string(message.
|
|
573
|
+
if (message.txCHash !== "") {
|
|
574
|
+
writer.uint32(18).string(message.txCHash);
|
|
575
|
+
}
|
|
576
|
+
if (message.txTHash !== "") {
|
|
577
|
+
writer.uint32(26).string(message.txTHash);
|
|
509
578
|
}
|
|
510
579
|
if (message.success !== "") {
|
|
511
|
-
writer.uint32(
|
|
580
|
+
writer.uint32(34).string(message.success);
|
|
512
581
|
}
|
|
513
582
|
if (message.signedKey !== "") {
|
|
514
|
-
writer.uint32(
|
|
583
|
+
writer.uint32(42).string(message.signedKey);
|
|
515
584
|
}
|
|
516
585
|
return writer;
|
|
517
586
|
},
|
|
@@ -527,12 +596,15 @@ export const MsgApproveTransaction = {
|
|
|
527
596
|
message.creator = reader.string();
|
|
528
597
|
break;
|
|
529
598
|
case 2:
|
|
530
|
-
message.
|
|
599
|
+
message.txCHash = reader.string();
|
|
531
600
|
break;
|
|
532
601
|
case 3:
|
|
533
|
-
message.
|
|
602
|
+
message.txTHash = reader.string();
|
|
534
603
|
break;
|
|
535
604
|
case 4:
|
|
605
|
+
message.success = reader.string();
|
|
606
|
+
break;
|
|
607
|
+
case 5:
|
|
536
608
|
message.signedKey = reader.string();
|
|
537
609
|
break;
|
|
538
610
|
default:
|
|
@@ -550,10 +622,15 @@ export const MsgApproveTransaction = {
|
|
|
550
622
|
} else {
|
|
551
623
|
message.creator = "";
|
|
552
624
|
}
|
|
553
|
-
if (object.
|
|
554
|
-
message.
|
|
625
|
+
if (object.txCHash !== undefined && object.txCHash !== null) {
|
|
626
|
+
message.txCHash = String(object.txCHash);
|
|
555
627
|
} else {
|
|
556
|
-
message.
|
|
628
|
+
message.txCHash = "";
|
|
629
|
+
}
|
|
630
|
+
if (object.txTHash !== undefined && object.txTHash !== null) {
|
|
631
|
+
message.txTHash = String(object.txTHash);
|
|
632
|
+
} else {
|
|
633
|
+
message.txTHash = "";
|
|
557
634
|
}
|
|
558
635
|
if (object.success !== undefined && object.success !== null) {
|
|
559
636
|
message.success = String(object.success);
|
|
@@ -571,7 +648,8 @@ export const MsgApproveTransaction = {
|
|
|
571
648
|
toJSON(message: MsgApproveTransaction): unknown {
|
|
572
649
|
const obj: any = {};
|
|
573
650
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
574
|
-
message.
|
|
651
|
+
message.txCHash !== undefined && (obj.txCHash = message.txCHash);
|
|
652
|
+
message.txTHash !== undefined && (obj.txTHash = message.txTHash);
|
|
575
653
|
message.success !== undefined && (obj.success = message.success);
|
|
576
654
|
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
577
655
|
return obj;
|
|
@@ -586,10 +664,15 @@ export const MsgApproveTransaction = {
|
|
|
586
664
|
} else {
|
|
587
665
|
message.creator = "";
|
|
588
666
|
}
|
|
589
|
-
if (object.
|
|
590
|
-
message.
|
|
667
|
+
if (object.txCHash !== undefined && object.txCHash !== null) {
|
|
668
|
+
message.txCHash = object.txCHash;
|
|
591
669
|
} else {
|
|
592
|
-
message.
|
|
670
|
+
message.txCHash = "";
|
|
671
|
+
}
|
|
672
|
+
if (object.txTHash !== undefined && object.txTHash !== null) {
|
|
673
|
+
message.txTHash = object.txTHash;
|
|
674
|
+
} else {
|
|
675
|
+
message.txTHash = "";
|
|
593
676
|
}
|
|
594
677
|
if (object.success !== undefined && object.success !== null) {
|
|
595
678
|
message.success = object.success;
|
|
@@ -836,6 +919,7 @@ const baseMsgObservationVote: object = {
|
|
|
836
919
|
from: "",
|
|
837
920
|
to: "",
|
|
838
921
|
amount: "",
|
|
922
|
+
payType: "",
|
|
839
923
|
};
|
|
840
924
|
|
|
841
925
|
export const MsgObservationVote = {
|
|
@@ -861,6 +945,9 @@ export const MsgObservationVote = {
|
|
|
861
945
|
if (message.amount !== "") {
|
|
862
946
|
writer.uint32(50).string(message.amount);
|
|
863
947
|
}
|
|
948
|
+
if (message.payType !== "") {
|
|
949
|
+
writer.uint32(58).string(message.payType);
|
|
950
|
+
}
|
|
864
951
|
return writer;
|
|
865
952
|
},
|
|
866
953
|
|
|
@@ -889,6 +976,9 @@ export const MsgObservationVote = {
|
|
|
889
976
|
case 6:
|
|
890
977
|
message.amount = reader.string();
|
|
891
978
|
break;
|
|
979
|
+
case 7:
|
|
980
|
+
message.payType = reader.string();
|
|
981
|
+
break;
|
|
892
982
|
default:
|
|
893
983
|
reader.skipType(tag & 7);
|
|
894
984
|
break;
|
|
@@ -929,6 +1019,11 @@ export const MsgObservationVote = {
|
|
|
929
1019
|
} else {
|
|
930
1020
|
message.amount = "";
|
|
931
1021
|
}
|
|
1022
|
+
if (object.payType !== undefined && object.payType !== null) {
|
|
1023
|
+
message.payType = String(object.payType);
|
|
1024
|
+
} else {
|
|
1025
|
+
message.payType = "";
|
|
1026
|
+
}
|
|
932
1027
|
return message;
|
|
933
1028
|
},
|
|
934
1029
|
|
|
@@ -940,6 +1035,7 @@ export const MsgObservationVote = {
|
|
|
940
1035
|
message.from !== undefined && (obj.from = message.from);
|
|
941
1036
|
message.to !== undefined && (obj.to = message.to);
|
|
942
1037
|
message.amount !== undefined && (obj.amount = message.amount);
|
|
1038
|
+
message.payType !== undefined && (obj.payType = message.payType);
|
|
943
1039
|
return obj;
|
|
944
1040
|
},
|
|
945
1041
|
|
|
@@ -975,6 +1071,11 @@ export const MsgObservationVote = {
|
|
|
975
1071
|
} else {
|
|
976
1072
|
message.amount = "";
|
|
977
1073
|
}
|
|
1074
|
+
if (object.payType !== undefined && object.payType !== null) {
|
|
1075
|
+
message.payType = object.payType;
|
|
1076
|
+
} else {
|
|
1077
|
+
message.payType = "";
|
|
1078
|
+
}
|
|
978
1079
|
return message;
|
|
979
1080
|
},
|
|
980
1081
|
};
|
|
@@ -3231,123 +3332,1146 @@ export const MsgClearTssInfoResponse = {
|
|
|
3231
3332
|
},
|
|
3232
3333
|
};
|
|
3233
3334
|
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
request: MsgApproveTransaction
|
|
3241
|
-
): Promise<MsgApproveTransactionResponse>;
|
|
3242
|
-
FetchBalance(request: MsgFetchBalance): Promise<MsgFetchBalanceResponse>;
|
|
3243
|
-
ObservationVote(
|
|
3244
|
-
request: MsgObservationVote
|
|
3245
|
-
): Promise<MsgObservationVoteResponse>;
|
|
3246
|
-
UpdateBalance(request: MsgUpdateBalance): Promise<MsgUpdateBalanceResponse>;
|
|
3247
|
-
KeysignVote(request: MsgKeysignVote): Promise<MsgKeysignVoteResponse>;
|
|
3248
|
-
UpdateGasFee(request: MsgUpdateGasFee): Promise<MsgUpdateGasFeeResponse>;
|
|
3249
|
-
ProvisionTransaction(
|
|
3250
|
-
request: MsgProvisionTransaction
|
|
3251
|
-
): Promise<MsgProvisionTransactionResponse>;
|
|
3252
|
-
DrainTransaction(
|
|
3253
|
-
request: MsgDrainTransaction
|
|
3254
|
-
): Promise<MsgDrainTransactionResponse>;
|
|
3255
|
-
CancelTransaction(
|
|
3256
|
-
request: MsgCancelTransaction
|
|
3257
|
-
): Promise<MsgCancelTransactionResponse>;
|
|
3258
|
-
AddWhitelisted(
|
|
3259
|
-
request: MsgAddWhitelisted
|
|
3260
|
-
): Promise<MsgAddWhitelistedResponse>;
|
|
3261
|
-
SetAdmin(request: MsgSetAdmin): Promise<MsgSetAdminResponse>;
|
|
3262
|
-
AddPubkey(request: MsgAddPubkey): Promise<MsgAddPubkeyResponse>;
|
|
3263
|
-
UpdateTssPubkey(
|
|
3264
|
-
request: MsgUpdateTssPubkey
|
|
3265
|
-
): Promise<MsgUpdateTssPubkeyResponse>;
|
|
3266
|
-
RemoveWhitelisted(
|
|
3267
|
-
request: MsgRemoveWhitelisted
|
|
3268
|
-
): Promise<MsgRemoveWhitelistedResponse>;
|
|
3269
|
-
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
3270
|
-
ClearTssInfo(request: MsgClearTssInfo): Promise<MsgClearTssInfoResponse>;
|
|
3271
|
-
}
|
|
3335
|
+
const baseMsgAddChain: object = {
|
|
3336
|
+
creator: "",
|
|
3337
|
+
name: "",
|
|
3338
|
+
symbol: "",
|
|
3339
|
+
tokens: "",
|
|
3340
|
+
};
|
|
3272
3341
|
|
|
3273
|
-
export
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
return
|
|
3288
|
-
|
|
3289
|
-
);
|
|
3290
|
-
}
|
|
3342
|
+
export const MsgAddChain = {
|
|
3343
|
+
encode(message: MsgAddChain, writer: Writer = Writer.create()): Writer {
|
|
3344
|
+
if (message.creator !== "") {
|
|
3345
|
+
writer.uint32(10).string(message.creator);
|
|
3346
|
+
}
|
|
3347
|
+
if (message.name !== "") {
|
|
3348
|
+
writer.uint32(18).string(message.name);
|
|
3349
|
+
}
|
|
3350
|
+
if (message.symbol !== "") {
|
|
3351
|
+
writer.uint32(26).string(message.symbol);
|
|
3352
|
+
}
|
|
3353
|
+
for (const v of message.tokens) {
|
|
3354
|
+
writer.uint32(34).string(v!);
|
|
3355
|
+
}
|
|
3356
|
+
return writer;
|
|
3357
|
+
},
|
|
3291
3358
|
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
const
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3359
|
+
decode(input: Reader | Uint8Array, length?: number): MsgAddChain {
|
|
3360
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
3361
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3362
|
+
const message = { ...baseMsgAddChain } as MsgAddChain;
|
|
3363
|
+
message.tokens = [];
|
|
3364
|
+
while (reader.pos < end) {
|
|
3365
|
+
const tag = reader.uint32();
|
|
3366
|
+
switch (tag >>> 3) {
|
|
3367
|
+
case 1:
|
|
3368
|
+
message.creator = reader.string();
|
|
3369
|
+
break;
|
|
3370
|
+
case 2:
|
|
3371
|
+
message.name = reader.string();
|
|
3372
|
+
break;
|
|
3373
|
+
case 3:
|
|
3374
|
+
message.symbol = reader.string();
|
|
3375
|
+
break;
|
|
3376
|
+
case 4:
|
|
3377
|
+
message.tokens.push(reader.string());
|
|
3378
|
+
break;
|
|
3379
|
+
default:
|
|
3380
|
+
reader.skipType(tag & 7);
|
|
3381
|
+
break;
|
|
3382
|
+
}
|
|
3383
|
+
}
|
|
3384
|
+
return message;
|
|
3385
|
+
},
|
|
3305
3386
|
|
|
3306
|
-
|
|
3307
|
-
const
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3387
|
+
fromJSON(object: any): MsgAddChain {
|
|
3388
|
+
const message = { ...baseMsgAddChain } as MsgAddChain;
|
|
3389
|
+
message.tokens = [];
|
|
3390
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3391
|
+
message.creator = String(object.creator);
|
|
3392
|
+
} else {
|
|
3393
|
+
message.creator = "";
|
|
3394
|
+
}
|
|
3395
|
+
if (object.name !== undefined && object.name !== null) {
|
|
3396
|
+
message.name = String(object.name);
|
|
3397
|
+
} else {
|
|
3398
|
+
message.name = "";
|
|
3399
|
+
}
|
|
3400
|
+
if (object.symbol !== undefined && object.symbol !== null) {
|
|
3401
|
+
message.symbol = String(object.symbol);
|
|
3402
|
+
} else {
|
|
3403
|
+
message.symbol = "";
|
|
3404
|
+
}
|
|
3405
|
+
if (object.tokens !== undefined && object.tokens !== null) {
|
|
3406
|
+
for (const e of object.tokens) {
|
|
3407
|
+
message.tokens.push(String(e));
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
return message;
|
|
3411
|
+
},
|
|
3317
3412
|
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
}
|
|
3413
|
+
toJSON(message: MsgAddChain): unknown {
|
|
3414
|
+
const obj: any = {};
|
|
3415
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
3416
|
+
message.name !== undefined && (obj.name = message.name);
|
|
3417
|
+
message.symbol !== undefined && (obj.symbol = message.symbol);
|
|
3418
|
+
if (message.tokens) {
|
|
3419
|
+
obj.tokens = message.tokens.map((e) => e);
|
|
3420
|
+
} else {
|
|
3421
|
+
obj.tokens = [];
|
|
3422
|
+
}
|
|
3423
|
+
return obj;
|
|
3424
|
+
},
|
|
3331
3425
|
|
|
3332
|
-
|
|
3333
|
-
const
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3426
|
+
fromPartial(object: DeepPartial<MsgAddChain>): MsgAddChain {
|
|
3427
|
+
const message = { ...baseMsgAddChain } as MsgAddChain;
|
|
3428
|
+
message.tokens = [];
|
|
3429
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3430
|
+
message.creator = object.creator;
|
|
3431
|
+
} else {
|
|
3432
|
+
message.creator = "";
|
|
3433
|
+
}
|
|
3434
|
+
if (object.name !== undefined && object.name !== null) {
|
|
3435
|
+
message.name = object.name;
|
|
3436
|
+
} else {
|
|
3437
|
+
message.name = "";
|
|
3438
|
+
}
|
|
3439
|
+
if (object.symbol !== undefined && object.symbol !== null) {
|
|
3440
|
+
message.symbol = object.symbol;
|
|
3441
|
+
} else {
|
|
3442
|
+
message.symbol = "";
|
|
3443
|
+
}
|
|
3444
|
+
if (object.tokens !== undefined && object.tokens !== null) {
|
|
3445
|
+
for (const e of object.tokens) {
|
|
3446
|
+
message.tokens.push(e);
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
return message;
|
|
3450
|
+
},
|
|
3451
|
+
};
|
|
3343
3452
|
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3453
|
+
const baseMsgAddChainResponse: object = { code: "", msg: "" };
|
|
3454
|
+
|
|
3455
|
+
export const MsgAddChainResponse = {
|
|
3456
|
+
encode(
|
|
3457
|
+
message: MsgAddChainResponse,
|
|
3458
|
+
writer: Writer = Writer.create()
|
|
3459
|
+
): Writer {
|
|
3460
|
+
if (message.code !== "") {
|
|
3461
|
+
writer.uint32(10).string(message.code);
|
|
3462
|
+
}
|
|
3463
|
+
if (message.msg !== "") {
|
|
3464
|
+
writer.uint32(18).string(message.msg);
|
|
3465
|
+
}
|
|
3466
|
+
return writer;
|
|
3467
|
+
},
|
|
3468
|
+
|
|
3469
|
+
decode(input: Reader | Uint8Array, length?: number): MsgAddChainResponse {
|
|
3470
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
3471
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3472
|
+
const message = { ...baseMsgAddChainResponse } as MsgAddChainResponse;
|
|
3473
|
+
while (reader.pos < end) {
|
|
3474
|
+
const tag = reader.uint32();
|
|
3475
|
+
switch (tag >>> 3) {
|
|
3476
|
+
case 1:
|
|
3477
|
+
message.code = reader.string();
|
|
3478
|
+
break;
|
|
3479
|
+
case 2:
|
|
3480
|
+
message.msg = reader.string();
|
|
3481
|
+
break;
|
|
3482
|
+
default:
|
|
3483
|
+
reader.skipType(tag & 7);
|
|
3484
|
+
break;
|
|
3485
|
+
}
|
|
3486
|
+
}
|
|
3487
|
+
return message;
|
|
3488
|
+
},
|
|
3489
|
+
|
|
3490
|
+
fromJSON(object: any): MsgAddChainResponse {
|
|
3491
|
+
const message = { ...baseMsgAddChainResponse } as MsgAddChainResponse;
|
|
3492
|
+
if (object.code !== undefined && object.code !== null) {
|
|
3493
|
+
message.code = String(object.code);
|
|
3494
|
+
} else {
|
|
3495
|
+
message.code = "";
|
|
3496
|
+
}
|
|
3497
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
3498
|
+
message.msg = String(object.msg);
|
|
3499
|
+
} else {
|
|
3500
|
+
message.msg = "";
|
|
3501
|
+
}
|
|
3502
|
+
return message;
|
|
3503
|
+
},
|
|
3504
|
+
|
|
3505
|
+
toJSON(message: MsgAddChainResponse): unknown {
|
|
3506
|
+
const obj: any = {};
|
|
3507
|
+
message.code !== undefined && (obj.code = message.code);
|
|
3508
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
3509
|
+
return obj;
|
|
3510
|
+
},
|
|
3511
|
+
|
|
3512
|
+
fromPartial(object: DeepPartial<MsgAddChainResponse>): MsgAddChainResponse {
|
|
3513
|
+
const message = { ...baseMsgAddChainResponse } as MsgAddChainResponse;
|
|
3514
|
+
if (object.code !== undefined && object.code !== null) {
|
|
3515
|
+
message.code = object.code;
|
|
3516
|
+
} else {
|
|
3517
|
+
message.code = "";
|
|
3518
|
+
}
|
|
3519
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
3520
|
+
message.msg = object.msg;
|
|
3521
|
+
} else {
|
|
3522
|
+
message.msg = "";
|
|
3523
|
+
}
|
|
3524
|
+
return message;
|
|
3525
|
+
},
|
|
3526
|
+
};
|
|
3527
|
+
|
|
3528
|
+
const baseMsgUpdateTssHash: object = { creator: "", txId: "", tssPullHash: "" };
|
|
3529
|
+
|
|
3530
|
+
export const MsgUpdateTssHash = {
|
|
3531
|
+
encode(message: MsgUpdateTssHash, writer: Writer = Writer.create()): Writer {
|
|
3532
|
+
if (message.creator !== "") {
|
|
3533
|
+
writer.uint32(10).string(message.creator);
|
|
3534
|
+
}
|
|
3535
|
+
if (message.txId !== "") {
|
|
3536
|
+
writer.uint32(18).string(message.txId);
|
|
3537
|
+
}
|
|
3538
|
+
if (message.tssPullHash !== "") {
|
|
3539
|
+
writer.uint32(26).string(message.tssPullHash);
|
|
3540
|
+
}
|
|
3541
|
+
return writer;
|
|
3542
|
+
},
|
|
3543
|
+
|
|
3544
|
+
decode(input: Reader | Uint8Array, length?: number): MsgUpdateTssHash {
|
|
3545
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
3546
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3547
|
+
const message = { ...baseMsgUpdateTssHash } as MsgUpdateTssHash;
|
|
3548
|
+
while (reader.pos < end) {
|
|
3549
|
+
const tag = reader.uint32();
|
|
3550
|
+
switch (tag >>> 3) {
|
|
3551
|
+
case 1:
|
|
3552
|
+
message.creator = reader.string();
|
|
3553
|
+
break;
|
|
3554
|
+
case 2:
|
|
3555
|
+
message.txId = reader.string();
|
|
3556
|
+
break;
|
|
3557
|
+
case 3:
|
|
3558
|
+
message.tssPullHash = reader.string();
|
|
3559
|
+
break;
|
|
3560
|
+
default:
|
|
3561
|
+
reader.skipType(tag & 7);
|
|
3562
|
+
break;
|
|
3563
|
+
}
|
|
3564
|
+
}
|
|
3565
|
+
return message;
|
|
3566
|
+
},
|
|
3567
|
+
|
|
3568
|
+
fromJSON(object: any): MsgUpdateTssHash {
|
|
3569
|
+
const message = { ...baseMsgUpdateTssHash } as MsgUpdateTssHash;
|
|
3570
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3571
|
+
message.creator = String(object.creator);
|
|
3572
|
+
} else {
|
|
3573
|
+
message.creator = "";
|
|
3574
|
+
}
|
|
3575
|
+
if (object.txId !== undefined && object.txId !== null) {
|
|
3576
|
+
message.txId = String(object.txId);
|
|
3577
|
+
} else {
|
|
3578
|
+
message.txId = "";
|
|
3579
|
+
}
|
|
3580
|
+
if (object.tssPullHash !== undefined && object.tssPullHash !== null) {
|
|
3581
|
+
message.tssPullHash = String(object.tssPullHash);
|
|
3582
|
+
} else {
|
|
3583
|
+
message.tssPullHash = "";
|
|
3584
|
+
}
|
|
3585
|
+
return message;
|
|
3586
|
+
},
|
|
3587
|
+
|
|
3588
|
+
toJSON(message: MsgUpdateTssHash): unknown {
|
|
3589
|
+
const obj: any = {};
|
|
3590
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
3591
|
+
message.txId !== undefined && (obj.txId = message.txId);
|
|
3592
|
+
message.tssPullHash !== undefined &&
|
|
3593
|
+
(obj.tssPullHash = message.tssPullHash);
|
|
3594
|
+
return obj;
|
|
3595
|
+
},
|
|
3596
|
+
|
|
3597
|
+
fromPartial(object: DeepPartial<MsgUpdateTssHash>): MsgUpdateTssHash {
|
|
3598
|
+
const message = { ...baseMsgUpdateTssHash } as MsgUpdateTssHash;
|
|
3599
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3600
|
+
message.creator = object.creator;
|
|
3601
|
+
} else {
|
|
3602
|
+
message.creator = "";
|
|
3603
|
+
}
|
|
3604
|
+
if (object.txId !== undefined && object.txId !== null) {
|
|
3605
|
+
message.txId = object.txId;
|
|
3606
|
+
} else {
|
|
3607
|
+
message.txId = "";
|
|
3608
|
+
}
|
|
3609
|
+
if (object.tssPullHash !== undefined && object.tssPullHash !== null) {
|
|
3610
|
+
message.tssPullHash = object.tssPullHash;
|
|
3611
|
+
} else {
|
|
3612
|
+
message.tssPullHash = "";
|
|
3613
|
+
}
|
|
3614
|
+
return message;
|
|
3615
|
+
},
|
|
3616
|
+
};
|
|
3617
|
+
|
|
3618
|
+
const baseMsgUpdateTssHashResponse: object = { code: "", msg: "" };
|
|
3619
|
+
|
|
3620
|
+
export const MsgUpdateTssHashResponse = {
|
|
3621
|
+
encode(
|
|
3622
|
+
message: MsgUpdateTssHashResponse,
|
|
3623
|
+
writer: Writer = Writer.create()
|
|
3624
|
+
): Writer {
|
|
3625
|
+
if (message.code !== "") {
|
|
3626
|
+
writer.uint32(10).string(message.code);
|
|
3627
|
+
}
|
|
3628
|
+
if (message.msg !== "") {
|
|
3629
|
+
writer.uint32(18).string(message.msg);
|
|
3630
|
+
}
|
|
3631
|
+
return writer;
|
|
3632
|
+
},
|
|
3633
|
+
|
|
3634
|
+
decode(
|
|
3635
|
+
input: Reader | Uint8Array,
|
|
3636
|
+
length?: number
|
|
3637
|
+
): MsgUpdateTssHashResponse {
|
|
3638
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
3639
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3640
|
+
const message = {
|
|
3641
|
+
...baseMsgUpdateTssHashResponse,
|
|
3642
|
+
} as MsgUpdateTssHashResponse;
|
|
3643
|
+
while (reader.pos < end) {
|
|
3644
|
+
const tag = reader.uint32();
|
|
3645
|
+
switch (tag >>> 3) {
|
|
3646
|
+
case 1:
|
|
3647
|
+
message.code = reader.string();
|
|
3648
|
+
break;
|
|
3649
|
+
case 2:
|
|
3650
|
+
message.msg = reader.string();
|
|
3651
|
+
break;
|
|
3652
|
+
default:
|
|
3653
|
+
reader.skipType(tag & 7);
|
|
3654
|
+
break;
|
|
3655
|
+
}
|
|
3656
|
+
}
|
|
3657
|
+
return message;
|
|
3658
|
+
},
|
|
3659
|
+
|
|
3660
|
+
fromJSON(object: any): MsgUpdateTssHashResponse {
|
|
3661
|
+
const message = {
|
|
3662
|
+
...baseMsgUpdateTssHashResponse,
|
|
3663
|
+
} as MsgUpdateTssHashResponse;
|
|
3664
|
+
if (object.code !== undefined && object.code !== null) {
|
|
3665
|
+
message.code = String(object.code);
|
|
3666
|
+
} else {
|
|
3667
|
+
message.code = "";
|
|
3668
|
+
}
|
|
3669
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
3670
|
+
message.msg = String(object.msg);
|
|
3671
|
+
} else {
|
|
3672
|
+
message.msg = "";
|
|
3673
|
+
}
|
|
3674
|
+
return message;
|
|
3675
|
+
},
|
|
3676
|
+
|
|
3677
|
+
toJSON(message: MsgUpdateTssHashResponse): unknown {
|
|
3678
|
+
const obj: any = {};
|
|
3679
|
+
message.code !== undefined && (obj.code = message.code);
|
|
3680
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
3681
|
+
return obj;
|
|
3682
|
+
},
|
|
3683
|
+
|
|
3684
|
+
fromPartial(
|
|
3685
|
+
object: DeepPartial<MsgUpdateTssHashResponse>
|
|
3686
|
+
): MsgUpdateTssHashResponse {
|
|
3687
|
+
const message = {
|
|
3688
|
+
...baseMsgUpdateTssHashResponse,
|
|
3689
|
+
} as MsgUpdateTssHashResponse;
|
|
3690
|
+
if (object.code !== undefined && object.code !== null) {
|
|
3691
|
+
message.code = object.code;
|
|
3692
|
+
} else {
|
|
3693
|
+
message.code = "";
|
|
3694
|
+
}
|
|
3695
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
3696
|
+
message.msg = object.msg;
|
|
3697
|
+
} else {
|
|
3698
|
+
message.msg = "";
|
|
3699
|
+
}
|
|
3700
|
+
return message;
|
|
3701
|
+
},
|
|
3702
|
+
};
|
|
3703
|
+
|
|
3704
|
+
const baseMsgUpdateChainStatus: object = {
|
|
3705
|
+
creator: "",
|
|
3706
|
+
chainSymbol: "",
|
|
3707
|
+
disabled: false,
|
|
3708
|
+
};
|
|
3709
|
+
|
|
3710
|
+
export const MsgUpdateChainStatus = {
|
|
3711
|
+
encode(
|
|
3712
|
+
message: MsgUpdateChainStatus,
|
|
3713
|
+
writer: Writer = Writer.create()
|
|
3714
|
+
): Writer {
|
|
3715
|
+
if (message.creator !== "") {
|
|
3716
|
+
writer.uint32(10).string(message.creator);
|
|
3717
|
+
}
|
|
3718
|
+
if (message.chainSymbol !== "") {
|
|
3719
|
+
writer.uint32(18).string(message.chainSymbol);
|
|
3720
|
+
}
|
|
3721
|
+
if (message.disabled === true) {
|
|
3722
|
+
writer.uint32(24).bool(message.disabled);
|
|
3723
|
+
}
|
|
3724
|
+
return writer;
|
|
3725
|
+
},
|
|
3726
|
+
|
|
3727
|
+
decode(input: Reader | Uint8Array, length?: number): MsgUpdateChainStatus {
|
|
3728
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
3729
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3730
|
+
const message = { ...baseMsgUpdateChainStatus } as MsgUpdateChainStatus;
|
|
3731
|
+
while (reader.pos < end) {
|
|
3732
|
+
const tag = reader.uint32();
|
|
3733
|
+
switch (tag >>> 3) {
|
|
3734
|
+
case 1:
|
|
3735
|
+
message.creator = reader.string();
|
|
3736
|
+
break;
|
|
3737
|
+
case 2:
|
|
3738
|
+
message.chainSymbol = reader.string();
|
|
3739
|
+
break;
|
|
3740
|
+
case 3:
|
|
3741
|
+
message.disabled = reader.bool();
|
|
3742
|
+
break;
|
|
3743
|
+
default:
|
|
3744
|
+
reader.skipType(tag & 7);
|
|
3745
|
+
break;
|
|
3746
|
+
}
|
|
3747
|
+
}
|
|
3748
|
+
return message;
|
|
3749
|
+
},
|
|
3750
|
+
|
|
3751
|
+
fromJSON(object: any): MsgUpdateChainStatus {
|
|
3752
|
+
const message = { ...baseMsgUpdateChainStatus } as MsgUpdateChainStatus;
|
|
3753
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3754
|
+
message.creator = String(object.creator);
|
|
3755
|
+
} else {
|
|
3756
|
+
message.creator = "";
|
|
3757
|
+
}
|
|
3758
|
+
if (object.chainSymbol !== undefined && object.chainSymbol !== null) {
|
|
3759
|
+
message.chainSymbol = String(object.chainSymbol);
|
|
3760
|
+
} else {
|
|
3761
|
+
message.chainSymbol = "";
|
|
3762
|
+
}
|
|
3763
|
+
if (object.disabled !== undefined && object.disabled !== null) {
|
|
3764
|
+
message.disabled = Boolean(object.disabled);
|
|
3765
|
+
} else {
|
|
3766
|
+
message.disabled = false;
|
|
3767
|
+
}
|
|
3768
|
+
return message;
|
|
3769
|
+
},
|
|
3770
|
+
|
|
3771
|
+
toJSON(message: MsgUpdateChainStatus): unknown {
|
|
3772
|
+
const obj: any = {};
|
|
3773
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
3774
|
+
message.chainSymbol !== undefined &&
|
|
3775
|
+
(obj.chainSymbol = message.chainSymbol);
|
|
3776
|
+
message.disabled !== undefined && (obj.disabled = message.disabled);
|
|
3777
|
+
return obj;
|
|
3778
|
+
},
|
|
3779
|
+
|
|
3780
|
+
fromPartial(object: DeepPartial<MsgUpdateChainStatus>): MsgUpdateChainStatus {
|
|
3781
|
+
const message = { ...baseMsgUpdateChainStatus } as MsgUpdateChainStatus;
|
|
3782
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3783
|
+
message.creator = object.creator;
|
|
3784
|
+
} else {
|
|
3785
|
+
message.creator = "";
|
|
3786
|
+
}
|
|
3787
|
+
if (object.chainSymbol !== undefined && object.chainSymbol !== null) {
|
|
3788
|
+
message.chainSymbol = object.chainSymbol;
|
|
3789
|
+
} else {
|
|
3790
|
+
message.chainSymbol = "";
|
|
3791
|
+
}
|
|
3792
|
+
if (object.disabled !== undefined && object.disabled !== null) {
|
|
3793
|
+
message.disabled = object.disabled;
|
|
3794
|
+
} else {
|
|
3795
|
+
message.disabled = false;
|
|
3796
|
+
}
|
|
3797
|
+
return message;
|
|
3798
|
+
},
|
|
3799
|
+
};
|
|
3800
|
+
|
|
3801
|
+
const baseMsgUpdateChainStatusResponse: object = { code: "", msg: "" };
|
|
3802
|
+
|
|
3803
|
+
export const MsgUpdateChainStatusResponse = {
|
|
3804
|
+
encode(
|
|
3805
|
+
message: MsgUpdateChainStatusResponse,
|
|
3806
|
+
writer: Writer = Writer.create()
|
|
3807
|
+
): Writer {
|
|
3808
|
+
if (message.code !== "") {
|
|
3809
|
+
writer.uint32(10).string(message.code);
|
|
3810
|
+
}
|
|
3811
|
+
if (message.msg !== "") {
|
|
3812
|
+
writer.uint32(18).string(message.msg);
|
|
3813
|
+
}
|
|
3814
|
+
return writer;
|
|
3815
|
+
},
|
|
3816
|
+
|
|
3817
|
+
decode(
|
|
3818
|
+
input: Reader | Uint8Array,
|
|
3819
|
+
length?: number
|
|
3820
|
+
): MsgUpdateChainStatusResponse {
|
|
3821
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
3822
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3823
|
+
const message = {
|
|
3824
|
+
...baseMsgUpdateChainStatusResponse,
|
|
3825
|
+
} as MsgUpdateChainStatusResponse;
|
|
3826
|
+
while (reader.pos < end) {
|
|
3827
|
+
const tag = reader.uint32();
|
|
3828
|
+
switch (tag >>> 3) {
|
|
3829
|
+
case 1:
|
|
3830
|
+
message.code = reader.string();
|
|
3831
|
+
break;
|
|
3832
|
+
case 2:
|
|
3833
|
+
message.msg = reader.string();
|
|
3834
|
+
break;
|
|
3835
|
+
default:
|
|
3836
|
+
reader.skipType(tag & 7);
|
|
3837
|
+
break;
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
return message;
|
|
3841
|
+
},
|
|
3842
|
+
|
|
3843
|
+
fromJSON(object: any): MsgUpdateChainStatusResponse {
|
|
3844
|
+
const message = {
|
|
3845
|
+
...baseMsgUpdateChainStatusResponse,
|
|
3846
|
+
} as MsgUpdateChainStatusResponse;
|
|
3847
|
+
if (object.code !== undefined && object.code !== null) {
|
|
3848
|
+
message.code = String(object.code);
|
|
3849
|
+
} else {
|
|
3850
|
+
message.code = "";
|
|
3851
|
+
}
|
|
3852
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
3853
|
+
message.msg = String(object.msg);
|
|
3854
|
+
} else {
|
|
3855
|
+
message.msg = "";
|
|
3856
|
+
}
|
|
3857
|
+
return message;
|
|
3858
|
+
},
|
|
3859
|
+
|
|
3860
|
+
toJSON(message: MsgUpdateChainStatusResponse): unknown {
|
|
3861
|
+
const obj: any = {};
|
|
3862
|
+
message.code !== undefined && (obj.code = message.code);
|
|
3863
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
3864
|
+
return obj;
|
|
3865
|
+
},
|
|
3866
|
+
|
|
3867
|
+
fromPartial(
|
|
3868
|
+
object: DeepPartial<MsgUpdateChainStatusResponse>
|
|
3869
|
+
): MsgUpdateChainStatusResponse {
|
|
3870
|
+
const message = {
|
|
3871
|
+
...baseMsgUpdateChainStatusResponse,
|
|
3872
|
+
} as MsgUpdateChainStatusResponse;
|
|
3873
|
+
if (object.code !== undefined && object.code !== null) {
|
|
3874
|
+
message.code = object.code;
|
|
3875
|
+
} else {
|
|
3876
|
+
message.code = "";
|
|
3877
|
+
}
|
|
3878
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
3879
|
+
message.msg = object.msg;
|
|
3880
|
+
} else {
|
|
3881
|
+
message.msg = "";
|
|
3882
|
+
}
|
|
3883
|
+
return message;
|
|
3884
|
+
},
|
|
3885
|
+
};
|
|
3886
|
+
|
|
3887
|
+
const baseMsgAddToken: object = {
|
|
3888
|
+
creator: "",
|
|
3889
|
+
chainSymbol: "",
|
|
3890
|
+
tokenSymbol: "",
|
|
3891
|
+
};
|
|
3892
|
+
|
|
3893
|
+
export const MsgAddToken = {
|
|
3894
|
+
encode(message: MsgAddToken, writer: Writer = Writer.create()): Writer {
|
|
3895
|
+
if (message.creator !== "") {
|
|
3896
|
+
writer.uint32(10).string(message.creator);
|
|
3897
|
+
}
|
|
3898
|
+
if (message.chainSymbol !== "") {
|
|
3899
|
+
writer.uint32(18).string(message.chainSymbol);
|
|
3900
|
+
}
|
|
3901
|
+
if (message.tokenSymbol !== "") {
|
|
3902
|
+
writer.uint32(26).string(message.tokenSymbol);
|
|
3903
|
+
}
|
|
3904
|
+
return writer;
|
|
3905
|
+
},
|
|
3906
|
+
|
|
3907
|
+
decode(input: Reader | Uint8Array, length?: number): MsgAddToken {
|
|
3908
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
3909
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3910
|
+
const message = { ...baseMsgAddToken } as MsgAddToken;
|
|
3911
|
+
while (reader.pos < end) {
|
|
3912
|
+
const tag = reader.uint32();
|
|
3913
|
+
switch (tag >>> 3) {
|
|
3914
|
+
case 1:
|
|
3915
|
+
message.creator = reader.string();
|
|
3916
|
+
break;
|
|
3917
|
+
case 2:
|
|
3918
|
+
message.chainSymbol = reader.string();
|
|
3919
|
+
break;
|
|
3920
|
+
case 3:
|
|
3921
|
+
message.tokenSymbol = reader.string();
|
|
3922
|
+
break;
|
|
3923
|
+
default:
|
|
3924
|
+
reader.skipType(tag & 7);
|
|
3925
|
+
break;
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
return message;
|
|
3929
|
+
},
|
|
3930
|
+
|
|
3931
|
+
fromJSON(object: any): MsgAddToken {
|
|
3932
|
+
const message = { ...baseMsgAddToken } as MsgAddToken;
|
|
3933
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3934
|
+
message.creator = String(object.creator);
|
|
3935
|
+
} else {
|
|
3936
|
+
message.creator = "";
|
|
3937
|
+
}
|
|
3938
|
+
if (object.chainSymbol !== undefined && object.chainSymbol !== null) {
|
|
3939
|
+
message.chainSymbol = String(object.chainSymbol);
|
|
3940
|
+
} else {
|
|
3941
|
+
message.chainSymbol = "";
|
|
3942
|
+
}
|
|
3943
|
+
if (object.tokenSymbol !== undefined && object.tokenSymbol !== null) {
|
|
3944
|
+
message.tokenSymbol = String(object.tokenSymbol);
|
|
3945
|
+
} else {
|
|
3946
|
+
message.tokenSymbol = "";
|
|
3947
|
+
}
|
|
3948
|
+
return message;
|
|
3949
|
+
},
|
|
3950
|
+
|
|
3951
|
+
toJSON(message: MsgAddToken): unknown {
|
|
3952
|
+
const obj: any = {};
|
|
3953
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
3954
|
+
message.chainSymbol !== undefined &&
|
|
3955
|
+
(obj.chainSymbol = message.chainSymbol);
|
|
3956
|
+
message.tokenSymbol !== undefined &&
|
|
3957
|
+
(obj.tokenSymbol = message.tokenSymbol);
|
|
3958
|
+
return obj;
|
|
3959
|
+
},
|
|
3960
|
+
|
|
3961
|
+
fromPartial(object: DeepPartial<MsgAddToken>): MsgAddToken {
|
|
3962
|
+
const message = { ...baseMsgAddToken } as MsgAddToken;
|
|
3963
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3964
|
+
message.creator = object.creator;
|
|
3965
|
+
} else {
|
|
3966
|
+
message.creator = "";
|
|
3967
|
+
}
|
|
3968
|
+
if (object.chainSymbol !== undefined && object.chainSymbol !== null) {
|
|
3969
|
+
message.chainSymbol = object.chainSymbol;
|
|
3970
|
+
} else {
|
|
3971
|
+
message.chainSymbol = "";
|
|
3972
|
+
}
|
|
3973
|
+
if (object.tokenSymbol !== undefined && object.tokenSymbol !== null) {
|
|
3974
|
+
message.tokenSymbol = object.tokenSymbol;
|
|
3975
|
+
} else {
|
|
3976
|
+
message.tokenSymbol = "";
|
|
3977
|
+
}
|
|
3978
|
+
return message;
|
|
3979
|
+
},
|
|
3980
|
+
};
|
|
3981
|
+
|
|
3982
|
+
const baseMsgAddTokenResponse: object = { code: "", msg: "" };
|
|
3983
|
+
|
|
3984
|
+
export const MsgAddTokenResponse = {
|
|
3985
|
+
encode(
|
|
3986
|
+
message: MsgAddTokenResponse,
|
|
3987
|
+
writer: Writer = Writer.create()
|
|
3988
|
+
): Writer {
|
|
3989
|
+
if (message.code !== "") {
|
|
3990
|
+
writer.uint32(10).string(message.code);
|
|
3991
|
+
}
|
|
3992
|
+
if (message.msg !== "") {
|
|
3993
|
+
writer.uint32(18).string(message.msg);
|
|
3994
|
+
}
|
|
3995
|
+
return writer;
|
|
3996
|
+
},
|
|
3997
|
+
|
|
3998
|
+
decode(input: Reader | Uint8Array, length?: number): MsgAddTokenResponse {
|
|
3999
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
4000
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4001
|
+
const message = { ...baseMsgAddTokenResponse } as MsgAddTokenResponse;
|
|
4002
|
+
while (reader.pos < end) {
|
|
4003
|
+
const tag = reader.uint32();
|
|
4004
|
+
switch (tag >>> 3) {
|
|
4005
|
+
case 1:
|
|
4006
|
+
message.code = reader.string();
|
|
4007
|
+
break;
|
|
4008
|
+
case 2:
|
|
4009
|
+
message.msg = reader.string();
|
|
4010
|
+
break;
|
|
4011
|
+
default:
|
|
4012
|
+
reader.skipType(tag & 7);
|
|
4013
|
+
break;
|
|
4014
|
+
}
|
|
4015
|
+
}
|
|
4016
|
+
return message;
|
|
4017
|
+
},
|
|
4018
|
+
|
|
4019
|
+
fromJSON(object: any): MsgAddTokenResponse {
|
|
4020
|
+
const message = { ...baseMsgAddTokenResponse } as MsgAddTokenResponse;
|
|
4021
|
+
if (object.code !== undefined && object.code !== null) {
|
|
4022
|
+
message.code = String(object.code);
|
|
4023
|
+
} else {
|
|
4024
|
+
message.code = "";
|
|
4025
|
+
}
|
|
4026
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
4027
|
+
message.msg = String(object.msg);
|
|
4028
|
+
} else {
|
|
4029
|
+
message.msg = "";
|
|
4030
|
+
}
|
|
4031
|
+
return message;
|
|
4032
|
+
},
|
|
4033
|
+
|
|
4034
|
+
toJSON(message: MsgAddTokenResponse): unknown {
|
|
4035
|
+
const obj: any = {};
|
|
4036
|
+
message.code !== undefined && (obj.code = message.code);
|
|
4037
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
4038
|
+
return obj;
|
|
4039
|
+
},
|
|
4040
|
+
|
|
4041
|
+
fromPartial(object: DeepPartial<MsgAddTokenResponse>): MsgAddTokenResponse {
|
|
4042
|
+
const message = { ...baseMsgAddTokenResponse } as MsgAddTokenResponse;
|
|
4043
|
+
if (object.code !== undefined && object.code !== null) {
|
|
4044
|
+
message.code = object.code;
|
|
4045
|
+
} else {
|
|
4046
|
+
message.code = "";
|
|
4047
|
+
}
|
|
4048
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
4049
|
+
message.msg = object.msg;
|
|
4050
|
+
} else {
|
|
4051
|
+
message.msg = "";
|
|
4052
|
+
}
|
|
4053
|
+
return message;
|
|
4054
|
+
},
|
|
4055
|
+
};
|
|
4056
|
+
|
|
4057
|
+
const baseMsgUpdateTssStatus: object = { creator: "", status: "" };
|
|
4058
|
+
|
|
4059
|
+
export const MsgUpdateTssStatus = {
|
|
4060
|
+
encode(
|
|
4061
|
+
message: MsgUpdateTssStatus,
|
|
4062
|
+
writer: Writer = Writer.create()
|
|
4063
|
+
): Writer {
|
|
4064
|
+
if (message.creator !== "") {
|
|
4065
|
+
writer.uint32(10).string(message.creator);
|
|
4066
|
+
}
|
|
4067
|
+
if (message.status !== "") {
|
|
4068
|
+
writer.uint32(18).string(message.status);
|
|
4069
|
+
}
|
|
4070
|
+
return writer;
|
|
4071
|
+
},
|
|
4072
|
+
|
|
4073
|
+
decode(input: Reader | Uint8Array, length?: number): MsgUpdateTssStatus {
|
|
4074
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
4075
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4076
|
+
const message = { ...baseMsgUpdateTssStatus } as MsgUpdateTssStatus;
|
|
4077
|
+
while (reader.pos < end) {
|
|
4078
|
+
const tag = reader.uint32();
|
|
4079
|
+
switch (tag >>> 3) {
|
|
4080
|
+
case 1:
|
|
4081
|
+
message.creator = reader.string();
|
|
4082
|
+
break;
|
|
4083
|
+
case 2:
|
|
4084
|
+
message.status = reader.string();
|
|
4085
|
+
break;
|
|
4086
|
+
default:
|
|
4087
|
+
reader.skipType(tag & 7);
|
|
4088
|
+
break;
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4091
|
+
return message;
|
|
4092
|
+
},
|
|
4093
|
+
|
|
4094
|
+
fromJSON(object: any): MsgUpdateTssStatus {
|
|
4095
|
+
const message = { ...baseMsgUpdateTssStatus } as MsgUpdateTssStatus;
|
|
4096
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
4097
|
+
message.creator = String(object.creator);
|
|
4098
|
+
} else {
|
|
4099
|
+
message.creator = "";
|
|
4100
|
+
}
|
|
4101
|
+
if (object.status !== undefined && object.status !== null) {
|
|
4102
|
+
message.status = String(object.status);
|
|
4103
|
+
} else {
|
|
4104
|
+
message.status = "";
|
|
4105
|
+
}
|
|
4106
|
+
return message;
|
|
4107
|
+
},
|
|
4108
|
+
|
|
4109
|
+
toJSON(message: MsgUpdateTssStatus): unknown {
|
|
4110
|
+
const obj: any = {};
|
|
4111
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
4112
|
+
message.status !== undefined && (obj.status = message.status);
|
|
4113
|
+
return obj;
|
|
4114
|
+
},
|
|
4115
|
+
|
|
4116
|
+
fromPartial(object: DeepPartial<MsgUpdateTssStatus>): MsgUpdateTssStatus {
|
|
4117
|
+
const message = { ...baseMsgUpdateTssStatus } as MsgUpdateTssStatus;
|
|
4118
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
4119
|
+
message.creator = object.creator;
|
|
4120
|
+
} else {
|
|
4121
|
+
message.creator = "";
|
|
4122
|
+
}
|
|
4123
|
+
if (object.status !== undefined && object.status !== null) {
|
|
4124
|
+
message.status = object.status;
|
|
4125
|
+
} else {
|
|
4126
|
+
message.status = "";
|
|
4127
|
+
}
|
|
4128
|
+
return message;
|
|
4129
|
+
},
|
|
4130
|
+
};
|
|
4131
|
+
|
|
4132
|
+
const baseMsgUpdateTssStatusResponse: object = {};
|
|
4133
|
+
|
|
4134
|
+
export const MsgUpdateTssStatusResponse = {
|
|
4135
|
+
encode(
|
|
4136
|
+
_: MsgUpdateTssStatusResponse,
|
|
4137
|
+
writer: Writer = Writer.create()
|
|
4138
|
+
): Writer {
|
|
4139
|
+
return writer;
|
|
4140
|
+
},
|
|
4141
|
+
|
|
4142
|
+
decode(
|
|
4143
|
+
input: Reader | Uint8Array,
|
|
4144
|
+
length?: number
|
|
4145
|
+
): MsgUpdateTssStatusResponse {
|
|
4146
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
4147
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4148
|
+
const message = {
|
|
4149
|
+
...baseMsgUpdateTssStatusResponse,
|
|
4150
|
+
} as MsgUpdateTssStatusResponse;
|
|
4151
|
+
while (reader.pos < end) {
|
|
4152
|
+
const tag = reader.uint32();
|
|
4153
|
+
switch (tag >>> 3) {
|
|
4154
|
+
default:
|
|
4155
|
+
reader.skipType(tag & 7);
|
|
4156
|
+
break;
|
|
4157
|
+
}
|
|
4158
|
+
}
|
|
4159
|
+
return message;
|
|
4160
|
+
},
|
|
4161
|
+
|
|
4162
|
+
fromJSON(_: any): MsgUpdateTssStatusResponse {
|
|
4163
|
+
const message = {
|
|
4164
|
+
...baseMsgUpdateTssStatusResponse,
|
|
4165
|
+
} as MsgUpdateTssStatusResponse;
|
|
4166
|
+
return message;
|
|
4167
|
+
},
|
|
4168
|
+
|
|
4169
|
+
toJSON(_: MsgUpdateTssStatusResponse): unknown {
|
|
4170
|
+
const obj: any = {};
|
|
4171
|
+
return obj;
|
|
4172
|
+
},
|
|
4173
|
+
|
|
4174
|
+
fromPartial(
|
|
4175
|
+
_: DeepPartial<MsgUpdateTssStatusResponse>
|
|
4176
|
+
): MsgUpdateTssStatusResponse {
|
|
4177
|
+
const message = {
|
|
4178
|
+
...baseMsgUpdateTssStatusResponse,
|
|
4179
|
+
} as MsgUpdateTssStatusResponse;
|
|
4180
|
+
return message;
|
|
4181
|
+
},
|
|
4182
|
+
};
|
|
4183
|
+
|
|
4184
|
+
const baseMsgSetTxHash: object = { creator: "", txId: "", txHash: "" };
|
|
4185
|
+
|
|
4186
|
+
export const MsgSetTxHash = {
|
|
4187
|
+
encode(message: MsgSetTxHash, writer: Writer = Writer.create()): Writer {
|
|
4188
|
+
if (message.creator !== "") {
|
|
4189
|
+
writer.uint32(10).string(message.creator);
|
|
4190
|
+
}
|
|
4191
|
+
if (message.txId !== "") {
|
|
4192
|
+
writer.uint32(18).string(message.txId);
|
|
4193
|
+
}
|
|
4194
|
+
if (message.txHash !== "") {
|
|
4195
|
+
writer.uint32(26).string(message.txHash);
|
|
4196
|
+
}
|
|
4197
|
+
return writer;
|
|
4198
|
+
},
|
|
4199
|
+
|
|
4200
|
+
decode(input: Reader | Uint8Array, length?: number): MsgSetTxHash {
|
|
4201
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
4202
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4203
|
+
const message = { ...baseMsgSetTxHash } as MsgSetTxHash;
|
|
4204
|
+
while (reader.pos < end) {
|
|
4205
|
+
const tag = reader.uint32();
|
|
4206
|
+
switch (tag >>> 3) {
|
|
4207
|
+
case 1:
|
|
4208
|
+
message.creator = reader.string();
|
|
4209
|
+
break;
|
|
4210
|
+
case 2:
|
|
4211
|
+
message.txId = reader.string();
|
|
4212
|
+
break;
|
|
4213
|
+
case 3:
|
|
4214
|
+
message.txHash = reader.string();
|
|
4215
|
+
break;
|
|
4216
|
+
default:
|
|
4217
|
+
reader.skipType(tag & 7);
|
|
4218
|
+
break;
|
|
4219
|
+
}
|
|
4220
|
+
}
|
|
4221
|
+
return message;
|
|
4222
|
+
},
|
|
4223
|
+
|
|
4224
|
+
fromJSON(object: any): MsgSetTxHash {
|
|
4225
|
+
const message = { ...baseMsgSetTxHash } as MsgSetTxHash;
|
|
4226
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
4227
|
+
message.creator = String(object.creator);
|
|
4228
|
+
} else {
|
|
4229
|
+
message.creator = "";
|
|
4230
|
+
}
|
|
4231
|
+
if (object.txId !== undefined && object.txId !== null) {
|
|
4232
|
+
message.txId = String(object.txId);
|
|
4233
|
+
} else {
|
|
4234
|
+
message.txId = "";
|
|
4235
|
+
}
|
|
4236
|
+
if (object.txHash !== undefined && object.txHash !== null) {
|
|
4237
|
+
message.txHash = String(object.txHash);
|
|
4238
|
+
} else {
|
|
4239
|
+
message.txHash = "";
|
|
4240
|
+
}
|
|
4241
|
+
return message;
|
|
4242
|
+
},
|
|
4243
|
+
|
|
4244
|
+
toJSON(message: MsgSetTxHash): unknown {
|
|
4245
|
+
const obj: any = {};
|
|
4246
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
4247
|
+
message.txId !== undefined && (obj.txId = message.txId);
|
|
4248
|
+
message.txHash !== undefined && (obj.txHash = message.txHash);
|
|
4249
|
+
return obj;
|
|
4250
|
+
},
|
|
4251
|
+
|
|
4252
|
+
fromPartial(object: DeepPartial<MsgSetTxHash>): MsgSetTxHash {
|
|
4253
|
+
const message = { ...baseMsgSetTxHash } as MsgSetTxHash;
|
|
4254
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
4255
|
+
message.creator = object.creator;
|
|
4256
|
+
} else {
|
|
4257
|
+
message.creator = "";
|
|
4258
|
+
}
|
|
4259
|
+
if (object.txId !== undefined && object.txId !== null) {
|
|
4260
|
+
message.txId = object.txId;
|
|
4261
|
+
} else {
|
|
4262
|
+
message.txId = "";
|
|
4263
|
+
}
|
|
4264
|
+
if (object.txHash !== undefined && object.txHash !== null) {
|
|
4265
|
+
message.txHash = object.txHash;
|
|
4266
|
+
} else {
|
|
4267
|
+
message.txHash = "";
|
|
4268
|
+
}
|
|
4269
|
+
return message;
|
|
4270
|
+
},
|
|
4271
|
+
};
|
|
4272
|
+
|
|
4273
|
+
const baseMsgSetTxHashResponse: object = { code: "", msg: "" };
|
|
4274
|
+
|
|
4275
|
+
export const MsgSetTxHashResponse = {
|
|
4276
|
+
encode(
|
|
4277
|
+
message: MsgSetTxHashResponse,
|
|
4278
|
+
writer: Writer = Writer.create()
|
|
4279
|
+
): Writer {
|
|
4280
|
+
if (message.code !== "") {
|
|
4281
|
+
writer.uint32(10).string(message.code);
|
|
4282
|
+
}
|
|
4283
|
+
if (message.msg !== "") {
|
|
4284
|
+
writer.uint32(18).string(message.msg);
|
|
4285
|
+
}
|
|
4286
|
+
return writer;
|
|
4287
|
+
},
|
|
4288
|
+
|
|
4289
|
+
decode(input: Reader | Uint8Array, length?: number): MsgSetTxHashResponse {
|
|
4290
|
+
const reader = input instanceof Uint8Array ? new Reader(input) : input;
|
|
4291
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4292
|
+
const message = { ...baseMsgSetTxHashResponse } as MsgSetTxHashResponse;
|
|
4293
|
+
while (reader.pos < end) {
|
|
4294
|
+
const tag = reader.uint32();
|
|
4295
|
+
switch (tag >>> 3) {
|
|
4296
|
+
case 1:
|
|
4297
|
+
message.code = reader.string();
|
|
4298
|
+
break;
|
|
4299
|
+
case 2:
|
|
4300
|
+
message.msg = reader.string();
|
|
4301
|
+
break;
|
|
4302
|
+
default:
|
|
4303
|
+
reader.skipType(tag & 7);
|
|
4304
|
+
break;
|
|
4305
|
+
}
|
|
4306
|
+
}
|
|
4307
|
+
return message;
|
|
4308
|
+
},
|
|
4309
|
+
|
|
4310
|
+
fromJSON(object: any): MsgSetTxHashResponse {
|
|
4311
|
+
const message = { ...baseMsgSetTxHashResponse } as MsgSetTxHashResponse;
|
|
4312
|
+
if (object.code !== undefined && object.code !== null) {
|
|
4313
|
+
message.code = String(object.code);
|
|
4314
|
+
} else {
|
|
4315
|
+
message.code = "";
|
|
4316
|
+
}
|
|
4317
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
4318
|
+
message.msg = String(object.msg);
|
|
4319
|
+
} else {
|
|
4320
|
+
message.msg = "";
|
|
4321
|
+
}
|
|
4322
|
+
return message;
|
|
4323
|
+
},
|
|
4324
|
+
|
|
4325
|
+
toJSON(message: MsgSetTxHashResponse): unknown {
|
|
4326
|
+
const obj: any = {};
|
|
4327
|
+
message.code !== undefined && (obj.code = message.code);
|
|
4328
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
4329
|
+
return obj;
|
|
4330
|
+
},
|
|
4331
|
+
|
|
4332
|
+
fromPartial(object: DeepPartial<MsgSetTxHashResponse>): MsgSetTxHashResponse {
|
|
4333
|
+
const message = { ...baseMsgSetTxHashResponse } as MsgSetTxHashResponse;
|
|
4334
|
+
if (object.code !== undefined && object.code !== null) {
|
|
4335
|
+
message.code = object.code;
|
|
4336
|
+
} else {
|
|
4337
|
+
message.code = "";
|
|
4338
|
+
}
|
|
4339
|
+
if (object.msg !== undefined && object.msg !== null) {
|
|
4340
|
+
message.msg = object.msg;
|
|
4341
|
+
} else {
|
|
4342
|
+
message.msg = "";
|
|
4343
|
+
}
|
|
4344
|
+
return message;
|
|
4345
|
+
},
|
|
4346
|
+
};
|
|
4347
|
+
|
|
4348
|
+
/** Msg defines the Msg service. */
|
|
4349
|
+
export interface Msg {
|
|
4350
|
+
RequestTransaction(
|
|
4351
|
+
request: MsgRequestTransaction
|
|
4352
|
+
): Promise<MsgRequestTransactionResponse>;
|
|
4353
|
+
ApproveTransaction(
|
|
4354
|
+
request: MsgApproveTransaction
|
|
4355
|
+
): Promise<MsgApproveTransactionResponse>;
|
|
4356
|
+
FetchBalance(request: MsgFetchBalance): Promise<MsgFetchBalanceResponse>;
|
|
4357
|
+
ObservationVote(
|
|
4358
|
+
request: MsgObservationVote
|
|
4359
|
+
): Promise<MsgObservationVoteResponse>;
|
|
4360
|
+
UpdateBalance(request: MsgUpdateBalance): Promise<MsgUpdateBalanceResponse>;
|
|
4361
|
+
KeysignVote(request: MsgKeysignVote): Promise<MsgKeysignVoteResponse>;
|
|
4362
|
+
UpdateGasFee(request: MsgUpdateGasFee): Promise<MsgUpdateGasFeeResponse>;
|
|
4363
|
+
ProvisionTransaction(
|
|
4364
|
+
request: MsgProvisionTransaction
|
|
4365
|
+
): Promise<MsgProvisionTransactionResponse>;
|
|
4366
|
+
DrainTransaction(
|
|
4367
|
+
request: MsgDrainTransaction
|
|
4368
|
+
): Promise<MsgDrainTransactionResponse>;
|
|
4369
|
+
CancelTransaction(
|
|
4370
|
+
request: MsgCancelTransaction
|
|
4371
|
+
): Promise<MsgCancelTransactionResponse>;
|
|
4372
|
+
AddWhitelisted(
|
|
4373
|
+
request: MsgAddWhitelisted
|
|
4374
|
+
): Promise<MsgAddWhitelistedResponse>;
|
|
4375
|
+
SetAdmin(request: MsgSetAdmin): Promise<MsgSetAdminResponse>;
|
|
4376
|
+
AddPubkey(request: MsgAddPubkey): Promise<MsgAddPubkeyResponse>;
|
|
4377
|
+
UpdateTssPubkey(
|
|
4378
|
+
request: MsgUpdateTssPubkey
|
|
4379
|
+
): Promise<MsgUpdateTssPubkeyResponse>;
|
|
4380
|
+
RemoveWhitelisted(
|
|
4381
|
+
request: MsgRemoveWhitelisted
|
|
4382
|
+
): Promise<MsgRemoveWhitelistedResponse>;
|
|
4383
|
+
ClearTssInfo(request: MsgClearTssInfo): Promise<MsgClearTssInfoResponse>;
|
|
4384
|
+
AddChain(request: MsgAddChain): Promise<MsgAddChainResponse>;
|
|
4385
|
+
UpdateTssHash(request: MsgUpdateTssHash): Promise<MsgUpdateTssHashResponse>;
|
|
4386
|
+
UpdateChainStatus(
|
|
4387
|
+
request: MsgUpdateChainStatus
|
|
4388
|
+
): Promise<MsgUpdateChainStatusResponse>;
|
|
4389
|
+
AddToken(request: MsgAddToken): Promise<MsgAddTokenResponse>;
|
|
4390
|
+
UpdateTssStatus(
|
|
4391
|
+
request: MsgUpdateTssStatus
|
|
4392
|
+
): Promise<MsgUpdateTssStatusResponse>;
|
|
4393
|
+
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
4394
|
+
SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse>;
|
|
4395
|
+
}
|
|
4396
|
+
|
|
4397
|
+
export class MsgClientImpl implements Msg {
|
|
4398
|
+
private readonly rpc: Rpc;
|
|
4399
|
+
constructor(rpc: Rpc) {
|
|
4400
|
+
this.rpc = rpc;
|
|
4401
|
+
}
|
|
4402
|
+
RequestTransaction(
|
|
4403
|
+
request: MsgRequestTransaction
|
|
4404
|
+
): Promise<MsgRequestTransactionResponse> {
|
|
4405
|
+
const data = MsgRequestTransaction.encode(request).finish();
|
|
4406
|
+
const promise = this.rpc.request(
|
|
4407
|
+
"KimaFinance.kima.kima.Msg",
|
|
4408
|
+
"RequestTransaction",
|
|
4409
|
+
data
|
|
4410
|
+
);
|
|
4411
|
+
return promise.then((data) =>
|
|
4412
|
+
MsgRequestTransactionResponse.decode(new Reader(data))
|
|
4413
|
+
);
|
|
4414
|
+
}
|
|
4415
|
+
|
|
4416
|
+
ApproveTransaction(
|
|
4417
|
+
request: MsgApproveTransaction
|
|
4418
|
+
): Promise<MsgApproveTransactionResponse> {
|
|
4419
|
+
const data = MsgApproveTransaction.encode(request).finish();
|
|
4420
|
+
const promise = this.rpc.request(
|
|
4421
|
+
"KimaFinance.kima.kima.Msg",
|
|
4422
|
+
"ApproveTransaction",
|
|
4423
|
+
data
|
|
4424
|
+
);
|
|
4425
|
+
return promise.then((data) =>
|
|
4426
|
+
MsgApproveTransactionResponse.decode(new Reader(data))
|
|
4427
|
+
);
|
|
4428
|
+
}
|
|
4429
|
+
|
|
4430
|
+
FetchBalance(request: MsgFetchBalance): Promise<MsgFetchBalanceResponse> {
|
|
4431
|
+
const data = MsgFetchBalance.encode(request).finish();
|
|
4432
|
+
const promise = this.rpc.request(
|
|
4433
|
+
"KimaFinance.kima.kima.Msg",
|
|
4434
|
+
"FetchBalance",
|
|
4435
|
+
data
|
|
4436
|
+
);
|
|
4437
|
+
return promise.then((data) =>
|
|
4438
|
+
MsgFetchBalanceResponse.decode(new Reader(data))
|
|
4439
|
+
);
|
|
4440
|
+
}
|
|
4441
|
+
|
|
4442
|
+
ObservationVote(
|
|
4443
|
+
request: MsgObservationVote
|
|
4444
|
+
): Promise<MsgObservationVoteResponse> {
|
|
4445
|
+
const data = MsgObservationVote.encode(request).finish();
|
|
4446
|
+
const promise = this.rpc.request(
|
|
4447
|
+
"KimaFinance.kima.kima.Msg",
|
|
4448
|
+
"ObservationVote",
|
|
4449
|
+
data
|
|
4450
|
+
);
|
|
4451
|
+
return promise.then((data) =>
|
|
4452
|
+
MsgObservationVoteResponse.decode(new Reader(data))
|
|
4453
|
+
);
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4456
|
+
UpdateBalance(request: MsgUpdateBalance): Promise<MsgUpdateBalanceResponse> {
|
|
4457
|
+
const data = MsgUpdateBalance.encode(request).finish();
|
|
4458
|
+
const promise = this.rpc.request(
|
|
4459
|
+
"KimaFinance.kima.kima.Msg",
|
|
4460
|
+
"UpdateBalance",
|
|
4461
|
+
data
|
|
4462
|
+
);
|
|
4463
|
+
return promise.then((data) =>
|
|
4464
|
+
MsgUpdateBalanceResponse.decode(new Reader(data))
|
|
4465
|
+
);
|
|
4466
|
+
}
|
|
4467
|
+
|
|
4468
|
+
KeysignVote(request: MsgKeysignVote): Promise<MsgKeysignVoteResponse> {
|
|
4469
|
+
const data = MsgKeysignVote.encode(request).finish();
|
|
4470
|
+
const promise = this.rpc.request(
|
|
4471
|
+
"KimaFinance.kima.kima.Msg",
|
|
4472
|
+
"KeysignVote",
|
|
4473
|
+
data
|
|
4474
|
+
);
|
|
3351
4475
|
return promise.then((data) =>
|
|
3352
4476
|
MsgKeysignVoteResponse.decode(new Reader(data))
|
|
3353
4477
|
);
|
|
@@ -3482,6 +4606,78 @@ export class MsgClientImpl implements Msg {
|
|
|
3482
4606
|
MsgClearTssInfoResponse.decode(new Reader(data))
|
|
3483
4607
|
);
|
|
3484
4608
|
}
|
|
4609
|
+
|
|
4610
|
+
AddChain(request: MsgAddChain): Promise<MsgAddChainResponse> {
|
|
4611
|
+
const data = MsgAddChain.encode(request).finish();
|
|
4612
|
+
const promise = this.rpc.request(
|
|
4613
|
+
"KimaFinance.kima.kima.Msg",
|
|
4614
|
+
"AddChain",
|
|
4615
|
+
data
|
|
4616
|
+
);
|
|
4617
|
+
return promise.then((data) => MsgAddChainResponse.decode(new Reader(data)));
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
UpdateTssHash(request: MsgUpdateTssHash): Promise<MsgUpdateTssHashResponse> {
|
|
4621
|
+
const data = MsgUpdateTssHash.encode(request).finish();
|
|
4622
|
+
const promise = this.rpc.request(
|
|
4623
|
+
"KimaFinance.kima.kima.Msg",
|
|
4624
|
+
"UpdateTssHash",
|
|
4625
|
+
data
|
|
4626
|
+
);
|
|
4627
|
+
return promise.then((data) =>
|
|
4628
|
+
MsgUpdateTssHashResponse.decode(new Reader(data))
|
|
4629
|
+
);
|
|
4630
|
+
}
|
|
4631
|
+
|
|
4632
|
+
UpdateChainStatus(
|
|
4633
|
+
request: MsgUpdateChainStatus
|
|
4634
|
+
): Promise<MsgUpdateChainStatusResponse> {
|
|
4635
|
+
const data = MsgUpdateChainStatus.encode(request).finish();
|
|
4636
|
+
const promise = this.rpc.request(
|
|
4637
|
+
"KimaFinance.kima.kima.Msg",
|
|
4638
|
+
"UpdateChainStatus",
|
|
4639
|
+
data
|
|
4640
|
+
);
|
|
4641
|
+
return promise.then((data) =>
|
|
4642
|
+
MsgUpdateChainStatusResponse.decode(new Reader(data))
|
|
4643
|
+
);
|
|
4644
|
+
}
|
|
4645
|
+
|
|
4646
|
+
AddToken(request: MsgAddToken): Promise<MsgAddTokenResponse> {
|
|
4647
|
+
const data = MsgAddToken.encode(request).finish();
|
|
4648
|
+
const promise = this.rpc.request(
|
|
4649
|
+
"KimaFinance.kima.kima.Msg",
|
|
4650
|
+
"AddToken",
|
|
4651
|
+
data
|
|
4652
|
+
);
|
|
4653
|
+
return promise.then((data) => MsgAddTokenResponse.decode(new Reader(data)));
|
|
4654
|
+
}
|
|
4655
|
+
|
|
4656
|
+
UpdateTssStatus(
|
|
4657
|
+
request: MsgUpdateTssStatus
|
|
4658
|
+
): Promise<MsgUpdateTssStatusResponse> {
|
|
4659
|
+
const data = MsgUpdateTssStatus.encode(request).finish();
|
|
4660
|
+
const promise = this.rpc.request(
|
|
4661
|
+
"KimaFinance.kima.kima.Msg",
|
|
4662
|
+
"UpdateTssStatus",
|
|
4663
|
+
data
|
|
4664
|
+
);
|
|
4665
|
+
return promise.then((data) =>
|
|
4666
|
+
MsgUpdateTssStatusResponse.decode(new Reader(data))
|
|
4667
|
+
);
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4670
|
+
SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse> {
|
|
4671
|
+
const data = MsgSetTxHash.encode(request).finish();
|
|
4672
|
+
const promise = this.rpc.request(
|
|
4673
|
+
"KimaFinance.kima.kima.Msg",
|
|
4674
|
+
"SetTxHash",
|
|
4675
|
+
data
|
|
4676
|
+
);
|
|
4677
|
+
return promise.then((data) =>
|
|
4678
|
+
MsgSetTxHashResponse.decode(new Reader(data))
|
|
4679
|
+
);
|
|
4680
|
+
}
|
|
3485
4681
|
}
|
|
3486
4682
|
|
|
3487
4683
|
interface Rpc {
|