@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/build/cjs/src/clients/modules/get.js +13 -3
- package/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/build/esm/src/clients/modules/get.d.ts +8 -2
- package/build/esm/src/clients/modules/get.d.ts.map +1 -1
- package/build/esm/src/clients/modules/get.js +13 -3
- package/build/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/clients/modules/get.ts +19 -2
package/package.json
CHANGED
|
@@ -475,9 +475,9 @@ export class Get {
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
/**
|
|
478
|
-
* @description Get bridge EventParams (chains, token mappings
|
|
478
|
+
* @description Get bridge EventParams (chains, token mappings).
|
|
479
479
|
*
|
|
480
|
-
* @returns EventParams with bridge config
|
|
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
|
*
|