@bulletxyz/bullet-sdk 0.26.1 → 0.26.2
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 +13 -3
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +13 -3
- package/dist/node/index.js.map +2 -2
- package/dist/types/client.d.ts +48 -0
- package/dist/types/zod-types/rest.d.ts +2061 -271
- package/package.json +1 -1
package/dist/node/index.js
CHANGED
|
@@ -7581,12 +7581,14 @@ var BorrowLendRiskConfig = z.object({
|
|
|
7581
7581
|
liability_liquidation_limit_ratio: DecimalSchema,
|
|
7582
7582
|
asset_weight: DecimalSchema,
|
|
7583
7583
|
initial_liability_weight: DecimalSchema,
|
|
7584
|
-
maintenance_liability_weight: DecimalSchema
|
|
7584
|
+
maintenance_liability_weight: DecimalSchema,
|
|
7585
|
+
protocol_reward_ratio: DecimalSchema
|
|
7585
7586
|
});
|
|
7586
7587
|
var PerpLiquidationConfig = z.object({
|
|
7587
7588
|
liquidation_ioc_buffer: DecimalSchema,
|
|
7588
7589
|
backstop_liquidation_threshold: DecimalSchema,
|
|
7589
|
-
liquidation_fee: DecimalSchema
|
|
7590
|
+
liquidation_fee: DecimalSchema,
|
|
7591
|
+
liquidation_protocol_reward_ratio: DecimalSchema
|
|
7590
7592
|
});
|
|
7591
7593
|
var SpotLedger = z.object({
|
|
7592
7594
|
asset: DecimalSchema,
|
|
@@ -7633,12 +7635,15 @@ var Tpsl = z.object({
|
|
|
7633
7635
|
size: DecimalSchema.nullable(),
|
|
7634
7636
|
order_type: z.enum(ORDER_TYPES),
|
|
7635
7637
|
owner: Base58Address,
|
|
7638
|
+
last_update_timestamp: UnixTimestampMillis,
|
|
7636
7639
|
linked_tpsl_order_id: OrderId.nullable()
|
|
7637
7640
|
});
|
|
7641
|
+
var FeeTier = z.enum(["Tier0", "Tier1", "Tier2", "Tier3", "Tier4"]);
|
|
7638
7642
|
var PerpLedger = z.object({
|
|
7639
7643
|
orders: createJsonMap(OrderId, Order),
|
|
7640
7644
|
position: Position,
|
|
7641
7645
|
user_selected_max_leverage: U16Schema,
|
|
7646
|
+
fee_tier: FeeTier,
|
|
7642
7647
|
tpsls: createJsonMap(OrderId, Tpsl)
|
|
7643
7648
|
});
|
|
7644
7649
|
var TpslOrderIdsToExecute = z.array(TpslOrderId);
|
|
@@ -7663,10 +7668,14 @@ var Schemas = {
|
|
|
7663
7668
|
usdc_ledger: UsdcLedger,
|
|
7664
7669
|
client_order_ids: createJsonMap(ClientOrderId, OrderId),
|
|
7665
7670
|
spot_ledgers: createJsonMap(AssetId, SpotLedger),
|
|
7666
|
-
perp_ledgers: createJsonMap(MarketId, PerpLedger)
|
|
7671
|
+
perp_ledgers: createJsonMap(MarketId, PerpLedger),
|
|
7672
|
+
spot_orders: createJsonMap(MarketId, createJsonMap(OrderId, Order)),
|
|
7673
|
+
spot_tpsls: createJsonMap(MarketId, createJsonMap(TpslOrderId, Tpsl)),
|
|
7674
|
+
spot_fee_tiers: createJsonMap(MarketId, FeeTier)
|
|
7667
7675
|
}),
|
|
7668
7676
|
OraclePrices: z.object({
|
|
7669
7677
|
pricing_frequency_seconds: U32Schema,
|
|
7678
|
+
relaxed_pricing_frequency_seconds: U32Schema,
|
|
7670
7679
|
prices: createJsonMap(
|
|
7671
7680
|
AssetId,
|
|
7672
7681
|
z.object({
|
|
@@ -7703,6 +7712,7 @@ var Schemas = {
|
|
|
7703
7712
|
).nullable(),
|
|
7704
7713
|
PerpPrices: z.object({
|
|
7705
7714
|
pricing_frequency_seconds: U32Schema,
|
|
7715
|
+
relaxed_pricing_frequency_seconds: U32Schema,
|
|
7706
7716
|
mark_prices: createJsonMap(
|
|
7707
7717
|
MarketId,
|
|
7708
7718
|
z.object({
|