@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
package/dist/server/index.mjs
CHANGED
|
@@ -161,7 +161,7 @@ var CompassCoreService = class {
|
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
async managePrepare(body, action) {
|
|
164
|
-
const { amount, token, owner, chain, venueType, vaultAddress, marketAddress, maxSlippagePercent } = body;
|
|
164
|
+
const { amount, token, owner, chain, venueType, vaultAddress, marketAddress, maxSlippagePercent, recipient } = body;
|
|
165
165
|
let venue;
|
|
166
166
|
if (venueType === "VAULT" && vaultAddress) {
|
|
167
167
|
venue = {
|
|
@@ -189,7 +189,8 @@ var CompassCoreService = class {
|
|
|
189
189
|
venue,
|
|
190
190
|
action,
|
|
191
191
|
amount,
|
|
192
|
-
gasSponsorship: true
|
|
192
|
+
gasSponsorship: true,
|
|
193
|
+
...recipient && { recipient }
|
|
193
194
|
});
|
|
194
195
|
const eip712 = response.eip712;
|
|
195
196
|
if (!eip712) {
|
|
@@ -635,7 +636,7 @@ var CompassCoreService = class {
|
|
|
635
636
|
}
|
|
636
637
|
// --- Bundle ---
|
|
637
638
|
async bundlePrepare(body) {
|
|
638
|
-
const { owner, chain = "base", actions } = body;
|
|
639
|
+
const { owner, chain = "base", actions, recipient } = body;
|
|
639
640
|
if (!owner || !actions || actions.length === 0) {
|
|
640
641
|
throw new CompassServiceError("Missing owner or actions", 400);
|
|
641
642
|
}
|
|
@@ -643,7 +644,8 @@ var CompassCoreService = class {
|
|
|
643
644
|
owner,
|
|
644
645
|
chain,
|
|
645
646
|
gasSponsorship: true,
|
|
646
|
-
actions
|
|
647
|
+
actions,
|
|
648
|
+
...recipient && { recipient }
|
|
647
649
|
});
|
|
648
650
|
const eip712 = response.eip712;
|
|
649
651
|
if (!eip712) {
|