@bulletxyz/bullet-sdk 0.24.0-rc.2 → 0.24.0-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.
@@ -4,11 +4,6 @@ type EquityType = "Unweighted" | "WeightedInitial" | "WeightedMaintenance";
4
4
  type MarginType = "Initial" | "Maintenance";
5
5
  type OrderType = "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
6
6
  type Side = "Bid" | "Ask";
7
- export class AssetId {
8
- private constructor();
9
- free(): void;
10
- 0: number;
11
- }
12
7
  export class BulletWasm {
13
8
  free(): void;
14
9
  constructor();
@@ -37,8 +32,3 @@ export class BulletWasm {
37
32
  static calculate_borrow_lend_additional_metadata(borrow_lend_market: any): any;
38
33
  static calculate_account_summary_batch(user_accounts: any, margin_calculation_state: any): any;
39
34
  }
40
- export class MarketId {
41
- private constructor();
42
- free(): void;
43
- 0: number;
44
- }
@@ -3,7 +3,7 @@ import { type EquityType, type MarginType } from "./bullet-wasm";
3
3
  import type { Asset, Market, OrderType, PlaceOrderArgs, Side } from "./types";
4
4
  import type { BorrowLendMarkets, BorrowLendRiskWeights, MarginConfig, OraclePrices, OrderbookL2, PerpMarket, PerpPrices, UserAccount } from "./zod-types/rest";
5
5
  export declare function calculateOrderbookMidpoint(orderbook: OrderbookL2): Decimal | undefined;
6
- export declare function calculateEntryPrice(asset: Asset, userAccount: UserAccount): Decimal;
6
+ export declare function calculateEntryPrice(market: Market, userAccount: UserAccount): Decimal;
7
7
  export interface MarginCalculationState {
8
8
  oracle_prices: OraclePrices;
9
9
  perp_prices: PerpPrices;
@@ -94,7 +94,6 @@ export declare class Client {
94
94
  submitTransaction(runtimeCall: RuntimeCall): Promise<TransactionResult<Transaction<RuntimeCall>>>;
95
95
  transfer(to: Address, amount: bigint, tokenId: TokenId): Promise<TransactionResult<Transaction<RuntimeCall>>>;
96
96
  mint(to: Address, amount: bigint, tokenId: TokenId): Promise<TransactionResult<Transaction<RuntimeCall>>>;
97
- setValue(value: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
98
97
  deposit(asset: Asset, amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
99
98
  withdraw(asset: Asset, amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
100
99
  borrowSpot(asset: Asset, amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
@@ -9,7 +9,6 @@ export declare class ExchangeConnection extends BaseConnection {
9
9
  static fromEndpoints(endpoints: Endpoints): ExchangeConnection;
10
10
  static fromNetwork(network: Network): ExchangeConnection;
11
11
  static fromRestUrl(restUrl: string): ExchangeConnection;
12
- getValue(): Promise<number | null>;
13
12
  getOrder(order_id: bigint): Promise<Order | null>;
14
13
  getMarketRegistry(): Promise<MarketRegistry | null>;
15
14
  getAssetRegistry(): Promise<AssetRegistry | null>;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/zetamarkets/bullet-sdk.git"
6
6
  },
7
- "version": "0.24.0-rc.2",
7
+ "version": "0.24.0-rc.4",
8
8
  "description": "Bullet SDK",
9
9
  "author": "@bulletxyz",
10
10
  "license": "Apache-2.0",