@compass-labs/widgets 0.1.45 → 0.1.47

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.
@@ -109,6 +109,7 @@ declare class CompassCoreService {
109
109
  amount: string;
110
110
  action: 'DEPOSIT' | 'WITHDRAW';
111
111
  product?: 'earn' | 'credit';
112
+ recipient?: string;
112
113
  }): Promise<{
113
114
  eip712: any;
114
115
  normalizedTypes: Record<string, any>;
@@ -109,6 +109,7 @@ declare class CompassCoreService {
109
109
  amount: string;
110
110
  action: 'DEPOSIT' | 'WITHDRAW';
111
111
  product?: 'earn' | 'credit';
112
+ recipient?: string;
112
113
  }): Promise<{
113
114
  eip712: any;
114
115
  normalizedTypes: Record<string, any>;
@@ -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-CpGcD-yK.mjs';
2
+ export { C as CompassCoreService, a as CompassServiceError } from '../../compass-service-Dz4PTtzj.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-DilASlAA.js';
2
+ export { C as CompassCoreService, a as CompassServiceError } from '../../compass-service-BzYob9QR.js';
3
3
  import 'viem';
4
4
  import '@compass-labs/api-sdk/models/components';
5
5
  import '@compass-labs/api-sdk';
@@ -344,7 +344,7 @@ var CompassCoreService = class {
344
344
  }
345
345
  }
346
346
  async transferPrepare(body) {
347
- const { owner, chain = "base", token, amount, action, product } = body;
347
+ const { owner, chain = "base", token, amount, action, product, recipient } = body;
348
348
  const { gasSponsorPrivateKey } = this.config;
349
349
  if (!owner || !token || !amount || !action) {
350
350
  throw new CompassServiceError("Missing required parameters", 400);
@@ -373,7 +373,8 @@ var CompassCoreService = class {
373
373
  amount,
374
374
  action,
375
375
  gasSponsorship: true,
376
- ...spender && { spender }
376
+ ...spender && { spender },
377
+ ...recipient && action === "WITHDRAW" && { recipient }
377
378
  });
378
379
  }
379
380
  const eip712 = response.eip712;