@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,6 +1,6 @@
|
|
|
1
1
|
import { DynamicModule, ExceptionFilter, ArgumentsHost } from '@nestjs/common';
|
|
2
2
|
import { C as CompassHandlerConfig } from '../../types-BOSq6TbU.mjs';
|
|
3
|
-
import { C as CompassCoreService } from '../../compass-service-
|
|
3
|
+
import { C as CompassCoreService } from '../../compass-service-B0UscWqQ.mjs';
|
|
4
4
|
import * as _compass_labs_api_sdk_models_components from '@compass-labs/api-sdk/models/components';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '@compass-labs/api-sdk';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicModule, ExceptionFilter, ArgumentsHost } from '@nestjs/common';
|
|
2
2
|
import { C as CompassHandlerConfig } from '../../types-BOSq6TbU.js';
|
|
3
|
-
import { C as CompassCoreService } from '../../compass-service-
|
|
3
|
+
import { C as CompassCoreService } from '../../compass-service-D0Xf69NR.js';
|
|
4
4
|
import * as _compass_labs_api_sdk_models_components from '@compass-labs/api-sdk/models/components';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '@compass-labs/api-sdk';
|
|
@@ -174,7 +174,7 @@ var CompassCoreService = class {
|
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
async managePrepare(body, action) {
|
|
177
|
-
const { amount, token, owner, chain, venueType, vaultAddress, marketAddress, maxSlippagePercent } = body;
|
|
177
|
+
const { amount, token, owner, chain, venueType, vaultAddress, marketAddress, maxSlippagePercent, recipient } = body;
|
|
178
178
|
let venue;
|
|
179
179
|
if (venueType === "VAULT" && vaultAddress) {
|
|
180
180
|
venue = {
|
|
@@ -202,7 +202,8 @@ var CompassCoreService = class {
|
|
|
202
202
|
venue,
|
|
203
203
|
action,
|
|
204
204
|
amount,
|
|
205
|
-
gasSponsorship: true
|
|
205
|
+
gasSponsorship: true,
|
|
206
|
+
...recipient && { recipient }
|
|
206
207
|
});
|
|
207
208
|
const eip712 = response.eip712;
|
|
208
209
|
if (!eip712) {
|
|
@@ -648,7 +649,7 @@ var CompassCoreService = class {
|
|
|
648
649
|
}
|
|
649
650
|
// --- Bundle ---
|
|
650
651
|
async bundlePrepare(body) {
|
|
651
|
-
const { owner, chain = "base", actions } = body;
|
|
652
|
+
const { owner, chain = "base", actions, recipient } = body;
|
|
652
653
|
if (!owner || !actions || actions.length === 0) {
|
|
653
654
|
throw new CompassServiceError("Missing owner or actions", 400);
|
|
654
655
|
}
|
|
@@ -656,7 +657,8 @@ var CompassCoreService = class {
|
|
|
656
657
|
owner,
|
|
657
658
|
chain,
|
|
658
659
|
gasSponsorship: true,
|
|
659
|
-
actions
|
|
660
|
+
actions,
|
|
661
|
+
...recipient && { recipient }
|
|
660
662
|
});
|
|
661
663
|
const eip712 = response.eip712;
|
|
662
664
|
if (!eip712) {
|