@bulletxyz/bullet-sdk 0.26.2-rc.3 → 0.26.2-rc.5
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 +45 -3
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +45 -3
- package/dist/node/index.js.map +2 -2
- package/dist/types/client.d.ts +2 -1
- package/dist/types/rollupTypes.d.ts +21 -1
- package/package.json +1 -1
package/dist/types/client.d.ts
CHANGED
|
@@ -185,7 +185,8 @@ export declare class Client {
|
|
|
185
185
|
depositToUsdcPnlPool(amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
186
186
|
depositToInsuranceFund(amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
187
187
|
initAssetMetadata(asset_id: number, assetName: string, tokenId: TokenId, decimals: number, withdrawFee: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
188
|
-
|
|
188
|
+
initPerpMarket(marketId: number, baseAssetId: number, name: string, minTickSize: Decimal, minLotSize: Decimal, maxOrdersPerSide: number, minInterestRateClamp: Decimal, maxInterestRateClamp: Decimal, minFundingRateClamp: Decimal, maxFundingRateClamp: Decimal, impactMargin: Decimal, interestRate: Decimal, initLeverageTableArgs: Record<string, number>, takerFeesTenthBps: number[], makerFeesTenthBps: number[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
189
|
+
initBorrowLendPool(asset: AssetName, optimalUtilisationRate: Decimal, minBorrowRate: Decimal, maxBorrowRate: Decimal, optimalBorrowRate: Decimal, assetWeight: Decimal, initialLiabilityWeight: Decimal, maintenanceLiabilityWeight: Decimal, depositLimit: Decimal, borrowLimit: Decimal, liquidationRewardRatio: Decimal, liabilityLiquidationLimitRatio: Decimal, interestFeeTenthBps: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
189
190
|
updateBorrowLendMarket(asset: AssetName, 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>>>;
|
|
190
191
|
}
|
|
191
192
|
export {};
|
|
@@ -186,7 +186,26 @@ type ExchangeCallMessage = {
|
|
|
186
186
|
withdraw_fee: number;
|
|
187
187
|
};
|
|
188
188
|
};
|
|
189
|
-
|
|
189
|
+
init_perp_market: {
|
|
190
|
+
args: {
|
|
191
|
+
market_id: MarketId;
|
|
192
|
+
base_asset_id: AssetId;
|
|
193
|
+
name: string;
|
|
194
|
+
min_tick_size: number;
|
|
195
|
+
min_lot_size: number;
|
|
196
|
+
max_orders_per_side: number;
|
|
197
|
+
min_interest_rate_clamp: number;
|
|
198
|
+
max_interest_rate_clamp: number;
|
|
199
|
+
min_funding_rate_clamp: number;
|
|
200
|
+
max_funding_rate_clamp: number;
|
|
201
|
+
impact_margin: number;
|
|
202
|
+
interest_rate: number;
|
|
203
|
+
init_leverage_table_args: Record<string, number>;
|
|
204
|
+
taker_fees_tenth_bps: number[];
|
|
205
|
+
maker_fees_tenth_bps: number[];
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
init_borrow_lend_pool: {
|
|
190
209
|
args: {
|
|
191
210
|
asset_id: AssetId;
|
|
192
211
|
optimal_utilisation_rate: number;
|
|
@@ -200,6 +219,7 @@ type ExchangeCallMessage = {
|
|
|
200
219
|
borrow_limit: number;
|
|
201
220
|
liquidation_reward_ratio: number;
|
|
202
221
|
liability_liquidation_limit_ratio: number;
|
|
222
|
+
interest_fee_tenth_bps: number;
|
|
203
223
|
};
|
|
204
224
|
};
|
|
205
225
|
update_borrow_lend_market: {
|