@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.
@@ -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) {