@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) => {
@@ -9568,6 +9569,38 @@ var Client = class _Client {
9568
9569
  }
9569
9570
  });
9570
9571
  }
9572
+ async initAssetMetadata(asset, assetName, tokenId, decimals) {
9573
+ return await this.submitTransaction({
9574
+ exchange: {
9575
+ init_asset_metadata: {
9576
+ asset_id: asset,
9577
+ asset_name: assetName,
9578
+ token_id: tokenId,
9579
+ decimals
9580
+ }
9581
+ }
9582
+ });
9583
+ }
9584
+ async initBorrowLendMarket(asset, optimalUtilisationRate, minBorrowRate, maxBorrowRate, optimalBorrowRate, assetWeight, initialLiabilityWeight, maintenanceLiabilityWeight, depositLimit, borrowLimit, liquidationRewardRatio, liabilityLiquidationLimitRatio) {
9585
+ return await this.submitTransaction({
9586
+ exchange: {
9587
+ init_borrow_lend_market: {
9588
+ asset_id: asset,
9589
+ optimal_utilisation_rate: optimalUtilisationRate,
9590
+ min_borrow_rate: minBorrowRate,
9591
+ max_borrow_rate: maxBorrowRate,
9592
+ optimal_borrow_rate: optimalBorrowRate,
9593
+ asset_weight: assetWeight,
9594
+ initial_liability_weight: initialLiabilityWeight,
9595
+ maintenance_liability_weight: maintenanceLiabilityWeight,
9596
+ deposit_limit: depositLimit,
9597
+ borrow_limit: borrowLimit,
9598
+ liquidation_reward_ratio: liquidationRewardRatio,
9599
+ liability_liquidation_limit_ratio: liabilityLiquidationLimitRatio
9600
+ }
9601
+ }
9602
+ });
9603
+ }
9571
9604
  };
9572
9605
 
9573
9606
  // src/zod-types/wasm.ts