@compass-labs/widgets 0.1.45 → 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.
@@ -172,7 +172,7 @@ var CompassCoreService = class {
172
172
  };
173
173
  }
174
174
  async managePrepare(body, action) {
175
- const { amount, token, owner, chain, venueType, vaultAddress, marketAddress, maxSlippagePercent } = body;
175
+ const { amount, token, owner, chain, venueType, vaultAddress, marketAddress, maxSlippagePercent, recipient } = body;
176
176
  let venue;
177
177
  if (venueType === "VAULT" && vaultAddress) {
178
178
  venue = {
@@ -200,7 +200,8 @@ var CompassCoreService = class {
200
200
  venue,
201
201
  action,
202
202
  amount,
203
- gasSponsorship: true
203
+ gasSponsorship: true,
204
+ ...recipient && { recipient }
204
205
  });
205
206
  const eip712 = response.eip712;
206
207
  if (!eip712) {
@@ -646,7 +647,7 @@ var CompassCoreService = class {
646
647
  }
647
648
  // --- Bundle ---
648
649
  async bundlePrepare(body) {
649
- const { owner, chain = "base", actions } = body;
650
+ const { owner, chain = "base", actions, recipient } = body;
650
651
  if (!owner || !actions || actions.length === 0) {
651
652
  throw new CompassServiceError("Missing owner or actions", 400);
652
653
  }
@@ -654,7 +655,8 @@ var CompassCoreService = class {
654
655
  owner,
655
656
  chain,
656
657
  gasSponsorship: true,
657
- actions
658
+ actions,
659
+ ...recipient && { recipient }
658
660
  });
659
661
  const eip712 = response.eip712;
660
662
  if (!eip712) {