@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.
- package/dist/browser/index.js +33 -0
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +33 -0
- package/dist/node/index.js.map +2 -2
- package/dist/types/client.d.ts +2 -0
- package/dist/types/rollupTypes.d.ts +20 -0
- package/dist/types/types.d.ts +2 -1
- package/package.json +1 -1
package/dist/types/client.d.ts
CHANGED
|
@@ -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>;
|
package/dist/types/types.d.ts
CHANGED