@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.
- package/dist/core/index.d.ts +1 -1
- package/dist/vaults/index.d.ts +0 -9
- package/dist/vaults/index.js +0 -7
- package/package.json +2 -2
package/dist/core/index.d.ts
CHANGED
|
@@ -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: "
|
|
2382
|
+
scope: "connector" | "all" | "user" | "client_id";
|
|
2383
2383
|
rate: string;
|
|
2384
2384
|
}[];
|
|
2385
2385
|
finalBps: string;
|
package/dist/vaults/index.d.ts
CHANGED
|
@@ -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: {
|
package/dist/vaults/index.js
CHANGED
|
@@ -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.
|
|
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.
|
|
29
|
+
"@pear-protocol/types": "^2.20.0",
|
|
30
30
|
"@pear-protocol/utils": "^1.4.0",
|
|
31
31
|
"qs": "^6.14.0"
|
|
32
32
|
},
|