@compass-labs/widgets 0.1.44 → 0.1.46
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/{compass-service-CpGcD-yK.d.mts → compass-service-B0UscWqQ.d.mts} +2 -0
- package/dist/{compass-service-DilASlAA.d.ts → compass-service-D0Xf69NR.d.ts} +2 -0
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/dist/server/core/index.d.mts +1 -1
- package/dist/server/core/index.d.ts +1 -1
- package/dist/server/core/index.js +6 -4
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/core/index.mjs +6 -4
- package/dist/server/core/index.mjs.map +1 -1
- package/dist/server/index.js +6 -4
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +6 -4
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/nestjs/index.d.mts +1 -1
- package/dist/server/nestjs/index.d.ts +1 -1
- package/dist/server/nestjs/index.js +6 -4
- package/dist/server/nestjs/index.js.map +1 -1
- package/dist/server/nestjs/index.mjs +6 -4
- package/dist/server/nestjs/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as CHAIN_MAP, b as CREDIT_TOKENS, C as CompassHandlerConfig } from '../../types-BOSq6TbU.mjs';
|
|
2
|
-
export { C as CompassCoreService, a as CompassServiceError } from '../../compass-service-
|
|
2
|
+
export { C as CompassCoreService, a as CompassServiceError } from '../../compass-service-B0UscWqQ.mjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '@compass-labs/api-sdk/models/components';
|
|
5
5
|
import '@compass-labs/api-sdk';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as CHAIN_MAP, b as CREDIT_TOKENS, C as CompassHandlerConfig } from '../../types-BOSq6TbU.js';
|
|
2
|
-
export { C as CompassCoreService, a as CompassServiceError } from '../../compass-service-
|
|
2
|
+
export { C as CompassCoreService, a as CompassServiceError } from '../../compass-service-D0Xf69NR.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '@compass-labs/api-sdk/models/components';
|
|
5
5
|
import '@compass-labs/api-sdk';
|
|
@@ -201,7 +201,7 @@ var CompassCoreService = class {
|
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
async managePrepare(body, action) {
|
|
204
|
-
const { amount, token, owner, chain, venueType, vaultAddress, marketAddress, maxSlippagePercent } = body;
|
|
204
|
+
const { amount, token, owner, chain, venueType, vaultAddress, marketAddress, maxSlippagePercent, recipient } = body;
|
|
205
205
|
let venue;
|
|
206
206
|
if (venueType === "VAULT" && vaultAddress) {
|
|
207
207
|
venue = {
|
|
@@ -229,7 +229,8 @@ var CompassCoreService = class {
|
|
|
229
229
|
venue,
|
|
230
230
|
action,
|
|
231
231
|
amount,
|
|
232
|
-
gasSponsorship: true
|
|
232
|
+
gasSponsorship: true,
|
|
233
|
+
...recipient && { recipient }
|
|
233
234
|
});
|
|
234
235
|
const eip712 = response.eip712;
|
|
235
236
|
if (!eip712) {
|
|
@@ -675,7 +676,7 @@ var CompassCoreService = class {
|
|
|
675
676
|
}
|
|
676
677
|
// --- Bundle ---
|
|
677
678
|
async bundlePrepare(body) {
|
|
678
|
-
const { owner, chain = "base", actions } = body;
|
|
679
|
+
const { owner, chain = "base", actions, recipient } = body;
|
|
679
680
|
if (!owner || !actions || actions.length === 0) {
|
|
680
681
|
throw new CompassServiceError("Missing owner or actions", 400);
|
|
681
682
|
}
|
|
@@ -683,7 +684,8 @@ var CompassCoreService = class {
|
|
|
683
684
|
owner,
|
|
684
685
|
chain,
|
|
685
686
|
gasSponsorship: true,
|
|
686
|
-
actions
|
|
687
|
+
actions,
|
|
688
|
+
...recipient && { recipient }
|
|
687
689
|
});
|
|
688
690
|
const eip712 = response.eip712;
|
|
689
691
|
if (!eip712) {
|