@pafi-dev/core 0.7.6 → 0.7.10

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/dist/abi/index.cjs +4 -2
  2. package/dist/abi/index.cjs.map +1 -1
  3. package/dist/abi/index.js +4 -2
  4. package/dist/auth/index.cjs +6 -2
  5. package/dist/auth/index.cjs.map +1 -1
  6. package/dist/auth/index.d.cts +21 -9
  7. package/dist/auth/index.d.ts +21 -9
  8. package/dist/auth/index.js +5 -1
  9. package/dist/{chunk-6UX2IFA2.js → chunk-4EGXLYMM.js} +20 -2
  10. package/dist/chunk-4EGXLYMM.js.map +1 -0
  11. package/dist/{chunk-M5ULOZ3A.cjs → chunk-4QRHSZZQ.cjs} +55 -3
  12. package/dist/chunk-4QRHSZZQ.cjs.map +1 -0
  13. package/dist/chunk-6WWSKC3Z.cjs +1097 -0
  14. package/dist/chunk-6WWSKC3Z.cjs.map +1 -0
  15. package/dist/{chunk-5254AG3Z.cjs → chunk-75JWR5SA.cjs} +21 -3
  16. package/dist/chunk-75JWR5SA.cjs.map +1 -0
  17. package/dist/{chunk-YDLMVWDH.js → chunk-AEYEFV5G.js} +5 -3
  18. package/dist/{chunk-YDLMVWDH.js.map → chunk-AEYEFV5G.js.map} +1 -1
  19. package/dist/{chunk-5JZOJIBT.js → chunk-B2NDSIAI.js} +1 -1095
  20. package/dist/chunk-B2NDSIAI.js.map +1 -0
  21. package/dist/chunk-JEWSN7Q3.cjs +1059 -0
  22. package/dist/chunk-JEWSN7Q3.cjs.map +1 -0
  23. package/dist/{chunk-WJSIB5GF.js → chunk-QL5COJQI.js} +53 -1
  24. package/dist/chunk-QL5COJQI.js.map +1 -0
  25. package/dist/{chunk-CLPRSQT2.cjs → chunk-REUEMYWB.cjs} +14 -12
  26. package/dist/chunk-REUEMYWB.cjs.map +1 -0
  27. package/dist/chunk-SZMSKZHY.js +1097 -0
  28. package/dist/chunk-SZMSKZHY.js.map +1 -0
  29. package/dist/contract/index.cjs +4 -3
  30. package/dist/contract/index.cjs.map +1 -1
  31. package/dist/contract/index.d.cts +1 -1
  32. package/dist/contract/index.d.ts +1 -1
  33. package/dist/contract/index.js +3 -2
  34. package/dist/eip712/index.cjs +7 -2
  35. package/dist/eip712/index.cjs.map +1 -1
  36. package/dist/eip712/index.d.cts +39 -4
  37. package/dist/eip712/index.d.ts +39 -4
  38. package/dist/eip712/index.js +6 -1
  39. package/dist/index.cjs +98 -32
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.cts +78 -31
  42. package/dist/index.d.ts +78 -31
  43. package/dist/index.js +87 -21
  44. package/dist/index.js.map +1 -1
  45. package/dist/types-CCvAk-ma.d.cts +159 -0
  46. package/dist/types-CCvAk-ma.d.ts +159 -0
  47. package/package.json +1 -1
  48. package/dist/chunk-5254AG3Z.cjs.map +0 -1
  49. package/dist/chunk-5JZOJIBT.js.map +0 -1
  50. package/dist/chunk-6UX2IFA2.js.map +0 -1
  51. package/dist/chunk-CLPRSQT2.cjs.map +0 -1
  52. package/dist/chunk-LRHY7GOR.cjs +0 -2153
  53. package/dist/chunk-LRHY7GOR.cjs.map +0 -1
  54. package/dist/chunk-M5ULOZ3A.cjs.map +0 -1
  55. package/dist/chunk-WJSIB5GF.js.map +0 -1
  56. package/dist/types-BAkmxgVo.d.cts +0 -99
  57. package/dist/types-BAkmxgVo.d.ts +0 -99
package/dist/index.cjs CHANGED
@@ -18,9 +18,9 @@ var _chunkQ6WCDZXIcjs = require('./chunk-Q6WCDZXI.cjs');
18
18
 
19
19
 
20
20
 
21
- var _chunk5254AG3Zcjs = require('./chunk-5254AG3Z.cjs');
22
21
 
23
22
 
23
+ var _chunk75JWR5SAcjs = require('./chunk-75JWR5SA.cjs');
24
24
 
25
25
 
26
26
 
@@ -32,13 +32,13 @@ var _chunk5254AG3Zcjs = require('./chunk-5254AG3Z.cjs');
32
32
 
33
33
 
34
34
 
35
- var _chunkCLPRSQT2cjs = require('./chunk-CLPRSQT2.cjs');
36
35
 
37
36
 
37
+ var _chunkREUEMYWBcjs = require('./chunk-REUEMYWB.cjs');
38
38
 
39
39
 
40
- var _chunkLRHY7GORcjs = require('./chunk-LRHY7GOR.cjs');
41
40
 
41
+ var _chunkJEWSN7Q3cjs = require('./chunk-JEWSN7Q3.cjs');
42
42
 
43
43
 
44
44
 
@@ -61,7 +61,13 @@ var _chunkLRHY7GORcjs = require('./chunk-LRHY7GOR.cjs');
61
61
 
62
62
 
63
63
 
64
- var _chunkM5ULOZ3Acjs = require('./chunk-M5ULOZ3A.cjs');
64
+
65
+
66
+
67
+ var _chunk4QRHSZZQcjs = require('./chunk-4QRHSZZQ.cjs');
68
+
69
+
70
+ var _chunk6WWSKC3Zcjs = require('./chunk-6WWSKC3Z.cjs');
65
71
  require('./chunk-JEQ2X3Z6.cjs');
66
72
 
67
73
  // src/index.ts
@@ -539,7 +545,7 @@ function buildUserOpTypedData(userOp, chainId) {
539
545
  name: "ERC4337",
540
546
  version: "1",
541
547
  chainId,
542
- verifyingContract: _chunkM5ULOZ3Acjs.ENTRY_POINT_V08
548
+ verifyingContract: _chunk4QRHSZZQcjs.ENTRY_POINT_V08
543
549
  },
544
550
  types: PACKED_USER_OPERATION_TYPES,
545
551
  primaryType: "PackedUserOperation",
@@ -582,7 +588,16 @@ function getDummySignatureFor7702(impl) {
582
588
 
583
589
  // src/paymaster/config.ts
584
590
  var _config = null;
591
+ var _deprecationWarned = false;
592
+ function warnDeprecated(fn) {
593
+ if (_deprecationWarned) return;
594
+ _deprecationWarned = true;
595
+ console.warn(
596
+ `[PAFI] DEPRECATION (v0.7.1+): \`${fn}\` from @pafi-dev/core/paymaster is deprecated and will be removed in v0.8. Use \`PafiBackendClient\` from @pafi-dev/issuer/pafi-backend instead.`
597
+ );
598
+ }
585
599
  function setPaymasterConfig(config) {
600
+ warnDeprecated("setPaymasterConfig");
586
601
  if (!config.pafiBackendUrl) {
587
602
  throw new Error("setPaymasterConfig: pafiBackendUrl is required");
588
603
  }
@@ -598,6 +613,7 @@ function setPaymasterConfig(config) {
598
613
  _config = { ...config };
599
614
  }
600
615
  function getPaymasterConfig() {
616
+ warnDeprecated("getPaymasterConfig");
601
617
  if (!_config) {
602
618
  throw new Error(
603
619
  "PaymasterConfig not initialized \u2014 call setPaymasterConfig() at application boot before invoking any batch builder"
@@ -680,7 +696,7 @@ async function getAaNonce(client, userAddress) {
680
696
  }
681
697
  ];
682
698
  return client.readContract({
683
- address: _chunkM5ULOZ3Acjs.ENTRY_POINT_V08,
699
+ address: _chunk4QRHSZZQcjs.ENTRY_POINT_V08,
684
700
  abi: NONCE_ABI,
685
701
  functionName: "getNonce",
686
702
  args: [userAddress, 0n]
@@ -838,7 +854,8 @@ async function delegateDirect(params) {
838
854
  nonce
839
855
  });
840
856
  const yParityRaw = raw.yParity;
841
- const yParity = typeof yParityRaw === "number" ? yParityRaw : String(yParityRaw) === "1" || String(yParityRaw) === "0x1" ? 1 : 0;
857
+ const yParityNum = typeof yParityRaw === "number" ? yParityRaw : String(yParityRaw) === "1" || String(yParityRaw) === "0x1" ? 1 : 0;
858
+ const yParity = yParityNum === 1 ? 1 : 0;
842
859
  const authorization = {
843
860
  contractAddress: target,
844
861
  chainId: params.chainId,
@@ -1057,7 +1074,8 @@ async function quoteOperatorFeeUsdt(config) {
1057
1074
  const ethPrice8dec = await getEthPrice8dec(
1058
1075
  provider,
1059
1076
  chainlinkFeedAddress,
1060
- allowStaleFallback ? fallbackEthPriceUsd : null
1077
+ allowStaleFallback ? fallbackEthPriceUsd : null,
1078
+ config.onFallback
1061
1079
  );
1062
1080
  const denomExp = 18 + 8 - usdtDecimals;
1063
1081
  return withPremium * ethPrice8dec / 10n ** BigInt(denomExp);
@@ -1085,18 +1103,20 @@ async function quoteOperatorFeePt(config) {
1085
1103
  getEthPrice8dec(
1086
1104
  provider,
1087
1105
  chainlinkFeedAddress,
1088
- allowStaleFallback ? fallbackEthPriceUsd : null
1106
+ allowStaleFallback ? fallbackEthPriceUsd : null,
1107
+ config.onFallback
1089
1108
  ),
1090
1109
  getPtPerUsdt18dec(
1091
1110
  fetchImpl,
1092
1111
  subgraphUrl,
1093
1112
  pointTokenAddress,
1094
- allowStaleFallback ? fallbackPtPriceUsdt : null
1113
+ allowStaleFallback ? fallbackPtPriceUsdt : null,
1114
+ config.onFallback
1095
1115
  )
1096
1116
  ]);
1097
1117
  return withPremium * ethPrice8dec * ptPerUsdt18dec / 10n ** 26n;
1098
1118
  }
1099
- async function getEthPrice8dec(provider, feed, fallback) {
1119
+ async function getEthPrice8dec(provider, feed, fallback, onFallback) {
1100
1120
  try {
1101
1121
  const result = await provider.readContract({
1102
1122
  address: feed,
@@ -1116,14 +1136,18 @@ async function getEthPrice8dec(provider, feed, fallback) {
1116
1136
  if (fallback === null) {
1117
1137
  throw new OracleStaleError("chainlink", reason);
1118
1138
  }
1119
- console.warn(
1120
- "[quoteOperatorFee] Chainlink unavailable, using opt-in fallback:",
1121
- reason
1122
- );
1139
+ if (onFallback) {
1140
+ onFallback({ source: "chainlink", reason, fallbackValue: fallback });
1141
+ } else {
1142
+ console.warn(
1143
+ "[quoteOperatorFee] Chainlink unavailable, using opt-in fallback:",
1144
+ reason
1145
+ );
1146
+ }
1123
1147
  return BigInt(Math.round(fallback * 1e8));
1124
1148
  }
1125
1149
  }
1126
- async function getPtPerUsdt18dec(fetchImpl, subgraphUrl, pointTokenAddress, fallbackPtPriceUsdt) {
1150
+ async function getPtPerUsdt18dec(fetchImpl, subgraphUrl, pointTokenAddress, fallbackPtPriceUsdt, onFallback) {
1127
1151
  try {
1128
1152
  const response = await fetchImpl(subgraphUrl, {
1129
1153
  method: "POST",
@@ -1155,10 +1179,18 @@ async function getPtPerUsdt18dec(fetchImpl, subgraphUrl, pointTokenAddress, fall
1155
1179
  if (fallbackPtPriceUsdt === null) {
1156
1180
  throw new OracleStaleError("subgraph", reason);
1157
1181
  }
1158
- console.warn(
1159
- "[quoteOperatorFeePt] subgraph unavailable, using opt-in fallback:",
1160
- reason
1161
- );
1182
+ if (onFallback) {
1183
+ onFallback({
1184
+ source: "subgraph",
1185
+ reason,
1186
+ fallbackValue: fallbackPtPriceUsdt
1187
+ });
1188
+ } else {
1189
+ console.warn(
1190
+ "[quoteOperatorFeePt] subgraph unavailable, using opt-in fallback:",
1191
+ reason
1192
+ );
1193
+ }
1162
1194
  const ptPerUsdtHuman = 1 / fallbackPtPriceUsdt;
1163
1195
  return parseBigDecimalTo18(ptPerUsdtHuman.toFixed(18));
1164
1196
  }
@@ -1174,6 +1206,29 @@ function parseBigDecimalTo18(s) {
1174
1206
  var BATCH_EXECUTOR_ADDRESS_BASE_MAINNET = getContractAddresses(8453).batchExecutor;
1175
1207
  var BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA = getContractAddresses(84532).batchExecutor;
1176
1208
 
1209
+ // src/contracts/real/pafi-services.ts
1210
+ var PAFI_SERVICE_URLS = {
1211
+ // Base mainnet
1212
+ 8453: {
1213
+ sponsorRelayer: "https://api-dev.pacificfinance.org/api/sponsor",
1214
+ issuerApi: "https://api-dev.pacificfinance.org/api/issuer"
1215
+ },
1216
+ // Base sepolia
1217
+ 84532: {
1218
+ sponsorRelayer: "https://api-dev.pacificfinance.org/api/sponsor",
1219
+ issuerApi: "https://api-dev.pacificfinance.org/api/issuer"
1220
+ }
1221
+ };
1222
+ function getPafiServiceUrls(chainId) {
1223
+ const urls = PAFI_SERVICE_URLS[chainId];
1224
+ if (!urls) {
1225
+ throw new Error(
1226
+ `getPafiServiceUrls: no PAFI service URLs for chainId ${chainId}. Supported: ${Object.keys(PAFI_SERVICE_URLS).join(", ")}`
1227
+ );
1228
+ }
1229
+ return urls;
1230
+ }
1231
+
1177
1232
  // src/web-handoff/webPopup.ts
1178
1233
  var DEFAULT_WIDTH = 900;
1179
1234
  var DEFAULT_HEIGHT = 700;
@@ -1230,10 +1285,15 @@ function openWebPopup(url, options = {}) {
1230
1285
  }, 500);
1231
1286
  if (options.onMessage) {
1232
1287
  const allowed = _nullishCoalesce(options.allowedOrigins, () => ( []));
1288
+ if (allowed.length === 0) {
1289
+ throw new Error(
1290
+ "openPafiWebModal: `allowedOrigins` is empty/missing while `onMessage` is supplied. The popup-message listener would silently reject every message \u2014 caller must explicitly whitelist PAFI Web's host (e.g. `['https://app.pacificfinance.org']`) before any payload reaches the callback. To accept any origin (insecure), pass an explicit list containing '*' or omit `onMessage` entirely."
1291
+ );
1292
+ }
1233
1293
  const onMessage = options.onMessage;
1234
1294
  messageListener = (event) => {
1235
1295
  if (event.source !== popup) return;
1236
- if (!allowed.includes(event.origin)) return;
1296
+ if (!allowed.includes("*") && !allowed.includes(event.origin)) return;
1237
1297
  onMessage(event.data, event.origin);
1238
1298
  };
1239
1299
  window.addEventListener("message", messageListener);
@@ -1383,7 +1443,7 @@ var PafiSDK = class {
1383
1443
  const provider = this.requireProvider();
1384
1444
  const pointToken = this.requirePointToken();
1385
1445
  const chainId = this.requireChainId();
1386
- const name = await _chunkCLPRSQT2cjs.getTokenName.call(void 0, provider, pointToken);
1446
+ const name = await _chunkREUEMYWBcjs.getTokenName.call(void 0, provider, pointToken);
1387
1447
  return { name, verifyingContract: pointToken, chainId };
1388
1448
  }
1389
1449
  // -------------------------------------------------------------------------
@@ -1391,40 +1451,40 @@ var PafiSDK = class {
1391
1451
  // -------------------------------------------------------------------------
1392
1452
  async buildMintRequestTypedData(message) {
1393
1453
  const domain = await this.getDomain();
1394
- return _chunkM5ULOZ3Acjs.buildMintRequestTypedData.call(void 0, domain, message);
1454
+ return _chunk4QRHSZZQcjs.buildMintRequestTypedData.call(void 0, domain, message);
1395
1455
  }
1396
1456
  async buildReceiverConsentTypedData(message) {
1397
1457
  const domain = await this.getDomain();
1398
- return _chunkM5ULOZ3Acjs.buildReceiverConsentTypedData.call(void 0, domain, message);
1458
+ return _chunk4QRHSZZQcjs.buildReceiverConsentTypedData.call(void 0, domain, message);
1399
1459
  }
1400
1460
  async signMintRequest(message) {
1401
1461
  const domain = await this.getDomain();
1402
- return _chunkM5ULOZ3Acjs.signMintRequest.call(void 0, this.requireSigner(), domain, message);
1462
+ return _chunk4QRHSZZQcjs.signMintRequest.call(void 0, this.requireSigner(), domain, message);
1403
1463
  }
1404
1464
  async verifyMintRequest(message, signature, expectedMinter) {
1405
1465
  const domain = await this.getDomain();
1406
- return _chunkM5ULOZ3Acjs.verifyMintRequest.call(void 0, domain, message, signature, expectedMinter);
1466
+ return _chunk4QRHSZZQcjs.verifyMintRequest.call(void 0, domain, message, signature, expectedMinter);
1407
1467
  }
1408
1468
  async signReceiverConsent(message) {
1409
1469
  const domain = await this.getDomain();
1410
- return _chunkM5ULOZ3Acjs.signReceiverConsent.call(void 0, this.requireSigner(), domain, message);
1470
+ return _chunk4QRHSZZQcjs.signReceiverConsent.call(void 0, this.requireSigner(), domain, message);
1411
1471
  }
1412
1472
  async verifyReceiverConsent(message, signature, expectedReceiver) {
1413
1473
  const domain = await this.getDomain();
1414
- return _chunkM5ULOZ3Acjs.verifyReceiverConsent.call(void 0, domain, message, signature, expectedReceiver);
1474
+ return _chunk4QRHSZZQcjs.verifyReceiverConsent.call(void 0, domain, message, signature, expectedReceiver);
1415
1475
  }
1416
1476
  // -------------------------------------------------------------------------
1417
1477
  // Contract reads
1418
1478
  // -------------------------------------------------------------------------
1419
1479
  async getMintRequestNonce(receiver) {
1420
- return _chunkCLPRSQT2cjs.getMintRequestNonce.call(void 0,
1480
+ return _chunkREUEMYWBcjs.getMintRequestNonce.call(void 0,
1421
1481
  this.requireProvider(),
1422
1482
  this.requirePointToken(),
1423
1483
  receiver
1424
1484
  );
1425
1485
  }
1426
1486
  async getReceiverConsentNonce(receiver) {
1427
- return _chunkCLPRSQT2cjs.getReceiverConsentNonce.call(void 0,
1487
+ return _chunkREUEMYWBcjs.getReceiverConsentNonce.call(void 0,
1428
1488
  this.requireProvider(),
1429
1489
  this.requirePointToken(),
1430
1490
  receiver
@@ -1440,7 +1500,7 @@ var PafiSDK = class {
1440
1500
  if (!account) {
1441
1501
  throw new ConfigurationError("signer has no account attached");
1442
1502
  }
1443
- return _chunk5254AG3Zcjs.createLoginMessage.call(void 0, { ...params, address: account.address, chainId });
1503
+ return _chunk75JWR5SAcjs.createLoginMessage.call(void 0, { ...params, address: account.address, chainId });
1444
1504
  }
1445
1505
  /** Sign a login message string with the current signer (personal_sign) */
1446
1506
  async signLoginMessage(message) {
@@ -1577,5 +1637,11 @@ var PafiSDK = class {
1577
1637
 
1578
1638
 
1579
1639
 
1580
- 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 = _chunkM5ULOZ3Acjs.COMMON_POOLS; exports.COMMON_TOKENS = _chunkM5ULOZ3Acjs.COMMON_TOKENS; exports.CONTRACT_ADDRESSES = CONTRACT_ADDRESSES; exports.ConfigurationError = ConfigurationError; exports.DUMMY_SIGNATURE_V07 = DUMMY_SIGNATURE_V07; exports.ENTRY_POINT_V07 = _chunkM5ULOZ3Acjs.ENTRY_POINT_V07; exports.ENTRY_POINT_V08 = _chunkM5ULOZ3Acjs.ENTRY_POINT_V08; 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_SUBGRAPH_URL = PAFI_SUBGRAPH_URL; exports.PERMIT2_ADDRESS = _chunkM5ULOZ3Acjs.PERMIT2_ADDRESS; exports.POINT_TOKEN_FACTORY_ADDRESSES = POINT_TOKEN_FACTORY_ADDRESSES; exports.POINT_TOKEN_IMPL_ADDRESSES = POINT_TOKEN_IMPL_ADDRESSES; exports.POINT_TOKEN_POOLS = _chunkM5ULOZ3Acjs.POINT_TOKEN_POOLS; exports.POINT_TOKEN_V2_ABI = _chunkLRHY7GORcjs.pointTokenAbi; exports.PafiSDK = PafiSDK; exports.PafiSDKError = PafiSDKError; exports.PafiSdkError = PafiSdkError; exports.SIMPLE_7702_IMPL_BASE_MAINNET = SIMPLE_7702_IMPL_BASE_MAINNET; exports.SPONSOR_AUTH_DOMAIN_NAME = _chunk5254AG3Zcjs.SPONSOR_AUTH_DOMAIN_NAME; exports.SPONSOR_AUTH_TYPES = _chunk5254AG3Zcjs.SPONSOR_AUTH_TYPES; exports.SUPPORTED_CHAINS = _chunkM5ULOZ3Acjs.SUPPORTED_CHAINS; exports.SigningError = SigningError; exports.SimulationError = SimulationError; exports.TOKEN_HASHES = TOKEN_HASHES; exports.UNIVERSAL_ROUTER_ADDRESSES = _chunkM5ULOZ3Acjs.UNIVERSAL_ROUTER_ADDRESSES; exports.V4_QUOTER_ADDRESSES = _chunkM5ULOZ3Acjs.V4_QUOTER_ADDRESSES; exports.ValidationError = ValidationError; exports.ZERO_VALUE = ZERO_VALUE; exports._resetPaymasterConfigForTests = _resetPaymasterConfigForTests; exports.assembleUserOperation = assembleUserOperation; exports.buildAndSignSponsorAuth = _chunk5254AG3Zcjs.buildAndSignSponsorAuth; exports.buildBurnRequestTypedData = _chunkM5ULOZ3Acjs.buildBurnRequestTypedData; exports.buildDelegationUserOp = buildDelegationUserOp; exports.buildDomain = _chunkM5ULOZ3Acjs.buildDomain; exports.buildEip7702Authorization = buildEip7702Authorization; exports.buildMintRequestTypedData = _chunkM5ULOZ3Acjs.buildMintRequestTypedData; exports.buildPartialUserOperation = buildPartialUserOperation; exports.buildPerpDepositViaRelay = buildPerpDepositViaRelay; exports.buildPerpDepositWithGasDeduction = buildPerpDepositWithGasDeduction; exports.buildReceiverConsentTypedData = _chunkM5ULOZ3Acjs.buildReceiverConsentTypedData; exports.buildSponsorAuthDomain = _chunk5254AG3Zcjs.buildSponsorAuthDomain; exports.buildSponsorAuthTypedData = _chunk5254AG3Zcjs.buildSponsorAuthTypedData; exports.buildUserOpTypedData = buildUserOpTypedData; exports.burnRequestTypes = _chunkM5ULOZ3Acjs.burnRequestTypes; exports.checkDelegation = checkDelegation; exports.checkEthAndBranch = checkEthAndBranch; exports.computeAccountId = computeAccountId; exports.computeAuthorizationHash = computeAuthorizationHash; exports.computeCallDataHash = _chunk5254AG3Zcjs.computeCallDataHash; exports.computeUserOpHash = computeUserOpHash; exports.createLoginMessage = _chunk5254AG3Zcjs.createLoginMessage; exports.createPafiProxyTransport = createPafiProxyTransport; exports.decodeBatchExecuteCalls = decodeBatchExecuteCalls; exports.delegateDirect = delegateDirect; exports.detectDelegateImpl = detectDelegateImpl; exports.encodeBatchExecute = encodeBatchExecute; exports.erc20Abi = _chunkQ6WCDZXIcjs.erc20Abi; exports.erc20ApproveOp = erc20ApproveOp; exports.erc20BurnOp = erc20BurnOp; exports.erc20TransferOp = erc20TransferOp; exports.fetchPafiPools = fetchPafiPools; exports.generateSponsorAuthNonce = _chunk5254AG3Zcjs.generateSponsorAuthNonce; exports.getAaNonce = getAaNonce; exports.getBurnRequestNonce = _chunkCLPRSQT2cjs.getBurnRequestNonce; exports.getContractAddresses = getContractAddresses; exports.getDummySignatureFor7702 = getDummySignatureFor7702; exports.getIssuer = _chunkCLPRSQT2cjs.getIssuer2; exports.getMintRequestNonce = _chunkCLPRSQT2cjs.getMintRequestNonce; exports.getPafiWebModalAdapter = getPafiWebModalAdapter; exports.getPaymasterConfig = getPaymasterConfig; exports.getPointTokenBalance = _chunkCLPRSQT2cjs.getPointTokenBalance; exports.getPointTokenIssuer = _chunkCLPRSQT2cjs.getPointTokenIssuer; exports.getPointTokenIssuerAddress = _chunkCLPRSQT2cjs.getIssuer; exports.getReceiverConsentNonce = _chunkCLPRSQT2cjs.getReceiverConsentNonce; exports.getTokenName = _chunkCLPRSQT2cjs.getTokenName; exports.isActiveIssuer = _chunkCLPRSQT2cjs.isActiveIssuer; exports.isDelegatedTo = isDelegatedTo; exports.isDelegatedToTarget = isDelegatedToTarget; exports.isMinter = _chunkCLPRSQT2cjs.isMinter; exports.isPaymasterConfigured = isPaymasterConfigured; exports.isPaymasterError = isPaymasterError; exports.issuerRegistryAbi = _chunkLRHY7GORcjs.issuerRegistryAbi; exports.issuerRegistryGetIssuerFlatAbi = _chunkCLPRSQT2cjs.issuerRegistryGetIssuerFlatAbi; exports.mintRequestTypes = _chunkM5ULOZ3Acjs.mintRequestTypes; exports.mintingOracleAbi = _chunkLRHY7GORcjs.mintingOracleAbi; exports.openPafiWebModal = openPafiWebModal; exports.openWebPopup = openWebPopup; exports.parseEip7702DelegatedAddress = parseEip7702DelegatedAddress; exports.parseLoginMessage = _chunk5254AG3Zcjs.parseLoginMessage; exports.permit2Abi = _chunkQ6WCDZXIcjs.permit2Abi; exports.pointTokenAbi = _chunkLRHY7GORcjs.pointTokenAbi; exports.pointTokenFactoryAbi = _chunkQ6WCDZXIcjs.pointTokenFactoryAbi; exports.quoteOperatorFeePt = quoteOperatorFeePt; exports.quoteOperatorFeeUsdt = quoteOperatorFeeUsdt; exports.rawCallOp = rawCallOp; exports.receiverConsentTypes = _chunkM5ULOZ3Acjs.receiverConsentTypes; exports.sendWithPaymasterFallback = sendWithPaymasterFallback; exports.serializeUserOpToJsonRpc = serializeUserOpToJsonRpc; exports.setPafiWebModalAdapter = setPafiWebModalAdapter; exports.setPaymasterConfig = setPaymasterConfig; exports.signBurnRequest = _chunkM5ULOZ3Acjs.signBurnRequest; exports.signMintRequest = _chunkM5ULOZ3Acjs.signMintRequest; exports.signReceiverConsent = _chunkM5ULOZ3Acjs.signReceiverConsent; exports.signSponsorAuth = _chunk5254AG3Zcjs.signSponsorAuth; exports.splitAuthorizationSig = splitAuthorizationSig; exports.universalRouterAbi = _chunkQ6WCDZXIcjs.universalRouterAbi; exports.v4QuoterAbi = _chunkQ6WCDZXIcjs.v4QuoterAbi; exports.verifyBurnRequest = _chunkM5ULOZ3Acjs.verifyBurnRequest; exports.verifyLoginMessage = _chunk5254AG3Zcjs.verifyLoginMessage; exports.verifyMintCap = _chunkCLPRSQT2cjs.verifyMintCap; exports.verifyMintRequest = _chunkM5ULOZ3Acjs.verifyMintRequest; exports.verifyReceiverConsent = _chunkM5ULOZ3Acjs.verifyReceiverConsent; exports.verifySponsorAuth = _chunk5254AG3Zcjs.verifySponsorAuth; exports.webPopupAdapter = webPopupAdapter;
1640
+
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+ 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 = _chunk4QRHSZZQcjs.COMMON_POOLS; exports.COMMON_TOKENS = _chunk4QRHSZZQcjs.COMMON_TOKENS; exports.CONTRACT_ADDRESSES = CONTRACT_ADDRESSES; exports.ConfigurationError = ConfigurationError; exports.DUMMY_SIGNATURE_V07 = DUMMY_SIGNATURE_V07; exports.ENTRY_POINT_V07 = _chunk4QRHSZZQcjs.ENTRY_POINT_V07; exports.ENTRY_POINT_V08 = _chunk4QRHSZZQcjs.ENTRY_POINT_V08; exports.Eip712DomainMismatchError = _chunk4QRHSZZQcjs.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 = _chunk4QRHSZZQcjs.PERMIT2_ADDRESS; exports.POINT_TOKEN_FACTORY_ADDRESSES = POINT_TOKEN_FACTORY_ADDRESSES; exports.POINT_TOKEN_IMPL_ADDRESSES = POINT_TOKEN_IMPL_ADDRESSES; exports.POINT_TOKEN_POOLS = _chunk4QRHSZZQcjs.POINT_TOKEN_POOLS; exports.POINT_TOKEN_V2_ABI = _chunk6WWSKC3Zcjs.pointTokenAbi; exports.PafiSDK = PafiSDK; exports.PafiSDKError = PafiSDKError; exports.PafiSdkError = PafiSdkError; 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 = _chunk4QRHSZZQcjs.SUPPORTED_CHAINS; exports.SigningError = SigningError; exports.SimulationError = SimulationError; exports.TOKEN_HASHES = TOKEN_HASHES; exports.UNIVERSAL_ROUTER_ADDRESSES = _chunk4QRHSZZQcjs.UNIVERSAL_ROUTER_ADDRESSES; exports.V4_QUOTER_ADDRESSES = _chunk4QRHSZZQcjs.V4_QUOTER_ADDRESSES; exports.ValidationError = ValidationError; exports.ZERO_VALUE = ZERO_VALUE; exports._resetPaymasterConfigForTests = _resetPaymasterConfigForTests; exports.assembleUserOperation = assembleUserOperation; exports.assertDomainMatchesContract = _chunk4QRHSZZQcjs.assertDomainMatchesContract; exports.buildAndSignSponsorAuth = _chunk75JWR5SAcjs.buildAndSignSponsorAuth; exports.buildBurnRequestTypedData = _chunk4QRHSZZQcjs.buildBurnRequestTypedData; exports.buildDelegationUserOp = buildDelegationUserOp; exports.buildDomain = _chunk4QRHSZZQcjs.buildDomain; exports.buildEip7702Authorization = buildEip7702Authorization; exports.buildMintRequestTypedData = _chunk4QRHSZZQcjs.buildMintRequestTypedData; exports.buildPartialUserOperation = buildPartialUserOperation; exports.buildPerpDepositViaRelay = buildPerpDepositViaRelay; exports.buildPerpDepositWithGasDeduction = buildPerpDepositWithGasDeduction; exports.buildReceiverConsentTypedData = _chunk4QRHSZZQcjs.buildReceiverConsentTypedData; exports.buildSponsorAuthDomain = _chunk75JWR5SAcjs.buildSponsorAuthDomain; exports.buildSponsorAuthTypedData = _chunk75JWR5SAcjs.buildSponsorAuthTypedData; exports.buildUserOpTypedData = buildUserOpTypedData; exports.burnRequestTypes = _chunk4QRHSZZQcjs.burnRequestTypes; exports.checkDelegation = checkDelegation; exports.checkEthAndBranch = checkEthAndBranch; exports.computeAccountId = computeAccountId; exports.computeAuthorizationHash = computeAuthorizationHash; exports.computeCallDataHash = _chunk75JWR5SAcjs.computeCallDataHash; exports.computeUserOpHash = computeUserOpHash; exports.createLoginMessage = _chunk75JWR5SAcjs.createLoginMessage; exports.createPafiProxyTransport = createPafiProxyTransport; exports.decodeBatchExecuteCalls = decodeBatchExecuteCalls; exports.delegateDirect = delegateDirect; exports.detectDelegateImpl = detectDelegateImpl; exports.encodeBatchExecute = encodeBatchExecute; exports.erc20Abi = _chunkQ6WCDZXIcjs.erc20Abi; exports.erc20ApproveOp = erc20ApproveOp; exports.erc20BurnOp = erc20BurnOp; exports.erc20TransferOp = erc20TransferOp; exports.fetchPafiPools = fetchPafiPools; exports.generateSponsorAuthNonce = _chunk75JWR5SAcjs.generateSponsorAuthNonce; exports.getAaNonce = getAaNonce; exports.getBurnRequestNonce = _chunkREUEMYWBcjs.getBurnRequestNonce; exports.getContractAddresses = getContractAddresses; exports.getDummySignatureFor7702 = getDummySignatureFor7702; exports.getIssuer = _chunkREUEMYWBcjs.getIssuer2; exports.getMintRequestNonce = _chunkREUEMYWBcjs.getMintRequestNonce; exports.getPafiServiceUrls = getPafiServiceUrls; exports.getPafiWebModalAdapter = getPafiWebModalAdapter; exports.getPaymasterConfig = getPaymasterConfig; exports.getPointTokenBalance = _chunkREUEMYWBcjs.getPointTokenBalance; exports.getPointTokenIssuer = _chunkREUEMYWBcjs.getPointTokenIssuer; exports.getPointTokenIssuerAddress = _chunkREUEMYWBcjs.getIssuer; exports.getReceiverConsentNonce = _chunkREUEMYWBcjs.getReceiverConsentNonce; exports.getSponsorAuthDomainAnchor = _chunk75JWR5SAcjs.getSponsorAuthDomainAnchor; exports.getTokenName = _chunkREUEMYWBcjs.getTokenName; exports.isActiveIssuer = _chunkREUEMYWBcjs.isActiveIssuer; exports.isDelegatedTo = isDelegatedTo; exports.isDelegatedToTarget = isDelegatedToTarget; exports.isMinter = _chunkREUEMYWBcjs.isMinter; exports.isPaymasterConfigured = isPaymasterConfigured; exports.isPaymasterError = isPaymasterError; exports.issuerRegistryAbi = _chunkJEWSN7Q3cjs.issuerRegistryAbi; exports.issuerRegistryGetIssuerFlatAbi = _chunkREUEMYWBcjs.issuerRegistryGetIssuerFlatAbi; exports.mintRequestTypes = _chunk4QRHSZZQcjs.mintRequestTypes; exports.mintingOracleAbi = _chunkJEWSN7Q3cjs.mintingOracleAbi; exports.openPafiWebModal = openPafiWebModal; exports.openWebPopup = openWebPopup; exports.parseEip7702DelegatedAddress = parseEip7702DelegatedAddress; exports.parseLoginMessage = _chunk75JWR5SAcjs.parseLoginMessage; exports.permit2Abi = _chunkQ6WCDZXIcjs.permit2Abi; exports.pointTokenAbi = _chunk6WWSKC3Zcjs.pointTokenAbi; exports.pointTokenFactoryAbi = _chunkQ6WCDZXIcjs.pointTokenFactoryAbi; exports.quoteOperatorFeePt = quoteOperatorFeePt; exports.quoteOperatorFeeUsdt = quoteOperatorFeeUsdt; exports.rawCallOp = rawCallOp; exports.receiverConsentTypes = _chunk4QRHSZZQcjs.receiverConsentTypes; exports.sendWithPaymasterFallback = sendWithPaymasterFallback; exports.serializeUserOpToJsonRpc = serializeUserOpToJsonRpc; exports.setPafiWebModalAdapter = setPafiWebModalAdapter; exports.setPaymasterConfig = setPaymasterConfig; exports.signBurnRequest = _chunk4QRHSZZQcjs.signBurnRequest; exports.signMintRequest = _chunk4QRHSZZQcjs.signMintRequest; exports.signReceiverConsent = _chunk4QRHSZZQcjs.signReceiverConsent; exports.signSponsorAuth = _chunk75JWR5SAcjs.signSponsorAuth; exports.splitAuthorizationSig = splitAuthorizationSig; exports.universalRouterAbi = _chunkQ6WCDZXIcjs.universalRouterAbi; exports.v4QuoterAbi = _chunkQ6WCDZXIcjs.v4QuoterAbi; exports.verifyBurnRequest = _chunk4QRHSZZQcjs.verifyBurnRequest; exports.verifyLoginMessage = _chunk75JWR5SAcjs.verifyLoginMessage; exports.verifyMintCap = _chunkREUEMYWBcjs.verifyMintCap; exports.verifyMintRequest = _chunk4QRHSZZQcjs.verifyMintRequest; exports.verifyReceiverConsent = _chunk4QRHSZZQcjs.verifyReceiverConsent; exports.verifySponsorAuth = _chunk75JWR5SAcjs.verifySponsorAuth; exports.webPopupAdapter = webPopupAdapter;
1581
1647
  //# sourceMappingURL=index.cjs.map