@bulletxyz/bullet-sdk 0.21.0-rc.0 → 0.21.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.
@@ -96,11 +96,11 @@ export declare class Client {
96
96
  withdraw(asset: Asset, amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
97
97
  borrowSpot(asset: Asset, amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
98
98
  placeOrder(placeOrderArgs: PlaceOrderArgs, tpslOrders?: TpslOrder[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
99
- placeTpsls(asset: Asset, tpslOrders: TpslOrder[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
99
+ placeTpslsForAsset(asset: Asset, tpslOrders: TpslOrder[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
100
100
  replaceOrder(existingOrderId: bigint, placeOrderArgs: PlaceOrderArgs, tpslOrders?: TpslOrder[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
101
101
  cancelTpsl(tpslOrderId: bigint): Promise<TransactionResult<Transaction<RuntimeCall>>>;
102
102
  cancelOrder(orderId: bigint): Promise<TransactionResult<Transaction<RuntimeCall>>>;
103
- cancelAllOrders(asset: Asset): Promise<TransactionResult<Transaction<RuntimeCall>>>;
103
+ cancelAllOrdersForAsset(asset: Asset): Promise<TransactionResult<Transaction<RuntimeCall>>>;
104
104
  updateOraclePrices(pricesToUpdate: OraclePriceUpdateArgs[], publishTimestamp?: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
105
105
  updateMarkPrices(pricesToUpdate: MarkPriceUpdateArgs[], publishTimestamp?: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
106
106
  updateAssetMaxLeverage(asset: Asset, maxLeverage: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
@@ -109,7 +109,7 @@ export declare class Client {
109
109
  applyFunding(addresses: Address[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
110
110
  forceCancelOrders(address: Address): Promise<TransactionResult<Transaction<RuntimeCall>>>;
111
111
  forceClosePositions(address: Address): Promise<TransactionResult<Transaction<RuntimeCall>>>;
112
- liquidate(address: Address, positions?: {
112
+ liquidatePerpPositions(address: Address, positions?: {
113
113
  asset: Asset;
114
114
  size: Decimal;
115
115
  }[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
@@ -55,7 +55,7 @@ type ExchangeCallMessage = {
55
55
  };
56
56
  tpsls: Tpsl[];
57
57
  };
58
- place_tpsls: {
58
+ place_tpsls_for_asset: {
59
59
  asset_id: AssetId;
60
60
  tpsls: Tpsl[];
61
61
  };
@@ -77,7 +77,7 @@ type ExchangeCallMessage = {
77
77
  cancel_order: {
78
78
  order_id: string;
79
79
  };
80
- cancel_all_orders: {
80
+ cancel_all_orders_for_asset: {
81
81
  asset_id: AssetId;
82
82
  };
83
83
  update_oracle_prices: {
@@ -114,7 +114,7 @@ type ExchangeCallMessage = {
114
114
  force_close_positions: {
115
115
  address: Address;
116
116
  };
117
- liquidate: {
117
+ liquidate_perps_positions: {
118
118
  address: Address;
119
119
  positions: {
120
120
  asset_id: AssetId;
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.21.0-rc.0",
7
+ "version": "0.21.0-rc.4",
8
8
  "description": "Bullet SDK",
9
9
  "author": "@bulletxyz",
10
10
  "license": "Apache-2.0",
@@ -30,22 +30,21 @@
30
30
  "build:types": "tsc --emitDeclarationOnly --outDir dist/types && mkdir -p dist/types/bullet-wasm && cp src/bullet-wasm/index.d.ts dist/types/bullet-wasm/index.d.ts",
31
31
  "build:js": "node build.mjs",
32
32
  "clean": "rm -rf dist",
33
- "build": "pnpm clean && pnpm install && pnpm build:types && pnpm build:js",
33
+ "build": "pnpm clean && pnpm build:types && pnpm build:js",
34
34
  "dev": "tsx --experimental-wasm-modules examples/test.ts",
35
35
  "package": "pnpm build && pnpm pack",
36
- "prepublishOnly": "pnpm build",
37
36
  "prerelease": "pnpm build",
38
- "release:premajor": "npm version premajor --preid rc && git push --tags && npm publish --tag rc",
39
- "release:preminor": "npm version preminor --preid rc && git push --tags && npm publish --tag rc",
40
- "release:prepatch": "npm version prepatch --preid rc && git push --tags && npm publish --tag rc",
41
- "release:prerelease": "npm version prerelease --preid rc && git push --tags && npm publish --tag rc",
42
- "release:release": "npm run release:patch",
37
+ "release:rc:major": "npm version premajor --preid rc && git push --tags && npm publish --tag rc",
38
+ "release:rc:minor": "npm version preminor --preid rc && git push --tags && npm publish --tag rc",
39
+ "release:rc:patch": "npm version prepatch --preid rc && git push --tags && npm publish --tag rc",
40
+ "release:rc": "npm version prerelease --preid rc && git push --tags && npm publish --tag rc",
43
41
  "release:major": "npm version major && git push --tags && npm publish",
44
42
  "release:minor": "npm version minor && git push --tags && npm publish",
45
43
  "release:patch": "npm version patch && git push --tags && npm publish",
46
- "ci": "biome ci",
47
- "fix": "biome check --write",
48
- "lint": "biome lint"
44
+ "release": "npm version patch && git push --tags && npm publish",
45
+ "format": "biome check --write",
46
+ "lint": "biome lint",
47
+ "ci": "biome ci"
49
48
  },
50
49
  "devDependencies": {
51
50
  "@biomejs/biome": "^1.9.4",