@pafi-dev/issuer 0.40.0 → 0.41.0

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/index.cjs CHANGED
@@ -3043,7 +3043,7 @@ async function handleMobileSubmit(params) {
3043
3043
  const result = await relayUserOp({
3044
3044
  client: params.pafiBackendClient,
3045
3045
  userOp: userOpJson,
3046
- entryPoint: params.entryPoint ?? import_core10.ENTRY_POINT_V08,
3046
+ entryPoint: params.entryPoint ?? import_core10.ENTRY_POINT_V07,
3047
3047
  eip7702Auth: entry.eip7702Auth
3048
3048
  });
3049
3049
  const targetLockId = variant === "fallback" && entry.fallback?.lockId ? entry.fallback.lockId : params.lockId;
@@ -3505,14 +3505,12 @@ var IssuerApiAdapter = class {
3505
3505
  chainId: input.chainId,
3506
3506
  aaNonce: input.aaNonce
3507
3507
  });
3508
- const sponsorAuth = await this.buildSponsorAuth(input.authenticatedAddress, result.userOp.callData, input.chainId, "mint");
3509
3508
  return {
3510
3509
  calls: result.calls,
3511
3510
  callsFallback: result.callsFallback,
3512
3511
  feeAmount: result.feeAmount.toString(),
3513
3512
  lockId: result.lockId,
3514
- signatureDeadline: result.signatureDeadline.toString(),
3515
- sponsorAuth
3513
+ signatureDeadline: result.signatureDeadline.toString()
3516
3514
  };
3517
3515
  }
3518
3516
  async redeem(input) {
@@ -3526,7 +3524,6 @@ var IssuerApiAdapter = class {
3526
3524
  aaNonce: input.aaNonce,
3527
3525
  chainId: input.chainId
3528
3526
  });
3529
- const sponsorAuth = await this.buildSponsorAuth(input.authenticatedAddress, response.userOp.callData, input.chainId, "burn");
3530
3527
  return {
3531
3528
  calls: (0, import_core13.decodeKernelExecuteCalls)(response.userOp.callData),
3532
3529
  callsFallback: response.fallback ? (0, import_core13.decodeKernelExecuteCalls)(response.fallback.userOp.callData) : void 0,
@@ -3536,8 +3533,7 @@ var IssuerApiAdapter = class {
3536
3533
  netCreditAmount: response.netCreditAmount.toString(),
3537
3534
  netCreditAmountFallback: response.fallback?.netCreditAmount.toString(),
3538
3535
  expiresInSeconds: response.expiresInSeconds,
3539
- signatureDeadline: response.signatureDeadline.toString(),
3540
- sponsorAuth
3536
+ signatureDeadline: response.signatureDeadline.toString()
3541
3537
  };
3542
3538
  }
3543
3539
  // swap() removed (2026-04-27) — moved to @pafi-dev/trading.
@@ -3551,7 +3547,6 @@ var IssuerApiAdapter = class {
3551
3547
  brokerId: input.brokerId,
3552
3548
  aaNonce: input.aaNonce
3553
3549
  });
3554
- const sponsorAuth = await this.buildSponsorAuth(input.authenticatedAddress, result.userOp.callData, input.chainId, "perp-deposit");
3555
3550
  return {
3556
3551
  calls: result.calls,
3557
3552
  callsFallback: result.callsFallback,
@@ -3562,8 +3557,7 @@ var IssuerApiAdapter = class {
3562
3557
  accountId: result.accountId,
3563
3558
  brokerHash: result.brokerHash,
3564
3559
  usdcAddress: result.usdcAddress,
3565
- relayAddress: result.relayAddress,
3566
- sponsorAuth
3560
+ relayAddress: result.relayAddress
3567
3561
  };
3568
3562
  }
3569
3563
  // ------------------------------ Mobile endpoints -------------------------
@@ -3663,21 +3657,6 @@ var IssuerApiAdapter = class {
3663
3657
  // bundler applies SetCode + handleOps in one tx, so there is no
3664
3658
  // separate `/delegate/*` flow. See `handleMobilePrepare`.
3665
3659
  // ------------------------------ Internal helpers -------------------------
3666
- /**
3667
- * Build + sign a SponsorAuth payload. Returns `undefined` when no
3668
- * issuer id is configured, so the controller can skip the field.
3669
- */
3670
- async buildSponsorAuth(authenticatedAddress, callData, chainId, scenario) {
3671
- if (!this.cfg.pafiIssuerId) return void 0;
3672
- return (0, import_core13.buildAndSignSponsorAuth)({
3673
- userAddress: authenticatedAddress,
3674
- callData,
3675
- chainId,
3676
- scenario,
3677
- issuerId: this.cfg.pafiIssuerId,
3678
- issuerSignerWallet: this.cfg.issuerSignerWallet
3679
- });
3680
- }
3681
3660
  async runMobilePrepare(authenticatedAddress, chainId, lockId, partialUserOp, partialUserOpFallback, scenario, pointTokenAddress, ttlSeconds, eip7702Auth, lockIdFallback) {
3682
3661
  return await handleMobilePrepare({
3683
3662
  userAddress: authenticatedAddress,
@@ -5034,7 +5013,7 @@ var MemoryRedemptionHistoryStore = class {
5034
5013
  };
5035
5014
 
5036
5015
  // src/index.ts
5037
- var PAFI_ISSUER_SDK_VERSION = true ? "0.40.0" : "dev";
5016
+ var PAFI_ISSUER_SDK_VERSION = true ? "0.41.0" : "dev";
5038
5017
  // Annotate the CommonJS export names for ESM import in node:
5039
5018
  0 && (module.exports = {
5040
5019
  AdapterMisconfiguredError,