@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.
- package/dist/{compass-service-DilASlAA.d.ts → compass-service-BzYob9QR.d.ts} +1 -0
- package/dist/{compass-service-CpGcD-yK.d.mts → compass-service-Dz4PTtzj.d.mts} +1 -0
- package/dist/server/core/index.d.mts +1 -1
- package/dist/server/core/index.d.ts +1 -1
- package/dist/server/core/index.js +3 -2
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/core/index.mjs +3 -2
- package/dist/server/core/index.mjs.map +1 -1
- package/dist/server/index.js +3 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +3 -2
- 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 +3 -2
- package/dist/server/nestjs/index.js.map +1 -1
- package/dist/server/nestjs/index.mjs +3 -2
- package/dist/server/nestjs/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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-
|
|
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-
|
|
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;
|