@bulletxyz/bullet-sdk 0.43.0-rc.0 → 0.44.0-rc.1
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 +24 -16
- package/dist/browser/index.js.map +4 -4
- package/dist/node/index.js +24 -16
- package/dist/node/index.js.map +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/rollupTypes.d.ts +37 -0
- package/dist/types/rollupTypes.d.ts.map +1 -1
- package/dist/types/zod-types/rest.d.ts +38 -38
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -1312,7 +1312,7 @@ var MARKET_KINDS = ["perp", "spot"], SIDES = ["bid", "ask"], TRIGGER_DIRECTIONS
|
|
|
1312
1312
|
remaining_size: DecimalSchema,
|
|
1313
1313
|
reduce_only: z3.boolean(),
|
|
1314
1314
|
filled_size: DecimalSchema,
|
|
1315
|
-
|
|
1315
|
+
filled_cot: DecimalSchema,
|
|
1316
1316
|
owner: Base58Address,
|
|
1317
1317
|
reserved_pending_tpsl_pair_ids: z3.string().nullable()
|
|
1318
1318
|
}), SpotOrder = z3.object({
|
|
@@ -1325,7 +1325,7 @@ var MARKET_KINDS = ["perp", "spot"], SIDES = ["bid", "ask"], TRIGGER_DIRECTIONS
|
|
|
1325
1325
|
quote_lots: DecimalSchema,
|
|
1326
1326
|
remaining_base_lots: DecimalSchema,
|
|
1327
1327
|
filled_base_lots: DecimalSchema,
|
|
1328
|
-
|
|
1328
|
+
filled_cot: DecimalSchema,
|
|
1329
1329
|
owner: Base58Address
|
|
1330
1330
|
}), Order = z3.union([PerpOrder, SpotOrder]), TriggerOrder = z3.object({
|
|
1331
1331
|
side: z3.enum(SIDES),
|
|
@@ -2395,12 +2395,16 @@ class AuthenticatedClient extends ReadOnlyClient {
|
|
|
2395
2395
|
let timestamp = publishTimestamp || Math.floor(Date.now() / 1000);
|
|
2396
2396
|
return await this.submitTransaction({
|
|
2397
2397
|
exchange: {
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2398
|
+
AdminOther: {
|
|
2399
|
+
args: {
|
|
2400
|
+
UpdateOraclePrices: {
|
|
2401
|
+
prices_to_update: await Promise.all(pricesToUpdate.map(async ({ asset, oraclePrice }) => ({
|
|
2402
|
+
asset_id: this.getAssetId(asset),
|
|
2403
|
+
oracle_price: BulletWasm.convert_rust_decimal_to_json(oraclePrice.toFixed())
|
|
2404
|
+
}))),
|
|
2405
|
+
publish_timestamp: timestamp
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2404
2408
|
}
|
|
2405
2409
|
}
|
|
2406
2410
|
});
|
|
@@ -2409,13 +2413,17 @@ class AuthenticatedClient extends ReadOnlyClient {
|
|
|
2409
2413
|
let timestamp = publishTimestamp || Math.floor(Date.now() / 1000);
|
|
2410
2414
|
return await this.submitTransaction({
|
|
2411
2415
|
exchange: {
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2416
|
+
AdminOther: {
|
|
2417
|
+
args: {
|
|
2418
|
+
UpdateMarkPrices: {
|
|
2419
|
+
prices_to_update: await Promise.all(pricesToUpdate.map(async ({ market, medianCexPrice, diffEma }) => ({
|
|
2420
|
+
market_id: this.getMarketId(market),
|
|
2421
|
+
median_cex_price: BulletWasm.convert_rust_decimal_to_json(medianCexPrice.toFixed()),
|
|
2422
|
+
diff_ema: BulletWasm.convert_rust_decimal_to_json(diffEma.toFixed())
|
|
2423
|
+
}))),
|
|
2424
|
+
publish_timestamp: timestamp
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2419
2427
|
}
|
|
2420
2428
|
}
|
|
2421
2429
|
});
|
|
@@ -3008,4 +3016,4 @@ export {
|
|
|
3008
3016
|
AbortError
|
|
3009
3017
|
};
|
|
3010
3018
|
|
|
3011
|
-
//# debugId=
|
|
3019
|
+
//# debugId=E421836E294867D064756E2164756E21
|