@bulletxyz/bullet-sdk 0.29.0-rc.1 → 0.31.0-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 +484 -230
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +484 -230
- package/dist/node/index.js.map +2 -2
- package/dist/types/browser.d.ts +1 -0
- package/dist/types/bullet-wasm/index.d.ts +4 -0
- package/dist/types/client.d.ts +59 -65
- package/dist/types/exchange.d.ts +18 -3
- package/dist/types/index.d.ts +1 -0
- package/dist/types/rollupTypes.d.ts +91 -80
- package/dist/types/types.d.ts +30 -15
- package/dist/types/zod-types/index.d.ts +3 -1
- package/dist/types/zod-types/rest.d.ts +1605 -2953
- package/dist/types/zod-types/wasm.d.ts +3 -0
- package/package.json +4 -5
|
@@ -43,6 +43,7 @@ export declare const WasmResponseSchemas: {
|
|
|
43
43
|
current_borrow_rate: string | number;
|
|
44
44
|
}>;
|
|
45
45
|
AccountSummaryBatchSchema: z.ZodArray<z.ZodObject<{
|
|
46
|
+
account_variant: z.ZodOptional<z.ZodString>;
|
|
46
47
|
address: z.ZodString;
|
|
47
48
|
equity: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
48
49
|
unrealized_pnl: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -56,6 +57,7 @@ export declare const WasmResponseSchemas: {
|
|
|
56
57
|
available_initial_margin: import("decimal.js").Decimal;
|
|
57
58
|
available_maintenance_margin: import("decimal.js").Decimal;
|
|
58
59
|
leverage: import("decimal.js").Decimal;
|
|
60
|
+
account_variant?: string | undefined;
|
|
59
61
|
}, {
|
|
60
62
|
address: string;
|
|
61
63
|
unrealized_pnl: string | number;
|
|
@@ -63,6 +65,7 @@ export declare const WasmResponseSchemas: {
|
|
|
63
65
|
available_initial_margin: string | number;
|
|
64
66
|
available_maintenance_margin: string | number;
|
|
65
67
|
leverage: string | number;
|
|
68
|
+
account_variant?: string | undefined;
|
|
66
69
|
}>, "many">;
|
|
67
70
|
};
|
|
68
71
|
export type PositionAdditionalMetadata = z.infer<typeof WasmResponseSchemas.PositionAdditionalMetadataSchema>;
|
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.
|
|
7
|
+
"version": "0.31.0-rc.0",
|
|
8
8
|
"description": "Bullet SDK",
|
|
9
9
|
"author": "@bulletxyz",
|
|
10
10
|
"license": "Apache-2.0",
|
|
@@ -30,13 +30,12 @@
|
|
|
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 build:types && pnpm build:js",
|
|
33
|
+
"build": "pnpm run clean && pnpm run build:types && pnpm run build:js",
|
|
34
34
|
"dev": "tsx --experimental-wasm-modules scripts/test.ts",
|
|
35
|
-
"package": "pnpm build && pnpm pack",
|
|
36
|
-
"prepublishOnly": "pnpm build",
|
|
37
35
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
38
|
-
"test:build": "pnpm build && pnpm test",
|
|
39
36
|
"test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
|
|
37
|
+
"package": "pnpm run build && pnpm pack",
|
|
38
|
+
"prepublishOnly": "pnpm run build",
|
|
40
39
|
"release:rc:major": "npm version premajor --preid rc && git push --tags && npm publish --tag rc",
|
|
41
40
|
"release:rc:minor": "npm version preminor --preid rc && git push --tags && npm publish --tag rc",
|
|
42
41
|
"release:rc:patch": "npm version prepatch --preid rc && git push --tags && npm publish --tag rc",
|