@pafi-dev/issuer 0.5.24 → 0.5.26

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.d.cts CHANGED
@@ -1543,6 +1543,18 @@ interface SponsorshipResponse {
1543
1543
  paymasterData: Hex;
1544
1544
  paymasterVerificationGasLimit: bigint;
1545
1545
  paymasterPostOpGasLimit: bigint;
1546
+ /**
1547
+ * Pimlico's `pm_sponsorUserOperation` re-estimates these gas fields
1548
+ * and signs its paymaster signature over the new values. Callers
1549
+ * MUST overwrite the matching userOp fields with these BEFORE
1550
+ * computing the EIP-712 userOpHash and submitting to the bundler.
1551
+ * Otherwise both `AA34` (paymaster sig) and `AA24` (sender sig) will
1552
+ * fire — the EntryPoint hashes the actual on-chain field values, and
1553
+ * a mismatch invalidates every sig over the hash.
1554
+ */
1555
+ callGasLimit?: bigint;
1556
+ verificationGasLimit?: bigint;
1557
+ preVerificationGas?: bigint;
1546
1558
  expiresAt: number;
1547
1559
  }
1548
1560
  declare class PafiBackendClient {
package/dist/index.d.ts CHANGED
@@ -1543,6 +1543,18 @@ interface SponsorshipResponse {
1543
1543
  paymasterData: Hex;
1544
1544
  paymasterVerificationGasLimit: bigint;
1545
1545
  paymasterPostOpGasLimit: bigint;
1546
+ /**
1547
+ * Pimlico's `pm_sponsorUserOperation` re-estimates these gas fields
1548
+ * and signs its paymaster signature over the new values. Callers
1549
+ * MUST overwrite the matching userOp fields with these BEFORE
1550
+ * computing the EIP-712 userOpHash and submitting to the bundler.
1551
+ * Otherwise both `AA34` (paymaster sig) and `AA24` (sender sig) will
1552
+ * fire — the EntryPoint hashes the actual on-chain field values, and
1553
+ * a mismatch invalidates every sig over the hash.
1554
+ */
1555
+ callGasLimit?: bigint;
1556
+ verificationGasLimit?: bigint;
1557
+ preVerificationGas?: bigint;
1546
1558
  expiresAt: number;
1547
1559
  }
1548
1560
  declare class PafiBackendClient {
package/dist/index.js CHANGED
@@ -2107,6 +2107,9 @@ var PafiBackendClient = class {
2107
2107
  json.paymasterVerificationGasLimit
2108
2108
  ),
2109
2109
  paymasterPostOpGasLimit: BigInt(json.paymasterPostOpGasLimit),
2110
+ callGasLimit: json.callGasLimit != null ? BigInt(json.callGasLimit) : void 0,
2111
+ verificationGasLimit: json.verificationGasLimit != null ? BigInt(json.verificationGasLimit) : void 0,
2112
+ preVerificationGas: json.preVerificationGas != null ? BigInt(json.preVerificationGas) : void 0,
2110
2113
  expiresAt: json.expiresAt
2111
2114
  };
2112
2115
  }