@kimafinance/kima-transaction-api 1.0.29-beta.1 → 1.0.30-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/kima/tx.ts CHANGED
@@ -10,7 +10,8 @@ export interface MsgRequestTransaction {
10
10
  originAddress: string;
11
11
  targetChain: string;
12
12
  targetAddress: string;
13
- symbol: string;
13
+ originSymbol: string;
14
+ targetSymbol: string;
14
15
  amount: string;
15
16
  fee: string;
16
17
  /** the timestamp when the HTLC contract expires and the user can reclaim the funds locked there */
@@ -23,6 +24,8 @@ export interface MsgRequestTransaction {
23
24
  htlcVersion: string;
24
25
  /** for bitcoin transaction this is the public key of the sender */
25
26
  senderPubKey: Uint8Array;
27
+ /** additional data JSON object */
28
+ options: string;
26
29
  }
27
30
 
28
31
  export interface MsgRequestTransactionResponse {
@@ -112,7 +115,7 @@ export interface MsgSetTxProcess {
112
115
  txId: number;
113
116
  timestamp: number;
114
117
  msgId: string;
115
- /** request_transaction, request_provision_transaction, request_drain_transaction */
118
+ /** request_transaction, request_provision_transaction, request_drain_transaction, withdraw_pool */
116
119
  txType: string;
117
120
  }
118
121
 
@@ -167,6 +170,36 @@ export interface MsgHtlcReclaim {
167
170
 
168
171
  export interface MsgHtlcReclaimResponse {}
169
172
 
173
+ export interface MsgUpdateLiquidityProvisionParams {
174
+ authority: string;
175
+ maxBTC: string;
176
+ maxUSDT: string;
177
+ }
178
+
179
+ export interface MsgUpdateLiquidityProvisionParamsResponse {}
180
+
181
+ export interface MsgUpdateTransferLimitParams {
182
+ authority: string;
183
+ maxBTC: string;
184
+ maxUSDT: string;
185
+ }
186
+
187
+ export interface MsgUpdateTransferLimitParamsResponse {}
188
+
189
+ export interface MsgFinalizeWithdrawTransaction {
190
+ creator: string;
191
+ txId: number;
192
+ txHash: string;
193
+ success: boolean;
194
+ signedKey: string;
195
+ errReason: string;
196
+ }
197
+
198
+ export interface MsgFinalizeWithdrawTransactionResponse {
199
+ code: string;
200
+ msg: string;
201
+ }
202
+
170
203
  function createBaseMsgRequestTransaction(): MsgRequestTransaction {
171
204
  return {
172
205
  creator: "",
@@ -174,7 +207,8 @@ function createBaseMsgRequestTransaction(): MsgRequestTransaction {
174
207
  originAddress: "",
175
208
  targetChain: "",
176
209
  targetAddress: "",
177
- symbol: "",
210
+ originSymbol: "",
211
+ targetSymbol: "",
178
212
  amount: "",
179
213
  fee: "",
180
214
  htlcExpirationTimestamp: "",
@@ -182,6 +216,7 @@ function createBaseMsgRequestTransaction(): MsgRequestTransaction {
182
216
  htlcCreationVout: 0,
183
217
  htlcVersion: "",
184
218
  senderPubKey: new Uint8Array(),
219
+ options: "",
185
220
  };
186
221
  }
187
222
 
@@ -205,29 +240,35 @@ export const MsgRequestTransaction = {
205
240
  if (message.targetAddress !== "") {
206
241
  writer.uint32(42).string(message.targetAddress);
207
242
  }
208
- if (message.symbol !== "") {
209
- writer.uint32(50).string(message.symbol);
243
+ if (message.originSymbol !== "") {
244
+ writer.uint32(50).string(message.originSymbol);
245
+ }
246
+ if (message.targetSymbol !== "") {
247
+ writer.uint32(58).string(message.targetSymbol);
210
248
  }
211
249
  if (message.amount !== "") {
212
- writer.uint32(58).string(message.amount);
250
+ writer.uint32(66).string(message.amount);
213
251
  }
214
252
  if (message.fee !== "") {
215
- writer.uint32(66).string(message.fee);
253
+ writer.uint32(74).string(message.fee);
216
254
  }
217
255
  if (message.htlcExpirationTimestamp !== "") {
218
- writer.uint32(74).string(message.htlcExpirationTimestamp);
256
+ writer.uint32(82).string(message.htlcExpirationTimestamp);
219
257
  }
220
258
  if (message.htlcCreationHash !== "") {
221
- writer.uint32(82).string(message.htlcCreationHash);
259
+ writer.uint32(90).string(message.htlcCreationHash);
222
260
  }
223
261
  if (message.htlcCreationVout !== 0) {
224
- writer.uint32(88).uint32(message.htlcCreationVout);
262
+ writer.uint32(96).uint32(message.htlcCreationVout);
225
263
  }
226
264
  if (message.htlcVersion !== "") {
227
- writer.uint32(98).string(message.htlcVersion);
265
+ writer.uint32(106).string(message.htlcVersion);
228
266
  }
229
267
  if (message.senderPubKey.length !== 0) {
230
- writer.uint32(106).bytes(message.senderPubKey);
268
+ writer.uint32(114).bytes(message.senderPubKey);
269
+ }
270
+ if (message.options !== "") {
271
+ writer.uint32(122).string(message.options);
231
272
  }
232
273
  return writer;
233
274
  },
@@ -258,29 +299,35 @@ export const MsgRequestTransaction = {
258
299
  message.targetAddress = reader.string();
259
300
  break;
260
301
  case 6:
261
- message.symbol = reader.string();
302
+ message.originSymbol = reader.string();
262
303
  break;
263
304
  case 7:
264
- message.amount = reader.string();
305
+ message.targetSymbol = reader.string();
265
306
  break;
266
307
  case 8:
267
- message.fee = reader.string();
308
+ message.amount = reader.string();
268
309
  break;
269
310
  case 9:
270
- message.htlcExpirationTimestamp = reader.string();
311
+ message.fee = reader.string();
271
312
  break;
272
313
  case 10:
273
- message.htlcCreationHash = reader.string();
314
+ message.htlcExpirationTimestamp = reader.string();
274
315
  break;
275
316
  case 11:
276
- message.htlcCreationVout = reader.uint32();
317
+ message.htlcCreationHash = reader.string();
277
318
  break;
278
319
  case 12:
279
- message.htlcVersion = reader.string();
320
+ message.htlcCreationVout = reader.uint32();
280
321
  break;
281
322
  case 13:
323
+ message.htlcVersion = reader.string();
324
+ break;
325
+ case 14:
282
326
  message.senderPubKey = reader.bytes();
283
327
  break;
328
+ case 15:
329
+ message.options = reader.string();
330
+ break;
284
331
  default:
285
332
  reader.skipType(tag & 7);
286
333
  break;
@@ -300,7 +347,12 @@ export const MsgRequestTransaction = {
300
347
  targetAddress: isSet(object.targetAddress)
301
348
  ? String(object.targetAddress)
302
349
  : "",
303
- symbol: isSet(object.symbol) ? String(object.symbol) : "",
350
+ originSymbol: isSet(object.originSymbol)
351
+ ? String(object.originSymbol)
352
+ : "",
353
+ targetSymbol: isSet(object.targetSymbol)
354
+ ? String(object.targetSymbol)
355
+ : "",
304
356
  amount: isSet(object.amount) ? String(object.amount) : "",
305
357
  fee: isSet(object.fee) ? String(object.fee) : "",
306
358
  htlcExpirationTimestamp: isSet(object.htlcExpirationTimestamp)
@@ -316,6 +368,7 @@ export const MsgRequestTransaction = {
316
368
  senderPubKey: isSet(object.senderPubKey)
317
369
  ? bytesFromBase64(object.senderPubKey)
318
370
  : new Uint8Array(),
371
+ options: isSet(object.options) ? String(object.options) : "",
319
372
  };
320
373
  },
321
374
 
@@ -330,7 +383,10 @@ export const MsgRequestTransaction = {
330
383
  (obj.targetChain = message.targetChain);
331
384
  message.targetAddress !== undefined &&
332
385
  (obj.targetAddress = message.targetAddress);
333
- message.symbol !== undefined && (obj.symbol = message.symbol);
386
+ message.originSymbol !== undefined &&
387
+ (obj.originSymbol = message.originSymbol);
388
+ message.targetSymbol !== undefined &&
389
+ (obj.targetSymbol = message.targetSymbol);
334
390
  message.amount !== undefined && (obj.amount = message.amount);
335
391
  message.fee !== undefined && (obj.fee = message.fee);
336
392
  message.htlcExpirationTimestamp !== undefined &&
@@ -347,6 +403,7 @@ export const MsgRequestTransaction = {
347
403
  ? message.senderPubKey
348
404
  : new Uint8Array()
349
405
  ));
406
+ message.options !== undefined && (obj.options = message.options);
350
407
  return obj;
351
408
  },
352
409
 
@@ -359,7 +416,8 @@ export const MsgRequestTransaction = {
359
416
  message.originAddress = object.originAddress ?? "";
360
417
  message.targetChain = object.targetChain ?? "";
361
418
  message.targetAddress = object.targetAddress ?? "";
362
- message.symbol = object.symbol ?? "";
419
+ message.originSymbol = object.originSymbol ?? "";
420
+ message.targetSymbol = object.targetSymbol ?? "";
363
421
  message.amount = object.amount ?? "";
364
422
  message.fee = object.fee ?? "";
365
423
  message.htlcExpirationTimestamp = object.htlcExpirationTimestamp ?? "";
@@ -367,6 +425,7 @@ export const MsgRequestTransaction = {
367
425
  message.htlcCreationVout = object.htlcCreationVout ?? 0;
368
426
  message.htlcVersion = object.htlcVersion ?? "";
369
427
  message.senderPubKey = object.senderPubKey ?? new Uint8Array();
428
+ message.options = object.options ?? "";
370
429
  return message;
371
430
  },
372
431
  };
@@ -2118,6 +2177,425 @@ export const MsgHtlcReclaimResponse = {
2118
2177
  },
2119
2178
  };
2120
2179
 
2180
+ function createBaseMsgUpdateLiquidityProvisionParams(): MsgUpdateLiquidityProvisionParams {
2181
+ return { authority: "", maxBTC: "", maxUSDT: "" };
2182
+ }
2183
+
2184
+ export const MsgUpdateLiquidityProvisionParams = {
2185
+ encode(
2186
+ message: MsgUpdateLiquidityProvisionParams,
2187
+ writer: _m0.Writer = _m0.Writer.create()
2188
+ ): _m0.Writer {
2189
+ if (message.authority !== "") {
2190
+ writer.uint32(10).string(message.authority);
2191
+ }
2192
+ if (message.maxBTC !== "") {
2193
+ writer.uint32(18).string(message.maxBTC);
2194
+ }
2195
+ if (message.maxUSDT !== "") {
2196
+ writer.uint32(26).string(message.maxUSDT);
2197
+ }
2198
+ return writer;
2199
+ },
2200
+
2201
+ decode(
2202
+ input: _m0.Reader | Uint8Array,
2203
+ length?: number
2204
+ ): MsgUpdateLiquidityProvisionParams {
2205
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2206
+ let end = length === undefined ? reader.len : reader.pos + length;
2207
+ const message = createBaseMsgUpdateLiquidityProvisionParams();
2208
+ while (reader.pos < end) {
2209
+ const tag = reader.uint32();
2210
+ switch (tag >>> 3) {
2211
+ case 1:
2212
+ message.authority = reader.string();
2213
+ break;
2214
+ case 2:
2215
+ message.maxBTC = reader.string();
2216
+ break;
2217
+ case 3:
2218
+ message.maxUSDT = reader.string();
2219
+ break;
2220
+ default:
2221
+ reader.skipType(tag & 7);
2222
+ break;
2223
+ }
2224
+ }
2225
+ return message;
2226
+ },
2227
+
2228
+ fromJSON(object: any): MsgUpdateLiquidityProvisionParams {
2229
+ return {
2230
+ authority: isSet(object.authority) ? String(object.authority) : "",
2231
+ maxBTC: isSet(object.maxBTC) ? String(object.maxBTC) : "",
2232
+ maxUSDT: isSet(object.maxUSDT) ? String(object.maxUSDT) : "",
2233
+ };
2234
+ },
2235
+
2236
+ toJSON(message: MsgUpdateLiquidityProvisionParams): unknown {
2237
+ const obj: any = {};
2238
+ message.authority !== undefined && (obj.authority = message.authority);
2239
+ message.maxBTC !== undefined && (obj.maxBTC = message.maxBTC);
2240
+ message.maxUSDT !== undefined && (obj.maxUSDT = message.maxUSDT);
2241
+ return obj;
2242
+ },
2243
+
2244
+ fromPartial<
2245
+ I extends Exact<DeepPartial<MsgUpdateLiquidityProvisionParams>, I>
2246
+ >(object: I): MsgUpdateLiquidityProvisionParams {
2247
+ const message = createBaseMsgUpdateLiquidityProvisionParams();
2248
+ message.authority = object.authority ?? "";
2249
+ message.maxBTC = object.maxBTC ?? "";
2250
+ message.maxUSDT = object.maxUSDT ?? "";
2251
+ return message;
2252
+ },
2253
+ };
2254
+
2255
+ function createBaseMsgUpdateLiquidityProvisionParamsResponse(): MsgUpdateLiquidityProvisionParamsResponse {
2256
+ return {};
2257
+ }
2258
+
2259
+ export const MsgUpdateLiquidityProvisionParamsResponse = {
2260
+ encode(
2261
+ _: MsgUpdateLiquidityProvisionParamsResponse,
2262
+ writer: _m0.Writer = _m0.Writer.create()
2263
+ ): _m0.Writer {
2264
+ return writer;
2265
+ },
2266
+
2267
+ decode(
2268
+ input: _m0.Reader | Uint8Array,
2269
+ length?: number
2270
+ ): MsgUpdateLiquidityProvisionParamsResponse {
2271
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2272
+ let end = length === undefined ? reader.len : reader.pos + length;
2273
+ const message = createBaseMsgUpdateLiquidityProvisionParamsResponse();
2274
+ while (reader.pos < end) {
2275
+ const tag = reader.uint32();
2276
+ switch (tag >>> 3) {
2277
+ default:
2278
+ reader.skipType(tag & 7);
2279
+ break;
2280
+ }
2281
+ }
2282
+ return message;
2283
+ },
2284
+
2285
+ fromJSON(_: any): MsgUpdateLiquidityProvisionParamsResponse {
2286
+ return {};
2287
+ },
2288
+
2289
+ toJSON(_: MsgUpdateLiquidityProvisionParamsResponse): unknown {
2290
+ const obj: any = {};
2291
+ return obj;
2292
+ },
2293
+
2294
+ fromPartial<
2295
+ I extends Exact<DeepPartial<MsgUpdateLiquidityProvisionParamsResponse>, I>
2296
+ >(_: I): MsgUpdateLiquidityProvisionParamsResponse {
2297
+ const message = createBaseMsgUpdateLiquidityProvisionParamsResponse();
2298
+ return message;
2299
+ },
2300
+ };
2301
+
2302
+ function createBaseMsgUpdateTransferLimitParams(): MsgUpdateTransferLimitParams {
2303
+ return { authority: "", maxBTC: "", maxUSDT: "" };
2304
+ }
2305
+
2306
+ export const MsgUpdateTransferLimitParams = {
2307
+ encode(
2308
+ message: MsgUpdateTransferLimitParams,
2309
+ writer: _m0.Writer = _m0.Writer.create()
2310
+ ): _m0.Writer {
2311
+ if (message.authority !== "") {
2312
+ writer.uint32(10).string(message.authority);
2313
+ }
2314
+ if (message.maxBTC !== "") {
2315
+ writer.uint32(18).string(message.maxBTC);
2316
+ }
2317
+ if (message.maxUSDT !== "") {
2318
+ writer.uint32(26).string(message.maxUSDT);
2319
+ }
2320
+ return writer;
2321
+ },
2322
+
2323
+ decode(
2324
+ input: _m0.Reader | Uint8Array,
2325
+ length?: number
2326
+ ): MsgUpdateTransferLimitParams {
2327
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2328
+ let end = length === undefined ? reader.len : reader.pos + length;
2329
+ const message = createBaseMsgUpdateTransferLimitParams();
2330
+ while (reader.pos < end) {
2331
+ const tag = reader.uint32();
2332
+ switch (tag >>> 3) {
2333
+ case 1:
2334
+ message.authority = reader.string();
2335
+ break;
2336
+ case 2:
2337
+ message.maxBTC = reader.string();
2338
+ break;
2339
+ case 3:
2340
+ message.maxUSDT = reader.string();
2341
+ break;
2342
+ default:
2343
+ reader.skipType(tag & 7);
2344
+ break;
2345
+ }
2346
+ }
2347
+ return message;
2348
+ },
2349
+
2350
+ fromJSON(object: any): MsgUpdateTransferLimitParams {
2351
+ return {
2352
+ authority: isSet(object.authority) ? String(object.authority) : "",
2353
+ maxBTC: isSet(object.maxBTC) ? String(object.maxBTC) : "",
2354
+ maxUSDT: isSet(object.maxUSDT) ? String(object.maxUSDT) : "",
2355
+ };
2356
+ },
2357
+
2358
+ toJSON(message: MsgUpdateTransferLimitParams): unknown {
2359
+ const obj: any = {};
2360
+ message.authority !== undefined && (obj.authority = message.authority);
2361
+ message.maxBTC !== undefined && (obj.maxBTC = message.maxBTC);
2362
+ message.maxUSDT !== undefined && (obj.maxUSDT = message.maxUSDT);
2363
+ return obj;
2364
+ },
2365
+
2366
+ fromPartial<I extends Exact<DeepPartial<MsgUpdateTransferLimitParams>, I>>(
2367
+ object: I
2368
+ ): MsgUpdateTransferLimitParams {
2369
+ const message = createBaseMsgUpdateTransferLimitParams();
2370
+ message.authority = object.authority ?? "";
2371
+ message.maxBTC = object.maxBTC ?? "";
2372
+ message.maxUSDT = object.maxUSDT ?? "";
2373
+ return message;
2374
+ },
2375
+ };
2376
+
2377
+ function createBaseMsgUpdateTransferLimitParamsResponse(): MsgUpdateTransferLimitParamsResponse {
2378
+ return {};
2379
+ }
2380
+
2381
+ export const MsgUpdateTransferLimitParamsResponse = {
2382
+ encode(
2383
+ _: MsgUpdateTransferLimitParamsResponse,
2384
+ writer: _m0.Writer = _m0.Writer.create()
2385
+ ): _m0.Writer {
2386
+ return writer;
2387
+ },
2388
+
2389
+ decode(
2390
+ input: _m0.Reader | Uint8Array,
2391
+ length?: number
2392
+ ): MsgUpdateTransferLimitParamsResponse {
2393
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2394
+ let end = length === undefined ? reader.len : reader.pos + length;
2395
+ const message = createBaseMsgUpdateTransferLimitParamsResponse();
2396
+ while (reader.pos < end) {
2397
+ const tag = reader.uint32();
2398
+ switch (tag >>> 3) {
2399
+ default:
2400
+ reader.skipType(tag & 7);
2401
+ break;
2402
+ }
2403
+ }
2404
+ return message;
2405
+ },
2406
+
2407
+ fromJSON(_: any): MsgUpdateTransferLimitParamsResponse {
2408
+ return {};
2409
+ },
2410
+
2411
+ toJSON(_: MsgUpdateTransferLimitParamsResponse): unknown {
2412
+ const obj: any = {};
2413
+ return obj;
2414
+ },
2415
+
2416
+ fromPartial<
2417
+ I extends Exact<DeepPartial<MsgUpdateTransferLimitParamsResponse>, I>
2418
+ >(_: I): MsgUpdateTransferLimitParamsResponse {
2419
+ const message = createBaseMsgUpdateTransferLimitParamsResponse();
2420
+ return message;
2421
+ },
2422
+ };
2423
+
2424
+ function createBaseMsgFinalizeWithdrawTransaction(): MsgFinalizeWithdrawTransaction {
2425
+ return {
2426
+ creator: "",
2427
+ txId: 0,
2428
+ txHash: "",
2429
+ success: false,
2430
+ signedKey: "",
2431
+ errReason: "",
2432
+ };
2433
+ }
2434
+
2435
+ export const MsgFinalizeWithdrawTransaction = {
2436
+ encode(
2437
+ message: MsgFinalizeWithdrawTransaction,
2438
+ writer: _m0.Writer = _m0.Writer.create()
2439
+ ): _m0.Writer {
2440
+ if (message.creator !== "") {
2441
+ writer.uint32(10).string(message.creator);
2442
+ }
2443
+ if (message.txId !== 0) {
2444
+ writer.uint32(16).uint64(message.txId);
2445
+ }
2446
+ if (message.txHash !== "") {
2447
+ writer.uint32(26).string(message.txHash);
2448
+ }
2449
+ if (message.success === true) {
2450
+ writer.uint32(32).bool(message.success);
2451
+ }
2452
+ if (message.signedKey !== "") {
2453
+ writer.uint32(42).string(message.signedKey);
2454
+ }
2455
+ if (message.errReason !== "") {
2456
+ writer.uint32(50).string(message.errReason);
2457
+ }
2458
+ return writer;
2459
+ },
2460
+
2461
+ decode(
2462
+ input: _m0.Reader | Uint8Array,
2463
+ length?: number
2464
+ ): MsgFinalizeWithdrawTransaction {
2465
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2466
+ let end = length === undefined ? reader.len : reader.pos + length;
2467
+ const message = createBaseMsgFinalizeWithdrawTransaction();
2468
+ while (reader.pos < end) {
2469
+ const tag = reader.uint32();
2470
+ switch (tag >>> 3) {
2471
+ case 1:
2472
+ message.creator = reader.string();
2473
+ break;
2474
+ case 2:
2475
+ message.txId = longToNumber(reader.uint64() as Long);
2476
+ break;
2477
+ case 3:
2478
+ message.txHash = reader.string();
2479
+ break;
2480
+ case 4:
2481
+ message.success = reader.bool();
2482
+ break;
2483
+ case 5:
2484
+ message.signedKey = reader.string();
2485
+ break;
2486
+ case 6:
2487
+ message.errReason = reader.string();
2488
+ break;
2489
+ default:
2490
+ reader.skipType(tag & 7);
2491
+ break;
2492
+ }
2493
+ }
2494
+ return message;
2495
+ },
2496
+
2497
+ fromJSON(object: any): MsgFinalizeWithdrawTransaction {
2498
+ return {
2499
+ creator: isSet(object.creator) ? String(object.creator) : "",
2500
+ txId: isSet(object.txId) ? Number(object.txId) : 0,
2501
+ txHash: isSet(object.txHash) ? String(object.txHash) : "",
2502
+ success: isSet(object.success) ? Boolean(object.success) : false,
2503
+ signedKey: isSet(object.signedKey) ? String(object.signedKey) : "",
2504
+ errReason: isSet(object.errReason) ? String(object.errReason) : "",
2505
+ };
2506
+ },
2507
+
2508
+ toJSON(message: MsgFinalizeWithdrawTransaction): unknown {
2509
+ const obj: any = {};
2510
+ message.creator !== undefined && (obj.creator = message.creator);
2511
+ message.txId !== undefined && (obj.txId = Math.round(message.txId));
2512
+ message.txHash !== undefined && (obj.txHash = message.txHash);
2513
+ message.success !== undefined && (obj.success = message.success);
2514
+ message.signedKey !== undefined && (obj.signedKey = message.signedKey);
2515
+ message.errReason !== undefined && (obj.errReason = message.errReason);
2516
+ return obj;
2517
+ },
2518
+
2519
+ fromPartial<I extends Exact<DeepPartial<MsgFinalizeWithdrawTransaction>, I>>(
2520
+ object: I
2521
+ ): MsgFinalizeWithdrawTransaction {
2522
+ const message = createBaseMsgFinalizeWithdrawTransaction();
2523
+ message.creator = object.creator ?? "";
2524
+ message.txId = object.txId ?? 0;
2525
+ message.txHash = object.txHash ?? "";
2526
+ message.success = object.success ?? false;
2527
+ message.signedKey = object.signedKey ?? "";
2528
+ message.errReason = object.errReason ?? "";
2529
+ return message;
2530
+ },
2531
+ };
2532
+
2533
+ function createBaseMsgFinalizeWithdrawTransactionResponse(): MsgFinalizeWithdrawTransactionResponse {
2534
+ return { code: "", msg: "" };
2535
+ }
2536
+
2537
+ export const MsgFinalizeWithdrawTransactionResponse = {
2538
+ encode(
2539
+ message: MsgFinalizeWithdrawTransactionResponse,
2540
+ writer: _m0.Writer = _m0.Writer.create()
2541
+ ): _m0.Writer {
2542
+ if (message.code !== "") {
2543
+ writer.uint32(10).string(message.code);
2544
+ }
2545
+ if (message.msg !== "") {
2546
+ writer.uint32(18).string(message.msg);
2547
+ }
2548
+ return writer;
2549
+ },
2550
+
2551
+ decode(
2552
+ input: _m0.Reader | Uint8Array,
2553
+ length?: number
2554
+ ): MsgFinalizeWithdrawTransactionResponse {
2555
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2556
+ let end = length === undefined ? reader.len : reader.pos + length;
2557
+ const message = createBaseMsgFinalizeWithdrawTransactionResponse();
2558
+ while (reader.pos < end) {
2559
+ const tag = reader.uint32();
2560
+ switch (tag >>> 3) {
2561
+ case 1:
2562
+ message.code = reader.string();
2563
+ break;
2564
+ case 2:
2565
+ message.msg = reader.string();
2566
+ break;
2567
+ default:
2568
+ reader.skipType(tag & 7);
2569
+ break;
2570
+ }
2571
+ }
2572
+ return message;
2573
+ },
2574
+
2575
+ fromJSON(object: any): MsgFinalizeWithdrawTransactionResponse {
2576
+ return {
2577
+ code: isSet(object.code) ? String(object.code) : "",
2578
+ msg: isSet(object.msg) ? String(object.msg) : "",
2579
+ };
2580
+ },
2581
+
2582
+ toJSON(message: MsgFinalizeWithdrawTransactionResponse): unknown {
2583
+ const obj: any = {};
2584
+ message.code !== undefined && (obj.code = message.code);
2585
+ message.msg !== undefined && (obj.msg = message.msg);
2586
+ return obj;
2587
+ },
2588
+
2589
+ fromPartial<
2590
+ I extends Exact<DeepPartial<MsgFinalizeWithdrawTransactionResponse>, I>
2591
+ >(object: I): MsgFinalizeWithdrawTransactionResponse {
2592
+ const message = createBaseMsgFinalizeWithdrawTransactionResponse();
2593
+ message.code = object.code ?? "";
2594
+ message.msg = object.msg ?? "";
2595
+ return message;
2596
+ },
2597
+ };
2598
+
2121
2599
  /** Msg defines the Msg service. */
2122
2600
  export interface Msg {
2123
2601
  RequestTransaction(
@@ -2147,6 +2625,15 @@ export interface Msg {
2147
2625
  request: MsgRequestHtlcLock
2148
2626
  ): Promise<MsgRequestHtlcLockResponse>;
2149
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>;
2150
2637
  }
2151
2638
 
2152
2639
  export class MsgClientImpl implements Msg {
@@ -2166,6 +2653,11 @@ export class MsgClientImpl implements Msg {
2166
2653
  this.FinalizeDrainTransaction = this.FinalizeDrainTransaction.bind(this);
2167
2654
  this.RequestHtlcLock = this.RequestHtlcLock.bind(this);
2168
2655
  this.HtlcReclaim = this.HtlcReclaim.bind(this);
2656
+ this.UpdateLiquidityProvisionParams =
2657
+ this.UpdateLiquidityProvisionParams.bind(this);
2658
+ this.UpdateTransferLimitParams = this.UpdateTransferLimitParams.bind(this);
2659
+ this.FinalizeWithdrawTransaction =
2660
+ this.FinalizeWithdrawTransaction.bind(this);
2169
2661
  }
2170
2662
  RequestTransaction(
2171
2663
  request: MsgRequestTransaction
@@ -2314,6 +2806,48 @@ export class MsgClientImpl implements Msg {
2314
2806
  MsgHtlcReclaimResponse.decode(new _m0.Reader(data))
2315
2807
  );
2316
2808
  }
2809
+
2810
+ UpdateLiquidityProvisionParams(
2811
+ request: MsgUpdateLiquidityProvisionParams
2812
+ ): Promise<MsgUpdateLiquidityProvisionParamsResponse> {
2813
+ const data = MsgUpdateLiquidityProvisionParams.encode(request).finish();
2814
+ const promise = this.rpc.request(
2815
+ "kimablockchain.transaction.Msg",
2816
+ "UpdateLiquidityProvisionParams",
2817
+ data
2818
+ );
2819
+ return promise.then((data) =>
2820
+ MsgUpdateLiquidityProvisionParamsResponse.decode(new _m0.Reader(data))
2821
+ );
2822
+ }
2823
+
2824
+ UpdateTransferLimitParams(
2825
+ request: MsgUpdateTransferLimitParams
2826
+ ): Promise<MsgUpdateTransferLimitParamsResponse> {
2827
+ const data = MsgUpdateTransferLimitParams.encode(request).finish();
2828
+ const promise = this.rpc.request(
2829
+ "kimablockchain.transaction.Msg",
2830
+ "UpdateTransferLimitParams",
2831
+ data
2832
+ );
2833
+ return promise.then((data) =>
2834
+ MsgUpdateTransferLimitParamsResponse.decode(new _m0.Reader(data))
2835
+ );
2836
+ }
2837
+
2838
+ FinalizeWithdrawTransaction(
2839
+ request: MsgFinalizeWithdrawTransaction
2840
+ ): Promise<MsgFinalizeWithdrawTransactionResponse> {
2841
+ const data = MsgFinalizeWithdrawTransaction.encode(request).finish();
2842
+ const promise = this.rpc.request(
2843
+ "kimablockchain.transaction.Msg",
2844
+ "FinalizeWithdrawTransaction",
2845
+ data
2846
+ );
2847
+ return promise.then((data) =>
2848
+ MsgFinalizeWithdrawTransactionResponse.decode(new _m0.Reader(data))
2849
+ );
2850
+ }
2317
2851
  }
2318
2852
 
2319
2853
  interface Rpc {