@bulletxyz/bullet-sdk 0.25.3-rc.0 → 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.
@@ -136,5 +136,7 @@ export declare class Client {
136
136
  liquidateSpotLiability(address: Address, liabilityAssetId: Asset, collateralAssetId: Asset, liabilityAmount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
137
137
  depositToUsdcPnlPool(amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
138
138
  depositToInsuranceFund(amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
139
+ initAssetMetadata(asset: Asset, assetName: string, tokenId: TokenId, decimals: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
140
+ initBorrowLendMarket(asset: Asset, optimalUtilisationRate: number, minBorrowRate: number, maxBorrowRate: number, optimalBorrowRate: number, assetWeight: number, initialLiabilityWeight: number, maintenanceLiabilityWeight: number, depositLimit: number, borrowLimit: number, liquidationRewardRatio: number, liabilityLiquidationLimitRatio: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
139
141
  }
140
142
  export {};
@@ -149,6 +149,26 @@ type ExchangeCallMessage = {
149
149
  deposit_to_insurance_fund: {
150
150
  usdc_amount: number;
151
151
  };
152
+ init_asset_metadata: {
153
+ asset_id: AssetId;
154
+ asset_name: string;
155
+ token_id: TokenId;
156
+ decimals: number;
157
+ };
158
+ init_borrow_lend_market: {
159
+ asset_id: AssetId;
160
+ optimal_utilisation_rate: number;
161
+ min_borrow_rate: number;
162
+ max_borrow_rate: number;
163
+ optimal_borrow_rate: number;
164
+ asset_weight: number;
165
+ initial_liability_weight: number;
166
+ maintenance_liability_weight: number;
167
+ deposit_limit: number;
168
+ borrow_limit: number;
169
+ liquidation_reward_ratio: number;
170
+ liability_liquidation_limit_ratio: number;
171
+ };
152
172
  };
153
173
  export type RuntimeCall = ExactlyOne<{
154
174
  exchange: ExactlyOne<ExchangeCallMessage>;
@@ -24,7 +24,8 @@ export declare enum Asset {
24
24
  ENA = 13,
25
25
  BERA = 14,
26
26
  TIA = 15,
27
- ZEX = 16
27
+ ZEX = 16,
28
+ HSOL = 17
28
29
  }
29
30
  export declare enum Market {
30
31
  SOL_USD = 0,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/zetamarkets/bullet-sdk.git"
6
6
  },
7
- "version": "0.25.3-rc.0",
7
+ "version": "0.25.4-rc.0",
8
8
  "description": "Bullet SDK",
9
9
  "author": "@bulletxyz",
10
10
  "license": "Apache-2.0",