@ritbit/v4-client-js 2.3.0 → 2.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ritbit/v4-client-js",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "General client library for the new RITBIT Chain",
5
5
  "main": "build/cjs/src/index.js",
6
6
  "module": "build/esm/src/index.js",
@@ -475,9 +475,9 @@ export class Get {
475
475
  }
476
476
 
477
477
  /**
478
- * @description Get bridge EventParams (chains, token mappings, withdrawal fees).
478
+ * @description Get bridge EventParams (chains, token mappings).
479
479
  *
480
- * @returns EventParams with bridge config including withdrawal_fee per TokenMapping
480
+ * @returns EventParams with bridge config
481
481
  */
482
482
  async getBridgeEventParams(): Promise<BridgeModule.QueryEventParamsResponse> {
483
483
  const requestData = Uint8Array.from(
@@ -491,6 +491,23 @@ export class Get {
491
491
  return BridgeModule.QueryEventParamsResponse.decode(data);
492
492
  }
493
493
 
494
+ /**
495
+ * @description Get bridge WithdrawalParams (chain withdrawal configs, withdrawal fees per asset).
496
+ *
497
+ * @returns WithdrawalParams with withdrawal_fee per AssetWithdrawalConfig
498
+ */
499
+ async getBridgeWithdrawalParams(): Promise<BridgeModule.QueryWithdrawalParamsResponse> {
500
+ const requestData = Uint8Array.from(
501
+ BridgeModule.QueryWithdrawalParamsRequest.encode({}).finish(),
502
+ );
503
+
504
+ const data: Uint8Array = await this.sendQuery(
505
+ '/ritbit.bridge.Query/WithdrawalParams',
506
+ requestData,
507
+ );
508
+ return BridgeModule.QueryWithdrawalParamsResponse.decode(data);
509
+ }
510
+
494
511
  /**
495
512
  * @description Get all delayed complete bridge messages, optionally filtered by address.
496
513
  *