@kimafinance/kima-transaction-api 1.4.1 → 1.4.3

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.
Files changed (89) hide show
  1. package/README.md +37 -3
  2. package/build/index.d.ts +6 -3
  3. package/build/index.js +91 -17
  4. package/build/kima/common.d.ts +3 -4
  5. package/build/kima/common.js +15 -12
  6. package/build/kima/swap_tx.d.ts +387 -0
  7. package/build/kima/swap_tx.js +1109 -0
  8. package/build/kima/transfer_tx.d.ts +674 -0
  9. package/build/kima/transfer_tx.js +2170 -0
  10. package/build/types.d.ts +68 -0
  11. package/build/types.js +34 -0
  12. package/package.json +10 -10
  13. package/src/index.ts +167 -3
  14. package/src/kima/common.ts +22 -5
  15. package/src/kima/swap_tx.ts +1353 -0
  16. package/src/kima/transfer_tx.ts +2945 -0
  17. package/src/types.ts +78 -0
  18. package/build/api/htlc-lock.d.ts +0 -23
  19. package/build/api/htlc-lock.js +0 -37
  20. package/build/api/htlc-reclaim.d.ts +0 -14
  21. package/build/api/htlc-reclaim.js +0 -28
  22. package/build/api/submit.d.ts +0 -54
  23. package/build/api/submit.js +0 -94
  24. package/build/config/global-this.config.d.ts +0 -2
  25. package/build/config/global-this.config.js +0 -18
  26. package/build/config/probuff.config.d.ts +0 -2
  27. package/build/config/probuff.config.js +0 -12
  28. package/build/kima/tx/cancel.d.ts +0 -35
  29. package/build/kima/tx/cancel.js +0 -115
  30. package/build/kima/tx/drain-finalize.d.ts +0 -47
  31. package/build/kima/tx/drain-finalize.js +0 -155
  32. package/build/kima/tx/drain.d.ts +0 -50
  33. package/build/kima/tx/drain.js +0 -164
  34. package/build/kima/tx/finalize.d.ts +0 -47
  35. package/build/kima/tx/finalize.js +0 -155
  36. package/build/kima/tx/htlc-lock.d.ts +0 -42
  37. package/build/kima/tx/htlc-lock.js +0 -152
  38. package/build/kima/tx/htlc-reclaim.d.ts +0 -30
  39. package/build/kima/tx/htlc-reclaim.js +0 -105
  40. package/build/kima/tx/index.d.ts +0 -1
  41. package/build/kima/tx/index.js +0 -4
  42. package/build/kima/tx/liquidity-provision.d.ts +0 -30
  43. package/build/kima/tx/liquidity-provision.js +0 -102
  44. package/build/kima/tx/message-service.d.ts +0 -54
  45. package/build/kima/tx/message-service.js +0 -117
  46. package/build/kima/tx/provision-finalize.d.ts +0 -47
  47. package/build/kima/tx/provision-finalize.js +0 -155
  48. package/build/kima/tx/provision.d.ts +0 -70
  49. package/build/kima/tx/provision.js +0 -230
  50. package/build/kima/tx/request.d.ts +0 -63
  51. package/build/kima/tx/request.js +0 -222
  52. package/build/kima/tx/response.d.ts +0 -21
  53. package/build/kima/tx/response.js +0 -69
  54. package/build/kima/tx/rpc.d.ts +0 -0
  55. package/build/kima/tx/rpc.js +0 -1
  56. package/build/kima/tx/set-hash.d.ts +0 -42
  57. package/build/kima/tx/set-hash.js +0 -130
  58. package/build/kima/tx/set-process.d.ts +0 -37
  59. package/build/kima/tx/set-process.js +0 -121
  60. package/build/kima/tx/transfer-limit.d.ts +0 -30
  61. package/build/kima/tx/transfer-limit.js +0 -102
  62. package/build/kima/tx/withdraw.d.ts +0 -47
  63. package/build/kima/tx/withdraw.js +0 -155
  64. package/build/utils.d.ts +0 -17
  65. package/build/utils.js +0 -49
  66. package/src/api/htlc-lock.ts +0 -57
  67. package/src/api/htlc-reclaim.ts +0 -39
  68. package/src/api/submit.ts +0 -132
  69. package/src/config/global-this.config.ts +0 -20
  70. package/src/config/probuff.config.ts +0 -9
  71. package/src/kima/tx/cancel.ts +0 -147
  72. package/src/kima/tx/drain-finalize.ts +0 -191
  73. package/src/kima/tx/drain.ts +0 -201
  74. package/src/kima/tx/finalize.ts +0 -191
  75. package/src/kima/tx/htlc-lock.ts +0 -183
  76. package/src/kima/tx/htlc-reclaim.ts +0 -132
  77. package/src/kima/tx/index.ts +0 -1
  78. package/src/kima/tx/liquidity-provision.ts +0 -132
  79. package/src/kima/tx/message-service.ts +0 -278
  80. package/src/kima/tx/provision-finalize.ts +0 -191
  81. package/src/kima/tx/provision.ts +0 -279
  82. package/src/kima/tx/request.ts +0 -256
  83. package/src/kima/tx/response.ts +0 -83
  84. package/src/kima/tx/rpc.ts +0 -0
  85. package/src/kima/tx/set-hash.ts +0 -162
  86. package/src/kima/tx/set-process.ts +0 -151
  87. package/src/kima/tx/transfer-limit.ts +0 -132
  88. package/src/kima/tx/withdraw.ts +0 -191
  89. package/src/utils.ts +0 -67
@@ -0,0 +1,674 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "kimablockchain.transaction";
3
+ export interface MsgRequestTransaction {
4
+ creator: string;
5
+ originChain: string;
6
+ originAddress: string;
7
+ targetChain: string;
8
+ targetAddress: string;
9
+ originSymbol: string;
10
+ targetSymbol: string;
11
+ amount: string;
12
+ fee: string;
13
+ /** the timestamp when the HTLC contract expires and the user can reclaim the funds locked there */
14
+ htlcExpirationTimestamp: string;
15
+ /** the txhash locking the funds in the HTLC */
16
+ htlcCreationHash: string;
17
+ /** the output index of the locked funds in the HTLC creation transaction */
18
+ htlcCreationVout: number;
19
+ /** a version denoting which HTLC script version is being using for the HTLC transaction */
20
+ htlcVersion: string;
21
+ /** for bitcoin transaction this is the public key of the sender */
22
+ senderPubKey: Uint8Array;
23
+ /** additional data JSON object */
24
+ options: string;
25
+ }
26
+ export interface MsgRequestTransactionResponse {
27
+ code: string;
28
+ msg: string;
29
+ txId: number;
30
+ }
31
+ export interface MsgFinalizeTransaction {
32
+ creator: string;
33
+ txId: number;
34
+ txHash: string;
35
+ success: boolean;
36
+ signedKey: string;
37
+ errReason: string;
38
+ }
39
+ export interface MsgFinalizeTransactionResponse {
40
+ code: string;
41
+ msg: string;
42
+ }
43
+ export interface MsgFinalizeProvisionTransaction {
44
+ creator: string;
45
+ txId: number;
46
+ txHash: string;
47
+ success: boolean;
48
+ signedKey: string;
49
+ errReason: string;
50
+ }
51
+ export interface MsgFinalizeProvisionTransactionResponse {
52
+ code: string;
53
+ msg: string;
54
+ }
55
+ export interface MsgRequestProvisionTransaction {
56
+ creator: string;
57
+ chain: string;
58
+ fromAddress: string;
59
+ symbol: string;
60
+ amount: string;
61
+ options: string;
62
+ /** BTC transaction */
63
+ htlcExpirationTimestamp: string;
64
+ /** the txhash locking the funds in the HTLC */
65
+ htlcCreationHash: string;
66
+ /** the output index of the locked funds in the HTLC creation transaction */
67
+ htlcCreationVout: number;
68
+ /** a version denoting which HTLC script version is being using for the HTLC transaction */
69
+ htlcVersion: string;
70
+ /** the (compressed) public key of the sender */
71
+ senderPubKey: Uint8Array;
72
+ }
73
+ export interface MsgRequestProvisionTransactionResponse {
74
+ code: string;
75
+ msg: string;
76
+ txId: number;
77
+ }
78
+ export interface MsgCancelTransaction {
79
+ creator: string;
80
+ transactionId: string;
81
+ }
82
+ export interface MsgCancelTransactionResponse {
83
+ code: string;
84
+ msg: string;
85
+ }
86
+ export interface MsgSetTxHash {
87
+ creator: string;
88
+ txId: number;
89
+ txHash: string;
90
+ /** request_transaction, request_provision_transaction, request_drain_transaction */
91
+ txType: string;
92
+ }
93
+ export interface MsgSetTxHashResponse {
94
+ code: string;
95
+ msg: string;
96
+ }
97
+ export interface MsgSetTxProcess {
98
+ creator: string;
99
+ txId: number;
100
+ timestamp: number;
101
+ msgId: string;
102
+ /** request_transaction, request_provision_transaction, request_drain_transaction, withdraw_pool */
103
+ txType: string;
104
+ }
105
+ export interface MsgSetTxProcessResponse {
106
+ }
107
+ export interface MsgRequestDrainTransaction {
108
+ creator: string;
109
+ toChain: string;
110
+ toAddress: string;
111
+ symbol: string;
112
+ amount: string;
113
+ options: string;
114
+ }
115
+ export interface MsgRequestDrainTransactionResponse {
116
+ code: string;
117
+ msg: string;
118
+ txId: number;
119
+ }
120
+ export interface MsgFinalizeDrainTransaction {
121
+ creator: string;
122
+ txId: number;
123
+ txHash: string;
124
+ success: boolean;
125
+ signedKey: string;
126
+ errReason: string;
127
+ }
128
+ export interface MsgFinalizeDrainTransactionResponse {
129
+ code: string;
130
+ msg: string;
131
+ }
132
+ export interface MsgRequestHtlcLock {
133
+ creator: string;
134
+ fromAddress: string;
135
+ senderPubkey: string;
136
+ amount: string;
137
+ htlcTimeout: string;
138
+ txHash: string;
139
+ htlcAddress: string;
140
+ }
141
+ export interface MsgRequestHtlcLockResponse {
142
+ }
143
+ export interface MsgHtlcReclaim {
144
+ creator: string;
145
+ txHash: string;
146
+ senderAddress: string;
147
+ }
148
+ export interface MsgHtlcReclaimResponse {
149
+ }
150
+ export interface MsgUpdateLiquidityProvisionParams {
151
+ authority: string;
152
+ maxBTC: string;
153
+ maxUSDT: string;
154
+ }
155
+ export interface MsgUpdateLiquidityProvisionParamsResponse {
156
+ }
157
+ export interface MsgUpdateTransferLimitParams {
158
+ authority: string;
159
+ maxBTC: string;
160
+ maxUSDT: string;
161
+ }
162
+ export interface MsgUpdateTransferLimitParamsResponse {
163
+ }
164
+ export interface MsgFinalizeWithdrawTransaction {
165
+ creator: string;
166
+ txId: number;
167
+ txHash: string;
168
+ success: boolean;
169
+ signedKey: string;
170
+ errReason: string;
171
+ }
172
+ export interface MsgFinalizeWithdrawTransactionResponse {
173
+ code: string;
174
+ msg: string;
175
+ }
176
+ export declare const MsgRequestTransaction: {
177
+ encode(message: MsgRequestTransaction, writer?: _m0.Writer): _m0.Writer;
178
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestTransaction;
179
+ fromJSON(object: any): MsgRequestTransaction;
180
+ toJSON(message: MsgRequestTransaction): unknown;
181
+ fromPartial<I extends {
182
+ creator?: string | undefined;
183
+ originChain?: string | undefined;
184
+ originAddress?: string | undefined;
185
+ targetChain?: string | undefined;
186
+ targetAddress?: string | undefined;
187
+ originSymbol?: string | undefined;
188
+ targetSymbol?: string | undefined;
189
+ amount?: string | undefined;
190
+ fee?: string | undefined;
191
+ htlcExpirationTimestamp?: string | undefined;
192
+ htlcCreationHash?: string | undefined;
193
+ htlcCreationVout?: number | undefined;
194
+ htlcVersion?: string | undefined;
195
+ senderPubKey?: Uint8Array | undefined;
196
+ options?: string | undefined;
197
+ } & {
198
+ creator?: string | undefined;
199
+ originChain?: string | undefined;
200
+ originAddress?: string | undefined;
201
+ targetChain?: string | undefined;
202
+ targetAddress?: string | undefined;
203
+ originSymbol?: string | undefined;
204
+ targetSymbol?: string | undefined;
205
+ amount?: string | undefined;
206
+ fee?: string | undefined;
207
+ htlcExpirationTimestamp?: string | undefined;
208
+ htlcCreationHash?: string | undefined;
209
+ htlcCreationVout?: number | undefined;
210
+ htlcVersion?: string | undefined;
211
+ senderPubKey?: Uint8Array | undefined;
212
+ options?: string | undefined;
213
+ } & { [K in Exclude<keyof I, keyof MsgRequestTransaction>]: never; }>(object: I): MsgRequestTransaction;
214
+ };
215
+ export declare const MsgRequestTransactionResponse: {
216
+ encode(message: MsgRequestTransactionResponse, writer?: _m0.Writer): _m0.Writer;
217
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestTransactionResponse;
218
+ fromJSON(object: any): MsgRequestTransactionResponse;
219
+ toJSON(message: MsgRequestTransactionResponse): unknown;
220
+ fromPartial<I extends {
221
+ code?: string | undefined;
222
+ msg?: string | undefined;
223
+ txId?: number | undefined;
224
+ } & {
225
+ code?: string | undefined;
226
+ msg?: string | undefined;
227
+ txId?: number | undefined;
228
+ } & { [K in Exclude<keyof I, keyof MsgRequestTransactionResponse>]: never; }>(object: I): MsgRequestTransactionResponse;
229
+ };
230
+ export declare const MsgFinalizeTransaction: {
231
+ encode(message: MsgFinalizeTransaction, writer?: _m0.Writer): _m0.Writer;
232
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeTransaction;
233
+ fromJSON(object: any): MsgFinalizeTransaction;
234
+ toJSON(message: MsgFinalizeTransaction): unknown;
235
+ fromPartial<I extends {
236
+ creator?: string | undefined;
237
+ txId?: number | undefined;
238
+ txHash?: string | undefined;
239
+ success?: boolean | undefined;
240
+ signedKey?: string | undefined;
241
+ errReason?: string | undefined;
242
+ } & {
243
+ creator?: string | undefined;
244
+ txId?: number | undefined;
245
+ txHash?: string | undefined;
246
+ success?: boolean | undefined;
247
+ signedKey?: string | undefined;
248
+ errReason?: string | undefined;
249
+ } & { [K in Exclude<keyof I, keyof MsgFinalizeTransaction>]: never; }>(object: I): MsgFinalizeTransaction;
250
+ };
251
+ export declare const MsgFinalizeTransactionResponse: {
252
+ encode(message: MsgFinalizeTransactionResponse, writer?: _m0.Writer): _m0.Writer;
253
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeTransactionResponse;
254
+ fromJSON(object: any): MsgFinalizeTransactionResponse;
255
+ toJSON(message: MsgFinalizeTransactionResponse): unknown;
256
+ fromPartial<I extends {
257
+ code?: string | undefined;
258
+ msg?: string | undefined;
259
+ } & {
260
+ code?: string | undefined;
261
+ msg?: string | undefined;
262
+ } & { [K in Exclude<keyof I, keyof MsgFinalizeTransactionResponse>]: never; }>(object: I): MsgFinalizeTransactionResponse;
263
+ };
264
+ export declare const MsgFinalizeProvisionTransaction: {
265
+ encode(message: MsgFinalizeProvisionTransaction, writer?: _m0.Writer): _m0.Writer;
266
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeProvisionTransaction;
267
+ fromJSON(object: any): MsgFinalizeProvisionTransaction;
268
+ toJSON(message: MsgFinalizeProvisionTransaction): unknown;
269
+ fromPartial<I extends {
270
+ creator?: string | undefined;
271
+ txId?: number | undefined;
272
+ txHash?: string | undefined;
273
+ success?: boolean | undefined;
274
+ signedKey?: string | undefined;
275
+ errReason?: string | undefined;
276
+ } & {
277
+ creator?: string | undefined;
278
+ txId?: number | undefined;
279
+ txHash?: string | undefined;
280
+ success?: boolean | undefined;
281
+ signedKey?: string | undefined;
282
+ errReason?: string | undefined;
283
+ } & { [K in Exclude<keyof I, keyof MsgFinalizeProvisionTransaction>]: never; }>(object: I): MsgFinalizeProvisionTransaction;
284
+ };
285
+ export declare const MsgFinalizeProvisionTransactionResponse: {
286
+ encode(message: MsgFinalizeProvisionTransactionResponse, writer?: _m0.Writer): _m0.Writer;
287
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeProvisionTransactionResponse;
288
+ fromJSON(object: any): MsgFinalizeProvisionTransactionResponse;
289
+ toJSON(message: MsgFinalizeProvisionTransactionResponse): unknown;
290
+ fromPartial<I extends {
291
+ code?: string | undefined;
292
+ msg?: string | undefined;
293
+ } & {
294
+ code?: string | undefined;
295
+ msg?: string | undefined;
296
+ } & { [K in Exclude<keyof I, keyof MsgFinalizeProvisionTransactionResponse>]: never; }>(object: I): MsgFinalizeProvisionTransactionResponse;
297
+ };
298
+ export declare const MsgRequestProvisionTransaction: {
299
+ encode(message: MsgRequestProvisionTransaction, writer?: _m0.Writer): _m0.Writer;
300
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestProvisionTransaction;
301
+ fromJSON(object: any): MsgRequestProvisionTransaction;
302
+ toJSON(message: MsgRequestProvisionTransaction): unknown;
303
+ fromPartial<I extends {
304
+ creator?: string | undefined;
305
+ chain?: string | undefined;
306
+ fromAddress?: string | undefined;
307
+ symbol?: string | undefined;
308
+ amount?: string | undefined;
309
+ options?: string | undefined;
310
+ htlcExpirationTimestamp?: string | undefined;
311
+ htlcCreationHash?: string | undefined;
312
+ htlcCreationVout?: number | undefined;
313
+ htlcVersion?: string | undefined;
314
+ senderPubKey?: Uint8Array | undefined;
315
+ } & {
316
+ creator?: string | undefined;
317
+ chain?: string | undefined;
318
+ fromAddress?: string | undefined;
319
+ symbol?: string | undefined;
320
+ amount?: string | undefined;
321
+ options?: string | undefined;
322
+ htlcExpirationTimestamp?: string | undefined;
323
+ htlcCreationHash?: string | undefined;
324
+ htlcCreationVout?: number | undefined;
325
+ htlcVersion?: string | undefined;
326
+ senderPubKey?: Uint8Array | undefined;
327
+ } & { [K in Exclude<keyof I, keyof MsgRequestProvisionTransaction>]: never; }>(object: I): MsgRequestProvisionTransaction;
328
+ };
329
+ export declare const MsgRequestProvisionTransactionResponse: {
330
+ encode(message: MsgRequestProvisionTransactionResponse, writer?: _m0.Writer): _m0.Writer;
331
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestProvisionTransactionResponse;
332
+ fromJSON(object: any): MsgRequestProvisionTransactionResponse;
333
+ toJSON(message: MsgRequestProvisionTransactionResponse): unknown;
334
+ fromPartial<I extends {
335
+ code?: string | undefined;
336
+ msg?: string | undefined;
337
+ txId?: number | undefined;
338
+ } & {
339
+ code?: string | undefined;
340
+ msg?: string | undefined;
341
+ txId?: number | undefined;
342
+ } & { [K in Exclude<keyof I, keyof MsgRequestProvisionTransactionResponse>]: never; }>(object: I): MsgRequestProvisionTransactionResponse;
343
+ };
344
+ export declare const MsgCancelTransaction: {
345
+ encode(message: MsgCancelTransaction, writer?: _m0.Writer): _m0.Writer;
346
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransaction;
347
+ fromJSON(object: any): MsgCancelTransaction;
348
+ toJSON(message: MsgCancelTransaction): unknown;
349
+ fromPartial<I extends {
350
+ creator?: string | undefined;
351
+ transactionId?: string | undefined;
352
+ } & {
353
+ creator?: string | undefined;
354
+ transactionId?: string | undefined;
355
+ } & { [K in Exclude<keyof I, keyof MsgCancelTransaction>]: never; }>(object: I): MsgCancelTransaction;
356
+ };
357
+ export declare const MsgCancelTransactionResponse: {
358
+ encode(message: MsgCancelTransactionResponse, writer?: _m0.Writer): _m0.Writer;
359
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelTransactionResponse;
360
+ fromJSON(object: any): MsgCancelTransactionResponse;
361
+ toJSON(message: MsgCancelTransactionResponse): unknown;
362
+ fromPartial<I extends {
363
+ code?: string | undefined;
364
+ msg?: string | undefined;
365
+ } & {
366
+ code?: string | undefined;
367
+ msg?: string | undefined;
368
+ } & { [K in Exclude<keyof I, keyof MsgCancelTransactionResponse>]: never; }>(object: I): MsgCancelTransactionResponse;
369
+ };
370
+ export declare const MsgSetTxHash: {
371
+ encode(message: MsgSetTxHash, writer?: _m0.Writer): _m0.Writer;
372
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxHash;
373
+ fromJSON(object: any): MsgSetTxHash;
374
+ toJSON(message: MsgSetTxHash): unknown;
375
+ fromPartial<I extends {
376
+ creator?: string | undefined;
377
+ txId?: number | undefined;
378
+ txHash?: string | undefined;
379
+ txType?: string | undefined;
380
+ } & {
381
+ creator?: string | undefined;
382
+ txId?: number | undefined;
383
+ txHash?: string | undefined;
384
+ txType?: string | undefined;
385
+ } & { [K in Exclude<keyof I, keyof MsgSetTxHash>]: never; }>(object: I): MsgSetTxHash;
386
+ };
387
+ export declare const MsgSetTxHashResponse: {
388
+ encode(message: MsgSetTxHashResponse, writer?: _m0.Writer): _m0.Writer;
389
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxHashResponse;
390
+ fromJSON(object: any): MsgSetTxHashResponse;
391
+ toJSON(message: MsgSetTxHashResponse): unknown;
392
+ fromPartial<I extends {
393
+ code?: string | undefined;
394
+ msg?: string | undefined;
395
+ } & {
396
+ code?: string | undefined;
397
+ msg?: string | undefined;
398
+ } & { [K in Exclude<keyof I, keyof MsgSetTxHashResponse>]: never; }>(object: I): MsgSetTxHashResponse;
399
+ };
400
+ export declare const MsgSetTxProcess: {
401
+ encode(message: MsgSetTxProcess, writer?: _m0.Writer): _m0.Writer;
402
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxProcess;
403
+ fromJSON(object: any): MsgSetTxProcess;
404
+ toJSON(message: MsgSetTxProcess): unknown;
405
+ fromPartial<I extends {
406
+ creator?: string | undefined;
407
+ txId?: number | undefined;
408
+ timestamp?: number | undefined;
409
+ msgId?: string | undefined;
410
+ txType?: string | undefined;
411
+ } & {
412
+ creator?: string | undefined;
413
+ txId?: number | undefined;
414
+ timestamp?: number | undefined;
415
+ msgId?: string | undefined;
416
+ txType?: string | undefined;
417
+ } & { [K in Exclude<keyof I, keyof MsgSetTxProcess>]: never; }>(object: I): MsgSetTxProcess;
418
+ };
419
+ export declare const MsgSetTxProcessResponse: {
420
+ encode(_: MsgSetTxProcessResponse, writer?: _m0.Writer): _m0.Writer;
421
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetTxProcessResponse;
422
+ fromJSON(_: any): MsgSetTxProcessResponse;
423
+ toJSON(_: MsgSetTxProcessResponse): unknown;
424
+ fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): MsgSetTxProcessResponse;
425
+ };
426
+ export declare const MsgRequestDrainTransaction: {
427
+ encode(message: MsgRequestDrainTransaction, writer?: _m0.Writer): _m0.Writer;
428
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestDrainTransaction;
429
+ fromJSON(object: any): MsgRequestDrainTransaction;
430
+ toJSON(message: MsgRequestDrainTransaction): unknown;
431
+ fromPartial<I extends {
432
+ creator?: string | undefined;
433
+ toChain?: string | undefined;
434
+ toAddress?: string | undefined;
435
+ symbol?: string | undefined;
436
+ amount?: string | undefined;
437
+ options?: string | undefined;
438
+ } & {
439
+ creator?: string | undefined;
440
+ toChain?: string | undefined;
441
+ toAddress?: string | undefined;
442
+ symbol?: string | undefined;
443
+ amount?: string | undefined;
444
+ options?: string | undefined;
445
+ } & { [K in Exclude<keyof I, keyof MsgRequestDrainTransaction>]: never; }>(object: I): MsgRequestDrainTransaction;
446
+ };
447
+ export declare const MsgRequestDrainTransactionResponse: {
448
+ encode(message: MsgRequestDrainTransactionResponse, writer?: _m0.Writer): _m0.Writer;
449
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestDrainTransactionResponse;
450
+ fromJSON(object: any): MsgRequestDrainTransactionResponse;
451
+ toJSON(message: MsgRequestDrainTransactionResponse): unknown;
452
+ fromPartial<I extends {
453
+ code?: string | undefined;
454
+ msg?: string | undefined;
455
+ txId?: number | undefined;
456
+ } & {
457
+ code?: string | undefined;
458
+ msg?: string | undefined;
459
+ txId?: number | undefined;
460
+ } & { [K in Exclude<keyof I, keyof MsgRequestDrainTransactionResponse>]: never; }>(object: I): MsgRequestDrainTransactionResponse;
461
+ };
462
+ export declare const MsgFinalizeDrainTransaction: {
463
+ encode(message: MsgFinalizeDrainTransaction, writer?: _m0.Writer): _m0.Writer;
464
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeDrainTransaction;
465
+ fromJSON(object: any): MsgFinalizeDrainTransaction;
466
+ toJSON(message: MsgFinalizeDrainTransaction): unknown;
467
+ fromPartial<I extends {
468
+ creator?: string | undefined;
469
+ txId?: number | undefined;
470
+ txHash?: string | undefined;
471
+ success?: boolean | undefined;
472
+ signedKey?: string | undefined;
473
+ errReason?: string | undefined;
474
+ } & {
475
+ creator?: string | undefined;
476
+ txId?: number | undefined;
477
+ txHash?: string | undefined;
478
+ success?: boolean | undefined;
479
+ signedKey?: string | undefined;
480
+ errReason?: string | undefined;
481
+ } & { [K in Exclude<keyof I, keyof MsgFinalizeDrainTransaction>]: never; }>(object: I): MsgFinalizeDrainTransaction;
482
+ };
483
+ export declare const MsgFinalizeDrainTransactionResponse: {
484
+ encode(message: MsgFinalizeDrainTransactionResponse, writer?: _m0.Writer): _m0.Writer;
485
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeDrainTransactionResponse;
486
+ fromJSON(object: any): MsgFinalizeDrainTransactionResponse;
487
+ toJSON(message: MsgFinalizeDrainTransactionResponse): unknown;
488
+ fromPartial<I extends {
489
+ code?: string | undefined;
490
+ msg?: string | undefined;
491
+ } & {
492
+ code?: string | undefined;
493
+ msg?: string | undefined;
494
+ } & { [K in Exclude<keyof I, keyof MsgFinalizeDrainTransactionResponse>]: never; }>(object: I): MsgFinalizeDrainTransactionResponse;
495
+ };
496
+ export declare const MsgRequestHtlcLock: {
497
+ encode(message: MsgRequestHtlcLock, writer?: _m0.Writer): _m0.Writer;
498
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestHtlcLock;
499
+ fromJSON(object: any): MsgRequestHtlcLock;
500
+ toJSON(message: MsgRequestHtlcLock): unknown;
501
+ fromPartial<I extends {
502
+ creator?: string | undefined;
503
+ fromAddress?: string | undefined;
504
+ senderPubkey?: string | undefined;
505
+ amount?: string | undefined;
506
+ htlcTimeout?: string | undefined;
507
+ txHash?: string | undefined;
508
+ htlcAddress?: string | undefined;
509
+ } & {
510
+ creator?: string | undefined;
511
+ fromAddress?: string | undefined;
512
+ senderPubkey?: string | undefined;
513
+ amount?: string | undefined;
514
+ htlcTimeout?: string | undefined;
515
+ txHash?: string | undefined;
516
+ htlcAddress?: string | undefined;
517
+ } & { [K in Exclude<keyof I, keyof MsgRequestHtlcLock>]: never; }>(object: I): MsgRequestHtlcLock;
518
+ };
519
+ export declare const MsgRequestHtlcLockResponse: {
520
+ encode(_: MsgRequestHtlcLockResponse, writer?: _m0.Writer): _m0.Writer;
521
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRequestHtlcLockResponse;
522
+ fromJSON(_: any): MsgRequestHtlcLockResponse;
523
+ toJSON(_: MsgRequestHtlcLockResponse): unknown;
524
+ fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): MsgRequestHtlcLockResponse;
525
+ };
526
+ export declare const MsgHtlcReclaim: {
527
+ encode(message: MsgHtlcReclaim, writer?: _m0.Writer): _m0.Writer;
528
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgHtlcReclaim;
529
+ fromJSON(object: any): MsgHtlcReclaim;
530
+ toJSON(message: MsgHtlcReclaim): unknown;
531
+ fromPartial<I extends {
532
+ creator?: string | undefined;
533
+ txHash?: string | undefined;
534
+ senderAddress?: string | undefined;
535
+ } & {
536
+ creator?: string | undefined;
537
+ txHash?: string | undefined;
538
+ senderAddress?: string | undefined;
539
+ } & { [K in Exclude<keyof I, keyof MsgHtlcReclaim>]: never; }>(object: I): MsgHtlcReclaim;
540
+ };
541
+ export declare const MsgHtlcReclaimResponse: {
542
+ encode(_: MsgHtlcReclaimResponse, writer?: _m0.Writer): _m0.Writer;
543
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgHtlcReclaimResponse;
544
+ fromJSON(_: any): MsgHtlcReclaimResponse;
545
+ toJSON(_: MsgHtlcReclaimResponse): unknown;
546
+ fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): MsgHtlcReclaimResponse;
547
+ };
548
+ export declare const MsgUpdateLiquidityProvisionParams: {
549
+ encode(message: MsgUpdateLiquidityProvisionParams, writer?: _m0.Writer): _m0.Writer;
550
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateLiquidityProvisionParams;
551
+ fromJSON(object: any): MsgUpdateLiquidityProvisionParams;
552
+ toJSON(message: MsgUpdateLiquidityProvisionParams): unknown;
553
+ fromPartial<I extends {
554
+ authority?: string | undefined;
555
+ maxBTC?: string | undefined;
556
+ maxUSDT?: string | undefined;
557
+ } & {
558
+ authority?: string | undefined;
559
+ maxBTC?: string | undefined;
560
+ maxUSDT?: string | undefined;
561
+ } & { [K in Exclude<keyof I, keyof MsgUpdateLiquidityProvisionParams>]: never; }>(object: I): MsgUpdateLiquidityProvisionParams;
562
+ };
563
+ export declare const MsgUpdateLiquidityProvisionParamsResponse: {
564
+ encode(_: MsgUpdateLiquidityProvisionParamsResponse, writer?: _m0.Writer): _m0.Writer;
565
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateLiquidityProvisionParamsResponse;
566
+ fromJSON(_: any): MsgUpdateLiquidityProvisionParamsResponse;
567
+ toJSON(_: MsgUpdateLiquidityProvisionParamsResponse): unknown;
568
+ fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): MsgUpdateLiquidityProvisionParamsResponse;
569
+ };
570
+ export declare const MsgUpdateTransferLimitParams: {
571
+ encode(message: MsgUpdateTransferLimitParams, writer?: _m0.Writer): _m0.Writer;
572
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTransferLimitParams;
573
+ fromJSON(object: any): MsgUpdateTransferLimitParams;
574
+ toJSON(message: MsgUpdateTransferLimitParams): unknown;
575
+ fromPartial<I extends {
576
+ authority?: string | undefined;
577
+ maxBTC?: string | undefined;
578
+ maxUSDT?: string | undefined;
579
+ } & {
580
+ authority?: string | undefined;
581
+ maxBTC?: string | undefined;
582
+ maxUSDT?: string | undefined;
583
+ } & { [K in Exclude<keyof I, keyof MsgUpdateTransferLimitParams>]: never; }>(object: I): MsgUpdateTransferLimitParams;
584
+ };
585
+ export declare const MsgUpdateTransferLimitParamsResponse: {
586
+ encode(_: MsgUpdateTransferLimitParamsResponse, writer?: _m0.Writer): _m0.Writer;
587
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTransferLimitParamsResponse;
588
+ fromJSON(_: any): MsgUpdateTransferLimitParamsResponse;
589
+ toJSON(_: MsgUpdateTransferLimitParamsResponse): unknown;
590
+ fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): MsgUpdateTransferLimitParamsResponse;
591
+ };
592
+ export declare const MsgFinalizeWithdrawTransaction: {
593
+ encode(message: MsgFinalizeWithdrawTransaction, writer?: _m0.Writer): _m0.Writer;
594
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeWithdrawTransaction;
595
+ fromJSON(object: any): MsgFinalizeWithdrawTransaction;
596
+ toJSON(message: MsgFinalizeWithdrawTransaction): unknown;
597
+ fromPartial<I extends {
598
+ creator?: string | undefined;
599
+ txId?: number | undefined;
600
+ txHash?: string | undefined;
601
+ success?: boolean | undefined;
602
+ signedKey?: string | undefined;
603
+ errReason?: string | undefined;
604
+ } & {
605
+ creator?: string | undefined;
606
+ txId?: number | undefined;
607
+ txHash?: string | undefined;
608
+ success?: boolean | undefined;
609
+ signedKey?: string | undefined;
610
+ errReason?: string | undefined;
611
+ } & { [K in Exclude<keyof I, keyof MsgFinalizeWithdrawTransaction>]: never; }>(object: I): MsgFinalizeWithdrawTransaction;
612
+ };
613
+ export declare const MsgFinalizeWithdrawTransactionResponse: {
614
+ encode(message: MsgFinalizeWithdrawTransactionResponse, writer?: _m0.Writer): _m0.Writer;
615
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgFinalizeWithdrawTransactionResponse;
616
+ fromJSON(object: any): MsgFinalizeWithdrawTransactionResponse;
617
+ toJSON(message: MsgFinalizeWithdrawTransactionResponse): unknown;
618
+ fromPartial<I extends {
619
+ code?: string | undefined;
620
+ msg?: string | undefined;
621
+ } & {
622
+ code?: string | undefined;
623
+ msg?: string | undefined;
624
+ } & { [K in Exclude<keyof I, keyof MsgFinalizeWithdrawTransactionResponse>]: never; }>(object: I): MsgFinalizeWithdrawTransactionResponse;
625
+ };
626
+ /** Msg defines the Msg service. */
627
+ export interface Msg {
628
+ RequestTransaction(request: MsgRequestTransaction): Promise<MsgRequestTransactionResponse>;
629
+ FinalizeTransaction(request: MsgFinalizeTransaction): Promise<MsgFinalizeTransactionResponse>;
630
+ RequestProvisionTransaction(request: MsgRequestProvisionTransaction): Promise<MsgRequestProvisionTransactionResponse>;
631
+ CancelTransaction(request: MsgCancelTransaction): Promise<MsgCancelTransactionResponse>;
632
+ SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse>;
633
+ SetTxProcess(request: MsgSetTxProcess): Promise<MsgSetTxProcessResponse>;
634
+ FinalizeProvisionTransaction(request: MsgFinalizeProvisionTransaction): Promise<MsgFinalizeProvisionTransactionResponse>;
635
+ RequestDrainTransaction(request: MsgRequestDrainTransaction): Promise<MsgRequestDrainTransactionResponse>;
636
+ FinalizeDrainTransaction(request: MsgFinalizeDrainTransaction): Promise<MsgFinalizeDrainTransactionResponse>;
637
+ RequestHtlcLock(request: MsgRequestHtlcLock): Promise<MsgRequestHtlcLockResponse>;
638
+ HtlcReclaim(request: MsgHtlcReclaim): Promise<MsgHtlcReclaimResponse>;
639
+ UpdateLiquidityProvisionParams(request: MsgUpdateLiquidityProvisionParams): Promise<MsgUpdateLiquidityProvisionParamsResponse>;
640
+ UpdateTransferLimitParams(request: MsgUpdateTransferLimitParams): Promise<MsgUpdateTransferLimitParamsResponse>;
641
+ FinalizeWithdrawTransaction(request: MsgFinalizeWithdrawTransaction): Promise<MsgFinalizeWithdrawTransactionResponse>;
642
+ }
643
+ export declare class MsgClientImpl implements Msg {
644
+ private readonly rpc;
645
+ constructor(rpc: Rpc);
646
+ RequestTransaction(request: MsgRequestTransaction): Promise<MsgRequestTransactionResponse>;
647
+ FinalizeTransaction(request: MsgFinalizeTransaction): Promise<MsgFinalizeTransactionResponse>;
648
+ RequestProvisionTransaction(request: MsgRequestProvisionTransaction): Promise<MsgRequestProvisionTransactionResponse>;
649
+ CancelTransaction(request: MsgCancelTransaction): Promise<MsgCancelTransactionResponse>;
650
+ SetTxHash(request: MsgSetTxHash): Promise<MsgSetTxHashResponse>;
651
+ SetTxProcess(request: MsgSetTxProcess): Promise<MsgSetTxProcessResponse>;
652
+ FinalizeProvisionTransaction(request: MsgFinalizeProvisionTransaction): Promise<MsgFinalizeProvisionTransactionResponse>;
653
+ RequestDrainTransaction(request: MsgRequestDrainTransaction): Promise<MsgRequestDrainTransactionResponse>;
654
+ FinalizeDrainTransaction(request: MsgFinalizeDrainTransaction): Promise<MsgFinalizeDrainTransactionResponse>;
655
+ RequestHtlcLock(request: MsgRequestHtlcLock): Promise<MsgRequestHtlcLockResponse>;
656
+ HtlcReclaim(request: MsgHtlcReclaim): Promise<MsgHtlcReclaimResponse>;
657
+ UpdateLiquidityProvisionParams(request: MsgUpdateLiquidityProvisionParams): Promise<MsgUpdateLiquidityProvisionParamsResponse>;
658
+ UpdateTransferLimitParams(request: MsgUpdateTransferLimitParams): Promise<MsgUpdateTransferLimitParamsResponse>;
659
+ FinalizeWithdrawTransaction(request: MsgFinalizeWithdrawTransaction): Promise<MsgFinalizeWithdrawTransactionResponse>;
660
+ }
661
+ interface Rpc {
662
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
663
+ }
664
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
665
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
666
+ [K in keyof T]?: DeepPartial<T[K]>;
667
+ } : Partial<T>;
668
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
669
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
670
+ [K in keyof P]: Exact<P[K], I[K]>;
671
+ } & {
672
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
673
+ };
674
+ export {};