@kimafinance/kima-transaction-api 1.5.7 → 1.5.9
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/build/index.d.ts +2 -1
- package/build/index.js +22 -1
- package/build/kima/common.d.ts +2 -1
- package/build/kima/common.js +5 -0
- package/build/kima/transfer_tx.d.ts +263 -0
- package/build/kima/transfer_tx.js +940 -265
- package/build/types.d.ts +11 -0
- package/package.json +1 -1
- package/src/index.ts +38 -0
- package/src/kima/common.ts +6 -0
- package/src/kima/transfer_tx.ts +1197 -673
- package/src/types.ts +12 -0
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MsgClientImpl = exports.MsgFinalizeWithdrawTransactionResponse = exports.MsgFinalizeWithdrawTransaction = exports.MsgUpdateTransferLimitParamsResponse = exports.MsgUpdateTransferLimitParams = exports.MsgUpdateLiquidityProvisionParamsResponse = exports.MsgUpdateLiquidityProvisionParams = exports.MsgHtlcReclaimResponse = exports.MsgHtlcReclaim = exports.MsgRequestHtlcLockResponse = exports.MsgRequestHtlcLock = exports.MsgFinalizeDrainTransactionResponse = exports.MsgFinalizeDrainTransaction = exports.MsgRequestDrainTransactionResponse = exports.MsgRequestDrainTransaction = exports.MsgSetTxProcessResponse = exports.MsgSetTxProcess = exports.MsgSetTxHashResponse = exports.MsgSetTxHash = exports.MsgCancelTransactionResponse = exports.MsgCancelTransaction = exports.MsgRequestProvisionTransactionResponse = exports.MsgRequestProvisionTransaction = exports.MsgFinalizeProvisionTransactionResponse = exports.MsgFinalizeProvisionTransaction = exports.MsgFinalizeTransactionResponse = exports.MsgFinalizeTransaction = exports.MsgRequestTransactionResponse = exports.MsgRequestTransaction = exports.protobufPackage = void 0;
|
|
6
|
+
exports.MsgClientImpl = exports.MsgRequestExternalTransactionResponse = exports.MsgRequestExternalTransaction = exports.MsgUpdateMaxConcurrentLimitResponse = exports.MsgUpdateMaxConcurrentLimit = exports.MsgUpdateTransactionStatusResponse = exports.MsgUpdateTransactionStatus = exports.MsgConfirmTransactionResponse = exports.MsgConfirmTransaction = exports.MsgFinalizeWithdrawTransactionResponse = exports.MsgFinalizeWithdrawTransaction = exports.MsgSetFiatTransactionParamsResponse = exports.MsgSetFiatTransactionParams = exports.MsgUpdateTransferLimitParamsResponse = exports.MsgUpdateTransferLimitParams = exports.MsgUpdateLiquidityProvisionParamsResponse = exports.MsgUpdateLiquidityProvisionParams = exports.MsgHtlcReclaimResponse = exports.MsgHtlcReclaim = exports.MsgRequestHtlcLockResponse = exports.MsgRequestHtlcLock = exports.MsgFinalizeDrainTransactionResponse = exports.MsgFinalizeDrainTransaction = exports.MsgRequestDrainTransactionResponse = exports.MsgRequestDrainTransaction = exports.MsgSetTxProcessResponse = exports.MsgSetTxProcess = exports.MsgSetTxHashResponse = exports.MsgSetTxHash = exports.MsgCancelTransactionResponse = exports.MsgCancelTransaction = exports.MsgRequestProvisionTransactionResponse = exports.MsgRequestProvisionTransaction = exports.MsgFinalizeProvisionTransactionResponse = exports.MsgFinalizeProvisionTransaction = exports.MsgFinalizeTransactionResponse = exports.MsgFinalizeTransaction = exports.MsgRequestTransactionResponse = exports.MsgRequestTransaction = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -139,66 +139,38 @@ exports.MsgRequestTransaction = {
|
|
|
139
139
|
return {
|
|
140
140
|
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
141
141
|
originChain: isSet(object.originChain) ? String(object.originChain) : "",
|
|
142
|
-
originAddress: isSet(object.originAddress)
|
|
143
|
-
? String(object.originAddress)
|
|
144
|
-
: "",
|
|
142
|
+
originAddress: isSet(object.originAddress) ? String(object.originAddress) : "",
|
|
145
143
|
targetChain: isSet(object.targetChain) ? String(object.targetChain) : "",
|
|
146
|
-
targetAddress: isSet(object.targetAddress)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
originSymbol: isSet(object.originSymbol)
|
|
150
|
-
? String(object.originSymbol)
|
|
151
|
-
: "",
|
|
152
|
-
targetSymbol: isSet(object.targetSymbol)
|
|
153
|
-
? String(object.targetSymbol)
|
|
154
|
-
: "",
|
|
144
|
+
targetAddress: isSet(object.targetAddress) ? String(object.targetAddress) : "",
|
|
145
|
+
originSymbol: isSet(object.originSymbol) ? String(object.originSymbol) : "",
|
|
146
|
+
targetSymbol: isSet(object.targetSymbol) ? String(object.targetSymbol) : "",
|
|
155
147
|
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
156
148
|
fee: isSet(object.fee) ? String(object.fee) : "",
|
|
157
|
-
htlcExpirationTimestamp: isSet(object.htlcExpirationTimestamp)
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
htlcCreationHash: isSet(object.htlcCreationHash)
|
|
161
|
-
? String(object.htlcCreationHash)
|
|
162
|
-
: "",
|
|
163
|
-
htlcCreationVout: isSet(object.htlcCreationVout)
|
|
164
|
-
? Number(object.htlcCreationVout)
|
|
165
|
-
: 0,
|
|
149
|
+
htlcExpirationTimestamp: isSet(object.htlcExpirationTimestamp) ? String(object.htlcExpirationTimestamp) : "",
|
|
150
|
+
htlcCreationHash: isSet(object.htlcCreationHash) ? String(object.htlcCreationHash) : "",
|
|
151
|
+
htlcCreationVout: isSet(object.htlcCreationVout) ? Number(object.htlcCreationVout) : 0,
|
|
166
152
|
htlcVersion: isSet(object.htlcVersion) ? String(object.htlcVersion) : "",
|
|
167
|
-
senderPubKey: isSet(object.senderPubKey)
|
|
168
|
-
? bytesFromBase64(object.senderPubKey)
|
|
169
|
-
: new Uint8Array(),
|
|
153
|
+
senderPubKey: isSet(object.senderPubKey) ? bytesFromBase64(object.senderPubKey) : new Uint8Array(),
|
|
170
154
|
options: isSet(object.options) ? String(object.options) : "",
|
|
171
155
|
};
|
|
172
156
|
},
|
|
173
157
|
toJSON(message) {
|
|
174
158
|
const obj = {};
|
|
175
159
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
176
|
-
message.originChain !== undefined &&
|
|
177
|
-
|
|
178
|
-
message.
|
|
179
|
-
|
|
180
|
-
message.
|
|
181
|
-
|
|
182
|
-
message.targetAddress !== undefined &&
|
|
183
|
-
(obj.targetAddress = message.targetAddress);
|
|
184
|
-
message.originSymbol !== undefined &&
|
|
185
|
-
(obj.originSymbol = message.originSymbol);
|
|
186
|
-
message.targetSymbol !== undefined &&
|
|
187
|
-
(obj.targetSymbol = message.targetSymbol);
|
|
160
|
+
message.originChain !== undefined && (obj.originChain = message.originChain);
|
|
161
|
+
message.originAddress !== undefined && (obj.originAddress = message.originAddress);
|
|
162
|
+
message.targetChain !== undefined && (obj.targetChain = message.targetChain);
|
|
163
|
+
message.targetAddress !== undefined && (obj.targetAddress = message.targetAddress);
|
|
164
|
+
message.originSymbol !== undefined && (obj.originSymbol = message.originSymbol);
|
|
165
|
+
message.targetSymbol !== undefined && (obj.targetSymbol = message.targetSymbol);
|
|
188
166
|
message.amount !== undefined && (obj.amount = message.amount);
|
|
189
167
|
message.fee !== undefined && (obj.fee = message.fee);
|
|
190
|
-
message.htlcExpirationTimestamp !== undefined &&
|
|
191
|
-
|
|
192
|
-
message.
|
|
193
|
-
|
|
194
|
-
message.
|
|
195
|
-
(obj.
|
|
196
|
-
message.htlcVersion !== undefined &&
|
|
197
|
-
(obj.htlcVersion = message.htlcVersion);
|
|
198
|
-
message.senderPubKey !== undefined &&
|
|
199
|
-
(obj.senderPubKey = base64FromBytes(message.senderPubKey !== undefined
|
|
200
|
-
? message.senderPubKey
|
|
201
|
-
: new Uint8Array()));
|
|
168
|
+
message.htlcExpirationTimestamp !== undefined && (obj.htlcExpirationTimestamp = message.htlcExpirationTimestamp);
|
|
169
|
+
message.htlcCreationHash !== undefined && (obj.htlcCreationHash = message.htlcCreationHash);
|
|
170
|
+
message.htlcCreationVout !== undefined && (obj.htlcCreationVout = Math.round(message.htlcCreationVout));
|
|
171
|
+
message.htlcVersion !== undefined && (obj.htlcVersion = message.htlcVersion);
|
|
172
|
+
message.senderPubKey !== undefined
|
|
173
|
+
&& (obj.senderPubKey = base64FromBytes(message.senderPubKey !== undefined ? message.senderPubKey : new Uint8Array()));
|
|
202
174
|
message.options !== undefined && (obj.options = message.options);
|
|
203
175
|
return obj;
|
|
204
176
|
},
|
|
@@ -284,14 +256,7 @@ exports.MsgRequestTransactionResponse = {
|
|
|
284
256
|
},
|
|
285
257
|
};
|
|
286
258
|
function createBaseMsgFinalizeTransaction() {
|
|
287
|
-
return {
|
|
288
|
-
creator: "",
|
|
289
|
-
txId: 0,
|
|
290
|
-
txHash: "",
|
|
291
|
-
success: false,
|
|
292
|
-
signedKey: "",
|
|
293
|
-
errReason: "",
|
|
294
|
-
};
|
|
259
|
+
return { creator: "", txId: 0, txHash: "", success: false, signedKey: "", errReason: "", tssMsgId: "", txType: "" };
|
|
295
260
|
}
|
|
296
261
|
exports.MsgFinalizeTransaction = {
|
|
297
262
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -313,6 +278,12 @@ exports.MsgFinalizeTransaction = {
|
|
|
313
278
|
if (message.errReason !== "") {
|
|
314
279
|
writer.uint32(50).string(message.errReason);
|
|
315
280
|
}
|
|
281
|
+
if (message.tssMsgId !== "") {
|
|
282
|
+
writer.uint32(58).string(message.tssMsgId);
|
|
283
|
+
}
|
|
284
|
+
if (message.txType !== "") {
|
|
285
|
+
writer.uint32(66).string(message.txType);
|
|
286
|
+
}
|
|
316
287
|
return writer;
|
|
317
288
|
},
|
|
318
289
|
decode(input, length) {
|
|
@@ -340,6 +311,12 @@ exports.MsgFinalizeTransaction = {
|
|
|
340
311
|
case 6:
|
|
341
312
|
message.errReason = reader.string();
|
|
342
313
|
break;
|
|
314
|
+
case 7:
|
|
315
|
+
message.tssMsgId = reader.string();
|
|
316
|
+
break;
|
|
317
|
+
case 8:
|
|
318
|
+
message.txType = reader.string();
|
|
319
|
+
break;
|
|
343
320
|
default:
|
|
344
321
|
reader.skipType(tag & 7);
|
|
345
322
|
break;
|
|
@@ -355,6 +332,8 @@ exports.MsgFinalizeTransaction = {
|
|
|
355
332
|
success: isSet(object.success) ? Boolean(object.success) : false,
|
|
356
333
|
signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
|
|
357
334
|
errReason: isSet(object.errReason) ? String(object.errReason) : "",
|
|
335
|
+
tssMsgId: isSet(object.tssMsgId) ? String(object.tssMsgId) : "",
|
|
336
|
+
txType: isSet(object.txType) ? String(object.txType) : "",
|
|
358
337
|
};
|
|
359
338
|
},
|
|
360
339
|
toJSON(message) {
|
|
@@ -365,6 +344,8 @@ exports.MsgFinalizeTransaction = {
|
|
|
365
344
|
message.success !== undefined && (obj.success = message.success);
|
|
366
345
|
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
367
346
|
message.errReason !== undefined && (obj.errReason = message.errReason);
|
|
347
|
+
message.tssMsgId !== undefined && (obj.tssMsgId = message.tssMsgId);
|
|
348
|
+
message.txType !== undefined && (obj.txType = message.txType);
|
|
368
349
|
return obj;
|
|
369
350
|
},
|
|
370
351
|
fromPartial(object) {
|
|
@@ -375,6 +356,8 @@ exports.MsgFinalizeTransaction = {
|
|
|
375
356
|
message.success = object.success ?? false;
|
|
376
357
|
message.signedKey = object.signedKey ?? "";
|
|
377
358
|
message.errReason = object.errReason ?? "";
|
|
359
|
+
message.tssMsgId = object.tssMsgId ?? "";
|
|
360
|
+
message.txType = object.txType ?? "";
|
|
378
361
|
return message;
|
|
379
362
|
},
|
|
380
363
|
};
|
|
@@ -412,10 +395,7 @@ exports.MsgFinalizeTransactionResponse = {
|
|
|
412
395
|
return message;
|
|
413
396
|
},
|
|
414
397
|
fromJSON(object) {
|
|
415
|
-
return {
|
|
416
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
417
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
418
|
-
};
|
|
398
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
419
399
|
},
|
|
420
400
|
toJSON(message) {
|
|
421
401
|
const obj = {};
|
|
@@ -431,14 +411,7 @@ exports.MsgFinalizeTransactionResponse = {
|
|
|
431
411
|
},
|
|
432
412
|
};
|
|
433
413
|
function createBaseMsgFinalizeProvisionTransaction() {
|
|
434
|
-
return {
|
|
435
|
-
creator: "",
|
|
436
|
-
txId: 0,
|
|
437
|
-
txHash: "",
|
|
438
|
-
success: false,
|
|
439
|
-
signedKey: "",
|
|
440
|
-
errReason: "",
|
|
441
|
-
};
|
|
414
|
+
return { creator: "", txId: 0, txHash: "", success: false, signedKey: "", errReason: "", tssMsgId: "" };
|
|
442
415
|
}
|
|
443
416
|
exports.MsgFinalizeProvisionTransaction = {
|
|
444
417
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -460,6 +433,9 @@ exports.MsgFinalizeProvisionTransaction = {
|
|
|
460
433
|
if (message.errReason !== "") {
|
|
461
434
|
writer.uint32(50).string(message.errReason);
|
|
462
435
|
}
|
|
436
|
+
if (message.tssMsgId !== "") {
|
|
437
|
+
writer.uint32(58).string(message.tssMsgId);
|
|
438
|
+
}
|
|
463
439
|
return writer;
|
|
464
440
|
},
|
|
465
441
|
decode(input, length) {
|
|
@@ -487,6 +463,9 @@ exports.MsgFinalizeProvisionTransaction = {
|
|
|
487
463
|
case 6:
|
|
488
464
|
message.errReason = reader.string();
|
|
489
465
|
break;
|
|
466
|
+
case 7:
|
|
467
|
+
message.tssMsgId = reader.string();
|
|
468
|
+
break;
|
|
490
469
|
default:
|
|
491
470
|
reader.skipType(tag & 7);
|
|
492
471
|
break;
|
|
@@ -502,6 +481,7 @@ exports.MsgFinalizeProvisionTransaction = {
|
|
|
502
481
|
success: isSet(object.success) ? Boolean(object.success) : false,
|
|
503
482
|
signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
|
|
504
483
|
errReason: isSet(object.errReason) ? String(object.errReason) : "",
|
|
484
|
+
tssMsgId: isSet(object.tssMsgId) ? String(object.tssMsgId) : "",
|
|
505
485
|
};
|
|
506
486
|
},
|
|
507
487
|
toJSON(message) {
|
|
@@ -512,6 +492,7 @@ exports.MsgFinalizeProvisionTransaction = {
|
|
|
512
492
|
message.success !== undefined && (obj.success = message.success);
|
|
513
493
|
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
514
494
|
message.errReason !== undefined && (obj.errReason = message.errReason);
|
|
495
|
+
message.tssMsgId !== undefined && (obj.tssMsgId = message.tssMsgId);
|
|
515
496
|
return obj;
|
|
516
497
|
},
|
|
517
498
|
fromPartial(object) {
|
|
@@ -522,6 +503,7 @@ exports.MsgFinalizeProvisionTransaction = {
|
|
|
522
503
|
message.success = object.success ?? false;
|
|
523
504
|
message.signedKey = object.signedKey ?? "";
|
|
524
505
|
message.errReason = object.errReason ?? "";
|
|
506
|
+
message.tssMsgId = object.tssMsgId ?? "";
|
|
525
507
|
return message;
|
|
526
508
|
},
|
|
527
509
|
};
|
|
@@ -559,10 +541,7 @@ exports.MsgFinalizeProvisionTransactionResponse = {
|
|
|
559
541
|
return message;
|
|
560
542
|
},
|
|
561
543
|
fromJSON(object) {
|
|
562
|
-
return {
|
|
563
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
564
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
565
|
-
};
|
|
544
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
566
545
|
},
|
|
567
546
|
toJSON(message) {
|
|
568
547
|
const obj = {};
|
|
@@ -684,42 +663,27 @@ exports.MsgRequestProvisionTransaction = {
|
|
|
684
663
|
symbol: isSet(object.symbol) ? String(object.symbol) : "",
|
|
685
664
|
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
686
665
|
options: isSet(object.options) ? String(object.options) : "",
|
|
687
|
-
htlcExpirationTimestamp: isSet(object.htlcExpirationTimestamp)
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
htlcCreationHash: isSet(object.htlcCreationHash)
|
|
691
|
-
? String(object.htlcCreationHash)
|
|
692
|
-
: "",
|
|
693
|
-
htlcCreationVout: isSet(object.htlcCreationVout)
|
|
694
|
-
? Number(object.htlcCreationVout)
|
|
695
|
-
: 0,
|
|
666
|
+
htlcExpirationTimestamp: isSet(object.htlcExpirationTimestamp) ? String(object.htlcExpirationTimestamp) : "",
|
|
667
|
+
htlcCreationHash: isSet(object.htlcCreationHash) ? String(object.htlcCreationHash) : "",
|
|
668
|
+
htlcCreationVout: isSet(object.htlcCreationVout) ? Number(object.htlcCreationVout) : 0,
|
|
696
669
|
htlcVersion: isSet(object.htlcVersion) ? String(object.htlcVersion) : "",
|
|
697
|
-
senderPubKey: isSet(object.senderPubKey)
|
|
698
|
-
? bytesFromBase64(object.senderPubKey)
|
|
699
|
-
: new Uint8Array(),
|
|
670
|
+
senderPubKey: isSet(object.senderPubKey) ? bytesFromBase64(object.senderPubKey) : new Uint8Array(),
|
|
700
671
|
};
|
|
701
672
|
},
|
|
702
673
|
toJSON(message) {
|
|
703
674
|
const obj = {};
|
|
704
675
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
705
676
|
message.chain !== undefined && (obj.chain = message.chain);
|
|
706
|
-
message.fromAddress !== undefined &&
|
|
707
|
-
(obj.fromAddress = message.fromAddress);
|
|
677
|
+
message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress);
|
|
708
678
|
message.symbol !== undefined && (obj.symbol = message.symbol);
|
|
709
679
|
message.amount !== undefined && (obj.amount = message.amount);
|
|
710
680
|
message.options !== undefined && (obj.options = message.options);
|
|
711
|
-
message.htlcExpirationTimestamp !== undefined &&
|
|
712
|
-
|
|
713
|
-
message.
|
|
714
|
-
|
|
715
|
-
message.
|
|
716
|
-
(obj.
|
|
717
|
-
message.htlcVersion !== undefined &&
|
|
718
|
-
(obj.htlcVersion = message.htlcVersion);
|
|
719
|
-
message.senderPubKey !== undefined &&
|
|
720
|
-
(obj.senderPubKey = base64FromBytes(message.senderPubKey !== undefined
|
|
721
|
-
? message.senderPubKey
|
|
722
|
-
: new Uint8Array()));
|
|
681
|
+
message.htlcExpirationTimestamp !== undefined && (obj.htlcExpirationTimestamp = message.htlcExpirationTimestamp);
|
|
682
|
+
message.htlcCreationHash !== undefined && (obj.htlcCreationHash = message.htlcCreationHash);
|
|
683
|
+
message.htlcCreationVout !== undefined && (obj.htlcCreationVout = Math.round(message.htlcCreationVout));
|
|
684
|
+
message.htlcVersion !== undefined && (obj.htlcVersion = message.htlcVersion);
|
|
685
|
+
message.senderPubKey !== undefined
|
|
686
|
+
&& (obj.senderPubKey = base64FromBytes(message.senderPubKey !== undefined ? message.senderPubKey : new Uint8Array()));
|
|
723
687
|
return obj;
|
|
724
688
|
},
|
|
725
689
|
fromPartial(object) {
|
|
@@ -835,16 +799,13 @@ exports.MsgCancelTransaction = {
|
|
|
835
799
|
fromJSON(object) {
|
|
836
800
|
return {
|
|
837
801
|
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
838
|
-
transactionId: isSet(object.transactionId)
|
|
839
|
-
? String(object.transactionId)
|
|
840
|
-
: "",
|
|
802
|
+
transactionId: isSet(object.transactionId) ? String(object.transactionId) : "",
|
|
841
803
|
};
|
|
842
804
|
},
|
|
843
805
|
toJSON(message) {
|
|
844
806
|
const obj = {};
|
|
845
807
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
846
|
-
message.transactionId !== undefined &&
|
|
847
|
-
(obj.transactionId = message.transactionId);
|
|
808
|
+
message.transactionId !== undefined && (obj.transactionId = message.transactionId);
|
|
848
809
|
return obj;
|
|
849
810
|
},
|
|
850
811
|
fromPartial(object) {
|
|
@@ -888,10 +849,7 @@ exports.MsgCancelTransactionResponse = {
|
|
|
888
849
|
return message;
|
|
889
850
|
},
|
|
890
851
|
fromJSON(object) {
|
|
891
|
-
return {
|
|
892
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
893
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
894
|
-
};
|
|
852
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
895
853
|
},
|
|
896
854
|
toJSON(message) {
|
|
897
855
|
const obj = {};
|
|
@@ -1010,10 +968,7 @@ exports.MsgSetTxHashResponse = {
|
|
|
1010
968
|
return message;
|
|
1011
969
|
},
|
|
1012
970
|
fromJSON(object) {
|
|
1013
|
-
return {
|
|
1014
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
1015
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
1016
|
-
};
|
|
971
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
1017
972
|
},
|
|
1018
973
|
toJSON(message) {
|
|
1019
974
|
const obj = {};
|
|
@@ -1029,7 +984,21 @@ exports.MsgSetTxHashResponse = {
|
|
|
1029
984
|
},
|
|
1030
985
|
};
|
|
1031
986
|
function createBaseMsgSetTxProcess() {
|
|
1032
|
-
return {
|
|
987
|
+
return {
|
|
988
|
+
creator: "",
|
|
989
|
+
txId: 0,
|
|
990
|
+
timestamp: 0,
|
|
991
|
+
msgId: "",
|
|
992
|
+
handleId: 0,
|
|
993
|
+
txType: "",
|
|
994
|
+
feeId: "",
|
|
995
|
+
originGasFee: "",
|
|
996
|
+
targetGasFee: "",
|
|
997
|
+
kimaProcessingFee: "",
|
|
998
|
+
totalFee: "",
|
|
999
|
+
peggedTo: "",
|
|
1000
|
+
expiration: 0,
|
|
1001
|
+
};
|
|
1033
1002
|
}
|
|
1034
1003
|
exports.MsgSetTxProcess = {
|
|
1035
1004
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1045,8 +1014,32 @@ exports.MsgSetTxProcess = {
|
|
|
1045
1014
|
if (message.msgId !== "") {
|
|
1046
1015
|
writer.uint32(34).string(message.msgId);
|
|
1047
1016
|
}
|
|
1017
|
+
if (message.handleId !== 0) {
|
|
1018
|
+
writer.uint32(40).uint64(message.handleId);
|
|
1019
|
+
}
|
|
1048
1020
|
if (message.txType !== "") {
|
|
1049
|
-
writer.uint32(
|
|
1021
|
+
writer.uint32(50).string(message.txType);
|
|
1022
|
+
}
|
|
1023
|
+
if (message.feeId !== "") {
|
|
1024
|
+
writer.uint32(58).string(message.feeId);
|
|
1025
|
+
}
|
|
1026
|
+
if (message.originGasFee !== "") {
|
|
1027
|
+
writer.uint32(66).string(message.originGasFee);
|
|
1028
|
+
}
|
|
1029
|
+
if (message.targetGasFee !== "") {
|
|
1030
|
+
writer.uint32(74).string(message.targetGasFee);
|
|
1031
|
+
}
|
|
1032
|
+
if (message.kimaProcessingFee !== "") {
|
|
1033
|
+
writer.uint32(82).string(message.kimaProcessingFee);
|
|
1034
|
+
}
|
|
1035
|
+
if (message.totalFee !== "") {
|
|
1036
|
+
writer.uint32(90).string(message.totalFee);
|
|
1037
|
+
}
|
|
1038
|
+
if (message.peggedTo !== "") {
|
|
1039
|
+
writer.uint32(98).string(message.peggedTo);
|
|
1040
|
+
}
|
|
1041
|
+
if (message.expiration !== 0) {
|
|
1042
|
+
writer.uint32(104).int32(message.expiration);
|
|
1050
1043
|
}
|
|
1051
1044
|
return writer;
|
|
1052
1045
|
},
|
|
@@ -1070,8 +1063,32 @@ exports.MsgSetTxProcess = {
|
|
|
1070
1063
|
message.msgId = reader.string();
|
|
1071
1064
|
break;
|
|
1072
1065
|
case 5:
|
|
1066
|
+
message.handleId = longToNumber(reader.uint64());
|
|
1067
|
+
break;
|
|
1068
|
+
case 6:
|
|
1073
1069
|
message.txType = reader.string();
|
|
1074
1070
|
break;
|
|
1071
|
+
case 7:
|
|
1072
|
+
message.feeId = reader.string();
|
|
1073
|
+
break;
|
|
1074
|
+
case 8:
|
|
1075
|
+
message.originGasFee = reader.string();
|
|
1076
|
+
break;
|
|
1077
|
+
case 9:
|
|
1078
|
+
message.targetGasFee = reader.string();
|
|
1079
|
+
break;
|
|
1080
|
+
case 10:
|
|
1081
|
+
message.kimaProcessingFee = reader.string();
|
|
1082
|
+
break;
|
|
1083
|
+
case 11:
|
|
1084
|
+
message.totalFee = reader.string();
|
|
1085
|
+
break;
|
|
1086
|
+
case 12:
|
|
1087
|
+
message.peggedTo = reader.string();
|
|
1088
|
+
break;
|
|
1089
|
+
case 13:
|
|
1090
|
+
message.expiration = reader.int32();
|
|
1091
|
+
break;
|
|
1075
1092
|
default:
|
|
1076
1093
|
reader.skipType(tag & 7);
|
|
1077
1094
|
break;
|
|
@@ -1085,17 +1102,32 @@ exports.MsgSetTxProcess = {
|
|
|
1085
1102
|
txId: isSet(object.txId) ? Number(object.txId) : 0,
|
|
1086
1103
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1087
1104
|
msgId: isSet(object.msgId) ? String(object.msgId) : "",
|
|
1105
|
+
handleId: isSet(object.handleId) ? Number(object.handleId) : 0,
|
|
1088
1106
|
txType: isSet(object.txType) ? String(object.txType) : "",
|
|
1107
|
+
feeId: isSet(object.feeId) ? String(object.feeId) : "",
|
|
1108
|
+
originGasFee: isSet(object.originGasFee) ? String(object.originGasFee) : "",
|
|
1109
|
+
targetGasFee: isSet(object.targetGasFee) ? String(object.targetGasFee) : "",
|
|
1110
|
+
kimaProcessingFee: isSet(object.kimaProcessingFee) ? String(object.kimaProcessingFee) : "",
|
|
1111
|
+
totalFee: isSet(object.totalFee) ? String(object.totalFee) : "",
|
|
1112
|
+
peggedTo: isSet(object.peggedTo) ? String(object.peggedTo) : "",
|
|
1113
|
+
expiration: isSet(object.expiration) ? Number(object.expiration) : 0,
|
|
1089
1114
|
};
|
|
1090
1115
|
},
|
|
1091
1116
|
toJSON(message) {
|
|
1092
1117
|
const obj = {};
|
|
1093
1118
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
1094
1119
|
message.txId !== undefined && (obj.txId = Math.round(message.txId));
|
|
1095
|
-
message.timestamp !== undefined &&
|
|
1096
|
-
(obj.timestamp = Math.round(message.timestamp));
|
|
1120
|
+
message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
|
|
1097
1121
|
message.msgId !== undefined && (obj.msgId = message.msgId);
|
|
1122
|
+
message.handleId !== undefined && (obj.handleId = Math.round(message.handleId));
|
|
1098
1123
|
message.txType !== undefined && (obj.txType = message.txType);
|
|
1124
|
+
message.feeId !== undefined && (obj.feeId = message.feeId);
|
|
1125
|
+
message.originGasFee !== undefined && (obj.originGasFee = message.originGasFee);
|
|
1126
|
+
message.targetGasFee !== undefined && (obj.targetGasFee = message.targetGasFee);
|
|
1127
|
+
message.kimaProcessingFee !== undefined && (obj.kimaProcessingFee = message.kimaProcessingFee);
|
|
1128
|
+
message.totalFee !== undefined && (obj.totalFee = message.totalFee);
|
|
1129
|
+
message.peggedTo !== undefined && (obj.peggedTo = message.peggedTo);
|
|
1130
|
+
message.expiration !== undefined && (obj.expiration = Math.round(message.expiration));
|
|
1099
1131
|
return obj;
|
|
1100
1132
|
},
|
|
1101
1133
|
fromPartial(object) {
|
|
@@ -1104,7 +1136,15 @@ exports.MsgSetTxProcess = {
|
|
|
1104
1136
|
message.txId = object.txId ?? 0;
|
|
1105
1137
|
message.timestamp = object.timestamp ?? 0;
|
|
1106
1138
|
message.msgId = object.msgId ?? "";
|
|
1139
|
+
message.handleId = object.handleId ?? 0;
|
|
1107
1140
|
message.txType = object.txType ?? "";
|
|
1141
|
+
message.feeId = object.feeId ?? "";
|
|
1142
|
+
message.originGasFee = object.originGasFee ?? "";
|
|
1143
|
+
message.targetGasFee = object.targetGasFee ?? "";
|
|
1144
|
+
message.kimaProcessingFee = object.kimaProcessingFee ?? "";
|
|
1145
|
+
message.totalFee = object.totalFee ?? "";
|
|
1146
|
+
message.peggedTo = object.peggedTo ?? "";
|
|
1147
|
+
message.expiration = object.expiration ?? 0;
|
|
1108
1148
|
return message;
|
|
1109
1149
|
},
|
|
1110
1150
|
};
|
|
@@ -1142,14 +1182,7 @@ exports.MsgSetTxProcessResponse = {
|
|
|
1142
1182
|
},
|
|
1143
1183
|
};
|
|
1144
1184
|
function createBaseMsgRequestDrainTransaction() {
|
|
1145
|
-
return {
|
|
1146
|
-
creator: "",
|
|
1147
|
-
toChain: "",
|
|
1148
|
-
toAddress: "",
|
|
1149
|
-
symbol: "",
|
|
1150
|
-
amount: "",
|
|
1151
|
-
options: "",
|
|
1152
|
-
};
|
|
1185
|
+
return { creator: "", toChain: "", toAddress: "", symbol: "", amount: "", options: "" };
|
|
1153
1186
|
}
|
|
1154
1187
|
exports.MsgRequestDrainTransaction = {
|
|
1155
1188
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1298,14 +1331,7 @@ exports.MsgRequestDrainTransactionResponse = {
|
|
|
1298
1331
|
},
|
|
1299
1332
|
};
|
|
1300
1333
|
function createBaseMsgFinalizeDrainTransaction() {
|
|
1301
|
-
return {
|
|
1302
|
-
creator: "",
|
|
1303
|
-
txId: 0,
|
|
1304
|
-
txHash: "",
|
|
1305
|
-
success: false,
|
|
1306
|
-
signedKey: "",
|
|
1307
|
-
errReason: "",
|
|
1308
|
-
};
|
|
1334
|
+
return { creator: "", txId: 0, txHash: "", success: false, signedKey: "", errReason: "", tssMsgId: "" };
|
|
1309
1335
|
}
|
|
1310
1336
|
exports.MsgFinalizeDrainTransaction = {
|
|
1311
1337
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1327,6 +1353,9 @@ exports.MsgFinalizeDrainTransaction = {
|
|
|
1327
1353
|
if (message.errReason !== "") {
|
|
1328
1354
|
writer.uint32(50).string(message.errReason);
|
|
1329
1355
|
}
|
|
1356
|
+
if (message.tssMsgId !== "") {
|
|
1357
|
+
writer.uint32(58).string(message.tssMsgId);
|
|
1358
|
+
}
|
|
1330
1359
|
return writer;
|
|
1331
1360
|
},
|
|
1332
1361
|
decode(input, length) {
|
|
@@ -1354,6 +1383,9 @@ exports.MsgFinalizeDrainTransaction = {
|
|
|
1354
1383
|
case 6:
|
|
1355
1384
|
message.errReason = reader.string();
|
|
1356
1385
|
break;
|
|
1386
|
+
case 7:
|
|
1387
|
+
message.tssMsgId = reader.string();
|
|
1388
|
+
break;
|
|
1357
1389
|
default:
|
|
1358
1390
|
reader.skipType(tag & 7);
|
|
1359
1391
|
break;
|
|
@@ -1369,6 +1401,7 @@ exports.MsgFinalizeDrainTransaction = {
|
|
|
1369
1401
|
success: isSet(object.success) ? Boolean(object.success) : false,
|
|
1370
1402
|
signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
|
|
1371
1403
|
errReason: isSet(object.errReason) ? String(object.errReason) : "",
|
|
1404
|
+
tssMsgId: isSet(object.tssMsgId) ? String(object.tssMsgId) : "",
|
|
1372
1405
|
};
|
|
1373
1406
|
},
|
|
1374
1407
|
toJSON(message) {
|
|
@@ -1379,6 +1412,7 @@ exports.MsgFinalizeDrainTransaction = {
|
|
|
1379
1412
|
message.success !== undefined && (obj.success = message.success);
|
|
1380
1413
|
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
1381
1414
|
message.errReason !== undefined && (obj.errReason = message.errReason);
|
|
1415
|
+
message.tssMsgId !== undefined && (obj.tssMsgId = message.tssMsgId);
|
|
1382
1416
|
return obj;
|
|
1383
1417
|
},
|
|
1384
1418
|
fromPartial(object) {
|
|
@@ -1389,6 +1423,7 @@ exports.MsgFinalizeDrainTransaction = {
|
|
|
1389
1423
|
message.success = object.success ?? false;
|
|
1390
1424
|
message.signedKey = object.signedKey ?? "";
|
|
1391
1425
|
message.errReason = object.errReason ?? "";
|
|
1426
|
+
message.tssMsgId = object.tssMsgId ?? "";
|
|
1392
1427
|
return message;
|
|
1393
1428
|
},
|
|
1394
1429
|
};
|
|
@@ -1426,10 +1461,7 @@ exports.MsgFinalizeDrainTransactionResponse = {
|
|
|
1426
1461
|
return message;
|
|
1427
1462
|
},
|
|
1428
1463
|
fromJSON(object) {
|
|
1429
|
-
return {
|
|
1430
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
1431
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
1432
|
-
};
|
|
1464
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
1433
1465
|
},
|
|
1434
1466
|
toJSON(message) {
|
|
1435
1467
|
const obj = {};
|
|
@@ -1445,15 +1477,7 @@ exports.MsgFinalizeDrainTransactionResponse = {
|
|
|
1445
1477
|
},
|
|
1446
1478
|
};
|
|
1447
1479
|
function createBaseMsgRequestHtlcLock() {
|
|
1448
|
-
return {
|
|
1449
|
-
creator: "",
|
|
1450
|
-
fromAddress: "",
|
|
1451
|
-
senderPubkey: "",
|
|
1452
|
-
amount: "",
|
|
1453
|
-
htlcTimeout: "",
|
|
1454
|
-
txHash: "",
|
|
1455
|
-
htlcAddress: "",
|
|
1456
|
-
};
|
|
1480
|
+
return { creator: "", fromAddress: "", senderPubkey: "", amount: "", htlcTimeout: "", txHash: "", htlcAddress: "" };
|
|
1457
1481
|
}
|
|
1458
1482
|
exports.MsgRequestHtlcLock = {
|
|
1459
1483
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1519,9 +1543,7 @@ exports.MsgRequestHtlcLock = {
|
|
|
1519
1543
|
return {
|
|
1520
1544
|
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
1521
1545
|
fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "",
|
|
1522
|
-
senderPubkey: isSet(object.senderPubkey)
|
|
1523
|
-
? String(object.senderPubkey)
|
|
1524
|
-
: "",
|
|
1546
|
+
senderPubkey: isSet(object.senderPubkey) ? String(object.senderPubkey) : "",
|
|
1525
1547
|
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
1526
1548
|
htlcTimeout: isSet(object.htlcTimeout) ? String(object.htlcTimeout) : "",
|
|
1527
1549
|
txHash: isSet(object.txHash) ? String(object.txHash) : "",
|
|
@@ -1531,16 +1553,12 @@ exports.MsgRequestHtlcLock = {
|
|
|
1531
1553
|
toJSON(message) {
|
|
1532
1554
|
const obj = {};
|
|
1533
1555
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
1534
|
-
message.fromAddress !== undefined &&
|
|
1535
|
-
|
|
1536
|
-
message.senderPubkey !== undefined &&
|
|
1537
|
-
(obj.senderPubkey = message.senderPubkey);
|
|
1556
|
+
message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress);
|
|
1557
|
+
message.senderPubkey !== undefined && (obj.senderPubkey = message.senderPubkey);
|
|
1538
1558
|
message.amount !== undefined && (obj.amount = message.amount);
|
|
1539
|
-
message.htlcTimeout !== undefined &&
|
|
1540
|
-
(obj.htlcTimeout = message.htlcTimeout);
|
|
1559
|
+
message.htlcTimeout !== undefined && (obj.htlcTimeout = message.htlcTimeout);
|
|
1541
1560
|
message.txHash !== undefined && (obj.txHash = message.txHash);
|
|
1542
|
-
message.htlcAddress !== undefined &&
|
|
1543
|
-
(obj.htlcAddress = message.htlcAddress);
|
|
1561
|
+
message.htlcAddress !== undefined && (obj.htlcAddress = message.htlcAddress);
|
|
1544
1562
|
return obj;
|
|
1545
1563
|
},
|
|
1546
1564
|
fromPartial(object) {
|
|
@@ -1631,17 +1649,14 @@ exports.MsgHtlcReclaim = {
|
|
|
1631
1649
|
return {
|
|
1632
1650
|
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
1633
1651
|
txHash: isSet(object.txHash) ? String(object.txHash) : "",
|
|
1634
|
-
senderAddress: isSet(object.senderAddress)
|
|
1635
|
-
? String(object.senderAddress)
|
|
1636
|
-
: "",
|
|
1652
|
+
senderAddress: isSet(object.senderAddress) ? String(object.senderAddress) : "",
|
|
1637
1653
|
};
|
|
1638
1654
|
},
|
|
1639
1655
|
toJSON(message) {
|
|
1640
1656
|
const obj = {};
|
|
1641
1657
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
1642
1658
|
message.txHash !== undefined && (obj.txHash = message.txHash);
|
|
1643
|
-
message.senderAddress !== undefined &&
|
|
1644
|
-
(obj.senderAddress = message.senderAddress);
|
|
1659
|
+
message.senderAddress !== undefined && (obj.senderAddress = message.senderAddress);
|
|
1645
1660
|
return obj;
|
|
1646
1661
|
},
|
|
1647
1662
|
fromPartial(object) {
|
|
@@ -1873,15 +1888,93 @@ exports.MsgUpdateTransferLimitParamsResponse = {
|
|
|
1873
1888
|
return message;
|
|
1874
1889
|
},
|
|
1875
1890
|
};
|
|
1891
|
+
function createBaseMsgSetFiatTransactionParams() {
|
|
1892
|
+
return { authority: "", daca: "" };
|
|
1893
|
+
}
|
|
1894
|
+
exports.MsgSetFiatTransactionParams = {
|
|
1895
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1896
|
+
if (message.authority !== "") {
|
|
1897
|
+
writer.uint32(10).string(message.authority);
|
|
1898
|
+
}
|
|
1899
|
+
if (message.daca !== "") {
|
|
1900
|
+
writer.uint32(18).string(message.daca);
|
|
1901
|
+
}
|
|
1902
|
+
return writer;
|
|
1903
|
+
},
|
|
1904
|
+
decode(input, length) {
|
|
1905
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1906
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1907
|
+
const message = createBaseMsgSetFiatTransactionParams();
|
|
1908
|
+
while (reader.pos < end) {
|
|
1909
|
+
const tag = reader.uint32();
|
|
1910
|
+
switch (tag >>> 3) {
|
|
1911
|
+
case 1:
|
|
1912
|
+
message.authority = reader.string();
|
|
1913
|
+
break;
|
|
1914
|
+
case 2:
|
|
1915
|
+
message.daca = reader.string();
|
|
1916
|
+
break;
|
|
1917
|
+
default:
|
|
1918
|
+
reader.skipType(tag & 7);
|
|
1919
|
+
break;
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
return message;
|
|
1923
|
+
},
|
|
1924
|
+
fromJSON(object) {
|
|
1925
|
+
return {
|
|
1926
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
1927
|
+
daca: isSet(object.daca) ? String(object.daca) : "",
|
|
1928
|
+
};
|
|
1929
|
+
},
|
|
1930
|
+
toJSON(message) {
|
|
1931
|
+
const obj = {};
|
|
1932
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
1933
|
+
message.daca !== undefined && (obj.daca = message.daca);
|
|
1934
|
+
return obj;
|
|
1935
|
+
},
|
|
1936
|
+
fromPartial(object) {
|
|
1937
|
+
const message = createBaseMsgSetFiatTransactionParams();
|
|
1938
|
+
message.authority = object.authority ?? "";
|
|
1939
|
+
message.daca = object.daca ?? "";
|
|
1940
|
+
return message;
|
|
1941
|
+
},
|
|
1942
|
+
};
|
|
1943
|
+
function createBaseMsgSetFiatTransactionParamsResponse() {
|
|
1944
|
+
return {};
|
|
1945
|
+
}
|
|
1946
|
+
exports.MsgSetFiatTransactionParamsResponse = {
|
|
1947
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1948
|
+
return writer;
|
|
1949
|
+
},
|
|
1950
|
+
decode(input, length) {
|
|
1951
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1952
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1953
|
+
const message = createBaseMsgSetFiatTransactionParamsResponse();
|
|
1954
|
+
while (reader.pos < end) {
|
|
1955
|
+
const tag = reader.uint32();
|
|
1956
|
+
switch (tag >>> 3) {
|
|
1957
|
+
default:
|
|
1958
|
+
reader.skipType(tag & 7);
|
|
1959
|
+
break;
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
return message;
|
|
1963
|
+
},
|
|
1964
|
+
fromJSON(_) {
|
|
1965
|
+
return {};
|
|
1966
|
+
},
|
|
1967
|
+
toJSON(_) {
|
|
1968
|
+
const obj = {};
|
|
1969
|
+
return obj;
|
|
1970
|
+
},
|
|
1971
|
+
fromPartial(_) {
|
|
1972
|
+
const message = createBaseMsgSetFiatTransactionParamsResponse();
|
|
1973
|
+
return message;
|
|
1974
|
+
},
|
|
1975
|
+
};
|
|
1876
1976
|
function createBaseMsgFinalizeWithdrawTransaction() {
|
|
1877
|
-
return {
|
|
1878
|
-
creator: "",
|
|
1879
|
-
txId: 0,
|
|
1880
|
-
txHash: "",
|
|
1881
|
-
success: false,
|
|
1882
|
-
signedKey: "",
|
|
1883
|
-
errReason: "",
|
|
1884
|
-
};
|
|
1977
|
+
return { creator: "", txId: 0, txHash: "", success: false, signedKey: "", errReason: "", tssMsgId: "" };
|
|
1885
1978
|
}
|
|
1886
1979
|
exports.MsgFinalizeWithdrawTransaction = {
|
|
1887
1980
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1903,6 +1996,9 @@ exports.MsgFinalizeWithdrawTransaction = {
|
|
|
1903
1996
|
if (message.errReason !== "") {
|
|
1904
1997
|
writer.uint32(50).string(message.errReason);
|
|
1905
1998
|
}
|
|
1999
|
+
if (message.tssMsgId !== "") {
|
|
2000
|
+
writer.uint32(58).string(message.tssMsgId);
|
|
2001
|
+
}
|
|
1906
2002
|
return writer;
|
|
1907
2003
|
},
|
|
1908
2004
|
decode(input, length) {
|
|
@@ -1930,6 +2026,9 @@ exports.MsgFinalizeWithdrawTransaction = {
|
|
|
1930
2026
|
case 6:
|
|
1931
2027
|
message.errReason = reader.string();
|
|
1932
2028
|
break;
|
|
2029
|
+
case 7:
|
|
2030
|
+
message.tssMsgId = reader.string();
|
|
2031
|
+
break;
|
|
1933
2032
|
default:
|
|
1934
2033
|
reader.skipType(tag & 7);
|
|
1935
2034
|
break;
|
|
@@ -1945,6 +2044,7 @@ exports.MsgFinalizeWithdrawTransaction = {
|
|
|
1945
2044
|
success: isSet(object.success) ? Boolean(object.success) : false,
|
|
1946
2045
|
signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
|
|
1947
2046
|
errReason: isSet(object.errReason) ? String(object.errReason) : "",
|
|
2047
|
+
tssMsgId: isSet(object.tssMsgId) ? String(object.tssMsgId) : "",
|
|
1948
2048
|
};
|
|
1949
2049
|
},
|
|
1950
2050
|
toJSON(message) {
|
|
@@ -1955,6 +2055,7 @@ exports.MsgFinalizeWithdrawTransaction = {
|
|
|
1955
2055
|
message.success !== undefined && (obj.success = message.success);
|
|
1956
2056
|
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
1957
2057
|
message.errReason !== undefined && (obj.errReason = message.errReason);
|
|
2058
|
+
message.tssMsgId !== undefined && (obj.tssMsgId = message.tssMsgId);
|
|
1958
2059
|
return obj;
|
|
1959
2060
|
},
|
|
1960
2061
|
fromPartial(object) {
|
|
@@ -1965,6 +2066,7 @@ exports.MsgFinalizeWithdrawTransaction = {
|
|
|
1965
2066
|
message.success = object.success ?? false;
|
|
1966
2067
|
message.signedKey = object.signedKey ?? "";
|
|
1967
2068
|
message.errReason = object.errReason ?? "";
|
|
2069
|
+
message.tssMsgId = object.tssMsgId ?? "";
|
|
1968
2070
|
return message;
|
|
1969
2071
|
},
|
|
1970
2072
|
};
|
|
@@ -2002,10 +2104,7 @@ exports.MsgFinalizeWithdrawTransactionResponse = {
|
|
|
2002
2104
|
return message;
|
|
2003
2105
|
},
|
|
2004
2106
|
fromJSON(object) {
|
|
2005
|
-
return {
|
|
2006
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
2007
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
2008
|
-
};
|
|
2107
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
2009
2108
|
},
|
|
2010
2109
|
toJSON(message) {
|
|
2011
2110
|
const obj = {};
|
|
@@ -2020,98 +2119,674 @@ exports.MsgFinalizeWithdrawTransactionResponse = {
|
|
|
2020
2119
|
return message;
|
|
2021
2120
|
},
|
|
2022
2121
|
};
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
return
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
const
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
return
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
const
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2122
|
+
function createBaseMsgConfirmTransaction() {
|
|
2123
|
+
return { creator: "", transactionId: "", amount: "", currency: "", confirmed: false, failReason: "", timestamp: 0 };
|
|
2124
|
+
}
|
|
2125
|
+
exports.MsgConfirmTransaction = {
|
|
2126
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2127
|
+
if (message.creator !== "") {
|
|
2128
|
+
writer.uint32(10).string(message.creator);
|
|
2129
|
+
}
|
|
2130
|
+
if (message.transactionId !== "") {
|
|
2131
|
+
writer.uint32(18).string(message.transactionId);
|
|
2132
|
+
}
|
|
2133
|
+
if (message.amount !== "") {
|
|
2134
|
+
writer.uint32(26).string(message.amount);
|
|
2135
|
+
}
|
|
2136
|
+
if (message.currency !== "") {
|
|
2137
|
+
writer.uint32(34).string(message.currency);
|
|
2138
|
+
}
|
|
2139
|
+
if (message.confirmed === true) {
|
|
2140
|
+
writer.uint32(40).bool(message.confirmed);
|
|
2141
|
+
}
|
|
2142
|
+
if (message.failReason !== "") {
|
|
2143
|
+
writer.uint32(50).string(message.failReason);
|
|
2144
|
+
}
|
|
2145
|
+
if (message.timestamp !== 0) {
|
|
2146
|
+
writer.uint32(56).uint64(message.timestamp);
|
|
2147
|
+
}
|
|
2148
|
+
return writer;
|
|
2149
|
+
},
|
|
2150
|
+
decode(input, length) {
|
|
2151
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2152
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2153
|
+
const message = createBaseMsgConfirmTransaction();
|
|
2154
|
+
while (reader.pos < end) {
|
|
2155
|
+
const tag = reader.uint32();
|
|
2156
|
+
switch (tag >>> 3) {
|
|
2157
|
+
case 1:
|
|
2158
|
+
message.creator = reader.string();
|
|
2159
|
+
break;
|
|
2160
|
+
case 2:
|
|
2161
|
+
message.transactionId = reader.string();
|
|
2162
|
+
break;
|
|
2163
|
+
case 3:
|
|
2164
|
+
message.amount = reader.string();
|
|
2165
|
+
break;
|
|
2166
|
+
case 4:
|
|
2167
|
+
message.currency = reader.string();
|
|
2168
|
+
break;
|
|
2169
|
+
case 5:
|
|
2170
|
+
message.confirmed = reader.bool();
|
|
2171
|
+
break;
|
|
2172
|
+
case 6:
|
|
2173
|
+
message.failReason = reader.string();
|
|
2174
|
+
break;
|
|
2175
|
+
case 7:
|
|
2176
|
+
message.timestamp = longToNumber(reader.uint64());
|
|
2177
|
+
break;
|
|
2178
|
+
default:
|
|
2179
|
+
reader.skipType(tag & 7);
|
|
2180
|
+
break;
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
return message;
|
|
2184
|
+
},
|
|
2185
|
+
fromJSON(object) {
|
|
2186
|
+
return {
|
|
2187
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
2188
|
+
transactionId: isSet(object.transactionId) ? String(object.transactionId) : "",
|
|
2189
|
+
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
2190
|
+
currency: isSet(object.currency) ? String(object.currency) : "",
|
|
2191
|
+
confirmed: isSet(object.confirmed) ? Boolean(object.confirmed) : false,
|
|
2192
|
+
failReason: isSet(object.failReason) ? String(object.failReason) : "",
|
|
2193
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
2194
|
+
};
|
|
2195
|
+
},
|
|
2196
|
+
toJSON(message) {
|
|
2197
|
+
const obj = {};
|
|
2198
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
2199
|
+
message.transactionId !== undefined && (obj.transactionId = message.transactionId);
|
|
2200
|
+
message.amount !== undefined && (obj.amount = message.amount);
|
|
2201
|
+
message.currency !== undefined && (obj.currency = message.currency);
|
|
2202
|
+
message.confirmed !== undefined && (obj.confirmed = message.confirmed);
|
|
2203
|
+
message.failReason !== undefined && (obj.failReason = message.failReason);
|
|
2204
|
+
message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
|
|
2205
|
+
return obj;
|
|
2206
|
+
},
|
|
2207
|
+
fromPartial(object) {
|
|
2208
|
+
const message = createBaseMsgConfirmTransaction();
|
|
2209
|
+
message.creator = object.creator ?? "";
|
|
2210
|
+
message.transactionId = object.transactionId ?? "";
|
|
2211
|
+
message.amount = object.amount ?? "";
|
|
2212
|
+
message.currency = object.currency ?? "";
|
|
2213
|
+
message.confirmed = object.confirmed ?? false;
|
|
2214
|
+
message.failReason = object.failReason ?? "";
|
|
2215
|
+
message.timestamp = object.timestamp ?? 0;
|
|
2216
|
+
return message;
|
|
2217
|
+
},
|
|
2218
|
+
};
|
|
2219
|
+
function createBaseMsgConfirmTransactionResponse() {
|
|
2220
|
+
return { code: "", msg: "" };
|
|
2221
|
+
}
|
|
2222
|
+
exports.MsgConfirmTransactionResponse = {
|
|
2223
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2224
|
+
if (message.code !== "") {
|
|
2225
|
+
writer.uint32(10).string(message.code);
|
|
2226
|
+
}
|
|
2227
|
+
if (message.msg !== "") {
|
|
2228
|
+
writer.uint32(18).string(message.msg);
|
|
2229
|
+
}
|
|
2230
|
+
return writer;
|
|
2231
|
+
},
|
|
2232
|
+
decode(input, length) {
|
|
2233
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2234
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2235
|
+
const message = createBaseMsgConfirmTransactionResponse();
|
|
2236
|
+
while (reader.pos < end) {
|
|
2237
|
+
const tag = reader.uint32();
|
|
2238
|
+
switch (tag >>> 3) {
|
|
2239
|
+
case 1:
|
|
2240
|
+
message.code = reader.string();
|
|
2241
|
+
break;
|
|
2242
|
+
case 2:
|
|
2243
|
+
message.msg = reader.string();
|
|
2244
|
+
break;
|
|
2245
|
+
default:
|
|
2246
|
+
reader.skipType(tag & 7);
|
|
2247
|
+
break;
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
return message;
|
|
2251
|
+
},
|
|
2252
|
+
fromJSON(object) {
|
|
2253
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
2254
|
+
},
|
|
2255
|
+
toJSON(message) {
|
|
2256
|
+
const obj = {};
|
|
2257
|
+
message.code !== undefined && (obj.code = message.code);
|
|
2258
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
2259
|
+
return obj;
|
|
2260
|
+
},
|
|
2261
|
+
fromPartial(object) {
|
|
2262
|
+
const message = createBaseMsgConfirmTransactionResponse();
|
|
2263
|
+
message.code = object.code ?? "";
|
|
2264
|
+
message.msg = object.msg ?? "";
|
|
2265
|
+
return message;
|
|
2266
|
+
},
|
|
2267
|
+
};
|
|
2268
|
+
function createBaseMsgUpdateTransactionStatus() {
|
|
2269
|
+
return { creator: "", txId: "", newStatus: "", failReason: "" };
|
|
2270
|
+
}
|
|
2271
|
+
exports.MsgUpdateTransactionStatus = {
|
|
2272
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2273
|
+
if (message.creator !== "") {
|
|
2274
|
+
writer.uint32(10).string(message.creator);
|
|
2275
|
+
}
|
|
2276
|
+
if (message.txId !== "") {
|
|
2277
|
+
writer.uint32(18).string(message.txId);
|
|
2278
|
+
}
|
|
2279
|
+
if (message.newStatus !== "") {
|
|
2280
|
+
writer.uint32(26).string(message.newStatus);
|
|
2281
|
+
}
|
|
2282
|
+
if (message.failReason !== "") {
|
|
2283
|
+
writer.uint32(34).string(message.failReason);
|
|
2284
|
+
}
|
|
2285
|
+
return writer;
|
|
2286
|
+
},
|
|
2287
|
+
decode(input, length) {
|
|
2288
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2289
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2290
|
+
const message = createBaseMsgUpdateTransactionStatus();
|
|
2291
|
+
while (reader.pos < end) {
|
|
2292
|
+
const tag = reader.uint32();
|
|
2293
|
+
switch (tag >>> 3) {
|
|
2294
|
+
case 1:
|
|
2295
|
+
message.creator = reader.string();
|
|
2296
|
+
break;
|
|
2297
|
+
case 2:
|
|
2298
|
+
message.txId = reader.string();
|
|
2299
|
+
break;
|
|
2300
|
+
case 3:
|
|
2301
|
+
message.newStatus = reader.string();
|
|
2302
|
+
break;
|
|
2303
|
+
case 4:
|
|
2304
|
+
message.failReason = reader.string();
|
|
2305
|
+
break;
|
|
2306
|
+
default:
|
|
2307
|
+
reader.skipType(tag & 7);
|
|
2308
|
+
break;
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
return message;
|
|
2312
|
+
},
|
|
2313
|
+
fromJSON(object) {
|
|
2314
|
+
return {
|
|
2315
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
2316
|
+
txId: isSet(object.txId) ? String(object.txId) : "",
|
|
2317
|
+
newStatus: isSet(object.newStatus) ? String(object.newStatus) : "",
|
|
2318
|
+
failReason: isSet(object.failReason) ? String(object.failReason) : "",
|
|
2319
|
+
};
|
|
2320
|
+
},
|
|
2321
|
+
toJSON(message) {
|
|
2322
|
+
const obj = {};
|
|
2323
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
2324
|
+
message.txId !== undefined && (obj.txId = message.txId);
|
|
2325
|
+
message.newStatus !== undefined && (obj.newStatus = message.newStatus);
|
|
2326
|
+
message.failReason !== undefined && (obj.failReason = message.failReason);
|
|
2327
|
+
return obj;
|
|
2328
|
+
},
|
|
2329
|
+
fromPartial(object) {
|
|
2330
|
+
const message = createBaseMsgUpdateTransactionStatus();
|
|
2331
|
+
message.creator = object.creator ?? "";
|
|
2332
|
+
message.txId = object.txId ?? "";
|
|
2333
|
+
message.newStatus = object.newStatus ?? "";
|
|
2334
|
+
message.failReason = object.failReason ?? "";
|
|
2335
|
+
return message;
|
|
2336
|
+
},
|
|
2337
|
+
};
|
|
2338
|
+
function createBaseMsgUpdateTransactionStatusResponse() {
|
|
2339
|
+
return { code: "", msg: "" };
|
|
2340
|
+
}
|
|
2341
|
+
exports.MsgUpdateTransactionStatusResponse = {
|
|
2342
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2343
|
+
if (message.code !== "") {
|
|
2344
|
+
writer.uint32(10).string(message.code);
|
|
2345
|
+
}
|
|
2346
|
+
if (message.msg !== "") {
|
|
2347
|
+
writer.uint32(18).string(message.msg);
|
|
2348
|
+
}
|
|
2349
|
+
return writer;
|
|
2350
|
+
},
|
|
2351
|
+
decode(input, length) {
|
|
2352
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2353
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2354
|
+
const message = createBaseMsgUpdateTransactionStatusResponse();
|
|
2355
|
+
while (reader.pos < end) {
|
|
2356
|
+
const tag = reader.uint32();
|
|
2357
|
+
switch (tag >>> 3) {
|
|
2358
|
+
case 1:
|
|
2359
|
+
message.code = reader.string();
|
|
2360
|
+
break;
|
|
2361
|
+
case 2:
|
|
2362
|
+
message.msg = reader.string();
|
|
2363
|
+
break;
|
|
2364
|
+
default:
|
|
2365
|
+
reader.skipType(tag & 7);
|
|
2366
|
+
break;
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
return message;
|
|
2370
|
+
},
|
|
2371
|
+
fromJSON(object) {
|
|
2372
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
2373
|
+
},
|
|
2374
|
+
toJSON(message) {
|
|
2375
|
+
const obj = {};
|
|
2376
|
+
message.code !== undefined && (obj.code = message.code);
|
|
2377
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
2378
|
+
return obj;
|
|
2379
|
+
},
|
|
2380
|
+
fromPartial(object) {
|
|
2381
|
+
const message = createBaseMsgUpdateTransactionStatusResponse();
|
|
2382
|
+
message.code = object.code ?? "";
|
|
2383
|
+
message.msg = object.msg ?? "";
|
|
2384
|
+
return message;
|
|
2385
|
+
},
|
|
2386
|
+
};
|
|
2387
|
+
function createBaseMsgUpdateMaxConcurrentLimit() {
|
|
2388
|
+
return { authority: "", maxLimit: 0 };
|
|
2389
|
+
}
|
|
2390
|
+
exports.MsgUpdateMaxConcurrentLimit = {
|
|
2391
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2392
|
+
if (message.authority !== "") {
|
|
2393
|
+
writer.uint32(10).string(message.authority);
|
|
2394
|
+
}
|
|
2395
|
+
if (message.maxLimit !== 0) {
|
|
2396
|
+
writer.uint32(16).int64(message.maxLimit);
|
|
2397
|
+
}
|
|
2398
|
+
return writer;
|
|
2399
|
+
},
|
|
2400
|
+
decode(input, length) {
|
|
2401
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2402
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2403
|
+
const message = createBaseMsgUpdateMaxConcurrentLimit();
|
|
2404
|
+
while (reader.pos < end) {
|
|
2405
|
+
const tag = reader.uint32();
|
|
2406
|
+
switch (tag >>> 3) {
|
|
2407
|
+
case 1:
|
|
2408
|
+
message.authority = reader.string();
|
|
2409
|
+
break;
|
|
2410
|
+
case 2:
|
|
2411
|
+
message.maxLimit = longToNumber(reader.int64());
|
|
2412
|
+
break;
|
|
2413
|
+
default:
|
|
2414
|
+
reader.skipType(tag & 7);
|
|
2415
|
+
break;
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
return message;
|
|
2419
|
+
},
|
|
2420
|
+
fromJSON(object) {
|
|
2421
|
+
return {
|
|
2422
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
2423
|
+
maxLimit: isSet(object.maxLimit) ? Number(object.maxLimit) : 0,
|
|
2424
|
+
};
|
|
2425
|
+
},
|
|
2426
|
+
toJSON(message) {
|
|
2427
|
+
const obj = {};
|
|
2428
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
2429
|
+
message.maxLimit !== undefined && (obj.maxLimit = Math.round(message.maxLimit));
|
|
2430
|
+
return obj;
|
|
2431
|
+
},
|
|
2432
|
+
fromPartial(object) {
|
|
2433
|
+
const message = createBaseMsgUpdateMaxConcurrentLimit();
|
|
2434
|
+
message.authority = object.authority ?? "";
|
|
2435
|
+
message.maxLimit = object.maxLimit ?? 0;
|
|
2436
|
+
return message;
|
|
2437
|
+
},
|
|
2438
|
+
};
|
|
2439
|
+
function createBaseMsgUpdateMaxConcurrentLimitResponse() {
|
|
2440
|
+
return { code: "", msg: "" };
|
|
2441
|
+
}
|
|
2442
|
+
exports.MsgUpdateMaxConcurrentLimitResponse = {
|
|
2443
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2444
|
+
if (message.code !== "") {
|
|
2445
|
+
writer.uint32(10).string(message.code);
|
|
2446
|
+
}
|
|
2447
|
+
if (message.msg !== "") {
|
|
2448
|
+
writer.uint32(18).string(message.msg);
|
|
2449
|
+
}
|
|
2450
|
+
return writer;
|
|
2451
|
+
},
|
|
2452
|
+
decode(input, length) {
|
|
2453
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2454
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2455
|
+
const message = createBaseMsgUpdateMaxConcurrentLimitResponse();
|
|
2456
|
+
while (reader.pos < end) {
|
|
2457
|
+
const tag = reader.uint32();
|
|
2458
|
+
switch (tag >>> 3) {
|
|
2459
|
+
case 1:
|
|
2460
|
+
message.code = reader.string();
|
|
2461
|
+
break;
|
|
2462
|
+
case 2:
|
|
2463
|
+
message.msg = reader.string();
|
|
2464
|
+
break;
|
|
2465
|
+
default:
|
|
2466
|
+
reader.skipType(tag & 7);
|
|
2467
|
+
break;
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
return message;
|
|
2471
|
+
},
|
|
2472
|
+
fromJSON(object) {
|
|
2473
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
2474
|
+
},
|
|
2475
|
+
toJSON(message) {
|
|
2476
|
+
const obj = {};
|
|
2477
|
+
message.code !== undefined && (obj.code = message.code);
|
|
2478
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
2479
|
+
return obj;
|
|
2480
|
+
},
|
|
2481
|
+
fromPartial(object) {
|
|
2482
|
+
const message = createBaseMsgUpdateMaxConcurrentLimitResponse();
|
|
2483
|
+
message.code = object.code ?? "";
|
|
2484
|
+
message.msg = object.msg ?? "";
|
|
2485
|
+
return message;
|
|
2486
|
+
},
|
|
2487
|
+
};
|
|
2488
|
+
function createBaseMsgRequestExternalTransaction() {
|
|
2489
|
+
return {
|
|
2490
|
+
creator: "",
|
|
2491
|
+
originChain: "",
|
|
2492
|
+
originAddress: "",
|
|
2493
|
+
targetChain: "",
|
|
2494
|
+
targetAddress: "",
|
|
2495
|
+
originSymbol: "",
|
|
2496
|
+
targetSymbol: "",
|
|
2497
|
+
amount: "",
|
|
2498
|
+
fee: "",
|
|
2499
|
+
options: "",
|
|
2500
|
+
};
|
|
2501
|
+
}
|
|
2502
|
+
exports.MsgRequestExternalTransaction = {
|
|
2503
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2504
|
+
if (message.creator !== "") {
|
|
2505
|
+
writer.uint32(10).string(message.creator);
|
|
2506
|
+
}
|
|
2507
|
+
if (message.originChain !== "") {
|
|
2508
|
+
writer.uint32(18).string(message.originChain);
|
|
2509
|
+
}
|
|
2510
|
+
if (message.originAddress !== "") {
|
|
2511
|
+
writer.uint32(26).string(message.originAddress);
|
|
2512
|
+
}
|
|
2513
|
+
if (message.targetChain !== "") {
|
|
2514
|
+
writer.uint32(34).string(message.targetChain);
|
|
2515
|
+
}
|
|
2516
|
+
if (message.targetAddress !== "") {
|
|
2517
|
+
writer.uint32(42).string(message.targetAddress);
|
|
2518
|
+
}
|
|
2519
|
+
if (message.originSymbol !== "") {
|
|
2520
|
+
writer.uint32(50).string(message.originSymbol);
|
|
2521
|
+
}
|
|
2522
|
+
if (message.targetSymbol !== "") {
|
|
2523
|
+
writer.uint32(58).string(message.targetSymbol);
|
|
2524
|
+
}
|
|
2525
|
+
if (message.amount !== "") {
|
|
2526
|
+
writer.uint32(66).string(message.amount);
|
|
2527
|
+
}
|
|
2528
|
+
if (message.fee !== "") {
|
|
2529
|
+
writer.uint32(74).string(message.fee);
|
|
2530
|
+
}
|
|
2531
|
+
if (message.options !== "") {
|
|
2532
|
+
writer.uint32(82).string(message.options);
|
|
2533
|
+
}
|
|
2534
|
+
return writer;
|
|
2535
|
+
},
|
|
2536
|
+
decode(input, length) {
|
|
2537
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2538
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2539
|
+
const message = createBaseMsgRequestExternalTransaction();
|
|
2540
|
+
while (reader.pos < end) {
|
|
2541
|
+
const tag = reader.uint32();
|
|
2542
|
+
switch (tag >>> 3) {
|
|
2543
|
+
case 1:
|
|
2544
|
+
message.creator = reader.string();
|
|
2545
|
+
break;
|
|
2546
|
+
case 2:
|
|
2547
|
+
message.originChain = reader.string();
|
|
2548
|
+
break;
|
|
2549
|
+
case 3:
|
|
2550
|
+
message.originAddress = reader.string();
|
|
2551
|
+
break;
|
|
2552
|
+
case 4:
|
|
2553
|
+
message.targetChain = reader.string();
|
|
2554
|
+
break;
|
|
2555
|
+
case 5:
|
|
2556
|
+
message.targetAddress = reader.string();
|
|
2557
|
+
break;
|
|
2558
|
+
case 6:
|
|
2559
|
+
message.originSymbol = reader.string();
|
|
2560
|
+
break;
|
|
2561
|
+
case 7:
|
|
2562
|
+
message.targetSymbol = reader.string();
|
|
2563
|
+
break;
|
|
2564
|
+
case 8:
|
|
2565
|
+
message.amount = reader.string();
|
|
2566
|
+
break;
|
|
2567
|
+
case 9:
|
|
2568
|
+
message.fee = reader.string();
|
|
2569
|
+
break;
|
|
2570
|
+
case 10:
|
|
2571
|
+
message.options = reader.string();
|
|
2572
|
+
break;
|
|
2573
|
+
default:
|
|
2574
|
+
reader.skipType(tag & 7);
|
|
2575
|
+
break;
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
return message;
|
|
2579
|
+
},
|
|
2580
|
+
fromJSON(object) {
|
|
2581
|
+
return {
|
|
2582
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
2583
|
+
originChain: isSet(object.originChain) ? String(object.originChain) : "",
|
|
2584
|
+
originAddress: isSet(object.originAddress) ? String(object.originAddress) : "",
|
|
2585
|
+
targetChain: isSet(object.targetChain) ? String(object.targetChain) : "",
|
|
2586
|
+
targetAddress: isSet(object.targetAddress) ? String(object.targetAddress) : "",
|
|
2587
|
+
originSymbol: isSet(object.originSymbol) ? String(object.originSymbol) : "",
|
|
2588
|
+
targetSymbol: isSet(object.targetSymbol) ? String(object.targetSymbol) : "",
|
|
2589
|
+
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
2590
|
+
fee: isSet(object.fee) ? String(object.fee) : "",
|
|
2591
|
+
options: isSet(object.options) ? String(object.options) : "",
|
|
2592
|
+
};
|
|
2593
|
+
},
|
|
2594
|
+
toJSON(message) {
|
|
2595
|
+
const obj = {};
|
|
2596
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
2597
|
+
message.originChain !== undefined && (obj.originChain = message.originChain);
|
|
2598
|
+
message.originAddress !== undefined && (obj.originAddress = message.originAddress);
|
|
2599
|
+
message.targetChain !== undefined && (obj.targetChain = message.targetChain);
|
|
2600
|
+
message.targetAddress !== undefined && (obj.targetAddress = message.targetAddress);
|
|
2601
|
+
message.originSymbol !== undefined && (obj.originSymbol = message.originSymbol);
|
|
2602
|
+
message.targetSymbol !== undefined && (obj.targetSymbol = message.targetSymbol);
|
|
2603
|
+
message.amount !== undefined && (obj.amount = message.amount);
|
|
2604
|
+
message.fee !== undefined && (obj.fee = message.fee);
|
|
2605
|
+
message.options !== undefined && (obj.options = message.options);
|
|
2606
|
+
return obj;
|
|
2607
|
+
},
|
|
2608
|
+
fromPartial(object) {
|
|
2609
|
+
const message = createBaseMsgRequestExternalTransaction();
|
|
2610
|
+
message.creator = object.creator ?? "";
|
|
2611
|
+
message.originChain = object.originChain ?? "";
|
|
2612
|
+
message.originAddress = object.originAddress ?? "";
|
|
2613
|
+
message.targetChain = object.targetChain ?? "";
|
|
2614
|
+
message.targetAddress = object.targetAddress ?? "";
|
|
2615
|
+
message.originSymbol = object.originSymbol ?? "";
|
|
2616
|
+
message.targetSymbol = object.targetSymbol ?? "";
|
|
2617
|
+
message.amount = object.amount ?? "";
|
|
2618
|
+
message.fee = object.fee ?? "";
|
|
2619
|
+
message.options = object.options ?? "";
|
|
2620
|
+
return message;
|
|
2621
|
+
},
|
|
2622
|
+
};
|
|
2623
|
+
function createBaseMsgRequestExternalTransactionResponse() {
|
|
2624
|
+
return { code: "", msg: "" };
|
|
2625
|
+
}
|
|
2626
|
+
exports.MsgRequestExternalTransactionResponse = {
|
|
2627
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2628
|
+
if (message.code !== "") {
|
|
2629
|
+
writer.uint32(10).string(message.code);
|
|
2630
|
+
}
|
|
2631
|
+
if (message.msg !== "") {
|
|
2632
|
+
writer.uint32(18).string(message.msg);
|
|
2633
|
+
}
|
|
2634
|
+
return writer;
|
|
2635
|
+
},
|
|
2636
|
+
decode(input, length) {
|
|
2637
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2638
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2639
|
+
const message = createBaseMsgRequestExternalTransactionResponse();
|
|
2640
|
+
while (reader.pos < end) {
|
|
2641
|
+
const tag = reader.uint32();
|
|
2642
|
+
switch (tag >>> 3) {
|
|
2643
|
+
case 1:
|
|
2644
|
+
message.code = reader.string();
|
|
2645
|
+
break;
|
|
2646
|
+
case 2:
|
|
2647
|
+
message.msg = reader.string();
|
|
2648
|
+
break;
|
|
2649
|
+
default:
|
|
2650
|
+
reader.skipType(tag & 7);
|
|
2651
|
+
break;
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
return message;
|
|
2655
|
+
},
|
|
2656
|
+
fromJSON(object) {
|
|
2657
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
2658
|
+
},
|
|
2659
|
+
toJSON(message) {
|
|
2660
|
+
const obj = {};
|
|
2661
|
+
message.code !== undefined && (obj.code = message.code);
|
|
2662
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
2663
|
+
return obj;
|
|
2664
|
+
},
|
|
2665
|
+
fromPartial(object) {
|
|
2666
|
+
const message = createBaseMsgRequestExternalTransactionResponse();
|
|
2667
|
+
message.code = object.code ?? "";
|
|
2668
|
+
message.msg = object.msg ?? "";
|
|
2669
|
+
return message;
|
|
2670
|
+
},
|
|
2671
|
+
};
|
|
2672
|
+
class MsgClientImpl {
|
|
2673
|
+
rpc;
|
|
2674
|
+
constructor(rpc) {
|
|
2675
|
+
this.rpc = rpc;
|
|
2676
|
+
this.RequestTransaction = this.RequestTransaction.bind(this);
|
|
2677
|
+
this.FinalizeTransaction = this.FinalizeTransaction.bind(this);
|
|
2678
|
+
this.RequestProvisionTransaction = this.RequestProvisionTransaction.bind(this);
|
|
2679
|
+
this.CancelTransaction = this.CancelTransaction.bind(this);
|
|
2680
|
+
this.SetTxHash = this.SetTxHash.bind(this);
|
|
2681
|
+
this.SetTxProcess = this.SetTxProcess.bind(this);
|
|
2682
|
+
this.FinalizeProvisionTransaction = this.FinalizeProvisionTransaction.bind(this);
|
|
2683
|
+
this.RequestDrainTransaction = this.RequestDrainTransaction.bind(this);
|
|
2684
|
+
this.FinalizeDrainTransaction = this.FinalizeDrainTransaction.bind(this);
|
|
2685
|
+
this.RequestHtlcLock = this.RequestHtlcLock.bind(this);
|
|
2686
|
+
this.HtlcReclaim = this.HtlcReclaim.bind(this);
|
|
2687
|
+
this.UpdateLiquidityProvisionParams = this.UpdateLiquidityProvisionParams.bind(this);
|
|
2688
|
+
this.UpdateTransferLimitParams = this.UpdateTransferLimitParams.bind(this);
|
|
2689
|
+
this.FinalizeWithdrawTransaction = this.FinalizeWithdrawTransaction.bind(this);
|
|
2690
|
+
this.SetFiatTransactionParams = this.SetFiatTransactionParams.bind(this);
|
|
2691
|
+
this.ConfirmTransaction = this.ConfirmTransaction.bind(this);
|
|
2692
|
+
this.UpdateTransactionStatus = this.UpdateTransactionStatus.bind(this);
|
|
2693
|
+
this.UpdateMaxConcurrentLimit = this.UpdateMaxConcurrentLimit.bind(this);
|
|
2694
|
+
this.RequestExternalTransaction = this.RequestExternalTransaction.bind(this);
|
|
2695
|
+
}
|
|
2696
|
+
RequestTransaction(request) {
|
|
2697
|
+
const data = exports.MsgRequestTransaction.encode(request).finish();
|
|
2698
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestTransaction", data);
|
|
2699
|
+
return promise.then((data) => exports.MsgRequestTransactionResponse.decode(new minimal_1.default.Reader(data)));
|
|
2700
|
+
}
|
|
2701
|
+
FinalizeTransaction(request) {
|
|
2702
|
+
const data = exports.MsgFinalizeTransaction.encode(request).finish();
|
|
2703
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeTransaction", data);
|
|
2704
|
+
return promise.then((data) => exports.MsgFinalizeTransactionResponse.decode(new minimal_1.default.Reader(data)));
|
|
2705
|
+
}
|
|
2706
|
+
RequestProvisionTransaction(request) {
|
|
2707
|
+
const data = exports.MsgRequestProvisionTransaction.encode(request).finish();
|
|
2708
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestProvisionTransaction", data);
|
|
2709
|
+
return promise.then((data) => exports.MsgRequestProvisionTransactionResponse.decode(new minimal_1.default.Reader(data)));
|
|
2710
|
+
}
|
|
2711
|
+
CancelTransaction(request) {
|
|
2712
|
+
const data = exports.MsgCancelTransaction.encode(request).finish();
|
|
2713
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "CancelTransaction", data);
|
|
2714
|
+
return promise.then((data) => exports.MsgCancelTransactionResponse.decode(new minimal_1.default.Reader(data)));
|
|
2715
|
+
}
|
|
2716
|
+
SetTxHash(request) {
|
|
2717
|
+
const data = exports.MsgSetTxHash.encode(request).finish();
|
|
2718
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "SetTxHash", data);
|
|
2719
|
+
return promise.then((data) => exports.MsgSetTxHashResponse.decode(new minimal_1.default.Reader(data)));
|
|
2720
|
+
}
|
|
2721
|
+
SetTxProcess(request) {
|
|
2722
|
+
const data = exports.MsgSetTxProcess.encode(request).finish();
|
|
2723
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "SetTxProcess", data);
|
|
2724
|
+
return promise.then((data) => exports.MsgSetTxProcessResponse.decode(new minimal_1.default.Reader(data)));
|
|
2725
|
+
}
|
|
2726
|
+
FinalizeProvisionTransaction(request) {
|
|
2727
|
+
const data = exports.MsgFinalizeProvisionTransaction.encode(request).finish();
|
|
2728
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeProvisionTransaction", data);
|
|
2729
|
+
return promise.then((data) => exports.MsgFinalizeProvisionTransactionResponse.decode(new minimal_1.default.Reader(data)));
|
|
2730
|
+
}
|
|
2731
|
+
RequestDrainTransaction(request) {
|
|
2732
|
+
const data = exports.MsgRequestDrainTransaction.encode(request).finish();
|
|
2733
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestDrainTransaction", data);
|
|
2734
|
+
return promise.then((data) => exports.MsgRequestDrainTransactionResponse.decode(new minimal_1.default.Reader(data)));
|
|
2735
|
+
}
|
|
2736
|
+
FinalizeDrainTransaction(request) {
|
|
2737
|
+
const data = exports.MsgFinalizeDrainTransaction.encode(request).finish();
|
|
2738
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeDrainTransaction", data);
|
|
2739
|
+
return promise.then((data) => exports.MsgFinalizeDrainTransactionResponse.decode(new minimal_1.default.Reader(data)));
|
|
2740
|
+
}
|
|
2741
|
+
RequestHtlcLock(request) {
|
|
2742
|
+
const data = exports.MsgRequestHtlcLock.encode(request).finish();
|
|
2743
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestHtlcLock", data);
|
|
2744
|
+
return promise.then((data) => exports.MsgRequestHtlcLockResponse.decode(new minimal_1.default.Reader(data)));
|
|
2745
|
+
}
|
|
2746
|
+
HtlcReclaim(request) {
|
|
2747
|
+
const data = exports.MsgHtlcReclaim.encode(request).finish();
|
|
2748
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "HtlcReclaim", data);
|
|
2749
|
+
return promise.then((data) => exports.MsgHtlcReclaimResponse.decode(new minimal_1.default.Reader(data)));
|
|
2750
|
+
}
|
|
2751
|
+
UpdateLiquidityProvisionParams(request) {
|
|
2752
|
+
const data = exports.MsgUpdateLiquidityProvisionParams.encode(request).finish();
|
|
2753
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "UpdateLiquidityProvisionParams", data);
|
|
2754
|
+
return promise.then((data) => exports.MsgUpdateLiquidityProvisionParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
2755
|
+
}
|
|
2756
|
+
UpdateTransferLimitParams(request) {
|
|
2757
|
+
const data = exports.MsgUpdateTransferLimitParams.encode(request).finish();
|
|
2758
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "UpdateTransferLimitParams", data);
|
|
2759
|
+
return promise.then((data) => exports.MsgUpdateTransferLimitParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
2760
|
+
}
|
|
2761
|
+
FinalizeWithdrawTransaction(request) {
|
|
2762
|
+
const data = exports.MsgFinalizeWithdrawTransaction.encode(request).finish();
|
|
2763
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeWithdrawTransaction", data);
|
|
2764
|
+
return promise.then((data) => exports.MsgFinalizeWithdrawTransactionResponse.decode(new minimal_1.default.Reader(data)));
|
|
2765
|
+
}
|
|
2766
|
+
SetFiatTransactionParams(request) {
|
|
2767
|
+
const data = exports.MsgSetFiatTransactionParams.encode(request).finish();
|
|
2768
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "SetFiatTransactionParams", data);
|
|
2769
|
+
return promise.then((data) => exports.MsgSetFiatTransactionParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
2770
|
+
}
|
|
2771
|
+
ConfirmTransaction(request) {
|
|
2772
|
+
const data = exports.MsgConfirmTransaction.encode(request).finish();
|
|
2773
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "ConfirmTransaction", data);
|
|
2774
|
+
return promise.then((data) => exports.MsgConfirmTransactionResponse.decode(new minimal_1.default.Reader(data)));
|
|
2775
|
+
}
|
|
2776
|
+
UpdateTransactionStatus(request) {
|
|
2777
|
+
const data = exports.MsgUpdateTransactionStatus.encode(request).finish();
|
|
2778
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "UpdateTransactionStatus", data);
|
|
2779
|
+
return promise.then((data) => exports.MsgUpdateTransactionStatusResponse.decode(new minimal_1.default.Reader(data)));
|
|
2780
|
+
}
|
|
2781
|
+
UpdateMaxConcurrentLimit(request) {
|
|
2782
|
+
const data = exports.MsgUpdateMaxConcurrentLimit.encode(request).finish();
|
|
2783
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "UpdateMaxConcurrentLimit", data);
|
|
2784
|
+
return promise.then((data) => exports.MsgUpdateMaxConcurrentLimitResponse.decode(new minimal_1.default.Reader(data)));
|
|
2785
|
+
}
|
|
2786
|
+
RequestExternalTransaction(request) {
|
|
2787
|
+
const data = exports.MsgRequestExternalTransaction.encode(request).finish();
|
|
2788
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestExternalTransaction", data);
|
|
2789
|
+
return promise.then((data) => exports.MsgRequestExternalTransactionResponse.decode(new minimal_1.default.Reader(data)));
|
|
2115
2790
|
}
|
|
2116
2791
|
}
|
|
2117
2792
|
exports.MsgClientImpl = MsgClientImpl;
|