@bulletxyz/bullet-sdk 0.25.4-rc.2 → 0.25.4-rc.4
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/dist/browser/index.js +67 -11
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +67 -11
- package/dist/node/index.js.map +2 -2
- package/dist/types/client.d.ts +2 -1
- package/dist/types/rollupTypes.d.ts +16 -0
- package/package.json +1 -1
package/dist/types/client.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ export declare class Client {
|
|
|
137
137
|
depositToUsdcPnlPool(amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
138
138
|
depositToInsuranceFund(amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
139
139
|
initAssetMetadata(asset: Asset, assetName: string, tokenId: TokenId, decimals: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
140
|
-
initBorrowLendMarket(asset: Asset, optimalUtilisationRate:
|
|
140
|
+
initBorrowLendMarket(asset: Asset, optimalUtilisationRate: Decimal, minBorrowRate: Decimal, maxBorrowRate: Decimal, optimalBorrowRate: Decimal, assetWeight: Decimal, initialLiabilityWeight: Decimal, maintenanceLiabilityWeight: Decimal, depositLimit: Decimal, borrowLimit: Decimal, liquidationRewardRatio: Decimal, liabilityLiquidationLimitRatio: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
141
|
+
updateBorrowLendMarket(asset: Asset, optimalUtilisationRate: Decimal | null, minBorrowRate: Decimal | null, maxBorrowRate: Decimal | null, optimalBorrowRate: Decimal | null, assetWeight: Decimal | null, initialLiabilityWeight: Decimal | null, maintenanceLiabilityWeight: Decimal | null, depositLimit: Decimal | null, borrowLimit: Decimal | null, liquidationRewardRatio: Decimal | null, liabilityLiquidationLimitRatio: Decimal | null): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
141
142
|
}
|
|
142
143
|
export {};
|
|
@@ -173,6 +173,22 @@ type ExchangeCallMessage = {
|
|
|
173
173
|
liability_liquidation_limit_ratio: number;
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
|
+
update_borrow_lend_market: {
|
|
177
|
+
args: {
|
|
178
|
+
asset_id: AssetId;
|
|
179
|
+
optimal_utilisation_rate: number | null;
|
|
180
|
+
min_borrow_rate: number | null;
|
|
181
|
+
max_borrow_rate: number | null;
|
|
182
|
+
optimal_borrow_rate: number | null;
|
|
183
|
+
asset_weight: number | null;
|
|
184
|
+
initial_liability_weight: number | null;
|
|
185
|
+
maintenance_liability_weight: number | null;
|
|
186
|
+
deposit_limit: number | null;
|
|
187
|
+
borrow_limit: number | null;
|
|
188
|
+
liquidation_reward_ratio: number | null;
|
|
189
|
+
liability_liquidation_limit_ratio: number | null;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
176
192
|
};
|
|
177
193
|
export type RuntimeCall = ExactlyOne<{
|
|
178
194
|
exchange: ExactlyOne<ExchangeCallMessage>;
|