@kimafinance/kima-transaction-api 1.5.6 → 1.5.8
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/.github/workflows/dev_auto_publish_npm.yml +23 -17
- package/CHANGELOG.md +51 -0
- 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 +4 -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 +5 -0
- package/src/kima/transfer_tx.ts +1197 -673
- package/src/types.ts +12 -0
package/src/kima/transfer_tx.ts
CHANGED
|
@@ -41,6 +41,8 @@ export interface MsgFinalizeTransaction {
|
|
|
41
41
|
success: boolean;
|
|
42
42
|
signedKey: string;
|
|
43
43
|
errReason: string;
|
|
44
|
+
tssMsgId: string;
|
|
45
|
+
txType: string;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
export interface MsgFinalizeTransactionResponse {
|
|
@@ -55,6 +57,7 @@ export interface MsgFinalizeProvisionTransaction {
|
|
|
55
57
|
success: boolean;
|
|
56
58
|
signedKey: string;
|
|
57
59
|
errReason: string;
|
|
60
|
+
tssMsgId: string;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
export interface MsgFinalizeProvisionTransactionResponse {
|
|
@@ -115,11 +118,27 @@ export interface MsgSetTxProcess {
|
|
|
115
118
|
txId: number;
|
|
116
119
|
timestamp: number;
|
|
117
120
|
msgId: string;
|
|
121
|
+
handleId: number;
|
|
118
122
|
/** request_transaction, request_provision_transaction, request_drain_transaction, withdraw_pool */
|
|
119
123
|
txType: string;
|
|
124
|
+
/** the fee id for the transaction */
|
|
125
|
+
feeId: string;
|
|
126
|
+
/** the origin gas fee of the transaction */
|
|
127
|
+
originGasFee: string;
|
|
128
|
+
/** the target gas fee of the transaction */
|
|
129
|
+
targetGasFee: string;
|
|
130
|
+
/** the kima processing fee of the transaction */
|
|
131
|
+
kimaProcessingFee: string;
|
|
132
|
+
/** the total fee of the transaction */
|
|
133
|
+
totalFee: string;
|
|
134
|
+
/** the pegged to of the transaction */
|
|
135
|
+
peggedTo: string;
|
|
136
|
+
/** the expiration of the transaction */
|
|
137
|
+
expiration: number;
|
|
120
138
|
}
|
|
121
139
|
|
|
122
|
-
export interface MsgSetTxProcessResponse {
|
|
140
|
+
export interface MsgSetTxProcessResponse {
|
|
141
|
+
}
|
|
123
142
|
|
|
124
143
|
export interface MsgRequestDrainTransaction {
|
|
125
144
|
creator: string;
|
|
@@ -143,6 +162,7 @@ export interface MsgFinalizeDrainTransaction {
|
|
|
143
162
|
success: boolean;
|
|
144
163
|
signedKey: string;
|
|
145
164
|
errReason: string;
|
|
165
|
+
tssMsgId: string;
|
|
146
166
|
}
|
|
147
167
|
|
|
148
168
|
export interface MsgFinalizeDrainTransactionResponse {
|
|
@@ -160,7 +180,8 @@ export interface MsgRequestHtlcLock {
|
|
|
160
180
|
htlcAddress: string;
|
|
161
181
|
}
|
|
162
182
|
|
|
163
|
-
export interface MsgRequestHtlcLockResponse {
|
|
183
|
+
export interface MsgRequestHtlcLockResponse {
|
|
184
|
+
}
|
|
164
185
|
|
|
165
186
|
export interface MsgHtlcReclaim {
|
|
166
187
|
creator: string;
|
|
@@ -168,7 +189,8 @@ export interface MsgHtlcReclaim {
|
|
|
168
189
|
senderAddress: string;
|
|
169
190
|
}
|
|
170
191
|
|
|
171
|
-
export interface MsgHtlcReclaimResponse {
|
|
192
|
+
export interface MsgHtlcReclaimResponse {
|
|
193
|
+
}
|
|
172
194
|
|
|
173
195
|
export interface MsgUpdateLiquidityProvisionParams {
|
|
174
196
|
authority: string;
|
|
@@ -176,7 +198,8 @@ export interface MsgUpdateLiquidityProvisionParams {
|
|
|
176
198
|
maxUSDT: string;
|
|
177
199
|
}
|
|
178
200
|
|
|
179
|
-
export interface MsgUpdateLiquidityProvisionParamsResponse {
|
|
201
|
+
export interface MsgUpdateLiquidityProvisionParamsResponse {
|
|
202
|
+
}
|
|
180
203
|
|
|
181
204
|
export interface MsgUpdateTransferLimitParams {
|
|
182
205
|
authority: string;
|
|
@@ -184,7 +207,16 @@ export interface MsgUpdateTransferLimitParams {
|
|
|
184
207
|
maxUSDT: string;
|
|
185
208
|
}
|
|
186
209
|
|
|
187
|
-
export interface MsgUpdateTransferLimitParamsResponse {
|
|
210
|
+
export interface MsgUpdateTransferLimitParamsResponse {
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface MsgSetFiatTransactionParams {
|
|
214
|
+
authority: string;
|
|
215
|
+
daca: string;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface MsgSetFiatTransactionParamsResponse {
|
|
219
|
+
}
|
|
188
220
|
|
|
189
221
|
export interface MsgFinalizeWithdrawTransaction {
|
|
190
222
|
creator: string;
|
|
@@ -193,6 +225,7 @@ export interface MsgFinalizeWithdrawTransaction {
|
|
|
193
225
|
success: boolean;
|
|
194
226
|
signedKey: string;
|
|
195
227
|
errReason: string;
|
|
228
|
+
tssMsgId: string;
|
|
196
229
|
}
|
|
197
230
|
|
|
198
231
|
export interface MsgFinalizeWithdrawTransactionResponse {
|
|
@@ -200,6 +233,61 @@ export interface MsgFinalizeWithdrawTransactionResponse {
|
|
|
200
233
|
msg: string;
|
|
201
234
|
}
|
|
202
235
|
|
|
236
|
+
export interface MsgConfirmTransaction {
|
|
237
|
+
creator: string;
|
|
238
|
+
transactionId: string;
|
|
239
|
+
amount: string;
|
|
240
|
+
currency: string;
|
|
241
|
+
confirmed: boolean;
|
|
242
|
+
failReason: string;
|
|
243
|
+
timestamp: number;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export interface MsgConfirmTransactionResponse {
|
|
247
|
+
code: string;
|
|
248
|
+
msg: string;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export interface MsgUpdateTransactionStatus {
|
|
252
|
+
creator: string;
|
|
253
|
+
txId: string;
|
|
254
|
+
newStatus: string;
|
|
255
|
+
failReason: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export interface MsgUpdateTransactionStatusResponse {
|
|
259
|
+
code: string;
|
|
260
|
+
msg: string;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface MsgUpdateMaxConcurrentLimit {
|
|
264
|
+
authority: string;
|
|
265
|
+
maxLimit: number;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface MsgUpdateMaxConcurrentLimitResponse {
|
|
269
|
+
code: string;
|
|
270
|
+
msg: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface MsgRequestExternalTransaction {
|
|
274
|
+
creator: string;
|
|
275
|
+
originChain: string;
|
|
276
|
+
originAddress: string;
|
|
277
|
+
targetChain: string;
|
|
278
|
+
targetAddress: string;
|
|
279
|
+
originSymbol: string;
|
|
280
|
+
targetSymbol: string;
|
|
281
|
+
amount: string;
|
|
282
|
+
fee: string;
|
|
283
|
+
options: string;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface MsgRequestExternalTransactionResponse {
|
|
287
|
+
code: string;
|
|
288
|
+
msg: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
203
291
|
function createBaseMsgRequestTransaction(): MsgRequestTransaction {
|
|
204
292
|
return {
|
|
205
293
|
creator: "",
|
|
@@ -221,10 +309,7 @@ function createBaseMsgRequestTransaction(): MsgRequestTransaction {
|
|
|
221
309
|
}
|
|
222
310
|
|
|
223
311
|
export const MsgRequestTransaction = {
|
|
224
|
-
encode(
|
|
225
|
-
message: MsgRequestTransaction,
|
|
226
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
227
|
-
): _m0.Writer {
|
|
312
|
+
encode(message: MsgRequestTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
228
313
|
if (message.creator !== "") {
|
|
229
314
|
writer.uint32(10).string(message.creator);
|
|
230
315
|
}
|
|
@@ -273,10 +358,7 @@ export const MsgRequestTransaction = {
|
|
|
273
358
|
return writer;
|
|
274
359
|
},
|
|
275
360
|
|
|
276
|
-
decode(
|
|
277
|
-
input: _m0.Reader | Uint8Array,
|
|
278
|
-
length?: number
|
|
279
|
-
): MsgRequestTransaction {
|
|
361
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestTransaction {
|
|
280
362
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
281
363
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
282
364
|
const message = createBaseMsgRequestTransaction();
|
|
@@ -340,34 +422,18 @@ export const MsgRequestTransaction = {
|
|
|
340
422
|
return {
|
|
341
423
|
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
342
424
|
originChain: isSet(object.originChain) ? String(object.originChain) : "",
|
|
343
|
-
originAddress: isSet(object.originAddress)
|
|
344
|
-
? String(object.originAddress)
|
|
345
|
-
: "",
|
|
425
|
+
originAddress: isSet(object.originAddress) ? String(object.originAddress) : "",
|
|
346
426
|
targetChain: isSet(object.targetChain) ? String(object.targetChain) : "",
|
|
347
|
-
targetAddress: isSet(object.targetAddress)
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
originSymbol: isSet(object.originSymbol)
|
|
351
|
-
? String(object.originSymbol)
|
|
352
|
-
: "",
|
|
353
|
-
targetSymbol: isSet(object.targetSymbol)
|
|
354
|
-
? String(object.targetSymbol)
|
|
355
|
-
: "",
|
|
427
|
+
targetAddress: isSet(object.targetAddress) ? String(object.targetAddress) : "",
|
|
428
|
+
originSymbol: isSet(object.originSymbol) ? String(object.originSymbol) : "",
|
|
429
|
+
targetSymbol: isSet(object.targetSymbol) ? String(object.targetSymbol) : "",
|
|
356
430
|
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
357
431
|
fee: isSet(object.fee) ? String(object.fee) : "",
|
|
358
|
-
htlcExpirationTimestamp: isSet(object.htlcExpirationTimestamp)
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
htlcCreationHash: isSet(object.htlcCreationHash)
|
|
362
|
-
? String(object.htlcCreationHash)
|
|
363
|
-
: "",
|
|
364
|
-
htlcCreationVout: isSet(object.htlcCreationVout)
|
|
365
|
-
? Number(object.htlcCreationVout)
|
|
366
|
-
: 0,
|
|
432
|
+
htlcExpirationTimestamp: isSet(object.htlcExpirationTimestamp) ? String(object.htlcExpirationTimestamp) : "",
|
|
433
|
+
htlcCreationHash: isSet(object.htlcCreationHash) ? String(object.htlcCreationHash) : "",
|
|
434
|
+
htlcCreationVout: isSet(object.htlcCreationVout) ? Number(object.htlcCreationVout) : 0,
|
|
367
435
|
htlcVersion: isSet(object.htlcVersion) ? String(object.htlcVersion) : "",
|
|
368
|
-
senderPubKey: isSet(object.senderPubKey)
|
|
369
|
-
? bytesFromBase64(object.senderPubKey)
|
|
370
|
-
: new Uint8Array(),
|
|
436
|
+
senderPubKey: isSet(object.senderPubKey) ? bytesFromBase64(object.senderPubKey) : new Uint8Array(),
|
|
371
437
|
options: isSet(object.options) ? String(object.options) : "",
|
|
372
438
|
};
|
|
373
439
|
},
|
|
@@ -375,41 +441,27 @@ export const MsgRequestTransaction = {
|
|
|
375
441
|
toJSON(message: MsgRequestTransaction): unknown {
|
|
376
442
|
const obj: any = {};
|
|
377
443
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
378
|
-
message.originChain !== undefined &&
|
|
379
|
-
|
|
380
|
-
message.
|
|
381
|
-
|
|
382
|
-
message.
|
|
383
|
-
|
|
384
|
-
message.targetAddress !== undefined &&
|
|
385
|
-
(obj.targetAddress = message.targetAddress);
|
|
386
|
-
message.originSymbol !== undefined &&
|
|
387
|
-
(obj.originSymbol = message.originSymbol);
|
|
388
|
-
message.targetSymbol !== undefined &&
|
|
389
|
-
(obj.targetSymbol = message.targetSymbol);
|
|
444
|
+
message.originChain !== undefined && (obj.originChain = message.originChain);
|
|
445
|
+
message.originAddress !== undefined && (obj.originAddress = message.originAddress);
|
|
446
|
+
message.targetChain !== undefined && (obj.targetChain = message.targetChain);
|
|
447
|
+
message.targetAddress !== undefined && (obj.targetAddress = message.targetAddress);
|
|
448
|
+
message.originSymbol !== undefined && (obj.originSymbol = message.originSymbol);
|
|
449
|
+
message.targetSymbol !== undefined && (obj.targetSymbol = message.targetSymbol);
|
|
390
450
|
message.amount !== undefined && (obj.amount = message.amount);
|
|
391
451
|
message.fee !== undefined && (obj.fee = message.fee);
|
|
392
|
-
message.htlcExpirationTimestamp !== undefined &&
|
|
393
|
-
|
|
394
|
-
message.
|
|
395
|
-
|
|
396
|
-
message.
|
|
397
|
-
(obj.
|
|
398
|
-
|
|
399
|
-
(obj.htlcVersion = message.htlcVersion);
|
|
400
|
-
message.senderPubKey !== undefined &&
|
|
401
|
-
(obj.senderPubKey = base64FromBytes(
|
|
402
|
-
message.senderPubKey !== undefined
|
|
403
|
-
? message.senderPubKey
|
|
404
|
-
: new Uint8Array()
|
|
452
|
+
message.htlcExpirationTimestamp !== undefined && (obj.htlcExpirationTimestamp = message.htlcExpirationTimestamp);
|
|
453
|
+
message.htlcCreationHash !== undefined && (obj.htlcCreationHash = message.htlcCreationHash);
|
|
454
|
+
message.htlcCreationVout !== undefined && (obj.htlcCreationVout = Math.round(message.htlcCreationVout));
|
|
455
|
+
message.htlcVersion !== undefined && (obj.htlcVersion = message.htlcVersion);
|
|
456
|
+
message.senderPubKey !== undefined
|
|
457
|
+
&& (obj.senderPubKey = base64FromBytes(
|
|
458
|
+
message.senderPubKey !== undefined ? message.senderPubKey : new Uint8Array(),
|
|
405
459
|
));
|
|
406
460
|
message.options !== undefined && (obj.options = message.options);
|
|
407
461
|
return obj;
|
|
408
462
|
},
|
|
409
463
|
|
|
410
|
-
fromPartial<I extends Exact<DeepPartial<MsgRequestTransaction>, I>>(
|
|
411
|
-
object: I
|
|
412
|
-
): MsgRequestTransaction {
|
|
464
|
+
fromPartial<I extends Exact<DeepPartial<MsgRequestTransaction>, I>>(object: I): MsgRequestTransaction {
|
|
413
465
|
const message = createBaseMsgRequestTransaction();
|
|
414
466
|
message.creator = object.creator ?? "";
|
|
415
467
|
message.originChain = object.originChain ?? "";
|
|
@@ -435,10 +487,7 @@ function createBaseMsgRequestTransactionResponse(): MsgRequestTransactionRespons
|
|
|
435
487
|
}
|
|
436
488
|
|
|
437
489
|
export const MsgRequestTransactionResponse = {
|
|
438
|
-
encode(
|
|
439
|
-
message: MsgRequestTransactionResponse,
|
|
440
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
441
|
-
): _m0.Writer {
|
|
490
|
+
encode(message: MsgRequestTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
442
491
|
if (message.code !== "") {
|
|
443
492
|
writer.uint32(10).string(message.code);
|
|
444
493
|
}
|
|
@@ -451,10 +500,7 @@ export const MsgRequestTransactionResponse = {
|
|
|
451
500
|
return writer;
|
|
452
501
|
},
|
|
453
502
|
|
|
454
|
-
decode(
|
|
455
|
-
input: _m0.Reader | Uint8Array,
|
|
456
|
-
length?: number
|
|
457
|
-
): MsgRequestTransactionResponse {
|
|
503
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestTransactionResponse {
|
|
458
504
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
459
505
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
460
506
|
const message = createBaseMsgRequestTransactionResponse();
|
|
@@ -495,7 +541,7 @@ export const MsgRequestTransactionResponse = {
|
|
|
495
541
|
},
|
|
496
542
|
|
|
497
543
|
fromPartial<I extends Exact<DeepPartial<MsgRequestTransactionResponse>, I>>(
|
|
498
|
-
object: I
|
|
544
|
+
object: I,
|
|
499
545
|
): MsgRequestTransactionResponse {
|
|
500
546
|
const message = createBaseMsgRequestTransactionResponse();
|
|
501
547
|
message.code = object.code ?? "";
|
|
@@ -506,21 +552,11 @@ export const MsgRequestTransactionResponse = {
|
|
|
506
552
|
};
|
|
507
553
|
|
|
508
554
|
function createBaseMsgFinalizeTransaction(): MsgFinalizeTransaction {
|
|
509
|
-
return {
|
|
510
|
-
creator: "",
|
|
511
|
-
txId: 0,
|
|
512
|
-
txHash: "",
|
|
513
|
-
success: false,
|
|
514
|
-
signedKey: "",
|
|
515
|
-
errReason: "",
|
|
516
|
-
};
|
|
555
|
+
return { creator: "", txId: 0, txHash: "", success: false, signedKey: "", errReason: "", tssMsgId: "", txType: "" };
|
|
517
556
|
}
|
|
518
557
|
|
|
519
558
|
export const MsgFinalizeTransaction = {
|
|
520
|
-
encode(
|
|
521
|
-
message: MsgFinalizeTransaction,
|
|
522
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
523
|
-
): _m0.Writer {
|
|
559
|
+
encode(message: MsgFinalizeTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
524
560
|
if (message.creator !== "") {
|
|
525
561
|
writer.uint32(10).string(message.creator);
|
|
526
562
|
}
|
|
@@ -539,13 +575,16 @@ export const MsgFinalizeTransaction = {
|
|
|
539
575
|
if (message.errReason !== "") {
|
|
540
576
|
writer.uint32(50).string(message.errReason);
|
|
541
577
|
}
|
|
578
|
+
if (message.tssMsgId !== "") {
|
|
579
|
+
writer.uint32(58).string(message.tssMsgId);
|
|
580
|
+
}
|
|
581
|
+
if (message.txType !== "") {
|
|
582
|
+
writer.uint32(66).string(message.txType);
|
|
583
|
+
}
|
|
542
584
|
return writer;
|
|
543
585
|
},
|
|
544
586
|
|
|
545
|
-
decode(
|
|
546
|
-
input: _m0.Reader | Uint8Array,
|
|
547
|
-
length?: number
|
|
548
|
-
): MsgFinalizeTransaction {
|
|
587
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeTransaction {
|
|
549
588
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
550
589
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
551
590
|
const message = createBaseMsgFinalizeTransaction();
|
|
@@ -570,6 +609,12 @@ export const MsgFinalizeTransaction = {
|
|
|
570
609
|
case 6:
|
|
571
610
|
message.errReason = reader.string();
|
|
572
611
|
break;
|
|
612
|
+
case 7:
|
|
613
|
+
message.tssMsgId = reader.string();
|
|
614
|
+
break;
|
|
615
|
+
case 8:
|
|
616
|
+
message.txType = reader.string();
|
|
617
|
+
break;
|
|
573
618
|
default:
|
|
574
619
|
reader.skipType(tag & 7);
|
|
575
620
|
break;
|
|
@@ -586,6 +631,8 @@ export const MsgFinalizeTransaction = {
|
|
|
586
631
|
success: isSet(object.success) ? Boolean(object.success) : false,
|
|
587
632
|
signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
|
|
588
633
|
errReason: isSet(object.errReason) ? String(object.errReason) : "",
|
|
634
|
+
tssMsgId: isSet(object.tssMsgId) ? String(object.tssMsgId) : "",
|
|
635
|
+
txType: isSet(object.txType) ? String(object.txType) : "",
|
|
589
636
|
};
|
|
590
637
|
},
|
|
591
638
|
|
|
@@ -597,12 +644,12 @@ export const MsgFinalizeTransaction = {
|
|
|
597
644
|
message.success !== undefined && (obj.success = message.success);
|
|
598
645
|
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
599
646
|
message.errReason !== undefined && (obj.errReason = message.errReason);
|
|
647
|
+
message.tssMsgId !== undefined && (obj.tssMsgId = message.tssMsgId);
|
|
648
|
+
message.txType !== undefined && (obj.txType = message.txType);
|
|
600
649
|
return obj;
|
|
601
650
|
},
|
|
602
651
|
|
|
603
|
-
fromPartial<I extends Exact<DeepPartial<MsgFinalizeTransaction>, I>>(
|
|
604
|
-
object: I
|
|
605
|
-
): MsgFinalizeTransaction {
|
|
652
|
+
fromPartial<I extends Exact<DeepPartial<MsgFinalizeTransaction>, I>>(object: I): MsgFinalizeTransaction {
|
|
606
653
|
const message = createBaseMsgFinalizeTransaction();
|
|
607
654
|
message.creator = object.creator ?? "";
|
|
608
655
|
message.txId = object.txId ?? 0;
|
|
@@ -610,6 +657,8 @@ export const MsgFinalizeTransaction = {
|
|
|
610
657
|
message.success = object.success ?? false;
|
|
611
658
|
message.signedKey = object.signedKey ?? "";
|
|
612
659
|
message.errReason = object.errReason ?? "";
|
|
660
|
+
message.tssMsgId = object.tssMsgId ?? "";
|
|
661
|
+
message.txType = object.txType ?? "";
|
|
613
662
|
return message;
|
|
614
663
|
},
|
|
615
664
|
};
|
|
@@ -619,10 +668,7 @@ function createBaseMsgFinalizeTransactionResponse(): MsgFinalizeTransactionRespo
|
|
|
619
668
|
}
|
|
620
669
|
|
|
621
670
|
export const MsgFinalizeTransactionResponse = {
|
|
622
|
-
encode(
|
|
623
|
-
message: MsgFinalizeTransactionResponse,
|
|
624
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
625
|
-
): _m0.Writer {
|
|
671
|
+
encode(message: MsgFinalizeTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
626
672
|
if (message.code !== "") {
|
|
627
673
|
writer.uint32(10).string(message.code);
|
|
628
674
|
}
|
|
@@ -632,10 +678,7 @@ export const MsgFinalizeTransactionResponse = {
|
|
|
632
678
|
return writer;
|
|
633
679
|
},
|
|
634
680
|
|
|
635
|
-
decode(
|
|
636
|
-
input: _m0.Reader | Uint8Array,
|
|
637
|
-
length?: number
|
|
638
|
-
): MsgFinalizeTransactionResponse {
|
|
681
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeTransactionResponse {
|
|
639
682
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
640
683
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
641
684
|
const message = createBaseMsgFinalizeTransactionResponse();
|
|
@@ -657,10 +700,7 @@ export const MsgFinalizeTransactionResponse = {
|
|
|
657
700
|
},
|
|
658
701
|
|
|
659
702
|
fromJSON(object: any): MsgFinalizeTransactionResponse {
|
|
660
|
-
return {
|
|
661
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
662
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
663
|
-
};
|
|
703
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
664
704
|
},
|
|
665
705
|
|
|
666
706
|
toJSON(message: MsgFinalizeTransactionResponse): unknown {
|
|
@@ -671,7 +711,7 @@ export const MsgFinalizeTransactionResponse = {
|
|
|
671
711
|
},
|
|
672
712
|
|
|
673
713
|
fromPartial<I extends Exact<DeepPartial<MsgFinalizeTransactionResponse>, I>>(
|
|
674
|
-
object: I
|
|
714
|
+
object: I,
|
|
675
715
|
): MsgFinalizeTransactionResponse {
|
|
676
716
|
const message = createBaseMsgFinalizeTransactionResponse();
|
|
677
717
|
message.code = object.code ?? "";
|
|
@@ -681,21 +721,11 @@ export const MsgFinalizeTransactionResponse = {
|
|
|
681
721
|
};
|
|
682
722
|
|
|
683
723
|
function createBaseMsgFinalizeProvisionTransaction(): MsgFinalizeProvisionTransaction {
|
|
684
|
-
return {
|
|
685
|
-
creator: "",
|
|
686
|
-
txId: 0,
|
|
687
|
-
txHash: "",
|
|
688
|
-
success: false,
|
|
689
|
-
signedKey: "",
|
|
690
|
-
errReason: "",
|
|
691
|
-
};
|
|
724
|
+
return { creator: "", txId: 0, txHash: "", success: false, signedKey: "", errReason: "", tssMsgId: "" };
|
|
692
725
|
}
|
|
693
726
|
|
|
694
727
|
export const MsgFinalizeProvisionTransaction = {
|
|
695
|
-
encode(
|
|
696
|
-
message: MsgFinalizeProvisionTransaction,
|
|
697
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
698
|
-
): _m0.Writer {
|
|
728
|
+
encode(message: MsgFinalizeProvisionTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
699
729
|
if (message.creator !== "") {
|
|
700
730
|
writer.uint32(10).string(message.creator);
|
|
701
731
|
}
|
|
@@ -714,13 +744,13 @@ export const MsgFinalizeProvisionTransaction = {
|
|
|
714
744
|
if (message.errReason !== "") {
|
|
715
745
|
writer.uint32(50).string(message.errReason);
|
|
716
746
|
}
|
|
747
|
+
if (message.tssMsgId !== "") {
|
|
748
|
+
writer.uint32(58).string(message.tssMsgId);
|
|
749
|
+
}
|
|
717
750
|
return writer;
|
|
718
751
|
},
|
|
719
752
|
|
|
720
|
-
decode(
|
|
721
|
-
input: _m0.Reader | Uint8Array,
|
|
722
|
-
length?: number
|
|
723
|
-
): MsgFinalizeProvisionTransaction {
|
|
753
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeProvisionTransaction {
|
|
724
754
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
725
755
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
726
756
|
const message = createBaseMsgFinalizeProvisionTransaction();
|
|
@@ -745,6 +775,9 @@ export const MsgFinalizeProvisionTransaction = {
|
|
|
745
775
|
case 6:
|
|
746
776
|
message.errReason = reader.string();
|
|
747
777
|
break;
|
|
778
|
+
case 7:
|
|
779
|
+
message.tssMsgId = reader.string();
|
|
780
|
+
break;
|
|
748
781
|
default:
|
|
749
782
|
reader.skipType(tag & 7);
|
|
750
783
|
break;
|
|
@@ -761,6 +794,7 @@ export const MsgFinalizeProvisionTransaction = {
|
|
|
761
794
|
success: isSet(object.success) ? Boolean(object.success) : false,
|
|
762
795
|
signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
|
|
763
796
|
errReason: isSet(object.errReason) ? String(object.errReason) : "",
|
|
797
|
+
tssMsgId: isSet(object.tssMsgId) ? String(object.tssMsgId) : "",
|
|
764
798
|
};
|
|
765
799
|
},
|
|
766
800
|
|
|
@@ -772,11 +806,12 @@ export const MsgFinalizeProvisionTransaction = {
|
|
|
772
806
|
message.success !== undefined && (obj.success = message.success);
|
|
773
807
|
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
774
808
|
message.errReason !== undefined && (obj.errReason = message.errReason);
|
|
809
|
+
message.tssMsgId !== undefined && (obj.tssMsgId = message.tssMsgId);
|
|
775
810
|
return obj;
|
|
776
811
|
},
|
|
777
812
|
|
|
778
813
|
fromPartial<I extends Exact<DeepPartial<MsgFinalizeProvisionTransaction>, I>>(
|
|
779
|
-
object: I
|
|
814
|
+
object: I,
|
|
780
815
|
): MsgFinalizeProvisionTransaction {
|
|
781
816
|
const message = createBaseMsgFinalizeProvisionTransaction();
|
|
782
817
|
message.creator = object.creator ?? "";
|
|
@@ -785,6 +820,7 @@ export const MsgFinalizeProvisionTransaction = {
|
|
|
785
820
|
message.success = object.success ?? false;
|
|
786
821
|
message.signedKey = object.signedKey ?? "";
|
|
787
822
|
message.errReason = object.errReason ?? "";
|
|
823
|
+
message.tssMsgId = object.tssMsgId ?? "";
|
|
788
824
|
return message;
|
|
789
825
|
},
|
|
790
826
|
};
|
|
@@ -794,10 +830,7 @@ function createBaseMsgFinalizeProvisionTransactionResponse(): MsgFinalizeProvisi
|
|
|
794
830
|
}
|
|
795
831
|
|
|
796
832
|
export const MsgFinalizeProvisionTransactionResponse = {
|
|
797
|
-
encode(
|
|
798
|
-
message: MsgFinalizeProvisionTransactionResponse,
|
|
799
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
800
|
-
): _m0.Writer {
|
|
833
|
+
encode(message: MsgFinalizeProvisionTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
801
834
|
if (message.code !== "") {
|
|
802
835
|
writer.uint32(10).string(message.code);
|
|
803
836
|
}
|
|
@@ -807,10 +840,7 @@ export const MsgFinalizeProvisionTransactionResponse = {
|
|
|
807
840
|
return writer;
|
|
808
841
|
},
|
|
809
842
|
|
|
810
|
-
decode(
|
|
811
|
-
input: _m0.Reader | Uint8Array,
|
|
812
|
-
length?: number
|
|
813
|
-
): MsgFinalizeProvisionTransactionResponse {
|
|
843
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeProvisionTransactionResponse {
|
|
814
844
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
815
845
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
816
846
|
const message = createBaseMsgFinalizeProvisionTransactionResponse();
|
|
@@ -832,10 +862,7 @@ export const MsgFinalizeProvisionTransactionResponse = {
|
|
|
832
862
|
},
|
|
833
863
|
|
|
834
864
|
fromJSON(object: any): MsgFinalizeProvisionTransactionResponse {
|
|
835
|
-
return {
|
|
836
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
837
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
838
|
-
};
|
|
865
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
839
866
|
},
|
|
840
867
|
|
|
841
868
|
toJSON(message: MsgFinalizeProvisionTransactionResponse): unknown {
|
|
@@ -845,9 +872,9 @@ export const MsgFinalizeProvisionTransactionResponse = {
|
|
|
845
872
|
return obj;
|
|
846
873
|
},
|
|
847
874
|
|
|
848
|
-
fromPartial<
|
|
849
|
-
|
|
850
|
-
|
|
875
|
+
fromPartial<I extends Exact<DeepPartial<MsgFinalizeProvisionTransactionResponse>, I>>(
|
|
876
|
+
object: I,
|
|
877
|
+
): MsgFinalizeProvisionTransactionResponse {
|
|
851
878
|
const message = createBaseMsgFinalizeProvisionTransactionResponse();
|
|
852
879
|
message.code = object.code ?? "";
|
|
853
880
|
message.msg = object.msg ?? "";
|
|
@@ -872,10 +899,7 @@ function createBaseMsgRequestProvisionTransaction(): MsgRequestProvisionTransact
|
|
|
872
899
|
}
|
|
873
900
|
|
|
874
901
|
export const MsgRequestProvisionTransaction = {
|
|
875
|
-
encode(
|
|
876
|
-
message: MsgRequestProvisionTransaction,
|
|
877
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
878
|
-
): _m0.Writer {
|
|
902
|
+
encode(message: MsgRequestProvisionTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
879
903
|
if (message.creator !== "") {
|
|
880
904
|
writer.uint32(10).string(message.creator);
|
|
881
905
|
}
|
|
@@ -912,10 +936,7 @@ export const MsgRequestProvisionTransaction = {
|
|
|
912
936
|
return writer;
|
|
913
937
|
},
|
|
914
938
|
|
|
915
|
-
decode(
|
|
916
|
-
input: _m0.Reader | Uint8Array,
|
|
917
|
-
length?: number
|
|
918
|
-
): MsgRequestProvisionTransaction {
|
|
939
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestProvisionTransaction {
|
|
919
940
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
920
941
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
921
942
|
const message = createBaseMsgRequestProvisionTransaction();
|
|
@@ -971,19 +992,11 @@ export const MsgRequestProvisionTransaction = {
|
|
|
971
992
|
symbol: isSet(object.symbol) ? String(object.symbol) : "",
|
|
972
993
|
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
973
994
|
options: isSet(object.options) ? String(object.options) : "",
|
|
974
|
-
htlcExpirationTimestamp: isSet(object.htlcExpirationTimestamp)
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
htlcCreationHash: isSet(object.htlcCreationHash)
|
|
978
|
-
? String(object.htlcCreationHash)
|
|
979
|
-
: "",
|
|
980
|
-
htlcCreationVout: isSet(object.htlcCreationVout)
|
|
981
|
-
? Number(object.htlcCreationVout)
|
|
982
|
-
: 0,
|
|
995
|
+
htlcExpirationTimestamp: isSet(object.htlcExpirationTimestamp) ? String(object.htlcExpirationTimestamp) : "",
|
|
996
|
+
htlcCreationHash: isSet(object.htlcCreationHash) ? String(object.htlcCreationHash) : "",
|
|
997
|
+
htlcCreationVout: isSet(object.htlcCreationVout) ? Number(object.htlcCreationVout) : 0,
|
|
983
998
|
htlcVersion: isSet(object.htlcVersion) ? String(object.htlcVersion) : "",
|
|
984
|
-
senderPubKey: isSet(object.senderPubKey)
|
|
985
|
-
? bytesFromBase64(object.senderPubKey)
|
|
986
|
-
: new Uint8Array(),
|
|
999
|
+
senderPubKey: isSet(object.senderPubKey) ? bytesFromBase64(object.senderPubKey) : new Uint8Array(),
|
|
987
1000
|
};
|
|
988
1001
|
},
|
|
989
1002
|
|
|
@@ -991,30 +1004,23 @@ export const MsgRequestProvisionTransaction = {
|
|
|
991
1004
|
const obj: any = {};
|
|
992
1005
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
993
1006
|
message.chain !== undefined && (obj.chain = message.chain);
|
|
994
|
-
message.fromAddress !== undefined &&
|
|
995
|
-
(obj.fromAddress = message.fromAddress);
|
|
1007
|
+
message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress);
|
|
996
1008
|
message.symbol !== undefined && (obj.symbol = message.symbol);
|
|
997
1009
|
message.amount !== undefined && (obj.amount = message.amount);
|
|
998
1010
|
message.options !== undefined && (obj.options = message.options);
|
|
999
|
-
message.htlcExpirationTimestamp !== undefined &&
|
|
1000
|
-
|
|
1001
|
-
message.
|
|
1002
|
-
|
|
1003
|
-
message.
|
|
1004
|
-
(obj.
|
|
1005
|
-
|
|
1006
|
-
(obj.htlcVersion = message.htlcVersion);
|
|
1007
|
-
message.senderPubKey !== undefined &&
|
|
1008
|
-
(obj.senderPubKey = base64FromBytes(
|
|
1009
|
-
message.senderPubKey !== undefined
|
|
1010
|
-
? message.senderPubKey
|
|
1011
|
-
: new Uint8Array()
|
|
1011
|
+
message.htlcExpirationTimestamp !== undefined && (obj.htlcExpirationTimestamp = message.htlcExpirationTimestamp);
|
|
1012
|
+
message.htlcCreationHash !== undefined && (obj.htlcCreationHash = message.htlcCreationHash);
|
|
1013
|
+
message.htlcCreationVout !== undefined && (obj.htlcCreationVout = Math.round(message.htlcCreationVout));
|
|
1014
|
+
message.htlcVersion !== undefined && (obj.htlcVersion = message.htlcVersion);
|
|
1015
|
+
message.senderPubKey !== undefined
|
|
1016
|
+
&& (obj.senderPubKey = base64FromBytes(
|
|
1017
|
+
message.senderPubKey !== undefined ? message.senderPubKey : new Uint8Array(),
|
|
1012
1018
|
));
|
|
1013
1019
|
return obj;
|
|
1014
1020
|
},
|
|
1015
1021
|
|
|
1016
1022
|
fromPartial<I extends Exact<DeepPartial<MsgRequestProvisionTransaction>, I>>(
|
|
1017
|
-
object: I
|
|
1023
|
+
object: I,
|
|
1018
1024
|
): MsgRequestProvisionTransaction {
|
|
1019
1025
|
const message = createBaseMsgRequestProvisionTransaction();
|
|
1020
1026
|
message.creator = object.creator ?? "";
|
|
@@ -1037,10 +1043,7 @@ function createBaseMsgRequestProvisionTransactionResponse(): MsgRequestProvision
|
|
|
1037
1043
|
}
|
|
1038
1044
|
|
|
1039
1045
|
export const MsgRequestProvisionTransactionResponse = {
|
|
1040
|
-
encode(
|
|
1041
|
-
message: MsgRequestProvisionTransactionResponse,
|
|
1042
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1043
|
-
): _m0.Writer {
|
|
1046
|
+
encode(message: MsgRequestProvisionTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1044
1047
|
if (message.code !== "") {
|
|
1045
1048
|
writer.uint32(10).string(message.code);
|
|
1046
1049
|
}
|
|
@@ -1053,10 +1056,7 @@ export const MsgRequestProvisionTransactionResponse = {
|
|
|
1053
1056
|
return writer;
|
|
1054
1057
|
},
|
|
1055
1058
|
|
|
1056
|
-
decode(
|
|
1057
|
-
input: _m0.Reader | Uint8Array,
|
|
1058
|
-
length?: number
|
|
1059
|
-
): MsgRequestProvisionTransactionResponse {
|
|
1059
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestProvisionTransactionResponse {
|
|
1060
1060
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1061
1061
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1062
1062
|
const message = createBaseMsgRequestProvisionTransactionResponse();
|
|
@@ -1096,9 +1096,9 @@ export const MsgRequestProvisionTransactionResponse = {
|
|
|
1096
1096
|
return obj;
|
|
1097
1097
|
},
|
|
1098
1098
|
|
|
1099
|
-
fromPartial<
|
|
1100
|
-
|
|
1101
|
-
|
|
1099
|
+
fromPartial<I extends Exact<DeepPartial<MsgRequestProvisionTransactionResponse>, I>>(
|
|
1100
|
+
object: I,
|
|
1101
|
+
): MsgRequestProvisionTransactionResponse {
|
|
1102
1102
|
const message = createBaseMsgRequestProvisionTransactionResponse();
|
|
1103
1103
|
message.code = object.code ?? "";
|
|
1104
1104
|
message.msg = object.msg ?? "";
|
|
@@ -1112,10 +1112,7 @@ function createBaseMsgCancelTransaction(): MsgCancelTransaction {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
1114
|
export const MsgCancelTransaction = {
|
|
1115
|
-
encode(
|
|
1116
|
-
message: MsgCancelTransaction,
|
|
1117
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1118
|
-
): _m0.Writer {
|
|
1115
|
+
encode(message: MsgCancelTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1119
1116
|
if (message.creator !== "") {
|
|
1120
1117
|
writer.uint32(10).string(message.creator);
|
|
1121
1118
|
}
|
|
@@ -1125,10 +1122,7 @@ export const MsgCancelTransaction = {
|
|
|
1125
1122
|
return writer;
|
|
1126
1123
|
},
|
|
1127
1124
|
|
|
1128
|
-
decode(
|
|
1129
|
-
input: _m0.Reader | Uint8Array,
|
|
1130
|
-
length?: number
|
|
1131
|
-
): MsgCancelTransaction {
|
|
1125
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransaction {
|
|
1132
1126
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1133
1127
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1134
1128
|
const message = createBaseMsgCancelTransaction();
|
|
@@ -1152,23 +1146,18 @@ export const MsgCancelTransaction = {
|
|
|
1152
1146
|
fromJSON(object: any): MsgCancelTransaction {
|
|
1153
1147
|
return {
|
|
1154
1148
|
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
1155
|
-
transactionId: isSet(object.transactionId)
|
|
1156
|
-
? String(object.transactionId)
|
|
1157
|
-
: "",
|
|
1149
|
+
transactionId: isSet(object.transactionId) ? String(object.transactionId) : "",
|
|
1158
1150
|
};
|
|
1159
1151
|
},
|
|
1160
1152
|
|
|
1161
1153
|
toJSON(message: MsgCancelTransaction): unknown {
|
|
1162
1154
|
const obj: any = {};
|
|
1163
1155
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
1164
|
-
message.transactionId !== undefined &&
|
|
1165
|
-
(obj.transactionId = message.transactionId);
|
|
1156
|
+
message.transactionId !== undefined && (obj.transactionId = message.transactionId);
|
|
1166
1157
|
return obj;
|
|
1167
1158
|
},
|
|
1168
1159
|
|
|
1169
|
-
fromPartial<I extends Exact<DeepPartial<MsgCancelTransaction>, I>>(
|
|
1170
|
-
object: I
|
|
1171
|
-
): MsgCancelTransaction {
|
|
1160
|
+
fromPartial<I extends Exact<DeepPartial<MsgCancelTransaction>, I>>(object: I): MsgCancelTransaction {
|
|
1172
1161
|
const message = createBaseMsgCancelTransaction();
|
|
1173
1162
|
message.creator = object.creator ?? "";
|
|
1174
1163
|
message.transactionId = object.transactionId ?? "";
|
|
@@ -1181,10 +1170,7 @@ function createBaseMsgCancelTransactionResponse(): MsgCancelTransactionResponse
|
|
|
1181
1170
|
}
|
|
1182
1171
|
|
|
1183
1172
|
export const MsgCancelTransactionResponse = {
|
|
1184
|
-
encode(
|
|
1185
|
-
message: MsgCancelTransactionResponse,
|
|
1186
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1187
|
-
): _m0.Writer {
|
|
1173
|
+
encode(message: MsgCancelTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1188
1174
|
if (message.code !== "") {
|
|
1189
1175
|
writer.uint32(10).string(message.code);
|
|
1190
1176
|
}
|
|
@@ -1194,10 +1180,7 @@ export const MsgCancelTransactionResponse = {
|
|
|
1194
1180
|
return writer;
|
|
1195
1181
|
},
|
|
1196
1182
|
|
|
1197
|
-
decode(
|
|
1198
|
-
input: _m0.Reader | Uint8Array,
|
|
1199
|
-
length?: number
|
|
1200
|
-
): MsgCancelTransactionResponse {
|
|
1183
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransactionResponse {
|
|
1201
1184
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1202
1185
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1203
1186
|
const message = createBaseMsgCancelTransactionResponse();
|
|
@@ -1219,10 +1202,7 @@ export const MsgCancelTransactionResponse = {
|
|
|
1219
1202
|
},
|
|
1220
1203
|
|
|
1221
1204
|
fromJSON(object: any): MsgCancelTransactionResponse {
|
|
1222
|
-
return {
|
|
1223
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
1224
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
1225
|
-
};
|
|
1205
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
1226
1206
|
},
|
|
1227
1207
|
|
|
1228
1208
|
toJSON(message: MsgCancelTransactionResponse): unknown {
|
|
@@ -1232,9 +1212,7 @@ export const MsgCancelTransactionResponse = {
|
|
|
1232
1212
|
return obj;
|
|
1233
1213
|
},
|
|
1234
1214
|
|
|
1235
|
-
fromPartial<I extends Exact<DeepPartial<MsgCancelTransactionResponse>, I>>(
|
|
1236
|
-
object: I
|
|
1237
|
-
): MsgCancelTransactionResponse {
|
|
1215
|
+
fromPartial<I extends Exact<DeepPartial<MsgCancelTransactionResponse>, I>>(object: I): MsgCancelTransactionResponse {
|
|
1238
1216
|
const message = createBaseMsgCancelTransactionResponse();
|
|
1239
1217
|
message.code = object.code ?? "";
|
|
1240
1218
|
message.msg = object.msg ?? "";
|
|
@@ -1247,10 +1225,7 @@ function createBaseMsgSetTxHash(): MsgSetTxHash {
|
|
|
1247
1225
|
}
|
|
1248
1226
|
|
|
1249
1227
|
export const MsgSetTxHash = {
|
|
1250
|
-
encode(
|
|
1251
|
-
message: MsgSetTxHash,
|
|
1252
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1253
|
-
): _m0.Writer {
|
|
1228
|
+
encode(message: MsgSetTxHash, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1254
1229
|
if (message.creator !== "") {
|
|
1255
1230
|
writer.uint32(10).string(message.creator);
|
|
1256
1231
|
}
|
|
@@ -1311,9 +1286,7 @@ export const MsgSetTxHash = {
|
|
|
1311
1286
|
return obj;
|
|
1312
1287
|
},
|
|
1313
1288
|
|
|
1314
|
-
fromPartial<I extends Exact<DeepPartial<MsgSetTxHash>, I>>(
|
|
1315
|
-
object: I
|
|
1316
|
-
): MsgSetTxHash {
|
|
1289
|
+
fromPartial<I extends Exact<DeepPartial<MsgSetTxHash>, I>>(object: I): MsgSetTxHash {
|
|
1317
1290
|
const message = createBaseMsgSetTxHash();
|
|
1318
1291
|
message.creator = object.creator ?? "";
|
|
1319
1292
|
message.txId = object.txId ?? 0;
|
|
@@ -1328,10 +1301,7 @@ function createBaseMsgSetTxHashResponse(): MsgSetTxHashResponse {
|
|
|
1328
1301
|
}
|
|
1329
1302
|
|
|
1330
1303
|
export const MsgSetTxHashResponse = {
|
|
1331
|
-
encode(
|
|
1332
|
-
message: MsgSetTxHashResponse,
|
|
1333
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1334
|
-
): _m0.Writer {
|
|
1304
|
+
encode(message: MsgSetTxHashResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1335
1305
|
if (message.code !== "") {
|
|
1336
1306
|
writer.uint32(10).string(message.code);
|
|
1337
1307
|
}
|
|
@@ -1341,10 +1311,7 @@ export const MsgSetTxHashResponse = {
|
|
|
1341
1311
|
return writer;
|
|
1342
1312
|
},
|
|
1343
1313
|
|
|
1344
|
-
decode(
|
|
1345
|
-
input: _m0.Reader | Uint8Array,
|
|
1346
|
-
length?: number
|
|
1347
|
-
): MsgSetTxHashResponse {
|
|
1314
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxHashResponse {
|
|
1348
1315
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1349
1316
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1350
1317
|
const message = createBaseMsgSetTxHashResponse();
|
|
@@ -1366,10 +1333,7 @@ export const MsgSetTxHashResponse = {
|
|
|
1366
1333
|
},
|
|
1367
1334
|
|
|
1368
1335
|
fromJSON(object: any): MsgSetTxHashResponse {
|
|
1369
|
-
return {
|
|
1370
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
1371
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
1372
|
-
};
|
|
1336
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
1373
1337
|
},
|
|
1374
1338
|
|
|
1375
1339
|
toJSON(message: MsgSetTxHashResponse): unknown {
|
|
@@ -1379,9 +1343,7 @@ export const MsgSetTxHashResponse = {
|
|
|
1379
1343
|
return obj;
|
|
1380
1344
|
},
|
|
1381
1345
|
|
|
1382
|
-
fromPartial<I extends Exact<DeepPartial<MsgSetTxHashResponse>, I>>(
|
|
1383
|
-
object: I
|
|
1384
|
-
): MsgSetTxHashResponse {
|
|
1346
|
+
fromPartial<I extends Exact<DeepPartial<MsgSetTxHashResponse>, I>>(object: I): MsgSetTxHashResponse {
|
|
1385
1347
|
const message = createBaseMsgSetTxHashResponse();
|
|
1386
1348
|
message.code = object.code ?? "";
|
|
1387
1349
|
message.msg = object.msg ?? "";
|
|
@@ -1390,14 +1352,25 @@ export const MsgSetTxHashResponse = {
|
|
|
1390
1352
|
};
|
|
1391
1353
|
|
|
1392
1354
|
function createBaseMsgSetTxProcess(): MsgSetTxProcess {
|
|
1393
|
-
return {
|
|
1355
|
+
return {
|
|
1356
|
+
creator: "",
|
|
1357
|
+
txId: 0,
|
|
1358
|
+
timestamp: 0,
|
|
1359
|
+
msgId: "",
|
|
1360
|
+
handleId: 0,
|
|
1361
|
+
txType: "",
|
|
1362
|
+
feeId: "",
|
|
1363
|
+
originGasFee: "",
|
|
1364
|
+
targetGasFee: "",
|
|
1365
|
+
kimaProcessingFee: "",
|
|
1366
|
+
totalFee: "",
|
|
1367
|
+
peggedTo: "",
|
|
1368
|
+
expiration: 0,
|
|
1369
|
+
};
|
|
1394
1370
|
}
|
|
1395
1371
|
|
|
1396
1372
|
export const MsgSetTxProcess = {
|
|
1397
|
-
encode(
|
|
1398
|
-
message: MsgSetTxProcess,
|
|
1399
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1400
|
-
): _m0.Writer {
|
|
1373
|
+
encode(message: MsgSetTxProcess, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1401
1374
|
if (message.creator !== "") {
|
|
1402
1375
|
writer.uint32(10).string(message.creator);
|
|
1403
1376
|
}
|
|
@@ -1410,8 +1383,32 @@ export const MsgSetTxProcess = {
|
|
|
1410
1383
|
if (message.msgId !== "") {
|
|
1411
1384
|
writer.uint32(34).string(message.msgId);
|
|
1412
1385
|
}
|
|
1386
|
+
if (message.handleId !== 0) {
|
|
1387
|
+
writer.uint32(40).uint64(message.handleId);
|
|
1388
|
+
}
|
|
1413
1389
|
if (message.txType !== "") {
|
|
1414
|
-
writer.uint32(
|
|
1390
|
+
writer.uint32(50).string(message.txType);
|
|
1391
|
+
}
|
|
1392
|
+
if (message.feeId !== "") {
|
|
1393
|
+
writer.uint32(58).string(message.feeId);
|
|
1394
|
+
}
|
|
1395
|
+
if (message.originGasFee !== "") {
|
|
1396
|
+
writer.uint32(66).string(message.originGasFee);
|
|
1397
|
+
}
|
|
1398
|
+
if (message.targetGasFee !== "") {
|
|
1399
|
+
writer.uint32(74).string(message.targetGasFee);
|
|
1400
|
+
}
|
|
1401
|
+
if (message.kimaProcessingFee !== "") {
|
|
1402
|
+
writer.uint32(82).string(message.kimaProcessingFee);
|
|
1403
|
+
}
|
|
1404
|
+
if (message.totalFee !== "") {
|
|
1405
|
+
writer.uint32(90).string(message.totalFee);
|
|
1406
|
+
}
|
|
1407
|
+
if (message.peggedTo !== "") {
|
|
1408
|
+
writer.uint32(98).string(message.peggedTo);
|
|
1409
|
+
}
|
|
1410
|
+
if (message.expiration !== 0) {
|
|
1411
|
+
writer.uint32(104).int32(message.expiration);
|
|
1415
1412
|
}
|
|
1416
1413
|
return writer;
|
|
1417
1414
|
},
|
|
@@ -1436,8 +1433,32 @@ export const MsgSetTxProcess = {
|
|
|
1436
1433
|
message.msgId = reader.string();
|
|
1437
1434
|
break;
|
|
1438
1435
|
case 5:
|
|
1436
|
+
message.handleId = longToNumber(reader.uint64() as Long);
|
|
1437
|
+
break;
|
|
1438
|
+
case 6:
|
|
1439
1439
|
message.txType = reader.string();
|
|
1440
1440
|
break;
|
|
1441
|
+
case 7:
|
|
1442
|
+
message.feeId = reader.string();
|
|
1443
|
+
break;
|
|
1444
|
+
case 8:
|
|
1445
|
+
message.originGasFee = reader.string();
|
|
1446
|
+
break;
|
|
1447
|
+
case 9:
|
|
1448
|
+
message.targetGasFee = reader.string();
|
|
1449
|
+
break;
|
|
1450
|
+
case 10:
|
|
1451
|
+
message.kimaProcessingFee = reader.string();
|
|
1452
|
+
break;
|
|
1453
|
+
case 11:
|
|
1454
|
+
message.totalFee = reader.string();
|
|
1455
|
+
break;
|
|
1456
|
+
case 12:
|
|
1457
|
+
message.peggedTo = reader.string();
|
|
1458
|
+
break;
|
|
1459
|
+
case 13:
|
|
1460
|
+
message.expiration = reader.int32();
|
|
1461
|
+
break;
|
|
1441
1462
|
default:
|
|
1442
1463
|
reader.skipType(tag & 7);
|
|
1443
1464
|
break;
|
|
@@ -1452,7 +1473,15 @@ export const MsgSetTxProcess = {
|
|
|
1452
1473
|
txId: isSet(object.txId) ? Number(object.txId) : 0,
|
|
1453
1474
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1454
1475
|
msgId: isSet(object.msgId) ? String(object.msgId) : "",
|
|
1476
|
+
handleId: isSet(object.handleId) ? Number(object.handleId) : 0,
|
|
1455
1477
|
txType: isSet(object.txType) ? String(object.txType) : "",
|
|
1478
|
+
feeId: isSet(object.feeId) ? String(object.feeId) : "",
|
|
1479
|
+
originGasFee: isSet(object.originGasFee) ? String(object.originGasFee) : "",
|
|
1480
|
+
targetGasFee: isSet(object.targetGasFee) ? String(object.targetGasFee) : "",
|
|
1481
|
+
kimaProcessingFee: isSet(object.kimaProcessingFee) ? String(object.kimaProcessingFee) : "",
|
|
1482
|
+
totalFee: isSet(object.totalFee) ? String(object.totalFee) : "",
|
|
1483
|
+
peggedTo: isSet(object.peggedTo) ? String(object.peggedTo) : "",
|
|
1484
|
+
expiration: isSet(object.expiration) ? Number(object.expiration) : 0,
|
|
1456
1485
|
};
|
|
1457
1486
|
},
|
|
1458
1487
|
|
|
@@ -1460,22 +1489,35 @@ export const MsgSetTxProcess = {
|
|
|
1460
1489
|
const obj: any = {};
|
|
1461
1490
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
1462
1491
|
message.txId !== undefined && (obj.txId = Math.round(message.txId));
|
|
1463
|
-
message.timestamp !== undefined &&
|
|
1464
|
-
(obj.timestamp = Math.round(message.timestamp));
|
|
1492
|
+
message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
|
|
1465
1493
|
message.msgId !== undefined && (obj.msgId = message.msgId);
|
|
1494
|
+
message.handleId !== undefined && (obj.handleId = Math.round(message.handleId));
|
|
1466
1495
|
message.txType !== undefined && (obj.txType = message.txType);
|
|
1496
|
+
message.feeId !== undefined && (obj.feeId = message.feeId);
|
|
1497
|
+
message.originGasFee !== undefined && (obj.originGasFee = message.originGasFee);
|
|
1498
|
+
message.targetGasFee !== undefined && (obj.targetGasFee = message.targetGasFee);
|
|
1499
|
+
message.kimaProcessingFee !== undefined && (obj.kimaProcessingFee = message.kimaProcessingFee);
|
|
1500
|
+
message.totalFee !== undefined && (obj.totalFee = message.totalFee);
|
|
1501
|
+
message.peggedTo !== undefined && (obj.peggedTo = message.peggedTo);
|
|
1502
|
+
message.expiration !== undefined && (obj.expiration = Math.round(message.expiration));
|
|
1467
1503
|
return obj;
|
|
1468
1504
|
},
|
|
1469
1505
|
|
|
1470
|
-
fromPartial<I extends Exact<DeepPartial<MsgSetTxProcess>, I>>(
|
|
1471
|
-
object: I
|
|
1472
|
-
): MsgSetTxProcess {
|
|
1506
|
+
fromPartial<I extends Exact<DeepPartial<MsgSetTxProcess>, I>>(object: I): MsgSetTxProcess {
|
|
1473
1507
|
const message = createBaseMsgSetTxProcess();
|
|
1474
1508
|
message.creator = object.creator ?? "";
|
|
1475
1509
|
message.txId = object.txId ?? 0;
|
|
1476
1510
|
message.timestamp = object.timestamp ?? 0;
|
|
1477
1511
|
message.msgId = object.msgId ?? "";
|
|
1512
|
+
message.handleId = object.handleId ?? 0;
|
|
1478
1513
|
message.txType = object.txType ?? "";
|
|
1514
|
+
message.feeId = object.feeId ?? "";
|
|
1515
|
+
message.originGasFee = object.originGasFee ?? "";
|
|
1516
|
+
message.targetGasFee = object.targetGasFee ?? "";
|
|
1517
|
+
message.kimaProcessingFee = object.kimaProcessingFee ?? "";
|
|
1518
|
+
message.totalFee = object.totalFee ?? "";
|
|
1519
|
+
message.peggedTo = object.peggedTo ?? "";
|
|
1520
|
+
message.expiration = object.expiration ?? 0;
|
|
1479
1521
|
return message;
|
|
1480
1522
|
},
|
|
1481
1523
|
};
|
|
@@ -1485,17 +1527,11 @@ function createBaseMsgSetTxProcessResponse(): MsgSetTxProcessResponse {
|
|
|
1485
1527
|
}
|
|
1486
1528
|
|
|
1487
1529
|
export const MsgSetTxProcessResponse = {
|
|
1488
|
-
encode(
|
|
1489
|
-
_: MsgSetTxProcessResponse,
|
|
1490
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1491
|
-
): _m0.Writer {
|
|
1530
|
+
encode(_: MsgSetTxProcessResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1492
1531
|
return writer;
|
|
1493
1532
|
},
|
|
1494
1533
|
|
|
1495
|
-
decode(
|
|
1496
|
-
input: _m0.Reader | Uint8Array,
|
|
1497
|
-
length?: number
|
|
1498
|
-
): MsgSetTxProcessResponse {
|
|
1534
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxProcessResponse {
|
|
1499
1535
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1500
1536
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1501
1537
|
const message = createBaseMsgSetTxProcessResponse();
|
|
@@ -1519,30 +1555,18 @@ export const MsgSetTxProcessResponse = {
|
|
|
1519
1555
|
return obj;
|
|
1520
1556
|
},
|
|
1521
1557
|
|
|
1522
|
-
fromPartial<I extends Exact<DeepPartial<MsgSetTxProcessResponse>, I>>(
|
|
1523
|
-
_: I
|
|
1524
|
-
): MsgSetTxProcessResponse {
|
|
1558
|
+
fromPartial<I extends Exact<DeepPartial<MsgSetTxProcessResponse>, I>>(_: I): MsgSetTxProcessResponse {
|
|
1525
1559
|
const message = createBaseMsgSetTxProcessResponse();
|
|
1526
1560
|
return message;
|
|
1527
1561
|
},
|
|
1528
1562
|
};
|
|
1529
1563
|
|
|
1530
1564
|
function createBaseMsgRequestDrainTransaction(): MsgRequestDrainTransaction {
|
|
1531
|
-
return {
|
|
1532
|
-
creator: "",
|
|
1533
|
-
toChain: "",
|
|
1534
|
-
toAddress: "",
|
|
1535
|
-
symbol: "",
|
|
1536
|
-
amount: "",
|
|
1537
|
-
options: "",
|
|
1538
|
-
};
|
|
1565
|
+
return { creator: "", toChain: "", toAddress: "", symbol: "", amount: "", options: "" };
|
|
1539
1566
|
}
|
|
1540
1567
|
|
|
1541
1568
|
export const MsgRequestDrainTransaction = {
|
|
1542
|
-
encode(
|
|
1543
|
-
message: MsgRequestDrainTransaction,
|
|
1544
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1545
|
-
): _m0.Writer {
|
|
1569
|
+
encode(message: MsgRequestDrainTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1546
1570
|
if (message.creator !== "") {
|
|
1547
1571
|
writer.uint32(10).string(message.creator);
|
|
1548
1572
|
}
|
|
@@ -1564,10 +1588,7 @@ export const MsgRequestDrainTransaction = {
|
|
|
1564
1588
|
return writer;
|
|
1565
1589
|
},
|
|
1566
1590
|
|
|
1567
|
-
decode(
|
|
1568
|
-
input: _m0.Reader | Uint8Array,
|
|
1569
|
-
length?: number
|
|
1570
|
-
): MsgRequestDrainTransaction {
|
|
1591
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestDrainTransaction {
|
|
1571
1592
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1572
1593
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1573
1594
|
const message = createBaseMsgRequestDrainTransaction();
|
|
@@ -1622,9 +1643,7 @@ export const MsgRequestDrainTransaction = {
|
|
|
1622
1643
|
return obj;
|
|
1623
1644
|
},
|
|
1624
1645
|
|
|
1625
|
-
fromPartial<I extends Exact<DeepPartial<MsgRequestDrainTransaction>, I>>(
|
|
1626
|
-
object: I
|
|
1627
|
-
): MsgRequestDrainTransaction {
|
|
1646
|
+
fromPartial<I extends Exact<DeepPartial<MsgRequestDrainTransaction>, I>>(object: I): MsgRequestDrainTransaction {
|
|
1628
1647
|
const message = createBaseMsgRequestDrainTransaction();
|
|
1629
1648
|
message.creator = object.creator ?? "";
|
|
1630
1649
|
message.toChain = object.toChain ?? "";
|
|
@@ -1641,10 +1660,7 @@ function createBaseMsgRequestDrainTransactionResponse(): MsgRequestDrainTransact
|
|
|
1641
1660
|
}
|
|
1642
1661
|
|
|
1643
1662
|
export const MsgRequestDrainTransactionResponse = {
|
|
1644
|
-
encode(
|
|
1645
|
-
message: MsgRequestDrainTransactionResponse,
|
|
1646
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1647
|
-
): _m0.Writer {
|
|
1663
|
+
encode(message: MsgRequestDrainTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1648
1664
|
if (message.code !== "") {
|
|
1649
1665
|
writer.uint32(10).string(message.code);
|
|
1650
1666
|
}
|
|
@@ -1657,10 +1673,7 @@ export const MsgRequestDrainTransactionResponse = {
|
|
|
1657
1673
|
return writer;
|
|
1658
1674
|
},
|
|
1659
1675
|
|
|
1660
|
-
decode(
|
|
1661
|
-
input: _m0.Reader | Uint8Array,
|
|
1662
|
-
length?: number
|
|
1663
|
-
): MsgRequestDrainTransactionResponse {
|
|
1676
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestDrainTransactionResponse {
|
|
1664
1677
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1665
1678
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1666
1679
|
const message = createBaseMsgRequestDrainTransactionResponse();
|
|
@@ -1700,9 +1713,9 @@ export const MsgRequestDrainTransactionResponse = {
|
|
|
1700
1713
|
return obj;
|
|
1701
1714
|
},
|
|
1702
1715
|
|
|
1703
|
-
fromPartial<
|
|
1704
|
-
|
|
1705
|
-
|
|
1716
|
+
fromPartial<I extends Exact<DeepPartial<MsgRequestDrainTransactionResponse>, I>>(
|
|
1717
|
+
object: I,
|
|
1718
|
+
): MsgRequestDrainTransactionResponse {
|
|
1706
1719
|
const message = createBaseMsgRequestDrainTransactionResponse();
|
|
1707
1720
|
message.code = object.code ?? "";
|
|
1708
1721
|
message.msg = object.msg ?? "";
|
|
@@ -1712,21 +1725,11 @@ export const MsgRequestDrainTransactionResponse = {
|
|
|
1712
1725
|
};
|
|
1713
1726
|
|
|
1714
1727
|
function createBaseMsgFinalizeDrainTransaction(): MsgFinalizeDrainTransaction {
|
|
1715
|
-
return {
|
|
1716
|
-
creator: "",
|
|
1717
|
-
txId: 0,
|
|
1718
|
-
txHash: "",
|
|
1719
|
-
success: false,
|
|
1720
|
-
signedKey: "",
|
|
1721
|
-
errReason: "",
|
|
1722
|
-
};
|
|
1728
|
+
return { creator: "", txId: 0, txHash: "", success: false, signedKey: "", errReason: "", tssMsgId: "" };
|
|
1723
1729
|
}
|
|
1724
1730
|
|
|
1725
1731
|
export const MsgFinalizeDrainTransaction = {
|
|
1726
|
-
encode(
|
|
1727
|
-
message: MsgFinalizeDrainTransaction,
|
|
1728
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1729
|
-
): _m0.Writer {
|
|
1732
|
+
encode(message: MsgFinalizeDrainTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1730
1733
|
if (message.creator !== "") {
|
|
1731
1734
|
writer.uint32(10).string(message.creator);
|
|
1732
1735
|
}
|
|
@@ -1745,13 +1748,13 @@ export const MsgFinalizeDrainTransaction = {
|
|
|
1745
1748
|
if (message.errReason !== "") {
|
|
1746
1749
|
writer.uint32(50).string(message.errReason);
|
|
1747
1750
|
}
|
|
1751
|
+
if (message.tssMsgId !== "") {
|
|
1752
|
+
writer.uint32(58).string(message.tssMsgId);
|
|
1753
|
+
}
|
|
1748
1754
|
return writer;
|
|
1749
1755
|
},
|
|
1750
1756
|
|
|
1751
|
-
decode(
|
|
1752
|
-
input: _m0.Reader | Uint8Array,
|
|
1753
|
-
length?: number
|
|
1754
|
-
): MsgFinalizeDrainTransaction {
|
|
1757
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeDrainTransaction {
|
|
1755
1758
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1756
1759
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1757
1760
|
const message = createBaseMsgFinalizeDrainTransaction();
|
|
@@ -1776,6 +1779,9 @@ export const MsgFinalizeDrainTransaction = {
|
|
|
1776
1779
|
case 6:
|
|
1777
1780
|
message.errReason = reader.string();
|
|
1778
1781
|
break;
|
|
1782
|
+
case 7:
|
|
1783
|
+
message.tssMsgId = reader.string();
|
|
1784
|
+
break;
|
|
1779
1785
|
default:
|
|
1780
1786
|
reader.skipType(tag & 7);
|
|
1781
1787
|
break;
|
|
@@ -1792,6 +1798,7 @@ export const MsgFinalizeDrainTransaction = {
|
|
|
1792
1798
|
success: isSet(object.success) ? Boolean(object.success) : false,
|
|
1793
1799
|
signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
|
|
1794
1800
|
errReason: isSet(object.errReason) ? String(object.errReason) : "",
|
|
1801
|
+
tssMsgId: isSet(object.tssMsgId) ? String(object.tssMsgId) : "",
|
|
1795
1802
|
};
|
|
1796
1803
|
},
|
|
1797
1804
|
|
|
@@ -1803,12 +1810,11 @@ export const MsgFinalizeDrainTransaction = {
|
|
|
1803
1810
|
message.success !== undefined && (obj.success = message.success);
|
|
1804
1811
|
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
1805
1812
|
message.errReason !== undefined && (obj.errReason = message.errReason);
|
|
1813
|
+
message.tssMsgId !== undefined && (obj.tssMsgId = message.tssMsgId);
|
|
1806
1814
|
return obj;
|
|
1807
1815
|
},
|
|
1808
1816
|
|
|
1809
|
-
fromPartial<I extends Exact<DeepPartial<MsgFinalizeDrainTransaction>, I>>(
|
|
1810
|
-
object: I
|
|
1811
|
-
): MsgFinalizeDrainTransaction {
|
|
1817
|
+
fromPartial<I extends Exact<DeepPartial<MsgFinalizeDrainTransaction>, I>>(object: I): MsgFinalizeDrainTransaction {
|
|
1812
1818
|
const message = createBaseMsgFinalizeDrainTransaction();
|
|
1813
1819
|
message.creator = object.creator ?? "";
|
|
1814
1820
|
message.txId = object.txId ?? 0;
|
|
@@ -1816,6 +1822,7 @@ export const MsgFinalizeDrainTransaction = {
|
|
|
1816
1822
|
message.success = object.success ?? false;
|
|
1817
1823
|
message.signedKey = object.signedKey ?? "";
|
|
1818
1824
|
message.errReason = object.errReason ?? "";
|
|
1825
|
+
message.tssMsgId = object.tssMsgId ?? "";
|
|
1819
1826
|
return message;
|
|
1820
1827
|
},
|
|
1821
1828
|
};
|
|
@@ -1825,10 +1832,7 @@ function createBaseMsgFinalizeDrainTransactionResponse(): MsgFinalizeDrainTransa
|
|
|
1825
1832
|
}
|
|
1826
1833
|
|
|
1827
1834
|
export const MsgFinalizeDrainTransactionResponse = {
|
|
1828
|
-
encode(
|
|
1829
|
-
message: MsgFinalizeDrainTransactionResponse,
|
|
1830
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1831
|
-
): _m0.Writer {
|
|
1835
|
+
encode(message: MsgFinalizeDrainTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1832
1836
|
if (message.code !== "") {
|
|
1833
1837
|
writer.uint32(10).string(message.code);
|
|
1834
1838
|
}
|
|
@@ -1838,10 +1842,7 @@ export const MsgFinalizeDrainTransactionResponse = {
|
|
|
1838
1842
|
return writer;
|
|
1839
1843
|
},
|
|
1840
1844
|
|
|
1841
|
-
decode(
|
|
1842
|
-
input: _m0.Reader | Uint8Array,
|
|
1843
|
-
length?: number
|
|
1844
|
-
): MsgFinalizeDrainTransactionResponse {
|
|
1845
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeDrainTransactionResponse {
|
|
1845
1846
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1846
1847
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1847
1848
|
const message = createBaseMsgFinalizeDrainTransactionResponse();
|
|
@@ -1863,10 +1864,7 @@ export const MsgFinalizeDrainTransactionResponse = {
|
|
|
1863
1864
|
},
|
|
1864
1865
|
|
|
1865
1866
|
fromJSON(object: any): MsgFinalizeDrainTransactionResponse {
|
|
1866
|
-
return {
|
|
1867
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
1868
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
1869
|
-
};
|
|
1867
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
1870
1868
|
},
|
|
1871
1869
|
|
|
1872
1870
|
toJSON(message: MsgFinalizeDrainTransactionResponse): unknown {
|
|
@@ -1876,9 +1874,9 @@ export const MsgFinalizeDrainTransactionResponse = {
|
|
|
1876
1874
|
return obj;
|
|
1877
1875
|
},
|
|
1878
1876
|
|
|
1879
|
-
fromPartial<
|
|
1880
|
-
|
|
1881
|
-
|
|
1877
|
+
fromPartial<I extends Exact<DeepPartial<MsgFinalizeDrainTransactionResponse>, I>>(
|
|
1878
|
+
object: I,
|
|
1879
|
+
): MsgFinalizeDrainTransactionResponse {
|
|
1882
1880
|
const message = createBaseMsgFinalizeDrainTransactionResponse();
|
|
1883
1881
|
message.code = object.code ?? "";
|
|
1884
1882
|
message.msg = object.msg ?? "";
|
|
@@ -1887,22 +1885,11 @@ export const MsgFinalizeDrainTransactionResponse = {
|
|
|
1887
1885
|
};
|
|
1888
1886
|
|
|
1889
1887
|
function createBaseMsgRequestHtlcLock(): MsgRequestHtlcLock {
|
|
1890
|
-
return {
|
|
1891
|
-
creator: "",
|
|
1892
|
-
fromAddress: "",
|
|
1893
|
-
senderPubkey: "",
|
|
1894
|
-
amount: "",
|
|
1895
|
-
htlcTimeout: "",
|
|
1896
|
-
txHash: "",
|
|
1897
|
-
htlcAddress: "",
|
|
1898
|
-
};
|
|
1888
|
+
return { creator: "", fromAddress: "", senderPubkey: "", amount: "", htlcTimeout: "", txHash: "", htlcAddress: "" };
|
|
1899
1889
|
}
|
|
1900
1890
|
|
|
1901
1891
|
export const MsgRequestHtlcLock = {
|
|
1902
|
-
encode(
|
|
1903
|
-
message: MsgRequestHtlcLock,
|
|
1904
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1905
|
-
): _m0.Writer {
|
|
1892
|
+
encode(message: MsgRequestHtlcLock, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1906
1893
|
if (message.creator !== "") {
|
|
1907
1894
|
writer.uint32(10).string(message.creator);
|
|
1908
1895
|
}
|
|
@@ -1967,9 +1954,7 @@ export const MsgRequestHtlcLock = {
|
|
|
1967
1954
|
return {
|
|
1968
1955
|
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
1969
1956
|
fromAddress: isSet(object.fromAddress) ? String(object.fromAddress) : "",
|
|
1970
|
-
senderPubkey: isSet(object.senderPubkey)
|
|
1971
|
-
? String(object.senderPubkey)
|
|
1972
|
-
: "",
|
|
1957
|
+
senderPubkey: isSet(object.senderPubkey) ? String(object.senderPubkey) : "",
|
|
1973
1958
|
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
1974
1959
|
htlcTimeout: isSet(object.htlcTimeout) ? String(object.htlcTimeout) : "",
|
|
1975
1960
|
txHash: isSet(object.txHash) ? String(object.txHash) : "",
|
|
@@ -1980,22 +1965,16 @@ export const MsgRequestHtlcLock = {
|
|
|
1980
1965
|
toJSON(message: MsgRequestHtlcLock): unknown {
|
|
1981
1966
|
const obj: any = {};
|
|
1982
1967
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
1983
|
-
message.fromAddress !== undefined &&
|
|
1984
|
-
|
|
1985
|
-
message.senderPubkey !== undefined &&
|
|
1986
|
-
(obj.senderPubkey = message.senderPubkey);
|
|
1968
|
+
message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress);
|
|
1969
|
+
message.senderPubkey !== undefined && (obj.senderPubkey = message.senderPubkey);
|
|
1987
1970
|
message.amount !== undefined && (obj.amount = message.amount);
|
|
1988
|
-
message.htlcTimeout !== undefined &&
|
|
1989
|
-
(obj.htlcTimeout = message.htlcTimeout);
|
|
1971
|
+
message.htlcTimeout !== undefined && (obj.htlcTimeout = message.htlcTimeout);
|
|
1990
1972
|
message.txHash !== undefined && (obj.txHash = message.txHash);
|
|
1991
|
-
message.htlcAddress !== undefined &&
|
|
1992
|
-
(obj.htlcAddress = message.htlcAddress);
|
|
1973
|
+
message.htlcAddress !== undefined && (obj.htlcAddress = message.htlcAddress);
|
|
1993
1974
|
return obj;
|
|
1994
1975
|
},
|
|
1995
1976
|
|
|
1996
|
-
fromPartial<I extends Exact<DeepPartial<MsgRequestHtlcLock>, I>>(
|
|
1997
|
-
object: I
|
|
1998
|
-
): MsgRequestHtlcLock {
|
|
1977
|
+
fromPartial<I extends Exact<DeepPartial<MsgRequestHtlcLock>, I>>(object: I): MsgRequestHtlcLock {
|
|
1999
1978
|
const message = createBaseMsgRequestHtlcLock();
|
|
2000
1979
|
message.creator = object.creator ?? "";
|
|
2001
1980
|
message.fromAddress = object.fromAddress ?? "";
|
|
@@ -2013,17 +1992,11 @@ function createBaseMsgRequestHtlcLockResponse(): MsgRequestHtlcLockResponse {
|
|
|
2013
1992
|
}
|
|
2014
1993
|
|
|
2015
1994
|
export const MsgRequestHtlcLockResponse = {
|
|
2016
|
-
encode(
|
|
2017
|
-
_: MsgRequestHtlcLockResponse,
|
|
2018
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
2019
|
-
): _m0.Writer {
|
|
1995
|
+
encode(_: MsgRequestHtlcLockResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2020
1996
|
return writer;
|
|
2021
1997
|
},
|
|
2022
1998
|
|
|
2023
|
-
decode(
|
|
2024
|
-
input: _m0.Reader | Uint8Array,
|
|
2025
|
-
length?: number
|
|
2026
|
-
): MsgRequestHtlcLockResponse {
|
|
1999
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestHtlcLockResponse {
|
|
2027
2000
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2028
2001
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2029
2002
|
const message = createBaseMsgRequestHtlcLockResponse();
|
|
@@ -2047,9 +2020,7 @@ export const MsgRequestHtlcLockResponse = {
|
|
|
2047
2020
|
return obj;
|
|
2048
2021
|
},
|
|
2049
2022
|
|
|
2050
|
-
fromPartial<I extends Exact<DeepPartial<MsgRequestHtlcLockResponse>, I>>(
|
|
2051
|
-
_: I
|
|
2052
|
-
): MsgRequestHtlcLockResponse {
|
|
2023
|
+
fromPartial<I extends Exact<DeepPartial<MsgRequestHtlcLockResponse>, I>>(_: I): MsgRequestHtlcLockResponse {
|
|
2053
2024
|
const message = createBaseMsgRequestHtlcLockResponse();
|
|
2054
2025
|
return message;
|
|
2055
2026
|
},
|
|
@@ -2060,10 +2031,7 @@ function createBaseMsgHtlcReclaim(): MsgHtlcReclaim {
|
|
|
2060
2031
|
}
|
|
2061
2032
|
|
|
2062
2033
|
export const MsgHtlcReclaim = {
|
|
2063
|
-
encode(
|
|
2064
|
-
message: MsgHtlcReclaim,
|
|
2065
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
2066
|
-
): _m0.Writer {
|
|
2034
|
+
encode(message: MsgHtlcReclaim, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2067
2035
|
if (message.creator !== "") {
|
|
2068
2036
|
writer.uint32(10).string(message.creator);
|
|
2069
2037
|
}
|
|
@@ -2104,9 +2072,7 @@ export const MsgHtlcReclaim = {
|
|
|
2104
2072
|
return {
|
|
2105
2073
|
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
2106
2074
|
txHash: isSet(object.txHash) ? String(object.txHash) : "",
|
|
2107
|
-
senderAddress: isSet(object.senderAddress)
|
|
2108
|
-
? String(object.senderAddress)
|
|
2109
|
-
: "",
|
|
2075
|
+
senderAddress: isSet(object.senderAddress) ? String(object.senderAddress) : "",
|
|
2110
2076
|
};
|
|
2111
2077
|
},
|
|
2112
2078
|
|
|
@@ -2114,14 +2080,11 @@ export const MsgHtlcReclaim = {
|
|
|
2114
2080
|
const obj: any = {};
|
|
2115
2081
|
message.creator !== undefined && (obj.creator = message.creator);
|
|
2116
2082
|
message.txHash !== undefined && (obj.txHash = message.txHash);
|
|
2117
|
-
message.senderAddress !== undefined &&
|
|
2118
|
-
(obj.senderAddress = message.senderAddress);
|
|
2083
|
+
message.senderAddress !== undefined && (obj.senderAddress = message.senderAddress);
|
|
2119
2084
|
return obj;
|
|
2120
2085
|
},
|
|
2121
2086
|
|
|
2122
|
-
fromPartial<I extends Exact<DeepPartial<MsgHtlcReclaim>, I>>(
|
|
2123
|
-
object: I
|
|
2124
|
-
): MsgHtlcReclaim {
|
|
2087
|
+
fromPartial<I extends Exact<DeepPartial<MsgHtlcReclaim>, I>>(object: I): MsgHtlcReclaim {
|
|
2125
2088
|
const message = createBaseMsgHtlcReclaim();
|
|
2126
2089
|
message.creator = object.creator ?? "";
|
|
2127
2090
|
message.txHash = object.txHash ?? "";
|
|
@@ -2135,17 +2098,11 @@ function createBaseMsgHtlcReclaimResponse(): MsgHtlcReclaimResponse {
|
|
|
2135
2098
|
}
|
|
2136
2099
|
|
|
2137
2100
|
export const MsgHtlcReclaimResponse = {
|
|
2138
|
-
encode(
|
|
2139
|
-
_: MsgHtlcReclaimResponse,
|
|
2140
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
2141
|
-
): _m0.Writer {
|
|
2101
|
+
encode(_: MsgHtlcReclaimResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2142
2102
|
return writer;
|
|
2143
2103
|
},
|
|
2144
2104
|
|
|
2145
|
-
decode(
|
|
2146
|
-
input: _m0.Reader | Uint8Array,
|
|
2147
|
-
length?: number
|
|
2148
|
-
): MsgHtlcReclaimResponse {
|
|
2105
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgHtlcReclaimResponse {
|
|
2149
2106
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2150
2107
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2151
2108
|
const message = createBaseMsgHtlcReclaimResponse();
|
|
@@ -2169,9 +2126,7 @@ export const MsgHtlcReclaimResponse = {
|
|
|
2169
2126
|
return obj;
|
|
2170
2127
|
},
|
|
2171
2128
|
|
|
2172
|
-
fromPartial<I extends Exact<DeepPartial<MsgHtlcReclaimResponse>, I>>(
|
|
2173
|
-
_: I
|
|
2174
|
-
): MsgHtlcReclaimResponse {
|
|
2129
|
+
fromPartial<I extends Exact<DeepPartial<MsgHtlcReclaimResponse>, I>>(_: I): MsgHtlcReclaimResponse {
|
|
2175
2130
|
const message = createBaseMsgHtlcReclaimResponse();
|
|
2176
2131
|
return message;
|
|
2177
2132
|
},
|
|
@@ -2182,10 +2137,7 @@ function createBaseMsgUpdateLiquidityProvisionParams(): MsgUpdateLiquidityProvis
|
|
|
2182
2137
|
}
|
|
2183
2138
|
|
|
2184
2139
|
export const MsgUpdateLiquidityProvisionParams = {
|
|
2185
|
-
encode(
|
|
2186
|
-
message: MsgUpdateLiquidityProvisionParams,
|
|
2187
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
2188
|
-
): _m0.Writer {
|
|
2140
|
+
encode(message: MsgUpdateLiquidityProvisionParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2189
2141
|
if (message.authority !== "") {
|
|
2190
2142
|
writer.uint32(10).string(message.authority);
|
|
2191
2143
|
}
|
|
@@ -2198,10 +2150,7 @@ export const MsgUpdateLiquidityProvisionParams = {
|
|
|
2198
2150
|
return writer;
|
|
2199
2151
|
},
|
|
2200
2152
|
|
|
2201
|
-
decode(
|
|
2202
|
-
input: _m0.Reader | Uint8Array,
|
|
2203
|
-
length?: number
|
|
2204
|
-
): MsgUpdateLiquidityProvisionParams {
|
|
2153
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateLiquidityProvisionParams {
|
|
2205
2154
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2206
2155
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2207
2156
|
const message = createBaseMsgUpdateLiquidityProvisionParams();
|
|
@@ -2241,9 +2190,9 @@ export const MsgUpdateLiquidityProvisionParams = {
|
|
|
2241
2190
|
return obj;
|
|
2242
2191
|
},
|
|
2243
2192
|
|
|
2244
|
-
fromPartial<
|
|
2245
|
-
|
|
2246
|
-
|
|
2193
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateLiquidityProvisionParams>, I>>(
|
|
2194
|
+
object: I,
|
|
2195
|
+
): MsgUpdateLiquidityProvisionParams {
|
|
2247
2196
|
const message = createBaseMsgUpdateLiquidityProvisionParams();
|
|
2248
2197
|
message.authority = object.authority ?? "";
|
|
2249
2198
|
message.maxBTC = object.maxBTC ?? "";
|
|
@@ -2257,17 +2206,11 @@ function createBaseMsgUpdateLiquidityProvisionParamsResponse(): MsgUpdateLiquidi
|
|
|
2257
2206
|
}
|
|
2258
2207
|
|
|
2259
2208
|
export const MsgUpdateLiquidityProvisionParamsResponse = {
|
|
2260
|
-
encode(
|
|
2261
|
-
_: MsgUpdateLiquidityProvisionParamsResponse,
|
|
2262
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
2263
|
-
): _m0.Writer {
|
|
2209
|
+
encode(_: MsgUpdateLiquidityProvisionParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2264
2210
|
return writer;
|
|
2265
2211
|
},
|
|
2266
2212
|
|
|
2267
|
-
decode(
|
|
2268
|
-
input: _m0.Reader | Uint8Array,
|
|
2269
|
-
length?: number
|
|
2270
|
-
): MsgUpdateLiquidityProvisionParamsResponse {
|
|
2213
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateLiquidityProvisionParamsResponse {
|
|
2271
2214
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2272
2215
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2273
2216
|
const message = createBaseMsgUpdateLiquidityProvisionParamsResponse();
|
|
@@ -2291,9 +2234,9 @@ export const MsgUpdateLiquidityProvisionParamsResponse = {
|
|
|
2291
2234
|
return obj;
|
|
2292
2235
|
},
|
|
2293
2236
|
|
|
2294
|
-
fromPartial<
|
|
2295
|
-
|
|
2296
|
-
|
|
2237
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateLiquidityProvisionParamsResponse>, I>>(
|
|
2238
|
+
_: I,
|
|
2239
|
+
): MsgUpdateLiquidityProvisionParamsResponse {
|
|
2297
2240
|
const message = createBaseMsgUpdateLiquidityProvisionParamsResponse();
|
|
2298
2241
|
return message;
|
|
2299
2242
|
},
|
|
@@ -2304,10 +2247,7 @@ function createBaseMsgUpdateTransferLimitParams(): MsgUpdateTransferLimitParams
|
|
|
2304
2247
|
}
|
|
2305
2248
|
|
|
2306
2249
|
export const MsgUpdateTransferLimitParams = {
|
|
2307
|
-
encode(
|
|
2308
|
-
message: MsgUpdateTransferLimitParams,
|
|
2309
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
2310
|
-
): _m0.Writer {
|
|
2250
|
+
encode(message: MsgUpdateTransferLimitParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2311
2251
|
if (message.authority !== "") {
|
|
2312
2252
|
writer.uint32(10).string(message.authority);
|
|
2313
2253
|
}
|
|
@@ -2320,10 +2260,7 @@ export const MsgUpdateTransferLimitParams = {
|
|
|
2320
2260
|
return writer;
|
|
2321
2261
|
},
|
|
2322
2262
|
|
|
2323
|
-
decode(
|
|
2324
|
-
input: _m0.Reader | Uint8Array,
|
|
2325
|
-
length?: number
|
|
2326
|
-
): MsgUpdateTransferLimitParams {
|
|
2263
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTransferLimitParams {
|
|
2327
2264
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2328
2265
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2329
2266
|
const message = createBaseMsgUpdateTransferLimitParams();
|
|
@@ -2363,9 +2300,7 @@ export const MsgUpdateTransferLimitParams = {
|
|
|
2363
2300
|
return obj;
|
|
2364
2301
|
},
|
|
2365
2302
|
|
|
2366
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateTransferLimitParams>, I>>(
|
|
2367
|
-
object: I
|
|
2368
|
-
): MsgUpdateTransferLimitParams {
|
|
2303
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateTransferLimitParams>, I>>(object: I): MsgUpdateTransferLimitParams {
|
|
2369
2304
|
const message = createBaseMsgUpdateTransferLimitParams();
|
|
2370
2305
|
message.authority = object.authority ?? "";
|
|
2371
2306
|
message.maxBTC = object.maxBTC ?? "";
|
|
@@ -2379,17 +2314,11 @@ function createBaseMsgUpdateTransferLimitParamsResponse(): MsgUpdateTransferLimi
|
|
|
2379
2314
|
}
|
|
2380
2315
|
|
|
2381
2316
|
export const MsgUpdateTransferLimitParamsResponse = {
|
|
2382
|
-
encode(
|
|
2383
|
-
_: MsgUpdateTransferLimitParamsResponse,
|
|
2384
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
2385
|
-
): _m0.Writer {
|
|
2317
|
+
encode(_: MsgUpdateTransferLimitParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2386
2318
|
return writer;
|
|
2387
2319
|
},
|
|
2388
2320
|
|
|
2389
|
-
decode(
|
|
2390
|
-
input: _m0.Reader | Uint8Array,
|
|
2391
|
-
length?: number
|
|
2392
|
-
): MsgUpdateTransferLimitParamsResponse {
|
|
2321
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTransferLimitParamsResponse {
|
|
2393
2322
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2394
2323
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2395
2324
|
const message = createBaseMsgUpdateTransferLimitParamsResponse();
|
|
@@ -2413,30 +2342,119 @@ export const MsgUpdateTransferLimitParamsResponse = {
|
|
|
2413
2342
|
return obj;
|
|
2414
2343
|
},
|
|
2415
2344
|
|
|
2416
|
-
fromPartial<
|
|
2417
|
-
|
|
2418
|
-
|
|
2345
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateTransferLimitParamsResponse>, I>>(
|
|
2346
|
+
_: I,
|
|
2347
|
+
): MsgUpdateTransferLimitParamsResponse {
|
|
2419
2348
|
const message = createBaseMsgUpdateTransferLimitParamsResponse();
|
|
2420
2349
|
return message;
|
|
2421
2350
|
},
|
|
2422
2351
|
};
|
|
2423
2352
|
|
|
2353
|
+
function createBaseMsgSetFiatTransactionParams(): MsgSetFiatTransactionParams {
|
|
2354
|
+
return { authority: "", daca: "" };
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
export const MsgSetFiatTransactionParams = {
|
|
2358
|
+
encode(message: MsgSetFiatTransactionParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2359
|
+
if (message.authority !== "") {
|
|
2360
|
+
writer.uint32(10).string(message.authority);
|
|
2361
|
+
}
|
|
2362
|
+
if (message.daca !== "") {
|
|
2363
|
+
writer.uint32(18).string(message.daca);
|
|
2364
|
+
}
|
|
2365
|
+
return writer;
|
|
2366
|
+
},
|
|
2367
|
+
|
|
2368
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetFiatTransactionParams {
|
|
2369
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2370
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2371
|
+
const message = createBaseMsgSetFiatTransactionParams();
|
|
2372
|
+
while (reader.pos < end) {
|
|
2373
|
+
const tag = reader.uint32();
|
|
2374
|
+
switch (tag >>> 3) {
|
|
2375
|
+
case 1:
|
|
2376
|
+
message.authority = reader.string();
|
|
2377
|
+
break;
|
|
2378
|
+
case 2:
|
|
2379
|
+
message.daca = reader.string();
|
|
2380
|
+
break;
|
|
2381
|
+
default:
|
|
2382
|
+
reader.skipType(tag & 7);
|
|
2383
|
+
break;
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
return message;
|
|
2387
|
+
},
|
|
2388
|
+
|
|
2389
|
+
fromJSON(object: any): MsgSetFiatTransactionParams {
|
|
2390
|
+
return {
|
|
2391
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
2392
|
+
daca: isSet(object.daca) ? String(object.daca) : "",
|
|
2393
|
+
};
|
|
2394
|
+
},
|
|
2395
|
+
|
|
2396
|
+
toJSON(message: MsgSetFiatTransactionParams): unknown {
|
|
2397
|
+
const obj: any = {};
|
|
2398
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
2399
|
+
message.daca !== undefined && (obj.daca = message.daca);
|
|
2400
|
+
return obj;
|
|
2401
|
+
},
|
|
2402
|
+
|
|
2403
|
+
fromPartial<I extends Exact<DeepPartial<MsgSetFiatTransactionParams>, I>>(object: I): MsgSetFiatTransactionParams {
|
|
2404
|
+
const message = createBaseMsgSetFiatTransactionParams();
|
|
2405
|
+
message.authority = object.authority ?? "";
|
|
2406
|
+
message.daca = object.daca ?? "";
|
|
2407
|
+
return message;
|
|
2408
|
+
},
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2411
|
+
function createBaseMsgSetFiatTransactionParamsResponse(): MsgSetFiatTransactionParamsResponse {
|
|
2412
|
+
return {};
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
export const MsgSetFiatTransactionParamsResponse = {
|
|
2416
|
+
encode(_: MsgSetFiatTransactionParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2417
|
+
return writer;
|
|
2418
|
+
},
|
|
2419
|
+
|
|
2420
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetFiatTransactionParamsResponse {
|
|
2421
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2422
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2423
|
+
const message = createBaseMsgSetFiatTransactionParamsResponse();
|
|
2424
|
+
while (reader.pos < end) {
|
|
2425
|
+
const tag = reader.uint32();
|
|
2426
|
+
switch (tag >>> 3) {
|
|
2427
|
+
default:
|
|
2428
|
+
reader.skipType(tag & 7);
|
|
2429
|
+
break;
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
return message;
|
|
2433
|
+
},
|
|
2434
|
+
|
|
2435
|
+
fromJSON(_: any): MsgSetFiatTransactionParamsResponse {
|
|
2436
|
+
return {};
|
|
2437
|
+
},
|
|
2438
|
+
|
|
2439
|
+
toJSON(_: MsgSetFiatTransactionParamsResponse): unknown {
|
|
2440
|
+
const obj: any = {};
|
|
2441
|
+
return obj;
|
|
2442
|
+
},
|
|
2443
|
+
|
|
2444
|
+
fromPartial<I extends Exact<DeepPartial<MsgSetFiatTransactionParamsResponse>, I>>(
|
|
2445
|
+
_: I,
|
|
2446
|
+
): MsgSetFiatTransactionParamsResponse {
|
|
2447
|
+
const message = createBaseMsgSetFiatTransactionParamsResponse();
|
|
2448
|
+
return message;
|
|
2449
|
+
},
|
|
2450
|
+
};
|
|
2451
|
+
|
|
2424
2452
|
function createBaseMsgFinalizeWithdrawTransaction(): MsgFinalizeWithdrawTransaction {
|
|
2425
|
-
return {
|
|
2426
|
-
creator: "",
|
|
2427
|
-
txId: 0,
|
|
2428
|
-
txHash: "",
|
|
2429
|
-
success: false,
|
|
2430
|
-
signedKey: "",
|
|
2431
|
-
errReason: "",
|
|
2432
|
-
};
|
|
2453
|
+
return { creator: "", txId: 0, txHash: "", success: false, signedKey: "", errReason: "", tssMsgId: "" };
|
|
2433
2454
|
}
|
|
2434
2455
|
|
|
2435
2456
|
export const MsgFinalizeWithdrawTransaction = {
|
|
2436
|
-
encode(
|
|
2437
|
-
message: MsgFinalizeWithdrawTransaction,
|
|
2438
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
2439
|
-
): _m0.Writer {
|
|
2457
|
+
encode(message: MsgFinalizeWithdrawTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2440
2458
|
if (message.creator !== "") {
|
|
2441
2459
|
writer.uint32(10).string(message.creator);
|
|
2442
2460
|
}
|
|
@@ -2455,13 +2473,13 @@ export const MsgFinalizeWithdrawTransaction = {
|
|
|
2455
2473
|
if (message.errReason !== "") {
|
|
2456
2474
|
writer.uint32(50).string(message.errReason);
|
|
2457
2475
|
}
|
|
2476
|
+
if (message.tssMsgId !== "") {
|
|
2477
|
+
writer.uint32(58).string(message.tssMsgId);
|
|
2478
|
+
}
|
|
2458
2479
|
return writer;
|
|
2459
2480
|
},
|
|
2460
2481
|
|
|
2461
|
-
decode(
|
|
2462
|
-
input: _m0.Reader | Uint8Array,
|
|
2463
|
-
length?: number
|
|
2464
|
-
): MsgFinalizeWithdrawTransaction {
|
|
2482
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeWithdrawTransaction {
|
|
2465
2483
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2466
2484
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2467
2485
|
const message = createBaseMsgFinalizeWithdrawTransaction();
|
|
@@ -2486,6 +2504,9 @@ export const MsgFinalizeWithdrawTransaction = {
|
|
|
2486
2504
|
case 6:
|
|
2487
2505
|
message.errReason = reader.string();
|
|
2488
2506
|
break;
|
|
2507
|
+
case 7:
|
|
2508
|
+
message.tssMsgId = reader.string();
|
|
2509
|
+
break;
|
|
2489
2510
|
default:
|
|
2490
2511
|
reader.skipType(tag & 7);
|
|
2491
2512
|
break;
|
|
@@ -2502,6 +2523,7 @@ export const MsgFinalizeWithdrawTransaction = {
|
|
|
2502
2523
|
success: isSet(object.success) ? Boolean(object.success) : false,
|
|
2503
2524
|
signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
|
|
2504
2525
|
errReason: isSet(object.errReason) ? String(object.errReason) : "",
|
|
2526
|
+
tssMsgId: isSet(object.tssMsgId) ? String(object.tssMsgId) : "",
|
|
2505
2527
|
};
|
|
2506
2528
|
},
|
|
2507
2529
|
|
|
@@ -2513,11 +2535,12 @@ export const MsgFinalizeWithdrawTransaction = {
|
|
|
2513
2535
|
message.success !== undefined && (obj.success = message.success);
|
|
2514
2536
|
message.signedKey !== undefined && (obj.signedKey = message.signedKey);
|
|
2515
2537
|
message.errReason !== undefined && (obj.errReason = message.errReason);
|
|
2538
|
+
message.tssMsgId !== undefined && (obj.tssMsgId = message.tssMsgId);
|
|
2516
2539
|
return obj;
|
|
2517
2540
|
},
|
|
2518
2541
|
|
|
2519
2542
|
fromPartial<I extends Exact<DeepPartial<MsgFinalizeWithdrawTransaction>, I>>(
|
|
2520
|
-
object: I
|
|
2543
|
+
object: I,
|
|
2521
2544
|
): MsgFinalizeWithdrawTransaction {
|
|
2522
2545
|
const message = createBaseMsgFinalizeWithdrawTransaction();
|
|
2523
2546
|
message.creator = object.creator ?? "";
|
|
@@ -2526,6 +2549,7 @@ export const MsgFinalizeWithdrawTransaction = {
|
|
|
2526
2549
|
message.success = object.success ?? false;
|
|
2527
2550
|
message.signedKey = object.signedKey ?? "";
|
|
2528
2551
|
message.errReason = object.errReason ?? "";
|
|
2552
|
+
message.tssMsgId = object.tssMsgId ?? "";
|
|
2529
2553
|
return message;
|
|
2530
2554
|
},
|
|
2531
2555
|
};
|
|
@@ -2535,10 +2559,7 @@ function createBaseMsgFinalizeWithdrawTransactionResponse(): MsgFinalizeWithdraw
|
|
|
2535
2559
|
}
|
|
2536
2560
|
|
|
2537
2561
|
export const MsgFinalizeWithdrawTransactionResponse = {
|
|
2538
|
-
encode(
|
|
2539
|
-
message: MsgFinalizeWithdrawTransactionResponse,
|
|
2540
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
2541
|
-
): _m0.Writer {
|
|
2562
|
+
encode(message: MsgFinalizeWithdrawTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2542
2563
|
if (message.code !== "") {
|
|
2543
2564
|
writer.uint32(10).string(message.code);
|
|
2544
2565
|
}
|
|
@@ -2548,10 +2569,7 @@ export const MsgFinalizeWithdrawTransactionResponse = {
|
|
|
2548
2569
|
return writer;
|
|
2549
2570
|
},
|
|
2550
2571
|
|
|
2551
|
-
decode(
|
|
2552
|
-
input: _m0.Reader | Uint8Array,
|
|
2553
|
-
length?: number
|
|
2554
|
-
): MsgFinalizeWithdrawTransactionResponse {
|
|
2572
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeWithdrawTransactionResponse {
|
|
2555
2573
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2556
2574
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2557
2575
|
const message = createBaseMsgFinalizeWithdrawTransactionResponse();
|
|
@@ -2573,10 +2591,7 @@ export const MsgFinalizeWithdrawTransactionResponse = {
|
|
|
2573
2591
|
},
|
|
2574
2592
|
|
|
2575
2593
|
fromJSON(object: any): MsgFinalizeWithdrawTransactionResponse {
|
|
2576
|
-
return {
|
|
2577
|
-
code: isSet(object.code) ? String(object.code) : "",
|
|
2578
|
-
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
2579
|
-
};
|
|
2594
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
2580
2595
|
},
|
|
2581
2596
|
|
|
2582
2597
|
toJSON(message: MsgFinalizeWithdrawTransactionResponse): unknown {
|
|
@@ -2586,9 +2601,9 @@ export const MsgFinalizeWithdrawTransactionResponse = {
|
|
|
2586
2601
|
return obj;
|
|
2587
2602
|
},
|
|
2588
2603
|
|
|
2589
|
-
fromPartial<
|
|
2590
|
-
|
|
2591
|
-
|
|
2604
|
+
fromPartial<I extends Exact<DeepPartial<MsgFinalizeWithdrawTransactionResponse>, I>>(
|
|
2605
|
+
object: I,
|
|
2606
|
+
): MsgFinalizeWithdrawTransactionResponse {
|
|
2592
2607
|
const message = createBaseMsgFinalizeWithdrawTransactionResponse();
|
|
2593
2608
|
message.code = object.code ?? "";
|
|
2594
2609
|
message.msg = object.msg ?? "";
|
|
@@ -2596,266 +2611,790 @@ export const MsgFinalizeWithdrawTransactionResponse = {
|
|
|
2596
2611
|
},
|
|
2597
2612
|
};
|
|
2598
2613
|
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
RequestTransaction(
|
|
2602
|
-
request: MsgRequestTransaction
|
|
2603
|
-
): Promise<MsgRequestTransactionResponse>;
|
|
2604
|
-
FinalizeTransaction(
|
|
2605
|
-
request: MsgFinalizeTransaction
|
|
2606
|
-
): Promise<MsgFinalizeTransactionResponse>;
|
|
2607
|
-
RequestProvisionTransaction(
|
|
2608
|
-
request: MsgRequestProvisionTransaction
|
|
2609
|
-
): Promise<MsgRequestProvisionTransactionResponse>;
|
|
2610
|
-
CancelTransaction(
|
|
2611
|
-
request: MsgCancelTransaction
|
|
2612
|
-
): Promise<MsgCancelTransactionResponse>;
|
|
2613
|
-
SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse>;
|
|
2614
|
-
SetTxProcess(request: MsgSetTxProcess): Promise<MsgSetTxProcessResponse>;
|
|
2615
|
-
FinalizeProvisionTransaction(
|
|
2616
|
-
request: MsgFinalizeProvisionTransaction
|
|
2617
|
-
): Promise<MsgFinalizeProvisionTransactionResponse>;
|
|
2618
|
-
RequestDrainTransaction(
|
|
2619
|
-
request: MsgRequestDrainTransaction
|
|
2620
|
-
): Promise<MsgRequestDrainTransactionResponse>;
|
|
2621
|
-
FinalizeDrainTransaction(
|
|
2622
|
-
request: MsgFinalizeDrainTransaction
|
|
2623
|
-
): Promise<MsgFinalizeDrainTransactionResponse>;
|
|
2624
|
-
RequestHtlcLock(
|
|
2625
|
-
request: MsgRequestHtlcLock
|
|
2626
|
-
): Promise<MsgRequestHtlcLockResponse>;
|
|
2627
|
-
HtlcReclaim(request: MsgHtlcReclaim): Promise<MsgHtlcReclaimResponse>;
|
|
2628
|
-
UpdateLiquidityProvisionParams(
|
|
2629
|
-
request: MsgUpdateLiquidityProvisionParams
|
|
2630
|
-
): Promise<MsgUpdateLiquidityProvisionParamsResponse>;
|
|
2631
|
-
UpdateTransferLimitParams(
|
|
2632
|
-
request: MsgUpdateTransferLimitParams
|
|
2633
|
-
): Promise<MsgUpdateTransferLimitParamsResponse>;
|
|
2634
|
-
FinalizeWithdrawTransaction(
|
|
2635
|
-
request: MsgFinalizeWithdrawTransaction
|
|
2636
|
-
): Promise<MsgFinalizeWithdrawTransactionResponse>;
|
|
2614
|
+
function createBaseMsgConfirmTransaction(): MsgConfirmTransaction {
|
|
2615
|
+
return { creator: "", transactionId: "", amount: "", currency: "", confirmed: false, failReason: "", timestamp: 0 };
|
|
2637
2616
|
}
|
|
2638
2617
|
|
|
2639
|
-
export
|
|
2640
|
-
|
|
2618
|
+
export const MsgConfirmTransaction = {
|
|
2619
|
+
encode(message: MsgConfirmTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2620
|
+
if (message.creator !== "") {
|
|
2621
|
+
writer.uint32(10).string(message.creator);
|
|
2622
|
+
}
|
|
2623
|
+
if (message.transactionId !== "") {
|
|
2624
|
+
writer.uint32(18).string(message.transactionId);
|
|
2625
|
+
}
|
|
2626
|
+
if (message.amount !== "") {
|
|
2627
|
+
writer.uint32(26).string(message.amount);
|
|
2628
|
+
}
|
|
2629
|
+
if (message.currency !== "") {
|
|
2630
|
+
writer.uint32(34).string(message.currency);
|
|
2631
|
+
}
|
|
2632
|
+
if (message.confirmed === true) {
|
|
2633
|
+
writer.uint32(40).bool(message.confirmed);
|
|
2634
|
+
}
|
|
2635
|
+
if (message.failReason !== "") {
|
|
2636
|
+
writer.uint32(50).string(message.failReason);
|
|
2637
|
+
}
|
|
2638
|
+
if (message.timestamp !== 0) {
|
|
2639
|
+
writer.uint32(56).uint64(message.timestamp);
|
|
2640
|
+
}
|
|
2641
|
+
return writer;
|
|
2642
|
+
},
|
|
2643
|
+
|
|
2644
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgConfirmTransaction {
|
|
2645
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2646
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2647
|
+
const message = createBaseMsgConfirmTransaction();
|
|
2648
|
+
while (reader.pos < end) {
|
|
2649
|
+
const tag = reader.uint32();
|
|
2650
|
+
switch (tag >>> 3) {
|
|
2651
|
+
case 1:
|
|
2652
|
+
message.creator = reader.string();
|
|
2653
|
+
break;
|
|
2654
|
+
case 2:
|
|
2655
|
+
message.transactionId = reader.string();
|
|
2656
|
+
break;
|
|
2657
|
+
case 3:
|
|
2658
|
+
message.amount = reader.string();
|
|
2659
|
+
break;
|
|
2660
|
+
case 4:
|
|
2661
|
+
message.currency = reader.string();
|
|
2662
|
+
break;
|
|
2663
|
+
case 5:
|
|
2664
|
+
message.confirmed = reader.bool();
|
|
2665
|
+
break;
|
|
2666
|
+
case 6:
|
|
2667
|
+
message.failReason = reader.string();
|
|
2668
|
+
break;
|
|
2669
|
+
case 7:
|
|
2670
|
+
message.timestamp = longToNumber(reader.uint64() as Long);
|
|
2671
|
+
break;
|
|
2672
|
+
default:
|
|
2673
|
+
reader.skipType(tag & 7);
|
|
2674
|
+
break;
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
return message;
|
|
2678
|
+
},
|
|
2679
|
+
|
|
2680
|
+
fromJSON(object: any): MsgConfirmTransaction {
|
|
2681
|
+
return {
|
|
2682
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
2683
|
+
transactionId: isSet(object.transactionId) ? String(object.transactionId) : "",
|
|
2684
|
+
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
2685
|
+
currency: isSet(object.currency) ? String(object.currency) : "",
|
|
2686
|
+
confirmed: isSet(object.confirmed) ? Boolean(object.confirmed) : false,
|
|
2687
|
+
failReason: isSet(object.failReason) ? String(object.failReason) : "",
|
|
2688
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
2689
|
+
};
|
|
2690
|
+
},
|
|
2691
|
+
|
|
2692
|
+
toJSON(message: MsgConfirmTransaction): unknown {
|
|
2693
|
+
const obj: any = {};
|
|
2694
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
2695
|
+
message.transactionId !== undefined && (obj.transactionId = message.transactionId);
|
|
2696
|
+
message.amount !== undefined && (obj.amount = message.amount);
|
|
2697
|
+
message.currency !== undefined && (obj.currency = message.currency);
|
|
2698
|
+
message.confirmed !== undefined && (obj.confirmed = message.confirmed);
|
|
2699
|
+
message.failReason !== undefined && (obj.failReason = message.failReason);
|
|
2700
|
+
message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
|
|
2701
|
+
return obj;
|
|
2702
|
+
},
|
|
2703
|
+
|
|
2704
|
+
fromPartial<I extends Exact<DeepPartial<MsgConfirmTransaction>, I>>(object: I): MsgConfirmTransaction {
|
|
2705
|
+
const message = createBaseMsgConfirmTransaction();
|
|
2706
|
+
message.creator = object.creator ?? "";
|
|
2707
|
+
message.transactionId = object.transactionId ?? "";
|
|
2708
|
+
message.amount = object.amount ?? "";
|
|
2709
|
+
message.currency = object.currency ?? "";
|
|
2710
|
+
message.confirmed = object.confirmed ?? false;
|
|
2711
|
+
message.failReason = object.failReason ?? "";
|
|
2712
|
+
message.timestamp = object.timestamp ?? 0;
|
|
2713
|
+
return message;
|
|
2714
|
+
},
|
|
2715
|
+
};
|
|
2716
|
+
|
|
2717
|
+
function createBaseMsgConfirmTransactionResponse(): MsgConfirmTransactionResponse {
|
|
2718
|
+
return { code: "", msg: "" };
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
export const MsgConfirmTransactionResponse = {
|
|
2722
|
+
encode(message: MsgConfirmTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2723
|
+
if (message.code !== "") {
|
|
2724
|
+
writer.uint32(10).string(message.code);
|
|
2725
|
+
}
|
|
2726
|
+
if (message.msg !== "") {
|
|
2727
|
+
writer.uint32(18).string(message.msg);
|
|
2728
|
+
}
|
|
2729
|
+
return writer;
|
|
2730
|
+
},
|
|
2731
|
+
|
|
2732
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgConfirmTransactionResponse {
|
|
2733
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2734
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2735
|
+
const message = createBaseMsgConfirmTransactionResponse();
|
|
2736
|
+
while (reader.pos < end) {
|
|
2737
|
+
const tag = reader.uint32();
|
|
2738
|
+
switch (tag >>> 3) {
|
|
2739
|
+
case 1:
|
|
2740
|
+
message.code = reader.string();
|
|
2741
|
+
break;
|
|
2742
|
+
case 2:
|
|
2743
|
+
message.msg = reader.string();
|
|
2744
|
+
break;
|
|
2745
|
+
default:
|
|
2746
|
+
reader.skipType(tag & 7);
|
|
2747
|
+
break;
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
return message;
|
|
2751
|
+
},
|
|
2752
|
+
|
|
2753
|
+
fromJSON(object: any): MsgConfirmTransactionResponse {
|
|
2754
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
2755
|
+
},
|
|
2756
|
+
|
|
2757
|
+
toJSON(message: MsgConfirmTransactionResponse): unknown {
|
|
2758
|
+
const obj: any = {};
|
|
2759
|
+
message.code !== undefined && (obj.code = message.code);
|
|
2760
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
2761
|
+
return obj;
|
|
2762
|
+
},
|
|
2763
|
+
|
|
2764
|
+
fromPartial<I extends Exact<DeepPartial<MsgConfirmTransactionResponse>, I>>(
|
|
2765
|
+
object: I,
|
|
2766
|
+
): MsgConfirmTransactionResponse {
|
|
2767
|
+
const message = createBaseMsgConfirmTransactionResponse();
|
|
2768
|
+
message.code = object.code ?? "";
|
|
2769
|
+
message.msg = object.msg ?? "";
|
|
2770
|
+
return message;
|
|
2771
|
+
},
|
|
2772
|
+
};
|
|
2773
|
+
|
|
2774
|
+
function createBaseMsgUpdateTransactionStatus(): MsgUpdateTransactionStatus {
|
|
2775
|
+
return { creator: "", txId: "", newStatus: "", failReason: "" };
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
export const MsgUpdateTransactionStatus = {
|
|
2779
|
+
encode(message: MsgUpdateTransactionStatus, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2780
|
+
if (message.creator !== "") {
|
|
2781
|
+
writer.uint32(10).string(message.creator);
|
|
2782
|
+
}
|
|
2783
|
+
if (message.txId !== "") {
|
|
2784
|
+
writer.uint32(18).string(message.txId);
|
|
2785
|
+
}
|
|
2786
|
+
if (message.newStatus !== "") {
|
|
2787
|
+
writer.uint32(26).string(message.newStatus);
|
|
2788
|
+
}
|
|
2789
|
+
if (message.failReason !== "") {
|
|
2790
|
+
writer.uint32(34).string(message.failReason);
|
|
2791
|
+
}
|
|
2792
|
+
return writer;
|
|
2793
|
+
},
|
|
2794
|
+
|
|
2795
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTransactionStatus {
|
|
2796
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2797
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2798
|
+
const message = createBaseMsgUpdateTransactionStatus();
|
|
2799
|
+
while (reader.pos < end) {
|
|
2800
|
+
const tag = reader.uint32();
|
|
2801
|
+
switch (tag >>> 3) {
|
|
2802
|
+
case 1:
|
|
2803
|
+
message.creator = reader.string();
|
|
2804
|
+
break;
|
|
2805
|
+
case 2:
|
|
2806
|
+
message.txId = reader.string();
|
|
2807
|
+
break;
|
|
2808
|
+
case 3:
|
|
2809
|
+
message.newStatus = reader.string();
|
|
2810
|
+
break;
|
|
2811
|
+
case 4:
|
|
2812
|
+
message.failReason = reader.string();
|
|
2813
|
+
break;
|
|
2814
|
+
default:
|
|
2815
|
+
reader.skipType(tag & 7);
|
|
2816
|
+
break;
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
return message;
|
|
2820
|
+
},
|
|
2821
|
+
|
|
2822
|
+
fromJSON(object: any): MsgUpdateTransactionStatus {
|
|
2823
|
+
return {
|
|
2824
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
2825
|
+
txId: isSet(object.txId) ? String(object.txId) : "",
|
|
2826
|
+
newStatus: isSet(object.newStatus) ? String(object.newStatus) : "",
|
|
2827
|
+
failReason: isSet(object.failReason) ? String(object.failReason) : "",
|
|
2828
|
+
};
|
|
2829
|
+
},
|
|
2830
|
+
|
|
2831
|
+
toJSON(message: MsgUpdateTransactionStatus): unknown {
|
|
2832
|
+
const obj: any = {};
|
|
2833
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
2834
|
+
message.txId !== undefined && (obj.txId = message.txId);
|
|
2835
|
+
message.newStatus !== undefined && (obj.newStatus = message.newStatus);
|
|
2836
|
+
message.failReason !== undefined && (obj.failReason = message.failReason);
|
|
2837
|
+
return obj;
|
|
2838
|
+
},
|
|
2839
|
+
|
|
2840
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateTransactionStatus>, I>>(object: I): MsgUpdateTransactionStatus {
|
|
2841
|
+
const message = createBaseMsgUpdateTransactionStatus();
|
|
2842
|
+
message.creator = object.creator ?? "";
|
|
2843
|
+
message.txId = object.txId ?? "";
|
|
2844
|
+
message.newStatus = object.newStatus ?? "";
|
|
2845
|
+
message.failReason = object.failReason ?? "";
|
|
2846
|
+
return message;
|
|
2847
|
+
},
|
|
2848
|
+
};
|
|
2849
|
+
|
|
2850
|
+
function createBaseMsgUpdateTransactionStatusResponse(): MsgUpdateTransactionStatusResponse {
|
|
2851
|
+
return { code: "", msg: "" };
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
export const MsgUpdateTransactionStatusResponse = {
|
|
2855
|
+
encode(message: MsgUpdateTransactionStatusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2856
|
+
if (message.code !== "") {
|
|
2857
|
+
writer.uint32(10).string(message.code);
|
|
2858
|
+
}
|
|
2859
|
+
if (message.msg !== "") {
|
|
2860
|
+
writer.uint32(18).string(message.msg);
|
|
2861
|
+
}
|
|
2862
|
+
return writer;
|
|
2863
|
+
},
|
|
2864
|
+
|
|
2865
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTransactionStatusResponse {
|
|
2866
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2867
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2868
|
+
const message = createBaseMsgUpdateTransactionStatusResponse();
|
|
2869
|
+
while (reader.pos < end) {
|
|
2870
|
+
const tag = reader.uint32();
|
|
2871
|
+
switch (tag >>> 3) {
|
|
2872
|
+
case 1:
|
|
2873
|
+
message.code = reader.string();
|
|
2874
|
+
break;
|
|
2875
|
+
case 2:
|
|
2876
|
+
message.msg = reader.string();
|
|
2877
|
+
break;
|
|
2878
|
+
default:
|
|
2879
|
+
reader.skipType(tag & 7);
|
|
2880
|
+
break;
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
return message;
|
|
2884
|
+
},
|
|
2885
|
+
|
|
2886
|
+
fromJSON(object: any): MsgUpdateTransactionStatusResponse {
|
|
2887
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
2888
|
+
},
|
|
2889
|
+
|
|
2890
|
+
toJSON(message: MsgUpdateTransactionStatusResponse): unknown {
|
|
2891
|
+
const obj: any = {};
|
|
2892
|
+
message.code !== undefined && (obj.code = message.code);
|
|
2893
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
2894
|
+
return obj;
|
|
2895
|
+
},
|
|
2896
|
+
|
|
2897
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateTransactionStatusResponse>, I>>(
|
|
2898
|
+
object: I,
|
|
2899
|
+
): MsgUpdateTransactionStatusResponse {
|
|
2900
|
+
const message = createBaseMsgUpdateTransactionStatusResponse();
|
|
2901
|
+
message.code = object.code ?? "";
|
|
2902
|
+
message.msg = object.msg ?? "";
|
|
2903
|
+
return message;
|
|
2904
|
+
},
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
function createBaseMsgUpdateMaxConcurrentLimit(): MsgUpdateMaxConcurrentLimit {
|
|
2908
|
+
return { authority: "", maxLimit: 0 };
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
export const MsgUpdateMaxConcurrentLimit = {
|
|
2912
|
+
encode(message: MsgUpdateMaxConcurrentLimit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2913
|
+
if (message.authority !== "") {
|
|
2914
|
+
writer.uint32(10).string(message.authority);
|
|
2915
|
+
}
|
|
2916
|
+
if (message.maxLimit !== 0) {
|
|
2917
|
+
writer.uint32(16).int64(message.maxLimit);
|
|
2918
|
+
}
|
|
2919
|
+
return writer;
|
|
2920
|
+
},
|
|
2921
|
+
|
|
2922
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateMaxConcurrentLimit {
|
|
2923
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2924
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2925
|
+
const message = createBaseMsgUpdateMaxConcurrentLimit();
|
|
2926
|
+
while (reader.pos < end) {
|
|
2927
|
+
const tag = reader.uint32();
|
|
2928
|
+
switch (tag >>> 3) {
|
|
2929
|
+
case 1:
|
|
2930
|
+
message.authority = reader.string();
|
|
2931
|
+
break;
|
|
2932
|
+
case 2:
|
|
2933
|
+
message.maxLimit = longToNumber(reader.int64() as Long);
|
|
2934
|
+
break;
|
|
2935
|
+
default:
|
|
2936
|
+
reader.skipType(tag & 7);
|
|
2937
|
+
break;
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
return message;
|
|
2941
|
+
},
|
|
2942
|
+
|
|
2943
|
+
fromJSON(object: any): MsgUpdateMaxConcurrentLimit {
|
|
2944
|
+
return {
|
|
2945
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
2946
|
+
maxLimit: isSet(object.maxLimit) ? Number(object.maxLimit) : 0,
|
|
2947
|
+
};
|
|
2948
|
+
},
|
|
2949
|
+
|
|
2950
|
+
toJSON(message: MsgUpdateMaxConcurrentLimit): unknown {
|
|
2951
|
+
const obj: any = {};
|
|
2952
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
2953
|
+
message.maxLimit !== undefined && (obj.maxLimit = Math.round(message.maxLimit));
|
|
2954
|
+
return obj;
|
|
2955
|
+
},
|
|
2956
|
+
|
|
2957
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateMaxConcurrentLimit>, I>>(object: I): MsgUpdateMaxConcurrentLimit {
|
|
2958
|
+
const message = createBaseMsgUpdateMaxConcurrentLimit();
|
|
2959
|
+
message.authority = object.authority ?? "";
|
|
2960
|
+
message.maxLimit = object.maxLimit ?? 0;
|
|
2961
|
+
return message;
|
|
2962
|
+
},
|
|
2963
|
+
};
|
|
2964
|
+
|
|
2965
|
+
function createBaseMsgUpdateMaxConcurrentLimitResponse(): MsgUpdateMaxConcurrentLimitResponse {
|
|
2966
|
+
return { code: "", msg: "" };
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
export const MsgUpdateMaxConcurrentLimitResponse = {
|
|
2970
|
+
encode(message: MsgUpdateMaxConcurrentLimitResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2971
|
+
if (message.code !== "") {
|
|
2972
|
+
writer.uint32(10).string(message.code);
|
|
2973
|
+
}
|
|
2974
|
+
if (message.msg !== "") {
|
|
2975
|
+
writer.uint32(18).string(message.msg);
|
|
2976
|
+
}
|
|
2977
|
+
return writer;
|
|
2978
|
+
},
|
|
2979
|
+
|
|
2980
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateMaxConcurrentLimitResponse {
|
|
2981
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2982
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2983
|
+
const message = createBaseMsgUpdateMaxConcurrentLimitResponse();
|
|
2984
|
+
while (reader.pos < end) {
|
|
2985
|
+
const tag = reader.uint32();
|
|
2986
|
+
switch (tag >>> 3) {
|
|
2987
|
+
case 1:
|
|
2988
|
+
message.code = reader.string();
|
|
2989
|
+
break;
|
|
2990
|
+
case 2:
|
|
2991
|
+
message.msg = reader.string();
|
|
2992
|
+
break;
|
|
2993
|
+
default:
|
|
2994
|
+
reader.skipType(tag & 7);
|
|
2995
|
+
break;
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
return message;
|
|
2999
|
+
},
|
|
3000
|
+
|
|
3001
|
+
fromJSON(object: any): MsgUpdateMaxConcurrentLimitResponse {
|
|
3002
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
3003
|
+
},
|
|
3004
|
+
|
|
3005
|
+
toJSON(message: MsgUpdateMaxConcurrentLimitResponse): unknown {
|
|
3006
|
+
const obj: any = {};
|
|
3007
|
+
message.code !== undefined && (obj.code = message.code);
|
|
3008
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
3009
|
+
return obj;
|
|
3010
|
+
},
|
|
3011
|
+
|
|
3012
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateMaxConcurrentLimitResponse>, I>>(
|
|
3013
|
+
object: I,
|
|
3014
|
+
): MsgUpdateMaxConcurrentLimitResponse {
|
|
3015
|
+
const message = createBaseMsgUpdateMaxConcurrentLimitResponse();
|
|
3016
|
+
message.code = object.code ?? "";
|
|
3017
|
+
message.msg = object.msg ?? "";
|
|
3018
|
+
return message;
|
|
3019
|
+
},
|
|
3020
|
+
};
|
|
3021
|
+
|
|
3022
|
+
function createBaseMsgRequestExternalTransaction(): MsgRequestExternalTransaction {
|
|
3023
|
+
return {
|
|
3024
|
+
creator: "",
|
|
3025
|
+
originChain: "",
|
|
3026
|
+
originAddress: "",
|
|
3027
|
+
targetChain: "",
|
|
3028
|
+
targetAddress: "",
|
|
3029
|
+
originSymbol: "",
|
|
3030
|
+
targetSymbol: "",
|
|
3031
|
+
amount: "",
|
|
3032
|
+
fee: "",
|
|
3033
|
+
options: "",
|
|
3034
|
+
};
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
export const MsgRequestExternalTransaction = {
|
|
3038
|
+
encode(message: MsgRequestExternalTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
3039
|
+
if (message.creator !== "") {
|
|
3040
|
+
writer.uint32(10).string(message.creator);
|
|
3041
|
+
}
|
|
3042
|
+
if (message.originChain !== "") {
|
|
3043
|
+
writer.uint32(18).string(message.originChain);
|
|
3044
|
+
}
|
|
3045
|
+
if (message.originAddress !== "") {
|
|
3046
|
+
writer.uint32(26).string(message.originAddress);
|
|
3047
|
+
}
|
|
3048
|
+
if (message.targetChain !== "") {
|
|
3049
|
+
writer.uint32(34).string(message.targetChain);
|
|
3050
|
+
}
|
|
3051
|
+
if (message.targetAddress !== "") {
|
|
3052
|
+
writer.uint32(42).string(message.targetAddress);
|
|
3053
|
+
}
|
|
3054
|
+
if (message.originSymbol !== "") {
|
|
3055
|
+
writer.uint32(50).string(message.originSymbol);
|
|
3056
|
+
}
|
|
3057
|
+
if (message.targetSymbol !== "") {
|
|
3058
|
+
writer.uint32(58).string(message.targetSymbol);
|
|
3059
|
+
}
|
|
3060
|
+
if (message.amount !== "") {
|
|
3061
|
+
writer.uint32(66).string(message.amount);
|
|
3062
|
+
}
|
|
3063
|
+
if (message.fee !== "") {
|
|
3064
|
+
writer.uint32(74).string(message.fee);
|
|
3065
|
+
}
|
|
3066
|
+
if (message.options !== "") {
|
|
3067
|
+
writer.uint32(82).string(message.options);
|
|
3068
|
+
}
|
|
3069
|
+
return writer;
|
|
3070
|
+
},
|
|
3071
|
+
|
|
3072
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestExternalTransaction {
|
|
3073
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3074
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3075
|
+
const message = createBaseMsgRequestExternalTransaction();
|
|
3076
|
+
while (reader.pos < end) {
|
|
3077
|
+
const tag = reader.uint32();
|
|
3078
|
+
switch (tag >>> 3) {
|
|
3079
|
+
case 1:
|
|
3080
|
+
message.creator = reader.string();
|
|
3081
|
+
break;
|
|
3082
|
+
case 2:
|
|
3083
|
+
message.originChain = reader.string();
|
|
3084
|
+
break;
|
|
3085
|
+
case 3:
|
|
3086
|
+
message.originAddress = reader.string();
|
|
3087
|
+
break;
|
|
3088
|
+
case 4:
|
|
3089
|
+
message.targetChain = reader.string();
|
|
3090
|
+
break;
|
|
3091
|
+
case 5:
|
|
3092
|
+
message.targetAddress = reader.string();
|
|
3093
|
+
break;
|
|
3094
|
+
case 6:
|
|
3095
|
+
message.originSymbol = reader.string();
|
|
3096
|
+
break;
|
|
3097
|
+
case 7:
|
|
3098
|
+
message.targetSymbol = reader.string();
|
|
3099
|
+
break;
|
|
3100
|
+
case 8:
|
|
3101
|
+
message.amount = reader.string();
|
|
3102
|
+
break;
|
|
3103
|
+
case 9:
|
|
3104
|
+
message.fee = reader.string();
|
|
3105
|
+
break;
|
|
3106
|
+
case 10:
|
|
3107
|
+
message.options = reader.string();
|
|
3108
|
+
break;
|
|
3109
|
+
default:
|
|
3110
|
+
reader.skipType(tag & 7);
|
|
3111
|
+
break;
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
return message;
|
|
3115
|
+
},
|
|
3116
|
+
|
|
3117
|
+
fromJSON(object: any): MsgRequestExternalTransaction {
|
|
3118
|
+
return {
|
|
3119
|
+
creator: isSet(object.creator) ? String(object.creator) : "",
|
|
3120
|
+
originChain: isSet(object.originChain) ? String(object.originChain) : "",
|
|
3121
|
+
originAddress: isSet(object.originAddress) ? String(object.originAddress) : "",
|
|
3122
|
+
targetChain: isSet(object.targetChain) ? String(object.targetChain) : "",
|
|
3123
|
+
targetAddress: isSet(object.targetAddress) ? String(object.targetAddress) : "",
|
|
3124
|
+
originSymbol: isSet(object.originSymbol) ? String(object.originSymbol) : "",
|
|
3125
|
+
targetSymbol: isSet(object.targetSymbol) ? String(object.targetSymbol) : "",
|
|
3126
|
+
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
3127
|
+
fee: isSet(object.fee) ? String(object.fee) : "",
|
|
3128
|
+
options: isSet(object.options) ? String(object.options) : "",
|
|
3129
|
+
};
|
|
3130
|
+
},
|
|
3131
|
+
|
|
3132
|
+
toJSON(message: MsgRequestExternalTransaction): unknown {
|
|
3133
|
+
const obj: any = {};
|
|
3134
|
+
message.creator !== undefined && (obj.creator = message.creator);
|
|
3135
|
+
message.originChain !== undefined && (obj.originChain = message.originChain);
|
|
3136
|
+
message.originAddress !== undefined && (obj.originAddress = message.originAddress);
|
|
3137
|
+
message.targetChain !== undefined && (obj.targetChain = message.targetChain);
|
|
3138
|
+
message.targetAddress !== undefined && (obj.targetAddress = message.targetAddress);
|
|
3139
|
+
message.originSymbol !== undefined && (obj.originSymbol = message.originSymbol);
|
|
3140
|
+
message.targetSymbol !== undefined && (obj.targetSymbol = message.targetSymbol);
|
|
3141
|
+
message.amount !== undefined && (obj.amount = message.amount);
|
|
3142
|
+
message.fee !== undefined && (obj.fee = message.fee);
|
|
3143
|
+
message.options !== undefined && (obj.options = message.options);
|
|
3144
|
+
return obj;
|
|
3145
|
+
},
|
|
3146
|
+
|
|
3147
|
+
fromPartial<I extends Exact<DeepPartial<MsgRequestExternalTransaction>, I>>(
|
|
3148
|
+
object: I,
|
|
3149
|
+
): MsgRequestExternalTransaction {
|
|
3150
|
+
const message = createBaseMsgRequestExternalTransaction();
|
|
3151
|
+
message.creator = object.creator ?? "";
|
|
3152
|
+
message.originChain = object.originChain ?? "";
|
|
3153
|
+
message.originAddress = object.originAddress ?? "";
|
|
3154
|
+
message.targetChain = object.targetChain ?? "";
|
|
3155
|
+
message.targetAddress = object.targetAddress ?? "";
|
|
3156
|
+
message.originSymbol = object.originSymbol ?? "";
|
|
3157
|
+
message.targetSymbol = object.targetSymbol ?? "";
|
|
3158
|
+
message.amount = object.amount ?? "";
|
|
3159
|
+
message.fee = object.fee ?? "";
|
|
3160
|
+
message.options = object.options ?? "";
|
|
3161
|
+
return message;
|
|
3162
|
+
},
|
|
3163
|
+
};
|
|
3164
|
+
|
|
3165
|
+
function createBaseMsgRequestExternalTransactionResponse(): MsgRequestExternalTransactionResponse {
|
|
3166
|
+
return { code: "", msg: "" };
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
export const MsgRequestExternalTransactionResponse = {
|
|
3170
|
+
encode(message: MsgRequestExternalTransactionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
3171
|
+
if (message.code !== "") {
|
|
3172
|
+
writer.uint32(10).string(message.code);
|
|
3173
|
+
}
|
|
3174
|
+
if (message.msg !== "") {
|
|
3175
|
+
writer.uint32(18).string(message.msg);
|
|
3176
|
+
}
|
|
3177
|
+
return writer;
|
|
3178
|
+
},
|
|
3179
|
+
|
|
3180
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestExternalTransactionResponse {
|
|
3181
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3182
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3183
|
+
const message = createBaseMsgRequestExternalTransactionResponse();
|
|
3184
|
+
while (reader.pos < end) {
|
|
3185
|
+
const tag = reader.uint32();
|
|
3186
|
+
switch (tag >>> 3) {
|
|
3187
|
+
case 1:
|
|
3188
|
+
message.code = reader.string();
|
|
3189
|
+
break;
|
|
3190
|
+
case 2:
|
|
3191
|
+
message.msg = reader.string();
|
|
3192
|
+
break;
|
|
3193
|
+
default:
|
|
3194
|
+
reader.skipType(tag & 7);
|
|
3195
|
+
break;
|
|
3196
|
+
}
|
|
3197
|
+
}
|
|
3198
|
+
return message;
|
|
3199
|
+
},
|
|
3200
|
+
|
|
3201
|
+
fromJSON(object: any): MsgRequestExternalTransactionResponse {
|
|
3202
|
+
return { code: isSet(object.code) ? String(object.code) : "", msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
3203
|
+
},
|
|
3204
|
+
|
|
3205
|
+
toJSON(message: MsgRequestExternalTransactionResponse): unknown {
|
|
3206
|
+
const obj: any = {};
|
|
3207
|
+
message.code !== undefined && (obj.code = message.code);
|
|
3208
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
3209
|
+
return obj;
|
|
3210
|
+
},
|
|
3211
|
+
|
|
3212
|
+
fromPartial<I extends Exact<DeepPartial<MsgRequestExternalTransactionResponse>, I>>(
|
|
3213
|
+
object: I,
|
|
3214
|
+
): MsgRequestExternalTransactionResponse {
|
|
3215
|
+
const message = createBaseMsgRequestExternalTransactionResponse();
|
|
3216
|
+
message.code = object.code ?? "";
|
|
3217
|
+
message.msg = object.msg ?? "";
|
|
3218
|
+
return message;
|
|
3219
|
+
},
|
|
3220
|
+
};
|
|
3221
|
+
|
|
3222
|
+
/** Msg defines the Msg service. */
|
|
3223
|
+
export interface Msg {
|
|
3224
|
+
RequestTransaction(request: MsgRequestTransaction): Promise<MsgRequestTransactionResponse>;
|
|
3225
|
+
FinalizeTransaction(request: MsgFinalizeTransaction): Promise<MsgFinalizeTransactionResponse>;
|
|
3226
|
+
RequestProvisionTransaction(request: MsgRequestProvisionTransaction): Promise<MsgRequestProvisionTransactionResponse>;
|
|
3227
|
+
CancelTransaction(request: MsgCancelTransaction): Promise<MsgCancelTransactionResponse>;
|
|
3228
|
+
SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse>;
|
|
3229
|
+
SetTxProcess(request: MsgSetTxProcess): Promise<MsgSetTxProcessResponse>;
|
|
3230
|
+
FinalizeProvisionTransaction(
|
|
3231
|
+
request: MsgFinalizeProvisionTransaction,
|
|
3232
|
+
): Promise<MsgFinalizeProvisionTransactionResponse>;
|
|
3233
|
+
RequestDrainTransaction(request: MsgRequestDrainTransaction): Promise<MsgRequestDrainTransactionResponse>;
|
|
3234
|
+
FinalizeDrainTransaction(request: MsgFinalizeDrainTransaction): Promise<MsgFinalizeDrainTransactionResponse>;
|
|
3235
|
+
RequestHtlcLock(request: MsgRequestHtlcLock): Promise<MsgRequestHtlcLockResponse>;
|
|
3236
|
+
HtlcReclaim(request: MsgHtlcReclaim): Promise<MsgHtlcReclaimResponse>;
|
|
3237
|
+
UpdateLiquidityProvisionParams(
|
|
3238
|
+
request: MsgUpdateLiquidityProvisionParams,
|
|
3239
|
+
): Promise<MsgUpdateLiquidityProvisionParamsResponse>;
|
|
3240
|
+
UpdateTransferLimitParams(request: MsgUpdateTransferLimitParams): Promise<MsgUpdateTransferLimitParamsResponse>;
|
|
3241
|
+
FinalizeWithdrawTransaction(request: MsgFinalizeWithdrawTransaction): Promise<MsgFinalizeWithdrawTransactionResponse>;
|
|
3242
|
+
SetFiatTransactionParams(request: MsgSetFiatTransactionParams): Promise<MsgSetFiatTransactionParamsResponse>;
|
|
3243
|
+
ConfirmTransaction(request: MsgConfirmTransaction): Promise<MsgConfirmTransactionResponse>;
|
|
3244
|
+
UpdateTransactionStatus(request: MsgUpdateTransactionStatus): Promise<MsgUpdateTransactionStatusResponse>;
|
|
3245
|
+
UpdateMaxConcurrentLimit(request: MsgUpdateMaxConcurrentLimit): Promise<MsgUpdateMaxConcurrentLimitResponse>;
|
|
3246
|
+
RequestExternalTransaction(request: MsgRequestExternalTransaction): Promise<MsgRequestExternalTransactionResponse>;
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
export class MsgClientImpl implements Msg {
|
|
3250
|
+
private readonly rpc: Rpc;
|
|
2641
3251
|
constructor(rpc: Rpc) {
|
|
2642
3252
|
this.rpc = rpc;
|
|
2643
3253
|
this.RequestTransaction = this.RequestTransaction.bind(this);
|
|
2644
3254
|
this.FinalizeTransaction = this.FinalizeTransaction.bind(this);
|
|
2645
|
-
this.RequestProvisionTransaction =
|
|
2646
|
-
this.RequestProvisionTransaction.bind(this);
|
|
3255
|
+
this.RequestProvisionTransaction = this.RequestProvisionTransaction.bind(this);
|
|
2647
3256
|
this.CancelTransaction = this.CancelTransaction.bind(this);
|
|
2648
3257
|
this.SetTxHash = this.SetTxHash.bind(this);
|
|
2649
3258
|
this.SetTxProcess = this.SetTxProcess.bind(this);
|
|
2650
|
-
this.FinalizeProvisionTransaction =
|
|
2651
|
-
this.FinalizeProvisionTransaction.bind(this);
|
|
3259
|
+
this.FinalizeProvisionTransaction = this.FinalizeProvisionTransaction.bind(this);
|
|
2652
3260
|
this.RequestDrainTransaction = this.RequestDrainTransaction.bind(this);
|
|
2653
3261
|
this.FinalizeDrainTransaction = this.FinalizeDrainTransaction.bind(this);
|
|
2654
3262
|
this.RequestHtlcLock = this.RequestHtlcLock.bind(this);
|
|
2655
3263
|
this.HtlcReclaim = this.HtlcReclaim.bind(this);
|
|
2656
|
-
this.UpdateLiquidityProvisionParams =
|
|
2657
|
-
this.UpdateLiquidityProvisionParams.bind(this);
|
|
3264
|
+
this.UpdateLiquidityProvisionParams = this.UpdateLiquidityProvisionParams.bind(this);
|
|
2658
3265
|
this.UpdateTransferLimitParams = this.UpdateTransferLimitParams.bind(this);
|
|
2659
|
-
this.FinalizeWithdrawTransaction =
|
|
2660
|
-
|
|
3266
|
+
this.FinalizeWithdrawTransaction = this.FinalizeWithdrawTransaction.bind(this);
|
|
3267
|
+
this.SetFiatTransactionParams = this.SetFiatTransactionParams.bind(this);
|
|
3268
|
+
this.ConfirmTransaction = this.ConfirmTransaction.bind(this);
|
|
3269
|
+
this.UpdateTransactionStatus = this.UpdateTransactionStatus.bind(this);
|
|
3270
|
+
this.UpdateMaxConcurrentLimit = this.UpdateMaxConcurrentLimit.bind(this);
|
|
3271
|
+
this.RequestExternalTransaction = this.RequestExternalTransaction.bind(this);
|
|
2661
3272
|
}
|
|
2662
|
-
RequestTransaction(
|
|
2663
|
-
request: MsgRequestTransaction
|
|
2664
|
-
): Promise<MsgRequestTransactionResponse> {
|
|
3273
|
+
RequestTransaction(request: MsgRequestTransaction): Promise<MsgRequestTransactionResponse> {
|
|
2665
3274
|
const data = MsgRequestTransaction.encode(request).finish();
|
|
2666
|
-
const promise = this.rpc.request(
|
|
2667
|
-
|
|
2668
|
-
"RequestTransaction",
|
|
2669
|
-
data
|
|
2670
|
-
);
|
|
2671
|
-
return promise.then((data) =>
|
|
2672
|
-
MsgRequestTransactionResponse.decode(new _m0.Reader(data))
|
|
2673
|
-
);
|
|
3275
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestTransaction", data);
|
|
3276
|
+
return promise.then((data) => MsgRequestTransactionResponse.decode(new _m0.Reader(data)));
|
|
2674
3277
|
}
|
|
2675
3278
|
|
|
2676
|
-
FinalizeTransaction(
|
|
2677
|
-
request: MsgFinalizeTransaction
|
|
2678
|
-
): Promise<MsgFinalizeTransactionResponse> {
|
|
3279
|
+
FinalizeTransaction(request: MsgFinalizeTransaction): Promise<MsgFinalizeTransactionResponse> {
|
|
2679
3280
|
const data = MsgFinalizeTransaction.encode(request).finish();
|
|
2680
|
-
const promise = this.rpc.request(
|
|
2681
|
-
|
|
2682
|
-
"FinalizeTransaction",
|
|
2683
|
-
data
|
|
2684
|
-
);
|
|
2685
|
-
return promise.then((data) =>
|
|
2686
|
-
MsgFinalizeTransactionResponse.decode(new _m0.Reader(data))
|
|
2687
|
-
);
|
|
3281
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeTransaction", data);
|
|
3282
|
+
return promise.then((data) => MsgFinalizeTransactionResponse.decode(new _m0.Reader(data)));
|
|
2688
3283
|
}
|
|
2689
3284
|
|
|
2690
3285
|
RequestProvisionTransaction(
|
|
2691
|
-
request: MsgRequestProvisionTransaction
|
|
3286
|
+
request: MsgRequestProvisionTransaction,
|
|
2692
3287
|
): Promise<MsgRequestProvisionTransactionResponse> {
|
|
2693
3288
|
const data = MsgRequestProvisionTransaction.encode(request).finish();
|
|
2694
|
-
const promise = this.rpc.request(
|
|
2695
|
-
|
|
2696
|
-
"RequestProvisionTransaction",
|
|
2697
|
-
data
|
|
2698
|
-
);
|
|
2699
|
-
return promise.then((data) =>
|
|
2700
|
-
MsgRequestProvisionTransactionResponse.decode(new _m0.Reader(data))
|
|
2701
|
-
);
|
|
3289
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestProvisionTransaction", data);
|
|
3290
|
+
return promise.then((data) => MsgRequestProvisionTransactionResponse.decode(new _m0.Reader(data)));
|
|
2702
3291
|
}
|
|
2703
3292
|
|
|
2704
|
-
CancelTransaction(
|
|
2705
|
-
request: MsgCancelTransaction
|
|
2706
|
-
): Promise<MsgCancelTransactionResponse> {
|
|
3293
|
+
CancelTransaction(request: MsgCancelTransaction): Promise<MsgCancelTransactionResponse> {
|
|
2707
3294
|
const data = MsgCancelTransaction.encode(request).finish();
|
|
2708
|
-
const promise = this.rpc.request(
|
|
2709
|
-
|
|
2710
|
-
"CancelTransaction",
|
|
2711
|
-
data
|
|
2712
|
-
);
|
|
2713
|
-
return promise.then((data) =>
|
|
2714
|
-
MsgCancelTransactionResponse.decode(new _m0.Reader(data))
|
|
2715
|
-
);
|
|
3295
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "CancelTransaction", data);
|
|
3296
|
+
return promise.then((data) => MsgCancelTransactionResponse.decode(new _m0.Reader(data)));
|
|
2716
3297
|
}
|
|
2717
3298
|
|
|
2718
3299
|
SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse> {
|
|
2719
3300
|
const data = MsgSetTxHash.encode(request).finish();
|
|
2720
|
-
const promise = this.rpc.request(
|
|
2721
|
-
|
|
2722
|
-
"SetTxHash",
|
|
2723
|
-
data
|
|
2724
|
-
);
|
|
2725
|
-
return promise.then((data) =>
|
|
2726
|
-
MsgSetTxHashResponse.decode(new _m0.Reader(data))
|
|
2727
|
-
);
|
|
3301
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "SetTxHash", data);
|
|
3302
|
+
return promise.then((data) => MsgSetTxHashResponse.decode(new _m0.Reader(data)));
|
|
2728
3303
|
}
|
|
2729
3304
|
|
|
2730
3305
|
SetTxProcess(request: MsgSetTxProcess): Promise<MsgSetTxProcessResponse> {
|
|
2731
3306
|
const data = MsgSetTxProcess.encode(request).finish();
|
|
2732
|
-
const promise = this.rpc.request(
|
|
2733
|
-
|
|
2734
|
-
"SetTxProcess",
|
|
2735
|
-
data
|
|
2736
|
-
);
|
|
2737
|
-
return promise.then((data) =>
|
|
2738
|
-
MsgSetTxProcessResponse.decode(new _m0.Reader(data))
|
|
2739
|
-
);
|
|
3307
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "SetTxProcess", data);
|
|
3308
|
+
return promise.then((data) => MsgSetTxProcessResponse.decode(new _m0.Reader(data)));
|
|
2740
3309
|
}
|
|
2741
3310
|
|
|
2742
3311
|
FinalizeProvisionTransaction(
|
|
2743
|
-
request: MsgFinalizeProvisionTransaction
|
|
3312
|
+
request: MsgFinalizeProvisionTransaction,
|
|
2744
3313
|
): Promise<MsgFinalizeProvisionTransactionResponse> {
|
|
2745
3314
|
const data = MsgFinalizeProvisionTransaction.encode(request).finish();
|
|
2746
|
-
const promise = this.rpc.request(
|
|
2747
|
-
|
|
2748
|
-
"FinalizeProvisionTransaction",
|
|
2749
|
-
data
|
|
2750
|
-
);
|
|
2751
|
-
return promise.then((data) =>
|
|
2752
|
-
MsgFinalizeProvisionTransactionResponse.decode(new _m0.Reader(data))
|
|
2753
|
-
);
|
|
3315
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeProvisionTransaction", data);
|
|
3316
|
+
return promise.then((data) => MsgFinalizeProvisionTransactionResponse.decode(new _m0.Reader(data)));
|
|
2754
3317
|
}
|
|
2755
3318
|
|
|
2756
|
-
RequestDrainTransaction(
|
|
2757
|
-
request: MsgRequestDrainTransaction
|
|
2758
|
-
): Promise<MsgRequestDrainTransactionResponse> {
|
|
3319
|
+
RequestDrainTransaction(request: MsgRequestDrainTransaction): Promise<MsgRequestDrainTransactionResponse> {
|
|
2759
3320
|
const data = MsgRequestDrainTransaction.encode(request).finish();
|
|
2760
|
-
const promise = this.rpc.request(
|
|
2761
|
-
|
|
2762
|
-
"RequestDrainTransaction",
|
|
2763
|
-
data
|
|
2764
|
-
);
|
|
2765
|
-
return promise.then((data) =>
|
|
2766
|
-
MsgRequestDrainTransactionResponse.decode(new _m0.Reader(data))
|
|
2767
|
-
);
|
|
3321
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestDrainTransaction", data);
|
|
3322
|
+
return promise.then((data) => MsgRequestDrainTransactionResponse.decode(new _m0.Reader(data)));
|
|
2768
3323
|
}
|
|
2769
3324
|
|
|
2770
|
-
FinalizeDrainTransaction(
|
|
2771
|
-
request: MsgFinalizeDrainTransaction
|
|
2772
|
-
): Promise<MsgFinalizeDrainTransactionResponse> {
|
|
3325
|
+
FinalizeDrainTransaction(request: MsgFinalizeDrainTransaction): Promise<MsgFinalizeDrainTransactionResponse> {
|
|
2773
3326
|
const data = MsgFinalizeDrainTransaction.encode(request).finish();
|
|
2774
|
-
const promise = this.rpc.request(
|
|
2775
|
-
|
|
2776
|
-
"FinalizeDrainTransaction",
|
|
2777
|
-
data
|
|
2778
|
-
);
|
|
2779
|
-
return promise.then((data) =>
|
|
2780
|
-
MsgFinalizeDrainTransactionResponse.decode(new _m0.Reader(data))
|
|
2781
|
-
);
|
|
3327
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeDrainTransaction", data);
|
|
3328
|
+
return promise.then((data) => MsgFinalizeDrainTransactionResponse.decode(new _m0.Reader(data)));
|
|
2782
3329
|
}
|
|
2783
3330
|
|
|
2784
|
-
RequestHtlcLock(
|
|
2785
|
-
request: MsgRequestHtlcLock
|
|
2786
|
-
): Promise<MsgRequestHtlcLockResponse> {
|
|
3331
|
+
RequestHtlcLock(request: MsgRequestHtlcLock): Promise<MsgRequestHtlcLockResponse> {
|
|
2787
3332
|
const data = MsgRequestHtlcLock.encode(request).finish();
|
|
2788
|
-
const promise = this.rpc.request(
|
|
2789
|
-
|
|
2790
|
-
"RequestHtlcLock",
|
|
2791
|
-
data
|
|
2792
|
-
);
|
|
2793
|
-
return promise.then((data) =>
|
|
2794
|
-
MsgRequestHtlcLockResponse.decode(new _m0.Reader(data))
|
|
2795
|
-
);
|
|
3333
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestHtlcLock", data);
|
|
3334
|
+
return promise.then((data) => MsgRequestHtlcLockResponse.decode(new _m0.Reader(data)));
|
|
2796
3335
|
}
|
|
2797
3336
|
|
|
2798
3337
|
HtlcReclaim(request: MsgHtlcReclaim): Promise<MsgHtlcReclaimResponse> {
|
|
2799
3338
|
const data = MsgHtlcReclaim.encode(request).finish();
|
|
2800
|
-
const promise = this.rpc.request(
|
|
2801
|
-
|
|
2802
|
-
"HtlcReclaim",
|
|
2803
|
-
data
|
|
2804
|
-
);
|
|
2805
|
-
return promise.then((data) =>
|
|
2806
|
-
MsgHtlcReclaimResponse.decode(new _m0.Reader(data))
|
|
2807
|
-
);
|
|
3339
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "HtlcReclaim", data);
|
|
3340
|
+
return promise.then((data) => MsgHtlcReclaimResponse.decode(new _m0.Reader(data)));
|
|
2808
3341
|
}
|
|
2809
3342
|
|
|
2810
3343
|
UpdateLiquidityProvisionParams(
|
|
2811
|
-
request: MsgUpdateLiquidityProvisionParams
|
|
3344
|
+
request: MsgUpdateLiquidityProvisionParams,
|
|
2812
3345
|
): Promise<MsgUpdateLiquidityProvisionParamsResponse> {
|
|
2813
3346
|
const data = MsgUpdateLiquidityProvisionParams.encode(request).finish();
|
|
2814
|
-
const promise = this.rpc.request(
|
|
2815
|
-
|
|
2816
|
-
"UpdateLiquidityProvisionParams",
|
|
2817
|
-
data
|
|
2818
|
-
);
|
|
2819
|
-
return promise.then((data) =>
|
|
2820
|
-
MsgUpdateLiquidityProvisionParamsResponse.decode(new _m0.Reader(data))
|
|
2821
|
-
);
|
|
3347
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "UpdateLiquidityProvisionParams", data);
|
|
3348
|
+
return promise.then((data) => MsgUpdateLiquidityProvisionParamsResponse.decode(new _m0.Reader(data)));
|
|
2822
3349
|
}
|
|
2823
3350
|
|
|
2824
|
-
UpdateTransferLimitParams(
|
|
2825
|
-
request: MsgUpdateTransferLimitParams
|
|
2826
|
-
): Promise<MsgUpdateTransferLimitParamsResponse> {
|
|
3351
|
+
UpdateTransferLimitParams(request: MsgUpdateTransferLimitParams): Promise<MsgUpdateTransferLimitParamsResponse> {
|
|
2827
3352
|
const data = MsgUpdateTransferLimitParams.encode(request).finish();
|
|
2828
|
-
const promise = this.rpc.request(
|
|
2829
|
-
|
|
2830
|
-
"UpdateTransferLimitParams",
|
|
2831
|
-
data
|
|
2832
|
-
);
|
|
2833
|
-
return promise.then((data) =>
|
|
2834
|
-
MsgUpdateTransferLimitParamsResponse.decode(new _m0.Reader(data))
|
|
2835
|
-
);
|
|
3353
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "UpdateTransferLimitParams", data);
|
|
3354
|
+
return promise.then((data) => MsgUpdateTransferLimitParamsResponse.decode(new _m0.Reader(data)));
|
|
2836
3355
|
}
|
|
2837
3356
|
|
|
2838
3357
|
FinalizeWithdrawTransaction(
|
|
2839
|
-
request: MsgFinalizeWithdrawTransaction
|
|
3358
|
+
request: MsgFinalizeWithdrawTransaction,
|
|
2840
3359
|
): Promise<MsgFinalizeWithdrawTransactionResponse> {
|
|
2841
3360
|
const data = MsgFinalizeWithdrawTransaction.encode(request).finish();
|
|
2842
|
-
const promise = this.rpc.request(
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
);
|
|
3361
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "FinalizeWithdrawTransaction", data);
|
|
3362
|
+
return promise.then((data) => MsgFinalizeWithdrawTransactionResponse.decode(new _m0.Reader(data)));
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
SetFiatTransactionParams(request: MsgSetFiatTransactionParams): Promise<MsgSetFiatTransactionParamsResponse> {
|
|
3366
|
+
const data = MsgSetFiatTransactionParams.encode(request).finish();
|
|
3367
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "SetFiatTransactionParams", data);
|
|
3368
|
+
return promise.then((data) => MsgSetFiatTransactionParamsResponse.decode(new _m0.Reader(data)));
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
ConfirmTransaction(request: MsgConfirmTransaction): Promise<MsgConfirmTransactionResponse> {
|
|
3372
|
+
const data = MsgConfirmTransaction.encode(request).finish();
|
|
3373
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "ConfirmTransaction", data);
|
|
3374
|
+
return promise.then((data) => MsgConfirmTransactionResponse.decode(new _m0.Reader(data)));
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
UpdateTransactionStatus(request: MsgUpdateTransactionStatus): Promise<MsgUpdateTransactionStatusResponse> {
|
|
3378
|
+
const data = MsgUpdateTransactionStatus.encode(request).finish();
|
|
3379
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "UpdateTransactionStatus", data);
|
|
3380
|
+
return promise.then((data) => MsgUpdateTransactionStatusResponse.decode(new _m0.Reader(data)));
|
|
3381
|
+
}
|
|
3382
|
+
|
|
3383
|
+
UpdateMaxConcurrentLimit(request: MsgUpdateMaxConcurrentLimit): Promise<MsgUpdateMaxConcurrentLimitResponse> {
|
|
3384
|
+
const data = MsgUpdateMaxConcurrentLimit.encode(request).finish();
|
|
3385
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "UpdateMaxConcurrentLimit", data);
|
|
3386
|
+
return promise.then((data) => MsgUpdateMaxConcurrentLimitResponse.decode(new _m0.Reader(data)));
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
RequestExternalTransaction(request: MsgRequestExternalTransaction): Promise<MsgRequestExternalTransactionResponse> {
|
|
3390
|
+
const data = MsgRequestExternalTransaction.encode(request).finish();
|
|
3391
|
+
const promise = this.rpc.request("kimablockchain.transaction.Msg", "RequestExternalTransaction", data);
|
|
3392
|
+
return promise.then((data) => MsgRequestExternalTransactionResponse.decode(new _m0.Reader(data)));
|
|
2850
3393
|
}
|
|
2851
3394
|
}
|
|
2852
3395
|
|
|
2853
3396
|
interface Rpc {
|
|
2854
|
-
request(
|
|
2855
|
-
service: string,
|
|
2856
|
-
method: string,
|
|
2857
|
-
data: Uint8Array
|
|
2858
|
-
): Promise<Uint8Array>;
|
|
3397
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
2859
3398
|
}
|
|
2860
3399
|
|
|
2861
3400
|
declare var self: any | undefined;
|
|
@@ -2902,31 +3441,16 @@ function base64FromBytes(arr: Uint8Array): string {
|
|
|
2902
3441
|
}
|
|
2903
3442
|
}
|
|
2904
3443
|
|
|
2905
|
-
type Builtin =
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
| number
|
|
2911
|
-
| boolean
|
|
2912
|
-
| undefined;
|
|
2913
|
-
|
|
2914
|
-
export type DeepPartial<T> = T extends Builtin
|
|
2915
|
-
? T
|
|
2916
|
-
: T extends Array<infer U>
|
|
2917
|
-
? Array<DeepPartial<U>>
|
|
2918
|
-
: T extends ReadonlyArray<infer U>
|
|
2919
|
-
? ReadonlyArray<DeepPartial<U>>
|
|
2920
|
-
: T extends {}
|
|
2921
|
-
? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
3444
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
3445
|
+
|
|
3446
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
3447
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
3448
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
2922
3449
|
: Partial<T>;
|
|
2923
3450
|
|
|
2924
3451
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
2925
|
-
export type Exact<P, I extends P> = P extends Builtin
|
|
2926
|
-
|
|
2927
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & {
|
|
2928
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
2929
|
-
};
|
|
3452
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
3453
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
2930
3454
|
|
|
2931
3455
|
function longToNumber(long: Long): number {
|
|
2932
3456
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|