@pafi-dev/core 0.18.0 → 0.20.1

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.
Files changed (57) hide show
  1. package/README.md +55 -10
  2. package/dist/abi/index.cjs +14 -4
  3. package/dist/abi/index.cjs.map +1 -1
  4. package/dist/abi/index.d.cts +3846 -482
  5. package/dist/abi/index.d.ts +3846 -482
  6. package/dist/abi/index.js +15 -5
  7. package/dist/{chunk-KRHGFUDI.cjs → chunk-245YA3CQ.cjs} +87 -20
  8. package/dist/chunk-245YA3CQ.cjs.map +1 -0
  9. package/dist/{chunk-C7VB6WTL.cjs → chunk-2CU7ZH2A.cjs} +490 -497
  10. package/dist/chunk-2CU7ZH2A.cjs.map +1 -0
  11. package/dist/chunk-2DVM77Y2.cjs +5018 -0
  12. package/dist/chunk-2DVM77Y2.cjs.map +1 -0
  13. package/dist/{chunk-UZUDJXKE.cjs → chunk-3ZT7KTN4.cjs} +5 -3
  14. package/dist/chunk-3ZT7KTN4.cjs.map +1 -0
  15. package/dist/{chunk-H3X3FYUU.js → chunk-4VPIPVV5.js} +62 -35
  16. package/dist/chunk-4VPIPVV5.js.map +1 -0
  17. package/dist/{chunk-UCO5DXD6.js → chunk-5Y7MGN56.js} +87 -20
  18. package/dist/chunk-5Y7MGN56.js.map +1 -0
  19. package/dist/chunk-DQKCPH6B.cjs +199 -0
  20. package/dist/chunk-DQKCPH6B.cjs.map +1 -0
  21. package/dist/{chunk-4TNHRZ4X.js → chunk-K4GBOB5V.js} +4 -2
  22. package/dist/chunk-K4GBOB5V.js.map +1 -0
  23. package/dist/{chunk-LF5GIN5P.js → chunk-W2DHHR2N.js} +490 -497
  24. package/dist/chunk-W2DHHR2N.js.map +1 -0
  25. package/dist/chunk-ZQVYWMOG.js +5018 -0
  26. package/dist/chunk-ZQVYWMOG.js.map +1 -0
  27. package/dist/contract/index.cjs +8 -4
  28. package/dist/contract/index.cjs.map +1 -1
  29. package/dist/contract/index.d.cts +53 -27
  30. package/dist/contract/index.d.ts +53 -27
  31. package/dist/contract/index.js +13 -9
  32. package/dist/eip712/index.cjs +3 -3
  33. package/dist/eip712/index.d.cts +7 -1
  34. package/dist/eip712/index.d.ts +7 -1
  35. package/dist/eip712/index.js +2 -2
  36. package/dist/index.cjs +227 -38
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.cts +601 -11
  39. package/dist/index.d.ts +601 -11
  40. package/dist/index.js +213 -24
  41. package/dist/index.js.map +1 -1
  42. package/dist/{types-C17pznGz.d.ts → types-Hn1zUPTt.d.cts} +46 -13
  43. package/dist/{types-C17pznGz.d.cts → types-Hn1zUPTt.d.ts} +46 -13
  44. package/package.json +1 -1
  45. package/dist/chunk-4TNHRZ4X.js.map +0 -1
  46. package/dist/chunk-C7VB6WTL.cjs.map +0 -1
  47. package/dist/chunk-H3X3FYUU.js.map +0 -1
  48. package/dist/chunk-KRHGFUDI.cjs.map +0 -1
  49. package/dist/chunk-LF5GIN5P.js.map +0 -1
  50. package/dist/chunk-TRYGIC2I.cjs +0 -172
  51. package/dist/chunk-TRYGIC2I.cjs.map +0 -1
  52. package/dist/chunk-UCO5DXD6.js.map +0 -1
  53. package/dist/chunk-UZUDJXKE.cjs.map +0 -1
  54. package/dist/chunk-XXLIIWIF.cjs +0 -711
  55. package/dist/chunk-XXLIIWIF.cjs.map +0 -1
  56. package/dist/chunk-ZJXXCG5P.js +0 -711
  57. package/dist/chunk-ZJXXCG5P.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -4,7 +4,12 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkXXLIIWIFcjs = require('./chunk-XXLIIWIF.cjs');
7
+
8
+
9
+
10
+
11
+
12
+ var _chunk2DVM77Y2cjs = require('./chunk-2DVM77Y2.cjs');
8
13
 
9
14
 
10
15
 
@@ -36,15 +41,15 @@ var _chunk75JWR5SAcjs = require('./chunk-75JWR5SA.cjs');
36
41
 
37
42
 
38
43
 
39
- var _chunkTRYGIC2Icjs = require('./chunk-TRYGIC2I.cjs');
40
44
 
41
45
 
42
46
 
47
+ var _chunkDQKCPH6Bcjs = require('./chunk-DQKCPH6B.cjs');
43
48
 
44
- var _chunkC7VB6WTLcjs = require('./chunk-C7VB6WTL.cjs');
45
49
 
46
50
 
47
51
 
52
+ var _chunk2CU7ZH2Acjs = require('./chunk-2CU7ZH2A.cjs');
48
53
 
49
54
 
50
55
 
@@ -66,10 +71,13 @@ var _chunkC7VB6WTLcjs = require('./chunk-C7VB6WTL.cjs');
66
71
 
67
72
 
68
73
 
69
- var _chunkUZUDJXKEcjs = require('./chunk-UZUDJXKE.cjs');
70
74
 
71
75
 
72
- var _chunkKRHGFUDIcjs = require('./chunk-KRHGFUDI.cjs');
76
+
77
+ var _chunk3ZT7KTN4cjs = require('./chunk-3ZT7KTN4.cjs');
78
+
79
+
80
+ var _chunk245YA3CQcjs = require('./chunk-245YA3CQ.cjs');
73
81
  require('./chunk-JEQ2X3Z6.cjs');
74
82
 
75
83
  // src/index.ts
@@ -532,6 +540,43 @@ function buildPerpDepositViaRelay(params) {
532
540
  });
533
541
  }
534
542
 
543
+ // src/transfer/buildErc20Transfer.ts
544
+ function buildErc20TransferUserOp(params) {
545
+ if (params.amount <= 0n) {
546
+ throw new Error("buildErc20TransferUserOp: amount must be positive");
547
+ }
548
+ const operations = [];
549
+ if (params.feeAmount && params.feeAmount > 0n) {
550
+ if (!params.feeRecipient) {
551
+ throw new Error(
552
+ "buildErc20TransferUserOp: feeRecipient required when feeAmount > 0"
553
+ );
554
+ }
555
+ operations.push(
556
+ erc20TransferOp(
557
+ params.tokenAddress,
558
+ params.feeRecipient,
559
+ params.feeAmount
560
+ )
561
+ );
562
+ }
563
+ operations.push(
564
+ erc20TransferOp(params.tokenAddress, params.recipient, params.amount)
565
+ );
566
+ return buildPartialUserOperation({
567
+ sender: params.userAddress,
568
+ nonce: params.aaNonce,
569
+ operations,
570
+ gasLimits: {
571
+ // 2 simple ERC-20 transfers + 7702 batch overhead. ~70-90k actual;
572
+ // 200k matches the `delegate` scenario budget and covers premium.
573
+ callGasLimit: _nullishCoalesce(_optionalChain([params, 'access', _25 => _25.gasLimits, 'optionalAccess', _26 => _26.callGasLimit]), () => ( 200000n)),
574
+ verificationGasLimit: _nullishCoalesce(_optionalChain([params, 'access', _27 => _27.gasLimits, 'optionalAccess', _28 => _28.verificationGasLimit]), () => ( 150000n)),
575
+ preVerificationGas: _nullishCoalesce(_optionalChain([params, 'access', _29 => _29.gasLimits, 'optionalAccess', _30 => _30.preVerificationGas]), () => ( 50000n))
576
+ }
577
+ });
578
+ }
579
+
535
580
  // src/userop/types.ts
536
581
  var ZERO_VALUE = 0n;
537
582
 
@@ -593,7 +638,7 @@ function buildUserOpTypedData(userOp, chainId) {
593
638
  name: "ERC4337",
594
639
  version: "1",
595
640
  chainId,
596
- verifyingContract: _chunkUZUDJXKEcjs.ENTRY_POINT_V08
641
+ verifyingContract: _chunk3ZT7KTN4cjs.ENTRY_POINT_V08
597
642
  },
598
643
  types: PACKED_USER_OPERATION_TYPES,
599
644
  primaryType: "PackedUserOperation",
@@ -746,9 +791,9 @@ function buildDelegationUserOp(params) {
746
791
  }
747
792
  ],
748
793
  gasLimits: {
749
- callGasLimit: _nullishCoalesce(_optionalChain([params, 'access', _25 => _25.gasLimits, 'optionalAccess', _26 => _26.callGasLimit]), () => ( 50000n)),
750
- verificationGasLimit: _nullishCoalesce(_optionalChain([params, 'access', _27 => _27.gasLimits, 'optionalAccess', _28 => _28.verificationGasLimit]), () => ( 150000n)),
751
- preVerificationGas: _nullishCoalesce(_optionalChain([params, 'access', _29 => _29.gasLimits, 'optionalAccess', _30 => _30.preVerificationGas]), () => ( 50000n))
794
+ callGasLimit: _nullishCoalesce(_optionalChain([params, 'access', _31 => _31.gasLimits, 'optionalAccess', _32 => _32.callGasLimit]), () => ( 50000n)),
795
+ verificationGasLimit: _nullishCoalesce(_optionalChain([params, 'access', _33 => _33.gasLimits, 'optionalAccess', _34 => _34.verificationGasLimit]), () => ( 150000n)),
796
+ preVerificationGas: _nullishCoalesce(_optionalChain([params, 'access', _35 => _35.gasLimits, 'optionalAccess', _36 => _36.preVerificationGas]), () => ( 50000n))
752
797
  }
753
798
  });
754
799
  }
@@ -766,7 +811,7 @@ async function getAaNonce(client, userAddress) {
766
811
  }
767
812
  ];
768
813
  return client.readContract({
769
- address: _chunkUZUDJXKEcjs.ENTRY_POINT_V08,
814
+ address: _chunk3ZT7KTN4cjs.ENTRY_POINT_V08,
770
815
  abi: NONCE_ABI,
771
816
  functionName: "getNonce",
772
817
  args: [userAddress, 0n]
@@ -828,14 +873,18 @@ function buildEip7702Authorization(params) {
828
873
  // src/contracts/real/addresses.ts
829
874
  var PLACEHOLDER_DEAD = (suffix) => `0x000000000000000000000000000000000000${suffix.toLowerCase().padStart(4, "0")}`;
830
875
  var CONTRACT_ADDRESSES = {
831
- // Base mainnet — live deployment
876
+ // ──────────────────────────────────────────────────────────────────
877
+ // Base mainnet (8453) — V2 dual-bucket deploy 2026-06-12
878
+ //
879
+ // Replaces the v1.6 single-bucket deploy (2026-05-07). Periphery
880
+ // addresses (batchExecutor / chainlinkEthUsd / orderlyRelay /
881
+ // universalRouter / permit2 / pafiFeeRecipient) are inherited from
882
+ // v1.6 — they were not redeployed for V2. PointToken impl + factory
883
+ // were rotated as part of the dual-bucket schema change.
884
+ // ──────────────────────────────────────────────────────────────────
832
885
  8453: {
886
+ // ── Periphery (inherited from v1.6, unchanged) ────────────────
833
887
  batchExecutor: "0xe6Cae83BdE06E4c305530e199D7217f42808555B",
834
- usdt: "0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382",
835
- usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
836
- issuerRegistry: "0xAB1d1e117c41636f30bb10194Fe6B774B6Da9E01",
837
- mintingOracle: "0x2f4cf8C5F8b41efC970c5b46a5d905CeA1f871a0",
838
- mintFeeWrapper: "0xD324EE2e3220B23d1b1BfbB85f5bC1EF2E917B93",
839
888
  chainlinkEthUsd: "0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70",
840
889
  orderlyRelay: "0xDA082DAce1522c185aeB5A713FcA6fa6B6E99e7f",
841
890
  pafiFeeRecipient: "0xa3F71eadEd101513a0151007590020dCFD7C495e",
@@ -849,7 +898,22 @@ var CONTRACT_ADDRESSES = {
849
898
  // Permit2, so swaps signed against the canonical Permit2 fail
850
899
  // signature verification. Keep in sync with `PERMIT2_ADDRESS`
851
900
  // top-level export.
852
- permit2: "0xEB450d21ae68D3303Cf5775A54Cc84EE7c3fC8eC"
901
+ permit2: "0xEB450d21ae68D3303Cf5775A54Cc84EE7c3fC8eC",
902
+ // ── Stablecoins ───────────────────────────────────────────────
903
+ // USDT inherited from v1.6 (MockUSDT — no new V2 USDT deploy).
904
+ usdt: "0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382",
905
+ // V2 USDC — PAFI ecosystem USDC (custom deploy, NOT canonical Base
906
+ // USDC `0x833589fC...`). Paired with the USDC/USD Chainlink feed below.
907
+ usdc: "0xf0Fa9eB05fd3a373d3c54775Ff0ed55Dc9cc2D3E",
908
+ chainlinkUsdcUsd: "0xEE86BfD4E2B3A1e71a1b45f750791D67e735e4a7",
909
+ // ── V2 core registries (replaces v1.6) ────────────────────────
910
+ issuerRegistry: "0x3e82647b0f716f80e65d311354E2C4F0DcFd6997",
911
+ mintingOracle: "0x19F5Ea31D42E957F66B672c83293588f190f9fEB",
912
+ mintFeeWrapper: "0x72B8FB182A72741d2F85Bd78B5cAAC8b98c5A493",
913
+ tokenRegistry: "0x7092b329a5c9a823EE0b629D391330D29E109d97",
914
+ vaultRegistry: "0x8D97352cEaA6d6C1Ee2ddFd327F1487357650712",
915
+ vaultFactory: "0xDaD6b27Be7d89A6776b85D0672e0B645318DE63b",
916
+ pointModuleCore: "0x3995fE8ED9dc563C2d7268fCA86d08cc1A2C1c9c"
853
917
  },
854
918
  // Base Sepolia — not in active use; placeholders kept so the map
855
919
  // compiles for tooling that enumerates chains.
@@ -863,15 +927,31 @@ var CONTRACT_ADDRESSES = {
863
927
  orderlyRelay: PLACEHOLDER_DEAD("de03"),
864
928
  pafiFeeRecipient: PLACEHOLDER_DEAD("de04"),
865
929
  universalRouter: PLACEHOLDER_DEAD("de05"),
866
- permit2: PLACEHOLDER_DEAD("de06")
930
+ permit2: PLACEHOLDER_DEAD("de06"),
931
+ tokenRegistry: PLACEHOLDER_DEAD("de07"),
932
+ vaultRegistry: PLACEHOLDER_DEAD("de08"),
933
+ vaultFactory: PLACEHOLDER_DEAD("de09"),
934
+ pointModuleCore: PLACEHOLDER_DEAD("de0a")
867
935
  }
868
936
  };
869
937
  var POINT_TOKEN_FACTORY_ADDRESSES = {
870
- 8453: "0xA08274458b43E7D6F4ff61ddFe8A9852c6531085",
938
+ // V2 dual-bucket factory (2026-06-12). Replaces v1.6 factory
939
+ // `0xA08274458b43E7D6F4ff61ddFe8A9852c6531085`.
940
+ 8453: "0x34f9F84841A77A19040686396b8B64522A2da4c8",
871
941
  84532: PLACEHOLDER_DEAD("dead")
872
942
  };
873
943
  var POINT_TOKEN_IMPL_ADDRESSES = {
874
- 8453: "0xc41c3F8A0380c7760Ee1209d6d19C4b81dE994e4",
944
+ // V2 dual-bucket impl (2026-06-12). Replaces v1.6 impl
945
+ // `0xc41c3F8A0380c7760Ee1209d6d19C4b81dE994e4` (single-bucket).
946
+ 8453: "0x067d2d82F7cfbAf9bBA1f493167cC6043eD5d7dd",
947
+ 84532: PLACEHOLDER_DEAD("dead")
948
+ };
949
+ var POINT_TOKEN_BEACON_ADDRESSES = {
950
+ 8453: "0xdC479E294FD12658FDC68B9400c2073De291acf3",
951
+ 84532: PLACEHOLDER_DEAD("dead")
952
+ };
953
+ var VAULT_BEACON_ADDRESSES = {
954
+ 8453: "0x4E583d64bfcCD86dFf1f68b792D5a1Cd169f22eB",
875
955
  84532: PLACEHOLDER_DEAD("dead")
876
956
  };
877
957
  function getContractAddresses(chainId) {
@@ -949,7 +1029,7 @@ async function delegateDirect(params) {
949
1029
  hash: txHash
950
1030
  });
951
1031
  } catch (err) {
952
- _optionalChain([params, 'access', _31 => _31.onWarning, 'optionalCall', _32 => _32(
1032
+ _optionalChain([params, 'access', _37 => _37.onWarning, 'optionalCall', _38 => _38(
953
1033
  `delegateDirect: tx ${txHash} sent but receipt fetch failed: ${err instanceof Error ? err.message : String(err)}`
954
1034
  )]);
955
1035
  }
@@ -977,7 +1057,7 @@ function createPafiProxyTransport(params) {
977
1057
  // fetchFn intercepts every fetch call the viem http transport makes,
978
1058
  // injecting the auth headers before the request leaves the browser.
979
1059
  fetchFn: (input, init) => {
980
- const headers = new Headers(_optionalChain([init, 'optionalAccess', _33 => _33.headers]));
1060
+ const headers = new Headers(_optionalChain([init, 'optionalAccess', _39 => _39.headers]));
981
1061
  const token = getIdentityToken();
982
1062
  if (token) {
983
1063
  headers.set("authorization", `Bearer ${token}`);
@@ -1001,7 +1081,7 @@ var PAYMASTER_PATTERNS = [
1001
1081
  function isPaymasterError(err) {
1002
1082
  if (err == null || typeof err !== "object") return false;
1003
1083
  const e = err;
1004
- const status = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(e.status, () => ( e.statusCode)), () => ( _optionalChain([e, 'access', _34 => _34.response, 'optionalAccess', _35 => _35.status]))), () => ( _optionalChain([e, 'access', _36 => _36.cause, 'optionalAccess', _37 => _37.status])));
1084
+ const status = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(e.status, () => ( e.statusCode)), () => ( _optionalChain([e, 'access', _40 => _40.response, 'optionalAccess', _41 => _41.status]))), () => ( _optionalChain([e, 'access', _42 => _42.cause, 'optionalAccess', _43 => _43.status])));
1005
1085
  if (typeof status === "number" && PAYMASTER_HTTP_STATUSES.has(status)) {
1006
1086
  return true;
1007
1087
  }
@@ -1014,8 +1094,8 @@ async function sendWithPaymasterFallback(params) {
1014
1094
  return await primaryClient.sendTransaction(txParams);
1015
1095
  } catch (err) {
1016
1096
  if (isPaymasterError(err) && fallbackClient) {
1017
- const msg = _nullishCoalesce(_optionalChain([err, 'optionalAccess', _38 => _38.message]), () => ( String(err)));
1018
- _optionalChain([onFallback, 'optionalCall', _39 => _39(msg)]);
1097
+ const msg = _nullishCoalesce(_optionalChain([err, 'optionalAccess', _44 => _44.message]), () => ( String(err)));
1098
+ _optionalChain([onFallback, 'optionalCall', _45 => _45(msg)]);
1019
1099
  return await fallbackClient.sendTransaction(_nullishCoalesce(txParamsFallback, () => ( txParams)));
1020
1100
  }
1021
1101
  throw err;
@@ -1080,7 +1160,7 @@ async function fetchPafiPools(_chainId, pointTokenAddress, subgraphUrl = PAFI_SU
1080
1160
  );
1081
1161
  return [];
1082
1162
  }
1083
- const pool = _optionalChain([json, 'access', _40 => _40.data, 'optionalAccess', _41 => _41.pafiToken, 'optionalAccess', _42 => _42.pool]);
1163
+ const pool = _optionalChain([json, 'access', _46 => _46.data, 'optionalAccess', _47 => _47.pafiToken, 'optionalAccess', _48 => _48.pool]);
1084
1164
  if (!pool) return [];
1085
1165
  if (!_viem.isAddress.call(void 0, pool.token0.id) || !_viem.isAddress.call(void 0, pool.token1.id) || !Number.isFinite(Number(pool.feeTier))) {
1086
1166
  console.error("[fetchPafiPools] invalid pool data in subgraph response \u2014 skipping");
@@ -1119,7 +1199,11 @@ var SCENARIO_GAS_UNITS = {
1119
1199
  burn: 500000n,
1120
1200
  swap: 700000n,
1121
1201
  "perp-deposit": 800000n,
1122
- delegate: 200000n
1202
+ delegate: 200000n,
1203
+ // 2-call batch: 1 ERC-20 fee transfer + 1 ERC-20 transfer + 7702
1204
+ // delegation overhead. ~70-90k empirical; 200k matches `delegate`
1205
+ // budget and gives headroom for premium variance.
1206
+ "erc20-transfer": 200000n
1123
1207
  };
1124
1208
  var DEFAULT_GAS_UNITS = 500000n;
1125
1209
  var DEFAULT_PREMIUM_BPS = 12e3;
@@ -1184,6 +1268,42 @@ async function quoteOperatorFeePt(config) {
1184
1268
  ]);
1185
1269
  return withPremium * ethPrice8dec * ptPerUsdt18dec / 10n ** 26n;
1186
1270
  }
1271
+ async function quoteOperatorFeeForTransfer(config) {
1272
+ const { provider, chainId, tokenAddress } = config;
1273
+ const { usdc, usdt } = getContractAddresses(chainId);
1274
+ const tokenLower = tokenAddress.toLowerCase();
1275
+ const isStable = usdc && tokenLower === usdc.toLowerCase() || tokenLower === usdt.toLowerCase();
1276
+ if (isStable) {
1277
+ return quoteOperatorFeeUsdt({
1278
+ provider,
1279
+ chainId,
1280
+ scenario: "erc20-transfer",
1281
+ gasUnits: config.gasUnits,
1282
+ premiumBps: config.premiumBps,
1283
+ chainlinkFeedAddress: config.chainlinkFeedAddress,
1284
+ usdtDecimals: config.usdtDecimals,
1285
+ allowStaleFallback: config.allowStaleFallback,
1286
+ fallbackEthPriceUsd: config.fallbackEthPriceUsd,
1287
+ onFallback: config.onFallback
1288
+ });
1289
+ }
1290
+ return quoteOperatorFeePt({
1291
+ provider,
1292
+ chainId,
1293
+ pointTokenAddress: tokenAddress,
1294
+ scenario: "erc20-transfer",
1295
+ gasUnits: config.gasUnits,
1296
+ premiumBps: config.premiumBps,
1297
+ chainlinkFeedAddress: config.chainlinkFeedAddress,
1298
+ subgraphUrl: config.subgraphUrl,
1299
+ usdtDecimals: config.usdtDecimals,
1300
+ allowStaleFallback: config.allowStaleFallback,
1301
+ fallbackEthPriceUsd: config.fallbackEthPriceUsd,
1302
+ fallbackPtPriceUsdt: config.fallbackPtPriceUsdt,
1303
+ onFallback: config.onFallback,
1304
+ fetchImpl: config.fetchImpl
1305
+ });
1306
+ }
1187
1307
  async function getEthPrice8dec(provider, feed, fallback, onFallback) {
1188
1308
  try {
1189
1309
  const result = await provider.readContract({
@@ -1227,10 +1347,10 @@ async function getPtPerUsdt18dec(fetchImpl, subgraphUrl, pointTokenAddress, fall
1227
1347
  });
1228
1348
  if (!response.ok) throw new Error(`subgraph HTTP ${response.status}`);
1229
1349
  const json = await response.json();
1230
- if (_optionalChain([json, 'access', _43 => _43.errors, 'optionalAccess', _44 => _44.length])) {
1350
+ if (_optionalChain([json, 'access', _49 => _49.errors, 'optionalAccess', _50 => _50.length])) {
1231
1351
  throw new Error(json.errors.map((e) => e.message).join("; "));
1232
1352
  }
1233
- const pool = _optionalChain([json, 'access', _45 => _45.data, 'optionalAccess', _46 => _46.pafiToken, 'optionalAccess', _47 => _47.pool]);
1353
+ const pool = _optionalChain([json, 'access', _51 => _51.data, 'optionalAccess', _52 => _52.pafiToken, 'optionalAccess', _53 => _53.pool]);
1234
1354
  if (!pool) throw new Error("pafiToken or pool not found");
1235
1355
  const isPtToken0 = pool.token0.id.toLowerCase() === pointTokenAddress.toLowerCase();
1236
1356
  let ptPerUsdtHumanStr;
@@ -1279,6 +1399,60 @@ function parseBigDecimalTo18(s) {
1279
1399
  return BigInt(whole + padded);
1280
1400
  }
1281
1401
 
1402
+ // src/contracts/real/pointToken.ts
1403
+
1404
+ var POINT_TOKEN_MINT_SIG_ABI = _viem.parseAbi.call(void 0, [
1405
+ "function mint(address user, uint256 amount, uint8 source, uint256 deadline, bytes minterSig) external"
1406
+ ]);
1407
+ var POINT_TOKEN_BURN_SIG_ABI = _viem.parseAbi.call(void 0, [
1408
+ "function burn(address from, uint256 amount, uint8 source, uint256 deadline, bytes burnerSig) external"
1409
+ ]);
1410
+ var POINT_TOKEN_ABI = _viem.parseAbi.call(void 0, [
1411
+ // --- Mint paths (V2 dual-bucket: +uint8 source) ---
1412
+ "function mint(address to, uint256 amount, uint8 source) external",
1413
+ "function mint(address user, uint256 amount, uint8 source, uint256 deadline, bytes minterSig) external",
1414
+ // --- Burn paths (V2 dual-bucket: +uint8 source) ---
1415
+ "function burn(address from, uint256 amount, uint8 source) external",
1416
+ "function burn(address from, uint256 amount, uint8 source, uint256 deadline, bytes burnerSig) external",
1417
+ // --- V2 per-bucket supply views ---
1418
+ "function equitySupply() external view returns (uint256)",
1419
+ "function vaultSupply() external view returns (uint256)",
1420
+ // --- Authorization reads ---
1421
+ "function minters(address account) external view returns (bool)",
1422
+ "function burners(address account) external view returns (bool)",
1423
+ // --- Authorization writes (owner-only; used by provisioning scripts) ---
1424
+ "function addMinter(address minter) external",
1425
+ "function removeMinter(address minter) external",
1426
+ "function addBurner(address burner) external",
1427
+ "function removeBurner(address burner) external",
1428
+ // --- Nonces (sig-gated paths) ---
1429
+ "function mintRequestNonces(address receiver) external view returns (uint256)",
1430
+ "function burnRequestNonces(address from) external view returns (uint256)",
1431
+ // --- Oracle ---
1432
+ "function mintingOracle() external view returns (address)",
1433
+ "function setMintingOracle(address _mintingOracle) external",
1434
+ // --- Issuer ---
1435
+ "function issuer() external view returns (address)",
1436
+ // --- Standard ERC-20 reads ---
1437
+ "function balanceOf(address account) external view returns (uint256)",
1438
+ "function totalSupply() external view returns (uint256)",
1439
+ "function name() external view returns (string)",
1440
+ "function symbol() external view returns (string)",
1441
+ "function decimals() external view returns (uint8)",
1442
+ // --- EIP-712 domain (for off-chain sig verification) ---
1443
+ "function DOMAIN_SEPARATOR() external view returns (bytes32)",
1444
+ "function eip712Domain() external view returns (bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)",
1445
+ // --- Events ---
1446
+ // PointIndexer filters Transfer(from=0x0) for mints
1447
+ // BurnIndexer filters Transfer(to=0x0) for burns
1448
+ "event Transfer(address indexed from, address indexed to, uint256 value)",
1449
+ "event MinterAdded(address indexed minter)",
1450
+ "event MinterRemoved(address indexed minter)",
1451
+ "event BurnerAdded(address indexed burner)",
1452
+ "event BurnerRemoved(address indexed burner)",
1453
+ "event MintingOracleUpdated(address indexed mintingOracle)"
1454
+ ]);
1455
+
1282
1456
  // src/contracts/real/batchExecutor.ts
1283
1457
  var BATCH_EXECUTOR_ADDRESS_BASE_MAINNET = getContractAddresses(8453).batchExecutor;
1284
1458
  var BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA = getContractAddresses(84532).batchExecutor;
@@ -1319,8 +1493,8 @@ function openWebPopup(url, options = {}) {
1319
1493
  const width = _nullishCoalesce(options.width, () => ( DEFAULT_WIDTH));
1320
1494
  const height = _nullishCoalesce(options.height, () => ( DEFAULT_HEIGHT));
1321
1495
  const name = _nullishCoalesce(options.windowName, () => ( DEFAULT_NAME));
1322
- const screenW = _nullishCoalesce(_optionalChain([window, 'access', _48 => _48.screen, 'optionalAccess', _49 => _49.availWidth]), () => ( window.innerWidth));
1323
- const screenH = _nullishCoalesce(_optionalChain([window, 'access', _50 => _50.screen, 'optionalAccess', _51 => _51.availHeight]), () => ( window.innerHeight));
1496
+ const screenW = _nullishCoalesce(_optionalChain([window, 'access', _54 => _54.screen, 'optionalAccess', _55 => _55.availWidth]), () => ( window.innerWidth));
1497
+ const screenH = _nullishCoalesce(_optionalChain([window, 'access', _56 => _56.screen, 'optionalAccess', _57 => _57.availHeight]), () => ( window.innerHeight));
1324
1498
  const left = Math.max(0, Math.floor((screenW - width) / 2));
1325
1499
  const top = Math.max(0, Math.floor((screenH - height) / 2));
1326
1500
  const features = [
@@ -1353,7 +1527,7 @@ function openWebPopup(url, options = {}) {
1353
1527
  window.removeEventListener("message", messageListener);
1354
1528
  messageListener = null;
1355
1529
  }
1356
- _optionalChain([options, 'access', _52 => _52.onClose, 'optionalCall', _53 => _53()]);
1530
+ _optionalChain([options, 'access', _58 => _58.onClose, 'optionalCall', _59 => _59()]);
1357
1531
  };
1358
1532
  pollId = setInterval(() => {
1359
1533
  if (popup.closed) {
@@ -1513,7 +1687,7 @@ var PafiSDK = class {
1513
1687
  const provider = this.requireProvider();
1514
1688
  const pointToken = this.requirePointToken();
1515
1689
  const chainId = this.requireChainId();
1516
- const name = await _chunkTRYGIC2Icjs.getTokenName.call(void 0, provider, pointToken);
1690
+ const name = await _chunkDQKCPH6Bcjs.getTokenName.call(void 0, provider, pointToken);
1517
1691
  return { name, verifyingContract: pointToken, chainId };
1518
1692
  }
1519
1693
  // -------------------------------------------------------------------------
@@ -1521,15 +1695,15 @@ var PafiSDK = class {
1521
1695
  // -------------------------------------------------------------------------
1522
1696
  async buildMintRequestTypedData(message) {
1523
1697
  const domain = await this.getDomain();
1524
- return _chunkUZUDJXKEcjs.buildMintRequestTypedData.call(void 0, domain, message);
1698
+ return _chunk3ZT7KTN4cjs.buildMintRequestTypedData.call(void 0, domain, message);
1525
1699
  }
1526
1700
  async signMintRequest(message) {
1527
1701
  const domain = await this.getDomain();
1528
- return _chunkUZUDJXKEcjs.signMintRequest.call(void 0, this.requireSigner(), domain, message);
1702
+ return _chunk3ZT7KTN4cjs.signMintRequest.call(void 0, this.requireSigner(), domain, message);
1529
1703
  }
1530
1704
  async verifyMintRequest(message, signature, expectedMinter, options) {
1531
1705
  const domain = await this.getDomain();
1532
- return _chunkUZUDJXKEcjs.verifyMintRequest.call(void 0,
1706
+ return _chunk3ZT7KTN4cjs.verifyMintRequest.call(void 0,
1533
1707
  domain,
1534
1708
  message,
1535
1709
  signature,
@@ -1541,7 +1715,7 @@ var PafiSDK = class {
1541
1715
  // Contract reads
1542
1716
  // -------------------------------------------------------------------------
1543
1717
  async getMintRequestNonce(receiver) {
1544
- return _chunkTRYGIC2Icjs.getMintRequestNonce.call(void 0,
1718
+ return _chunkDQKCPH6Bcjs.getMintRequestNonce.call(void 0,
1545
1719
  this.requireProvider(),
1546
1720
  this.requirePointToken(),
1547
1721
  receiver
@@ -1702,5 +1876,20 @@ var PafiSDK = class {
1702
1876
 
1703
1877
 
1704
1878
 
1705
- exports.ApiError = ApiError; exports.BATCH_EXECUTOR_7702_IMPL = BATCH_EXECUTOR_7702_IMPL; exports.BATCH_EXECUTOR_ABI = BATCH_EXECUTOR_ABI; exports.BATCH_EXECUTOR_ADDRESS_BASE_MAINNET = BATCH_EXECUTOR_ADDRESS_BASE_MAINNET; exports.BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA = BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA; exports.BROKER_HASHES = BROKER_HASHES; exports.COMMON_POOLS = _chunkUZUDJXKEcjs.COMMON_POOLS; exports.COMMON_TOKENS = _chunkUZUDJXKEcjs.COMMON_TOKENS; exports.CONTRACT_ADDRESSES = CONTRACT_ADDRESSES; exports.ConfigurationError = ConfigurationError; exports.DUMMY_SIGNATURE_V07 = DUMMY_SIGNATURE_V07; exports.ENTRY_POINT_V07 = _chunkUZUDJXKEcjs.ENTRY_POINT_V07; exports.ENTRY_POINT_V08 = _chunkUZUDJXKEcjs.ENTRY_POINT_V08; exports.Eip712DomainMismatchError = _chunkUZUDJXKEcjs.Eip712DomainMismatchError; exports.ORDERLY_RELAY_ABI = ORDERLY_RELAY_ABI; exports.ORDERLY_VAULT_ABI = ORDERLY_VAULT_ABI; exports.ORDERLY_VAULT_ADDRESSES = ORDERLY_VAULT_ADDRESSES; exports.ORDERLY_VAULT_BASE_MAINNET = ORDERLY_VAULT_BASE_MAINNET; exports.OracleStaleError = OracleStaleError; exports.PAFI_SERVICE_URLS = PAFI_SERVICE_URLS; exports.PAFI_SUBGRAPH_URL = PAFI_SUBGRAPH_URL; exports.PERMIT2_ADDRESS = _chunkUZUDJXKEcjs.PERMIT2_ADDRESS; exports.POINT_TOKEN_ABI = _chunkKRHGFUDIcjs.pointTokenAbi; exports.POINT_TOKEN_FACTORY_ADDRESSES = POINT_TOKEN_FACTORY_ADDRESSES; exports.POINT_TOKEN_IMPL_ADDRESSES = POINT_TOKEN_IMPL_ADDRESSES; exports.POINT_TOKEN_POOLS = _chunkUZUDJXKEcjs.POINT_TOKEN_POOLS; exports.PafiSDK = PafiSDK; exports.PafiSdkError = PafiSdkError; exports.QUOTER_V2_ADDRESSES = _chunkUZUDJXKEcjs.QUOTER_V2_ADDRESSES; exports.SDK_ERROR_HTTP_STATUS_CODE = SDK_ERROR_HTTP_STATUS_CODE; exports.SIMPLE_7702_IMPL_BASE_MAINNET = SIMPLE_7702_IMPL_BASE_MAINNET; exports.SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET = _chunk75JWR5SAcjs.SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET; exports.SPONSOR_AUTH_DOMAIN_NAME = _chunk75JWR5SAcjs.SPONSOR_AUTH_DOMAIN_NAME; exports.SPONSOR_AUTH_TYPES = _chunk75JWR5SAcjs.SPONSOR_AUTH_TYPES; exports.SUPPORTED_CHAINS = _chunkUZUDJXKEcjs.SUPPORTED_CHAINS; exports.SigningError = SigningError; exports.SimulationError = SimulationError; exports.TOKEN_HASHES = TOKEN_HASHES; exports.UNIVERSAL_ROUTER_ADDRESSES = _chunkUZUDJXKEcjs.UNIVERSAL_ROUTER_ADDRESSES; exports.V3_FACTORY_ADDRESSES = _chunkUZUDJXKEcjs.V3_FACTORY_ADDRESSES; exports.V3_POOL_INIT_CODE_HASH = _chunkUZUDJXKEcjs.V3_POOL_INIT_CODE_HASH; exports.V3_SWAP_ROUTER_ADDRESSES = _chunkUZUDJXKEcjs.V3_SWAP_ROUTER_ADDRESSES; exports.ValidationError = ValidationError; exports.ZERO_VALUE = ZERO_VALUE; exports.assembleUserOperation = assembleUserOperation; exports.assertDomainMatchesContract = _chunkUZUDJXKEcjs.assertDomainMatchesContract; exports.buildAndSignSponsorAuth = _chunk75JWR5SAcjs.buildAndSignSponsorAuth; exports.buildBurnRequestTypedData = _chunkUZUDJXKEcjs.buildBurnRequestTypedData; exports.buildDelegationUserOp = buildDelegationUserOp; exports.buildDomain = _chunkUZUDJXKEcjs.buildDomain; exports.buildEip7702Authorization = buildEip7702Authorization; exports.buildMintRequestTypedData = _chunkUZUDJXKEcjs.buildMintRequestTypedData; exports.buildPartialUserOperation = buildPartialUserOperation; exports.buildPerpDepositViaRelay = buildPerpDepositViaRelay; exports.buildPerpDepositWithGasDeduction = buildPerpDepositWithGasDeduction; exports.buildSponsorAuthDomain = _chunk75JWR5SAcjs.buildSponsorAuthDomain; exports.buildSponsorAuthTypedData = _chunk75JWR5SAcjs.buildSponsorAuthTypedData; exports.buildUserOpTypedData = buildUserOpTypedData; exports.burnRequestTypes = _chunkUZUDJXKEcjs.burnRequestTypes; exports.checkDelegation = checkDelegation; exports.checkEthAndBranch = checkEthAndBranch; exports.computeAccountId = computeAccountId; exports.computeAuthorizationHash = computeAuthorizationHash; exports.computeCallDataHash = _chunk75JWR5SAcjs.computeCallDataHash; exports.computeUserOpHash = computeUserOpHash; exports.computeV3PoolAddress = computeV3PoolAddress; exports.createLoginMessage = _chunk75JWR5SAcjs.createLoginMessage; exports.createPafiProxyTransport = createPafiProxyTransport; exports.decodeBatchExecuteCalls = decodeBatchExecuteCalls; exports.defaultErrorTypeForStatus = defaultErrorTypeForStatus; exports.delegateDirect = delegateDirect; exports.detectDelegateImpl = detectDelegateImpl; exports.encodeBatchExecute = encodeBatchExecute; exports.encodeV3Path = encodeV3Path; exports.encodeV3PathReversed = encodeV3PathReversed; exports.erc20Abi = _chunkXXLIIWIFcjs.erc20Abi; exports.erc20ApproveOp = erc20ApproveOp; exports.erc20BurnOp = erc20BurnOp; exports.erc20TransferOp = erc20TransferOp; exports.fetchPafiPools = fetchPafiPools; exports.generateSponsorAuthNonce = _chunk75JWR5SAcjs.generateSponsorAuthNonce; exports.getAaNonce = getAaNonce; exports.getBurnRequestNonce = _chunkTRYGIC2Icjs.getBurnRequestNonce; exports.getContractAddresses = getContractAddresses; exports.getDummySignatureFor7702 = getDummySignatureFor7702; exports.getIssuer = _chunkTRYGIC2Icjs.getIssuer2; exports.getMintFeeBps = _chunkTRYGIC2Icjs.getMintFeeBps; exports.getMintFeeRecipients = _chunkTRYGIC2Icjs.getMintFeeRecipients; exports.getMintRequestNonce = _chunkTRYGIC2Icjs.getMintRequestNonce; exports.getPafiServiceUrls = getPafiServiceUrls; exports.getPafiWebModalAdapter = getPafiWebModalAdapter; exports.getPointTokenBalance = _chunkTRYGIC2Icjs.getPointTokenBalance; exports.getPointTokenIssuer = _chunkTRYGIC2Icjs.getPointTokenIssuer; exports.getPointTokenIssuerAddress = _chunkTRYGIC2Icjs.getIssuer; exports.getSponsorAuthDomainAnchor = _chunk75JWR5SAcjs.getSponsorAuthDomainAnchor; exports.getTokenCap = _chunkTRYGIC2Icjs.getTokenCap; exports.getTokenName = _chunkTRYGIC2Icjs.getTokenName; exports.isActiveIssuer = _chunkTRYGIC2Icjs.isActiveIssuer; exports.isDelegatedTo = isDelegatedTo; exports.isDelegatedToTarget = isDelegatedToTarget; exports.isMinter = _chunkTRYGIC2Icjs.isMinter; exports.isPaymasterError = isPaymasterError; exports.issuerRegistryAbi = _chunkC7VB6WTLcjs.issuerRegistryAbi; exports.issuerRegistryGetIssuerFlatAbi = _chunkTRYGIC2Icjs.issuerRegistryGetIssuerFlatAbi; exports.mintFeeWrapperAbi = _chunkC7VB6WTLcjs.mintFeeWrapperAbi; exports.mintRequestTypes = _chunkUZUDJXKEcjs.mintRequestTypes; exports.mintingOracleAbi = _chunkC7VB6WTLcjs.mintingOracleAbi; exports.openPafiWebModal = openPafiWebModal; exports.openWebPopup = openWebPopup; exports.parseEip7702DelegatedAddress = parseEip7702DelegatedAddress; exports.parseLoginMessage = _chunk75JWR5SAcjs.parseLoginMessage; exports.permit2Abi = _chunkXXLIIWIFcjs.permit2Abi; exports.pointTokenAbi = _chunkKRHGFUDIcjs.pointTokenAbi; exports.pointTokenFactoryAbi = _chunkXXLIIWIFcjs.pointTokenFactoryAbi; exports.quoteOperatorFeePt = quoteOperatorFeePt; exports.quoteOperatorFeeUsdt = quoteOperatorFeeUsdt; exports.rawCallOp = rawCallOp; exports.sendWithPaymasterFallback = sendWithPaymasterFallback; exports.serializeUserOpToJsonRpc = serializeUserOpToJsonRpc; exports.setPafiWebModalAdapter = setPafiWebModalAdapter; exports.signBurnRequest = _chunkUZUDJXKEcjs.signBurnRequest; exports.signMintRequest = _chunkUZUDJXKEcjs.signMintRequest; exports.signSponsorAuth = _chunk75JWR5SAcjs.signSponsorAuth; exports.splitAuthorizationSig = splitAuthorizationSig; exports.universalRouterAbi = _chunkXXLIIWIFcjs.universalRouterAbi; exports.v3QuoterV2Abi = _chunkXXLIIWIFcjs.v3QuoterV2Abi; exports.verifyBurnRequest = _chunkUZUDJXKEcjs.verifyBurnRequest; exports.verifyLoginMessage = _chunk75JWR5SAcjs.verifyLoginMessage; exports.verifyMintCap = _chunkTRYGIC2Icjs.verifyMintCap; exports.verifyMintRequest = _chunkUZUDJXKEcjs.verifyMintRequest; exports.verifySponsorAuth = _chunk75JWR5SAcjs.verifySponsorAuth; exports.webPopupAdapter = webPopupAdapter;
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+
1891
+
1892
+
1893
+
1894
+ exports.ApiError = ApiError; exports.BATCH_EXECUTOR_7702_IMPL = BATCH_EXECUTOR_7702_IMPL; exports.BATCH_EXECUTOR_ABI = BATCH_EXECUTOR_ABI; exports.BATCH_EXECUTOR_ADDRESS_BASE_MAINNET = BATCH_EXECUTOR_ADDRESS_BASE_MAINNET; exports.BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA = BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA; exports.BROKER_HASHES = BROKER_HASHES; exports.COMMON_POOLS = _chunk3ZT7KTN4cjs.COMMON_POOLS; exports.COMMON_TOKENS = _chunk3ZT7KTN4cjs.COMMON_TOKENS; exports.CONTRACT_ADDRESSES = CONTRACT_ADDRESSES; exports.ConfigurationError = ConfigurationError; exports.DUMMY_SIGNATURE_V07 = DUMMY_SIGNATURE_V07; exports.ENTRY_POINT_V07 = _chunk3ZT7KTN4cjs.ENTRY_POINT_V07; exports.ENTRY_POINT_V08 = _chunk3ZT7KTN4cjs.ENTRY_POINT_V08; exports.Eip712DomainMismatchError = _chunk3ZT7KTN4cjs.Eip712DomainMismatchError; exports.ORDERLY_RELAY_ABI = ORDERLY_RELAY_ABI; exports.ORDERLY_VAULT_ABI = ORDERLY_VAULT_ABI; exports.ORDERLY_VAULT_ADDRESSES = ORDERLY_VAULT_ADDRESSES; exports.ORDERLY_VAULT_BASE_MAINNET = ORDERLY_VAULT_BASE_MAINNET; exports.OracleStaleError = OracleStaleError; exports.PAFI_SERVICE_URLS = PAFI_SERVICE_URLS; exports.PAFI_SUBGRAPH_URL = PAFI_SUBGRAPH_URL; exports.PERMIT2_ADDRESS = _chunk3ZT7KTN4cjs.PERMIT2_ADDRESS; exports.POINT_TOKEN_ABI = POINT_TOKEN_ABI; exports.POINT_TOKEN_BEACON_ADDRESSES = POINT_TOKEN_BEACON_ADDRESSES; exports.POINT_TOKEN_BURN_SIG_ABI = POINT_TOKEN_BURN_SIG_ABI; exports.POINT_TOKEN_FACTORY_ADDRESSES = POINT_TOKEN_FACTORY_ADDRESSES; exports.POINT_TOKEN_IMPL_ADDRESSES = POINT_TOKEN_IMPL_ADDRESSES; exports.POINT_TOKEN_MINT_SIG_ABI = POINT_TOKEN_MINT_SIG_ABI; exports.POINT_TOKEN_POOLS = _chunk3ZT7KTN4cjs.POINT_TOKEN_POOLS; exports.PafiSDK = PafiSDK; exports.PafiSdkError = PafiSdkError; exports.QUOTER_V2_ADDRESSES = _chunk3ZT7KTN4cjs.QUOTER_V2_ADDRESSES; exports.SCENARIO_GAS_UNITS = SCENARIO_GAS_UNITS; exports.SDK_ERROR_HTTP_STATUS_CODE = SDK_ERROR_HTTP_STATUS_CODE; exports.SIMPLE_7702_IMPL_BASE_MAINNET = SIMPLE_7702_IMPL_BASE_MAINNET; exports.SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET = _chunk75JWR5SAcjs.SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET; exports.SPONSOR_AUTH_DOMAIN_NAME = _chunk75JWR5SAcjs.SPONSOR_AUTH_DOMAIN_NAME; exports.SPONSOR_AUTH_TYPES = _chunk75JWR5SAcjs.SPONSOR_AUTH_TYPES; exports.SUPPORTED_CHAINS = _chunk3ZT7KTN4cjs.SUPPORTED_CHAINS; exports.SigningError = SigningError; exports.SimulationError = SimulationError; exports.Source = _chunkDQKCPH6Bcjs.Source; exports.TOKEN_HASHES = TOKEN_HASHES; exports.UNIVERSAL_ROUTER_ADDRESSES = _chunk3ZT7KTN4cjs.UNIVERSAL_ROUTER_ADDRESSES; exports.V3_FACTORY_ADDRESSES = _chunk3ZT7KTN4cjs.V3_FACTORY_ADDRESSES; exports.V3_POOL_INIT_CODE_HASH = _chunk3ZT7KTN4cjs.V3_POOL_INIT_CODE_HASH; exports.V3_SWAP_ROUTER_ADDRESSES = _chunk3ZT7KTN4cjs.V3_SWAP_ROUTER_ADDRESSES; exports.VAULT_BEACON_ADDRESSES = VAULT_BEACON_ADDRESSES; exports.ValidationError = ValidationError; exports.ZERO_VALUE = ZERO_VALUE; exports.assembleUserOperation = assembleUserOperation; exports.assertDomainMatchesContract = _chunk3ZT7KTN4cjs.assertDomainMatchesContract; exports.buildAndSignSponsorAuth = _chunk75JWR5SAcjs.buildAndSignSponsorAuth; exports.buildBurnRequestTypedData = _chunk3ZT7KTN4cjs.buildBurnRequestTypedData; exports.buildDelegationUserOp = buildDelegationUserOp; exports.buildDomain = _chunk3ZT7KTN4cjs.buildDomain; exports.buildEip7702Authorization = buildEip7702Authorization; exports.buildErc20TransferUserOp = buildErc20TransferUserOp; exports.buildMintRequestTypedData = _chunk3ZT7KTN4cjs.buildMintRequestTypedData; exports.buildPartialUserOperation = buildPartialUserOperation; exports.buildPerpDepositViaRelay = buildPerpDepositViaRelay; exports.buildPerpDepositWithGasDeduction = buildPerpDepositWithGasDeduction; exports.buildSponsorAuthDomain = _chunk75JWR5SAcjs.buildSponsorAuthDomain; exports.buildSponsorAuthTypedData = _chunk75JWR5SAcjs.buildSponsorAuthTypedData; exports.buildUserOpTypedData = buildUserOpTypedData; exports.burnRequestTypes = _chunk3ZT7KTN4cjs.burnRequestTypes; exports.checkDelegation = checkDelegation; exports.checkEthAndBranch = checkEthAndBranch; exports.computeAccountId = computeAccountId; exports.computeAuthorizationHash = computeAuthorizationHash; exports.computeCallDataHash = _chunk75JWR5SAcjs.computeCallDataHash; exports.computeEquityCap = _chunkDQKCPH6Bcjs.computeEquityCap; exports.computeUserOpHash = computeUserOpHash; exports.computeV3PoolAddress = computeV3PoolAddress; exports.createLoginMessage = _chunk75JWR5SAcjs.createLoginMessage; exports.createPafiProxyTransport = createPafiProxyTransport; exports.decodeBatchExecuteCalls = decodeBatchExecuteCalls; exports.defaultErrorTypeForStatus = defaultErrorTypeForStatus; exports.delegateDirect = delegateDirect; exports.detectDelegateImpl = detectDelegateImpl; exports.encodeBatchExecute = encodeBatchExecute; exports.encodeV3Path = encodeV3Path; exports.encodeV3PathReversed = encodeV3PathReversed; exports.erc20Abi = _chunk2DVM77Y2cjs.erc20Abi; exports.erc20ApproveOp = erc20ApproveOp; exports.erc20BurnOp = erc20BurnOp; exports.erc20TransferOp = erc20TransferOp; exports.fetchPafiPools = fetchPafiPools; exports.generateSponsorAuthNonce = _chunk75JWR5SAcjs.generateSponsorAuthNonce; exports.getAaNonce = getAaNonce; exports.getBurnRequestNonce = _chunkDQKCPH6Bcjs.getBurnRequestNonce; exports.getContractAddresses = getContractAddresses; exports.getDummySignatureFor7702 = getDummySignatureFor7702; exports.getIssuer = _chunkDQKCPH6Bcjs.getIssuer2; exports.getMintFeeBps = _chunkDQKCPH6Bcjs.getMintFeeBps; exports.getMintFeeRecipients = _chunkDQKCPH6Bcjs.getMintFeeRecipients; exports.getMintRequestNonce = _chunkDQKCPH6Bcjs.getMintRequestNonce; exports.getOracleRegistries = _chunkDQKCPH6Bcjs.getOracleRegistries; exports.getPafiServiceUrls = getPafiServiceUrls; exports.getPafiWebModalAdapter = getPafiWebModalAdapter; exports.getPointTokenBalance = _chunkDQKCPH6Bcjs.getPointTokenBalance; exports.getPointTokenIssuerAddress = _chunkDQKCPH6Bcjs.getIssuer; exports.getSponsorAuthDomainAnchor = _chunk75JWR5SAcjs.getSponsorAuthDomainAnchor; exports.getTokenName = _chunkDQKCPH6Bcjs.getTokenName; exports.isActiveIssuer = _chunkDQKCPH6Bcjs.isActiveIssuer; exports.isDelegatedTo = isDelegatedTo; exports.isDelegatedToTarget = isDelegatedToTarget; exports.isMinter = _chunkDQKCPH6Bcjs.isMinter; exports.isPaymasterError = isPaymasterError; exports.issuerRegistryAbi = _chunk2CU7ZH2Acjs.issuerRegistryAbi; exports.issuerRegistryGetIssuerFlatAbi = _chunkDQKCPH6Bcjs.issuerRegistryGetIssuerFlatAbi; exports.mintFeeWrapperAbi = _chunk2CU7ZH2Acjs.mintFeeWrapperAbi; exports.mintRequestTypes = _chunk3ZT7KTN4cjs.mintRequestTypes; exports.mintingOracleAbi = _chunk2CU7ZH2Acjs.mintingOracleAbi; exports.openPafiWebModal = openPafiWebModal; exports.openWebPopup = openWebPopup; exports.parseEip7702DelegatedAddress = parseEip7702DelegatedAddress; exports.parseLoginMessage = _chunk75JWR5SAcjs.parseLoginMessage; exports.permit2Abi = _chunk2DVM77Y2cjs.permit2Abi; exports.pointModuleCoreAbi = _chunk2DVM77Y2cjs.pointModuleCoreAbi; exports.pointTokenAbi = _chunk245YA3CQcjs.pointTokenAbi; exports.pointTokenFactoryAbi = _chunk2DVM77Y2cjs.pointTokenFactoryAbi; exports.quoteOperatorFeeForTransfer = quoteOperatorFeeForTransfer; exports.quoteOperatorFeePt = quoteOperatorFeePt; exports.quoteOperatorFeeUsdt = quoteOperatorFeeUsdt; exports.rawCallOp = rawCallOp; exports.sendWithPaymasterFallback = sendWithPaymasterFallback; exports.serializeUserOpToJsonRpc = serializeUserOpToJsonRpc; exports.setPafiWebModalAdapter = setPafiWebModalAdapter; exports.settlementVaultAbi = _chunk2DVM77Y2cjs.settlementVaultAbi; exports.signBurnRequest = _chunk3ZT7KTN4cjs.signBurnRequest; exports.signMintRequest = _chunk3ZT7KTN4cjs.signMintRequest; exports.signSponsorAuth = _chunk75JWR5SAcjs.signSponsorAuth; exports.splitAuthorizationSig = splitAuthorizationSig; exports.tokenRegistryAbi = _chunk2DVM77Y2cjs.tokenRegistryAbi; exports.universalRouterAbi = _chunk2DVM77Y2cjs.universalRouterAbi; exports.v3QuoterV2Abi = _chunk2DVM77Y2cjs.v3QuoterV2Abi; exports.vaultFactoryAbi = _chunk2DVM77Y2cjs.vaultFactoryAbi; exports.vaultRegistryAbi = _chunk2DVM77Y2cjs.vaultRegistryAbi; exports.verifyBurnRequest = _chunk3ZT7KTN4cjs.verifyBurnRequest; exports.verifyEquityMint = _chunkDQKCPH6Bcjs.verifyEquityMint; exports.verifyIssuerOperative = _chunkDQKCPH6Bcjs.verifyIssuerOperative; exports.verifyLoginMessage = _chunk75JWR5SAcjs.verifyLoginMessage; exports.verifyMint = _chunkDQKCPH6Bcjs.verifyMint; exports.verifyMintRequest = _chunk3ZT7KTN4cjs.verifyMintRequest; exports.verifySponsorAuth = _chunk75JWR5SAcjs.verifySponsorAuth; exports.webPopupAdapter = webPopupAdapter;
1706
1895
  //# sourceMappingURL=index.cjs.map