@bulletxyz/bullet-sdk 0.25.3 → 0.25.4-rc.0

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.
@@ -7533,6 +7533,7 @@ var Asset = /* @__PURE__ */ ((Asset2) => {
7533
7533
  Asset2[Asset2["BERA"] = 14] = "BERA";
7534
7534
  Asset2[Asset2["TIA"] = 15] = "TIA";
7535
7535
  Asset2[Asset2["ZEX"] = 16] = "ZEX";
7536
+ Asset2[Asset2["HSOL"] = 17] = "HSOL";
7536
7537
  return Asset2;
7537
7538
  })(Asset || {});
7538
7539
  var Market = /* @__PURE__ */ ((Market2) => {
@@ -9554,6 +9555,38 @@ var Client = class _Client {
9554
9555
  }
9555
9556
  });
9556
9557
  }
9558
+ async initAssetMetadata(asset, assetName, tokenId, decimals) {
9559
+ return await this.submitTransaction({
9560
+ exchange: {
9561
+ init_asset_metadata: {
9562
+ asset_id: asset,
9563
+ asset_name: assetName,
9564
+ token_id: tokenId,
9565
+ decimals
9566
+ }
9567
+ }
9568
+ });
9569
+ }
9570
+ async initBorrowLendMarket(asset, optimalUtilisationRate, minBorrowRate, maxBorrowRate, optimalBorrowRate, assetWeight, initialLiabilityWeight, maintenanceLiabilityWeight, depositLimit, borrowLimit, liquidationRewardRatio, liabilityLiquidationLimitRatio) {
9571
+ return await this.submitTransaction({
9572
+ exchange: {
9573
+ init_borrow_lend_market: {
9574
+ asset_id: asset,
9575
+ optimal_utilisation_rate: optimalUtilisationRate,
9576
+ min_borrow_rate: minBorrowRate,
9577
+ max_borrow_rate: maxBorrowRate,
9578
+ optimal_borrow_rate: optimalBorrowRate,
9579
+ asset_weight: assetWeight,
9580
+ initial_liability_weight: initialLiabilityWeight,
9581
+ maintenance_liability_weight: maintenanceLiabilityWeight,
9582
+ deposit_limit: depositLimit,
9583
+ borrow_limit: borrowLimit,
9584
+ liquidation_reward_ratio: liquidationRewardRatio,
9585
+ liability_liquidation_limit_ratio: liabilityLiquidationLimitRatio
9586
+ }
9587
+ }
9588
+ });
9589
+ }
9557
9590
  };
9558
9591
 
9559
9592
  // src/zod-types/wasm.ts