@pear-protocol/core-sdk 2.12.0 → 2.13.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.
@@ -2379,7 +2379,7 @@ declare class Core {
2379
2379
  get: (query?: HttpTypes.QuoteFeeParamsInput, headers?: ClientHeaders) => Promise<{
2380
2380
  baseBps: string;
2381
2381
  discounts: {
2382
- scope: "user" | "connector" | "all" | "client_id";
2382
+ scope: "connector" | "all" | "user" | "client_id";
2383
2383
  rate: string;
2384
2384
  }[];
2385
2385
  finalBps: string;
@@ -300,15 +300,6 @@ declare class Vaults {
300
300
  };
301
301
  }>;
302
302
  agent: {
303
- /** GET /vaults/:vaultAddress/balances — fetch agent balances for a vault. */
304
- balances: (vaultAddress: string, headers?: ClientHeaders) => Promise<{
305
- agentAddress: string;
306
- spot: Record<string, string>;
307
- perp: {
308
- accountValue: string;
309
- withdrawable: string;
310
- };
311
- }>;
312
303
  /** POST /vaults/:vaultAddress/agent/approve — approve an agent action for a vault. */
313
304
  approve: (vaultAddress: string, body: HttpTypes.AgentApproveInput, headers?: ClientHeaders) => Promise<{
314
305
  result: {
@@ -121,13 +121,6 @@ class Vaults {
121
121
  });
122
122
  }, "withdrawToEvm");
123
123
  agent = {
124
- /** GET /vaults/:vaultAddress/balances — fetch agent balances for a vault. */
125
- balances: /* @__PURE__ */ __name(async (vaultAddress, headers) => {
126
- return await this.client.fetch(`/vaults/${vaultAddress}/balances`, {
127
- method: "GET",
128
- headers
129
- });
130
- }, "balances"),
131
124
  /** POST /vaults/:vaultAddress/agent/approve — approve an agent action for a vault. */
132
125
  approve: /* @__PURE__ */ __name(async (vaultAddress, body, headers) => {
133
126
  return await this.client.fetch(`/vaults/${vaultAddress}/agent/approve`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/core-sdk",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "Pear Protocol Core SDK",
5
5
  "private": false,
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "typecheck": "tsc --noEmit"
27
27
  },
28
28
  "dependencies": {
29
- "@pear-protocol/types": "^2.19.0",
29
+ "@pear-protocol/types": "^2.20.0",
30
30
  "@pear-protocol/utils": "^1.4.0",
31
31
  "qs": "^6.14.0"
32
32
  },