@pafi-dev/issuer 0.12.7 → 0.13.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.d.cts CHANGED
@@ -1071,13 +1071,20 @@ interface ApiConfigResponse {
1071
1071
  /**
1072
1072
  * EIP-7702 delegation target — the single contract every user's
1073
1073
  * EOA must delegate to before submitting sponsored UserOps. On
1074
- * Base mainnet this is Coinbase Smart Wallet v2.
1074
+ * Base mainnet this is Pimlico's `Simple7702Account` at
1075
+ * `0xe6Cae83BdE06E4c305530e199D7217f42808555B` (swapped in
1076
+ * 2026-04-27 to replace the earlier Coinbase Smart Wallet v2
1077
+ * BatchExecutor, which had a SignatureWrapper incompatibility
1078
+ * surfacing as AA23 0x3c10b94e during validateUserOp).
1075
1079
  */
1076
1080
  batchExecutor?: Address;
1077
1081
  /**
1078
- * Uniswap V4 hook that enforces the 10% fee on PT→USDT swaps
1079
- * (USDT→PT is free). FE uses this in `PoolKey.hooks` when building
1080
- * a swap; the pool is only discoverable when the hook matches.
1082
+ * @deprecated Removed in v1.6. The Uniswap V4 PAFIHook (10%
1083
+ * PT→USDT swap fee) was deleted in the 2026-05-07 redeploy — fee
1084
+ * logic moved to `MintFeeWrapper` on the mint path, and v1.6 pools
1085
+ * use `hooks = address(0)`. Field retained for ABI back-compat
1086
+ * with v1.5 callers; `getContractAddresses(chainId)` returns a
1087
+ * dead sentinel.
1081
1088
  */
1082
1089
  pafiHook?: Address;
1083
1090
  /**
@@ -1146,7 +1153,6 @@ interface ApiUserRequest {
1146
1153
  }
1147
1154
  interface ApiUserResponse {
1148
1155
  mintRequestNonce: bigint;
1149
- receiverConsentNonce: bigint;
1150
1156
  /**
1151
1157
  * Off-chain point balance from the issuer's ledger (excludes PENDING locks).
1152
1158
  * This is what the user can claim into on-chain PT via `/claim`.
@@ -1163,8 +1169,10 @@ interface ApiUserResponse {
1163
1169
  */
1164
1170
  totalBalance: bigint;
1165
1171
  /**
1166
- * @deprecated use `offChainBalance` instead. Kept for backward compatibility
1167
- * will be removed in 0.2.0.
1172
+ * @deprecated Use `offChainBalance` instead. Originally slated for
1173
+ * removal in v0.2.0; we kept it past that point because public
1174
+ * mobile clients still read it. Will be removed in the next major
1175
+ * bump (v1.0).
1168
1176
  */
1169
1177
  balance: bigint;
1170
1178
  isMinter: boolean;
@@ -2756,7 +2764,6 @@ interface PoolsDto {
2756
2764
  }
2757
2765
  interface UserDto {
2758
2766
  mintRequestNonce: string;
2759
- receiverConsentNonce: string;
2760
2767
  offChainBalance: string;
2761
2768
  onChainBalance: string;
2762
2769
  totalBalance: string;
package/dist/index.d.ts CHANGED
@@ -1071,13 +1071,20 @@ interface ApiConfigResponse {
1071
1071
  /**
1072
1072
  * EIP-7702 delegation target — the single contract every user's
1073
1073
  * EOA must delegate to before submitting sponsored UserOps. On
1074
- * Base mainnet this is Coinbase Smart Wallet v2.
1074
+ * Base mainnet this is Pimlico's `Simple7702Account` at
1075
+ * `0xe6Cae83BdE06E4c305530e199D7217f42808555B` (swapped in
1076
+ * 2026-04-27 to replace the earlier Coinbase Smart Wallet v2
1077
+ * BatchExecutor, which had a SignatureWrapper incompatibility
1078
+ * surfacing as AA23 0x3c10b94e during validateUserOp).
1075
1079
  */
1076
1080
  batchExecutor?: Address;
1077
1081
  /**
1078
- * Uniswap V4 hook that enforces the 10% fee on PT→USDT swaps
1079
- * (USDT→PT is free). FE uses this in `PoolKey.hooks` when building
1080
- * a swap; the pool is only discoverable when the hook matches.
1082
+ * @deprecated Removed in v1.6. The Uniswap V4 PAFIHook (10%
1083
+ * PT→USDT swap fee) was deleted in the 2026-05-07 redeploy — fee
1084
+ * logic moved to `MintFeeWrapper` on the mint path, and v1.6 pools
1085
+ * use `hooks = address(0)`. Field retained for ABI back-compat
1086
+ * with v1.5 callers; `getContractAddresses(chainId)` returns a
1087
+ * dead sentinel.
1081
1088
  */
1082
1089
  pafiHook?: Address;
1083
1090
  /**
@@ -1146,7 +1153,6 @@ interface ApiUserRequest {
1146
1153
  }
1147
1154
  interface ApiUserResponse {
1148
1155
  mintRequestNonce: bigint;
1149
- receiverConsentNonce: bigint;
1150
1156
  /**
1151
1157
  * Off-chain point balance from the issuer's ledger (excludes PENDING locks).
1152
1158
  * This is what the user can claim into on-chain PT via `/claim`.
@@ -1163,8 +1169,10 @@ interface ApiUserResponse {
1163
1169
  */
1164
1170
  totalBalance: bigint;
1165
1171
  /**
1166
- * @deprecated use `offChainBalance` instead. Kept for backward compatibility
1167
- * will be removed in 0.2.0.
1172
+ * @deprecated Use `offChainBalance` instead. Originally slated for
1173
+ * removal in v0.2.0; we kept it past that point because public
1174
+ * mobile clients still read it. Will be removed in the next major
1175
+ * bump (v1.0).
1168
1176
  */
1169
1177
  balance: bigint;
1170
1178
  isMinter: boolean;
@@ -2756,7 +2764,6 @@ interface PoolsDto {
2756
2764
  }
2757
2765
  interface UserDto {
2758
2766
  mintRequestNonce: string;
2759
- receiverConsentNonce: string;
2760
2767
  offChainBalance: string;
2761
2768
  onChainBalance: string;
2762
2769
  totalBalance: string;
package/dist/index.js CHANGED
@@ -1349,7 +1349,6 @@ import {
1349
1349
  getMintFeeBps,
1350
1350
  getMintRequestNonce,
1351
1351
  getPointTokenBalance,
1352
- getReceiverConsentNonce,
1353
1352
  isMinter
1354
1353
  } from "@pafi-dev/core";
1355
1354
  var IssuerApiHandlers = class _IssuerApiHandlers {
@@ -1621,16 +1620,14 @@ var IssuerApiHandlers = class _IssuerApiHandlers {
1621
1620
  { requested: pointToken }
1622
1621
  );
1623
1622
  }
1624
- const [mintRequestNonce, receiverConsentNonce, offChainBalance, onChainBalance, minter] = await Promise.all([
1623
+ const [mintRequestNonce, offChainBalance, onChainBalance, minter] = await Promise.all([
1625
1624
  getMintRequestNonce(this.provider, pointToken, normalizedAuthed),
1626
- getReceiverConsentNonce(this.provider, pointToken, normalizedAuthed),
1627
1625
  this.ledger.getBalance(normalizedAuthed, pointToken),
1628
1626
  getPointTokenBalance(this.provider, pointToken, normalizedAuthed),
1629
1627
  isMinter(this.provider, pointToken, normalizedAuthed)
1630
1628
  ]);
1631
1629
  return {
1632
1630
  mintRequestNonce,
1633
- receiverConsentNonce,
1634
1631
  offChainBalance,
1635
1632
  onChainBalance,
1636
1633
  totalBalance: offChainBalance + onChainBalance,
@@ -2966,7 +2963,6 @@ var IssuerApiAdapter = class {
2966
2963
  );
2967
2964
  return {
2968
2965
  mintRequestNonce: result.mintRequestNonce.toString(),
2969
- receiverConsentNonce: result.receiverConsentNonce.toString(),
2970
2966
  offChainBalance: result.offChainBalance.toString(),
2971
2967
  onChainBalance: result.onChainBalance.toString(),
2972
2968
  totalBalance: result.totalBalance.toString(),
@@ -4561,7 +4557,7 @@ var MemoryRedemptionHistoryStore = class {
4561
4557
  };
4562
4558
 
4563
4559
  // src/index.ts
4564
- var PAFI_ISSUER_SDK_VERSION = true ? "0.12.7" : "dev";
4560
+ var PAFI_ISSUER_SDK_VERSION = true ? "0.13.0" : "dev";
4565
4561
  export {
4566
4562
  AdapterMisconfiguredError,
4567
4563
  AuthError,