@depthhq/maker-sdk 0.1.3 → 0.1.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.
@@ -35,6 +35,7 @@ export declare class MakerClient {
35
35
  static create(options: MakerOptions): Promise<MakerClient>;
36
36
  private accountActions;
37
37
  readonly account: (() => {
38
+ state: () => Promise<import("@depthhq/sdk").AccountState>;
38
39
  history: (options?: Parameters<DepthClient["account"]["history"]>[0]) => Promise<import("@depthhq/sdk").PendingPage>;
39
40
  cancelOpen: () => Promise<string>;
40
41
  open: () => Promise<{
@@ -61,6 +62,7 @@ export declare class MakerClient {
61
62
  }, clientNonce?: bigint) => Promise<import("@depthhq/sdk").TransferHandle>;
62
63
  transferHandle: (nonce: bigint) => import("@depthhq/sdk").TransferHandle;
63
64
  }) & {
65
+ state: () => Promise<import("@depthhq/sdk").AccountState>;
64
66
  history: (options?: Parameters<DepthClient["account"]["history"]>[0]) => Promise<import("@depthhq/sdk").PendingPage>;
65
67
  cancelOpen: () => Promise<string>;
66
68
  open: () => Promise<{
package/dist/index.js CHANGED
@@ -27685,6 +27685,7 @@ class MakerClient {
27685
27685
  }
27686
27686
  accountActions() {
27687
27687
  const actions = {
27688
+ state: async () => (await this.owned()).account.state(),
27688
27689
  history: async (options) => (await this.owned()).account.history(options),
27689
27690
  cancelOpen: () => this.funding.cancelOpenBalance(),
27690
27691
  open: async () => this.funding.openBalance(),
@@ -26206,6 +26206,7 @@ class MakerClient {
26206
26206
  }
26207
26207
  accountActions() {
26208
26208
  const actions = {
26209
+ state: async () => (await this.owned()).account.state(),
26209
26210
  history: async (options) => (await this.owned()).account.history(options),
26210
26211
  cancelOpen: () => this.funding.cancelOpenBalance(),
26211
26212
  open: async () => this.funding.openBalance(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depthhq/maker-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,8 +29,8 @@
29
29
  "@solana/web3.js": "1.99.0",
30
30
  "buffer": "6.0.3",
31
31
  "viem": "2.38.0",
32
- "@depthhq/bindings": "0.1.1",
33
- "@depthhq/sdk": "0.1.1"
32
+ "@depthhq/sdk": "0.1.2",
33
+ "@depthhq/bindings": "0.1.1"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "node ../../scripts/build-package.mjs maker-sdk",