@pafi-dev/core 0.7.1 → 0.7.3

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 (43) hide show
  1. package/dist/abi/index.cjs +1 -0
  2. package/dist/abi/index.cjs.map +1 -1
  3. package/dist/abi/index.js +1 -0
  4. package/dist/auth/index.cjs +5 -2
  5. package/dist/auth/index.cjs.map +1 -1
  6. package/dist/auth/index.d.cts +10 -1
  7. package/dist/auth/index.d.ts +10 -1
  8. package/dist/auth/index.js +4 -1
  9. package/dist/{chunk-RZDG6SRR.cjs → chunk-5254AG3Z.cjs} +36 -5
  10. package/dist/chunk-5254AG3Z.cjs.map +1 -0
  11. package/dist/{chunk-QGXJLLKF.js → chunk-6UX2IFA2.js} +34 -3
  12. package/dist/chunk-6UX2IFA2.js.map +1 -0
  13. package/dist/chunk-DGUM43GV.js +11 -0
  14. package/dist/chunk-DGUM43GV.js.map +1 -0
  15. package/dist/chunk-JEQ2X3Z6.cjs +11 -0
  16. package/dist/chunk-JEQ2X3Z6.cjs.map +1 -0
  17. package/dist/{chunk-3QDZFDEL.cjs → chunk-M5ULOZ3A.cjs} +3 -3
  18. package/dist/chunk-M5ULOZ3A.cjs.map +1 -0
  19. package/dist/{chunk-UOKI5GG6.js → chunk-WJSIB5GF.js} +2 -2
  20. package/dist/chunk-WJSIB5GF.js.map +1 -0
  21. package/dist/contract/index.cjs +1 -0
  22. package/dist/contract/index.cjs.map +1 -1
  23. package/dist/contract/index.d.cts +1 -1
  24. package/dist/contract/index.d.ts +1 -1
  25. package/dist/contract/index.js +1 -0
  26. package/dist/eip712/index.cjs +3 -2
  27. package/dist/eip712/index.cjs.map +1 -1
  28. package/dist/eip712/index.d.cts +10 -5
  29. package/dist/eip712/index.d.ts +10 -5
  30. package/dist/eip712/index.js +2 -1
  31. package/dist/index.cjs +56 -19
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +89 -19
  34. package/dist/index.d.ts +89 -19
  35. package/dist/index.js +43 -6
  36. package/dist/index.js.map +1 -1
  37. package/dist/{types-JyuXUM8C.d.cts → types-BAkmxgVo.d.cts} +10 -0
  38. package/dist/{types-JyuXUM8C.d.ts → types-BAkmxgVo.d.ts} +10 -0
  39. package/package.json +1 -1
  40. package/dist/chunk-3QDZFDEL.cjs.map +0 -1
  41. package/dist/chunk-QGXJLLKF.js.map +0 -1
  42. package/dist/chunk-RZDG6SRR.cjs.map +0 -1
  43. package/dist/chunk-UOKI5GG6.js.map +0 -1
@@ -1,9 +1,14 @@
1
- import { b as PointTokenDomainConfig, M as MintRequest, E as EIP712Signature, S as SignatureVerification, c as BurnRequest, R as ReceiverConsent } from '../types-JyuXUM8C.cjs';
1
+ import { b as PointTokenDomainConfig, M as MintRequest, E as EIP712Signature, S as SignatureVerification, c as BurnRequest, R as ReceiverConsent } from '../types-BAkmxgVo.cjs';
2
2
  import { WalletClient, Hex, Address } from 'viem';
3
3
 
4
+ /**
5
+ * Build the EIP-712 domain struct from a PointToken config. Uses
6
+ * `config.version` when supplied; defaults to `"1"` for back-compat.
7
+ * v0.7.1 — see SDK_CORE_TRADING_AUDIT.md H8.
8
+ */
4
9
  declare function buildDomain(config: PointTokenDomainConfig): {
5
10
  name: string;
6
- version: "1";
11
+ version: string;
7
12
  chainId: number;
8
13
  verifyingContract: `0x${string}`;
9
14
  };
@@ -16,7 +21,7 @@ declare function buildDomain(config: PointTokenDomainConfig): {
16
21
  declare function buildMintRequestTypedData(domain: PointTokenDomainConfig, message: MintRequest): {
17
22
  domain: {
18
23
  name: string;
19
- version: "1";
24
+ version: string;
20
25
  chainId: number;
21
26
  verifyingContract: `0x${string}`;
22
27
  };
@@ -58,7 +63,7 @@ declare function verifyMintRequest(domain: PointTokenDomainConfig, message: Mint
58
63
  declare function buildBurnRequestTypedData(domain: PointTokenDomainConfig, message: BurnRequest): {
59
64
  domain: {
60
65
  name: string;
61
- version: "1";
66
+ version: string;
62
67
  chainId: number;
63
68
  verifyingContract: `0x${string}`;
64
69
  };
@@ -91,7 +96,7 @@ declare function verifyBurnRequest(domain: PointTokenDomainConfig, message: Burn
91
96
  declare function buildReceiverConsentTypedData(domain: PointTokenDomainConfig, message: ReceiverConsent): {
92
97
  domain: {
93
98
  name: string;
94
- version: "1";
99
+ version: string;
95
100
  chainId: number;
96
101
  verifyingContract: `0x${string}`;
97
102
  };
@@ -1,9 +1,14 @@
1
- import { b as PointTokenDomainConfig, M as MintRequest, E as EIP712Signature, S as SignatureVerification, c as BurnRequest, R as ReceiverConsent } from '../types-JyuXUM8C.js';
1
+ import { b as PointTokenDomainConfig, M as MintRequest, E as EIP712Signature, S as SignatureVerification, c as BurnRequest, R as ReceiverConsent } from '../types-BAkmxgVo.js';
2
2
  import { WalletClient, Hex, Address } from 'viem';
3
3
 
4
+ /**
5
+ * Build the EIP-712 domain struct from a PointToken config. Uses
6
+ * `config.version` when supplied; defaults to `"1"` for back-compat.
7
+ * v0.7.1 — see SDK_CORE_TRADING_AUDIT.md H8.
8
+ */
4
9
  declare function buildDomain(config: PointTokenDomainConfig): {
5
10
  name: string;
6
- version: "1";
11
+ version: string;
7
12
  chainId: number;
8
13
  verifyingContract: `0x${string}`;
9
14
  };
@@ -16,7 +21,7 @@ declare function buildDomain(config: PointTokenDomainConfig): {
16
21
  declare function buildMintRequestTypedData(domain: PointTokenDomainConfig, message: MintRequest): {
17
22
  domain: {
18
23
  name: string;
19
- version: "1";
24
+ version: string;
20
25
  chainId: number;
21
26
  verifyingContract: `0x${string}`;
22
27
  };
@@ -58,7 +63,7 @@ declare function verifyMintRequest(domain: PointTokenDomainConfig, message: Mint
58
63
  declare function buildBurnRequestTypedData(domain: PointTokenDomainConfig, message: BurnRequest): {
59
64
  domain: {
60
65
  name: string;
61
- version: "1";
66
+ version: string;
62
67
  chainId: number;
63
68
  verifyingContract: `0x${string}`;
64
69
  };
@@ -91,7 +96,7 @@ declare function verifyBurnRequest(domain: PointTokenDomainConfig, message: Burn
91
96
  declare function buildReceiverConsentTypedData(domain: PointTokenDomainConfig, message: ReceiverConsent): {
92
97
  domain: {
93
98
  name: string;
94
- version: "1";
99
+ version: string;
95
100
  chainId: number;
96
101
  verifyingContract: `0x${string}`;
97
102
  };
@@ -9,7 +9,8 @@ import {
9
9
  verifyBurnRequest,
10
10
  verifyMintRequest,
11
11
  verifyReceiverConsent
12
- } from "../chunk-UOKI5GG6.js";
12
+ } from "../chunk-WJSIB5GF.js";
13
+ import "../chunk-DGUM43GV.js";
13
14
  export {
14
15
  buildBurnRequestTypedData,
15
16
  buildDomain,
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3;
2
2
 
3
3
 
4
4
 
@@ -17,7 +17,8 @@ var _chunkQ6WCDZXIcjs = require('./chunk-Q6WCDZXI.cjs');
17
17
 
18
18
 
19
19
 
20
- var _chunkRZDG6SRRcjs = require('./chunk-RZDG6SRR.cjs');
20
+
21
+ var _chunk5254AG3Zcjs = require('./chunk-5254AG3Z.cjs');
21
22
 
22
23
 
23
24
 
@@ -60,12 +61,25 @@ var _chunkLRHY7GORcjs = require('./chunk-LRHY7GOR.cjs');
60
61
 
61
62
 
62
63
 
63
- var _chunk3QDZFDELcjs = require('./chunk-3QDZFDEL.cjs');
64
+ var _chunkM5ULOZ3Acjs = require('./chunk-M5ULOZ3A.cjs');
65
+ require('./chunk-JEQ2X3Z6.cjs');
64
66
 
65
67
  // src/index.ts
66
68
  var _viem = require('viem');
67
69
 
68
70
  // src/errors.ts
71
+ var PafiSdkError = (_class = class extends Error {
72
+ /**
73
+ * `true` when the FE should consider a retry safe — typically because
74
+ * the failure is transient.
75
+ */
76
+ __init() {this.safeToRetry = false}
77
+
78
+ constructor(message) {
79
+ super(message);_class.prototype.__init.call(this);;
80
+ this.name = new.target.name;
81
+ }
82
+ }, _class);
69
83
  var PafiSDKError = class extends Error {
70
84
  constructor(message) {
71
85
  super(message);
@@ -102,16 +116,27 @@ var ApiError = class extends PafiSDKError {
102
116
  }
103
117
 
104
118
  };
105
- var OracleStaleError = class extends PafiSDKError {
119
+ var OracleStaleError = (_class2 = class extends PafiSdkError {
120
+ __init2() {this.httpStatus = "service_unavailable"}
121
+ __init3() {this.code = "ORACLE_STALE"}
106
122
 
107
123
 
108
124
  constructor(source, reason) {
109
- super(`Oracle ${source} unavailable: ${reason}`);
110
- this.name = "OracleStaleError";
125
+ super(`Oracle ${source} unavailable: ${reason}`);_class2.prototype.__init2.call(this);_class2.prototype.__init3.call(this);;
111
126
  this.source = source;
112
127
  this.reason = reason;
113
128
  }
114
- };
129
+ }, _class2);
130
+ var ValidationError = (_class3 = class extends PafiSdkError {
131
+ __init4() {this.httpStatus = "unprocessable"}
132
+
133
+
134
+ constructor(code, message, details) {
135
+ super(message);_class3.prototype.__init4.call(this);;
136
+ this.code = code;
137
+ this.details = details;
138
+ }
139
+ }, _class3);
115
140
 
116
141
  // src/perp/buildPerpDepositWithGasDeduction.ts
117
142
 
@@ -514,7 +539,7 @@ function buildUserOpTypedData(userOp, chainId) {
514
539
  name: "ERC4337",
515
540
  version: "1",
516
541
  chainId,
517
- verifyingContract: _chunk3QDZFDELcjs.ENTRY_POINT_V08
542
+ verifyingContract: _chunkM5ULOZ3Acjs.ENTRY_POINT_V08
518
543
  },
519
544
  types: PACKED_USER_OPERATION_TYPES,
520
545
  primaryType: "PackedUserOperation",
@@ -655,7 +680,7 @@ async function getAaNonce(client, userAddress) {
655
680
  }
656
681
  ];
657
682
  return client.readContract({
658
- address: _chunk3QDZFDELcjs.ENTRY_POINT_V08,
683
+ address: _chunkM5ULOZ3Acjs.ENTRY_POINT_V08,
659
684
  abi: NONCE_ABI,
660
685
  functionName: "getNonce",
661
686
  args: [userAddress, 0n]
@@ -912,6 +937,13 @@ var POOL_PRICE_QUERY = `
912
937
  }
913
938
  }
914
939
  `;
940
+ var SCENARIO_GAS_UNITS = {
941
+ mint: 500000n,
942
+ burn: 500000n,
943
+ swap: 700000n,
944
+ "perp-deposit": 800000n,
945
+ delegate: 200000n
946
+ };
915
947
  var DEFAULT_GAS_UNITS = 500000n;
916
948
  var DEFAULT_PREMIUM_BPS = 12e3;
917
949
  var DEFAULT_USDT_DECIMALS = 6;
@@ -919,7 +951,8 @@ async function quoteOperatorFeeUsdt(config) {
919
951
  const {
920
952
  provider,
921
953
  chainId,
922
- gasUnits = DEFAULT_GAS_UNITS,
954
+ scenario = "mint",
955
+ gasUnits = _nullishCoalesce(SCENARIO_GAS_UNITS[scenario], () => ( DEFAULT_GAS_UNITS)),
923
956
  premiumBps = DEFAULT_PREMIUM_BPS,
924
957
  usdtDecimals = DEFAULT_USDT_DECIMALS,
925
958
  allowStaleFallback = false,
@@ -942,7 +975,8 @@ async function quoteOperatorFeePt(config) {
942
975
  provider,
943
976
  chainId,
944
977
  pointTokenAddress,
945
- gasUnits = DEFAULT_GAS_UNITS,
978
+ scenario = "mint",
979
+ gasUnits = _nullishCoalesce(SCENARIO_GAS_UNITS[scenario], () => ( DEFAULT_GAS_UNITS)),
946
980
  premiumBps = DEFAULT_PREMIUM_BPS,
947
981
  subgraphUrl = PAFI_SUBGRAPH_URL,
948
982
  usdtDecimals = DEFAULT_USDT_DECIMALS,
@@ -1265,27 +1299,27 @@ var PafiSDK = class {
1265
1299
  // -------------------------------------------------------------------------
1266
1300
  async buildMintRequestTypedData(message) {
1267
1301
  const domain = await this.getDomain();
1268
- return _chunk3QDZFDELcjs.buildMintRequestTypedData.call(void 0, domain, message);
1302
+ return _chunkM5ULOZ3Acjs.buildMintRequestTypedData.call(void 0, domain, message);
1269
1303
  }
1270
1304
  async buildReceiverConsentTypedData(message) {
1271
1305
  const domain = await this.getDomain();
1272
- return _chunk3QDZFDELcjs.buildReceiverConsentTypedData.call(void 0, domain, message);
1306
+ return _chunkM5ULOZ3Acjs.buildReceiverConsentTypedData.call(void 0, domain, message);
1273
1307
  }
1274
1308
  async signMintRequest(message) {
1275
1309
  const domain = await this.getDomain();
1276
- return _chunk3QDZFDELcjs.signMintRequest.call(void 0, this.requireSigner(), domain, message);
1310
+ return _chunkM5ULOZ3Acjs.signMintRequest.call(void 0, this.requireSigner(), domain, message);
1277
1311
  }
1278
1312
  async verifyMintRequest(message, signature, expectedMinter) {
1279
1313
  const domain = await this.getDomain();
1280
- return _chunk3QDZFDELcjs.verifyMintRequest.call(void 0, domain, message, signature, expectedMinter);
1314
+ return _chunkM5ULOZ3Acjs.verifyMintRequest.call(void 0, domain, message, signature, expectedMinter);
1281
1315
  }
1282
1316
  async signReceiverConsent(message) {
1283
1317
  const domain = await this.getDomain();
1284
- return _chunk3QDZFDELcjs.signReceiverConsent.call(void 0, this.requireSigner(), domain, message);
1318
+ return _chunkM5ULOZ3Acjs.signReceiverConsent.call(void 0, this.requireSigner(), domain, message);
1285
1319
  }
1286
1320
  async verifyReceiverConsent(message, signature, expectedReceiver) {
1287
1321
  const domain = await this.getDomain();
1288
- return _chunk3QDZFDELcjs.verifyReceiverConsent.call(void 0, domain, message, signature, expectedReceiver);
1322
+ return _chunkM5ULOZ3Acjs.verifyReceiverConsent.call(void 0, domain, message, signature, expectedReceiver);
1289
1323
  }
1290
1324
  // -------------------------------------------------------------------------
1291
1325
  // Contract reads
@@ -1314,7 +1348,7 @@ var PafiSDK = class {
1314
1348
  if (!account) {
1315
1349
  throw new ConfigurationError("signer has no account attached");
1316
1350
  }
1317
- return _chunkRZDG6SRRcjs.createLoginMessage.call(void 0, { ...params, address: account.address, chainId });
1351
+ return _chunk5254AG3Zcjs.createLoginMessage.call(void 0, { ...params, address: account.address, chainId });
1318
1352
  }
1319
1353
  /** Sign a login message string with the current signer (personal_sign) */
1320
1354
  async signLoginMessage(message) {
@@ -1447,5 +1481,8 @@ var PafiSDK = class {
1447
1481
 
1448
1482
 
1449
1483
 
1450
- 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 = _chunk3QDZFDELcjs.COMMON_POOLS; exports.COMMON_TOKENS = _chunk3QDZFDELcjs.COMMON_TOKENS; exports.CONTRACT_ADDRESSES = CONTRACT_ADDRESSES; exports.ConfigurationError = ConfigurationError; exports.DUMMY_SIGNATURE_V07 = DUMMY_SIGNATURE_V07; exports.ENTRY_POINT_V07 = _chunk3QDZFDELcjs.ENTRY_POINT_V07; exports.ENTRY_POINT_V08 = _chunk3QDZFDELcjs.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 = _chunk3QDZFDELcjs.PERMIT2_ADDRESS; exports.POINT_TOKEN_FACTORY_ADDRESSES = POINT_TOKEN_FACTORY_ADDRESSES; exports.POINT_TOKEN_IMPL_ADDRESSES = POINT_TOKEN_IMPL_ADDRESSES; exports.POINT_TOKEN_POOLS = _chunk3QDZFDELcjs.POINT_TOKEN_POOLS; exports.POINT_TOKEN_V2_ABI = _chunkLRHY7GORcjs.pointTokenAbi; exports.PafiSDK = PafiSDK; exports.PafiSDKError = PafiSDKError; exports.SIMPLE_7702_IMPL_BASE_MAINNET = SIMPLE_7702_IMPL_BASE_MAINNET; exports.SPONSOR_AUTH_DOMAIN_NAME = _chunkRZDG6SRRcjs.SPONSOR_AUTH_DOMAIN_NAME; exports.SPONSOR_AUTH_TYPES = _chunkRZDG6SRRcjs.SPONSOR_AUTH_TYPES; exports.SUPPORTED_CHAINS = _chunk3QDZFDELcjs.SUPPORTED_CHAINS; exports.SigningError = SigningError; exports.SimulationError = SimulationError; exports.TOKEN_HASHES = TOKEN_HASHES; exports.UNIVERSAL_ROUTER_ADDRESSES = _chunk3QDZFDELcjs.UNIVERSAL_ROUTER_ADDRESSES; exports.V4_QUOTER_ADDRESSES = _chunk3QDZFDELcjs.V4_QUOTER_ADDRESSES; exports.ZERO_VALUE = ZERO_VALUE; exports._resetPaymasterConfigForTests = _resetPaymasterConfigForTests; exports.assembleUserOperation = assembleUserOperation; exports.buildAndSignSponsorAuth = _chunkRZDG6SRRcjs.buildAndSignSponsorAuth; exports.buildBurnRequestTypedData = _chunk3QDZFDELcjs.buildBurnRequestTypedData; exports.buildDelegationUserOp = buildDelegationUserOp; exports.buildDomain = _chunk3QDZFDELcjs.buildDomain; exports.buildEip7702Authorization = buildEip7702Authorization; exports.buildMintRequestTypedData = _chunk3QDZFDELcjs.buildMintRequestTypedData; exports.buildPartialUserOperation = buildPartialUserOperation; exports.buildPerpDepositViaRelay = buildPerpDepositViaRelay; exports.buildPerpDepositWithGasDeduction = buildPerpDepositWithGasDeduction; exports.buildReceiverConsentTypedData = _chunk3QDZFDELcjs.buildReceiverConsentTypedData; exports.buildSponsorAuthDomain = _chunkRZDG6SRRcjs.buildSponsorAuthDomain; exports.buildSponsorAuthTypedData = _chunkRZDG6SRRcjs.buildSponsorAuthTypedData; exports.buildUserOpTypedData = buildUserOpTypedData; exports.burnRequestTypes = _chunk3QDZFDELcjs.burnRequestTypes; exports.checkDelegation = checkDelegation; exports.checkEthAndBranch = checkEthAndBranch; exports.computeAccountId = computeAccountId; exports.computeAuthorizationHash = computeAuthorizationHash; exports.computeCallDataHash = _chunkRZDG6SRRcjs.computeCallDataHash; exports.computeUserOpHash = computeUserOpHash; exports.createLoginMessage = _chunkRZDG6SRRcjs.createLoginMessage; exports.createPafiProxyTransport = createPafiProxyTransport; exports.decodeBatchExecuteCalls = decodeBatchExecuteCalls; exports.detectDelegateImpl = detectDelegateImpl; exports.encodeBatchExecute = encodeBatchExecute; exports.erc20Abi = _chunkQ6WCDZXIcjs.erc20Abi; exports.erc20ApproveOp = erc20ApproveOp; exports.erc20BurnOp = erc20BurnOp; exports.erc20TransferOp = erc20TransferOp; exports.fetchPafiPools = fetchPafiPools; 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 = _chunk3QDZFDELcjs.mintRequestTypes; exports.mintingOracleAbi = _chunkLRHY7GORcjs.mintingOracleAbi; exports.openPafiWebModal = openPafiWebModal; exports.openWebPopup = openWebPopup; exports.parseEip7702DelegatedAddress = parseEip7702DelegatedAddress; exports.parseLoginMessage = _chunkRZDG6SRRcjs.parseLoginMessage; exports.permit2Abi = _chunkQ6WCDZXIcjs.permit2Abi; exports.pointTokenAbi = _chunkLRHY7GORcjs.pointTokenAbi; exports.pointTokenFactoryAbi = _chunkQ6WCDZXIcjs.pointTokenFactoryAbi; exports.quoteOperatorFeePt = quoteOperatorFeePt; exports.quoteOperatorFeeUsdt = quoteOperatorFeeUsdt; exports.rawCallOp = rawCallOp; exports.receiverConsentTypes = _chunk3QDZFDELcjs.receiverConsentTypes; exports.sendWithPaymasterFallback = sendWithPaymasterFallback; exports.serializeUserOpToJsonRpc = serializeUserOpToJsonRpc; exports.setPafiWebModalAdapter = setPafiWebModalAdapter; exports.setPaymasterConfig = setPaymasterConfig; exports.signBurnRequest = _chunk3QDZFDELcjs.signBurnRequest; exports.signMintRequest = _chunk3QDZFDELcjs.signMintRequest; exports.signReceiverConsent = _chunk3QDZFDELcjs.signReceiverConsent; exports.signSponsorAuth = _chunkRZDG6SRRcjs.signSponsorAuth; exports.splitAuthorizationSig = splitAuthorizationSig; exports.universalRouterAbi = _chunkQ6WCDZXIcjs.universalRouterAbi; exports.v4QuoterAbi = _chunkQ6WCDZXIcjs.v4QuoterAbi; exports.verifyBurnRequest = _chunk3QDZFDELcjs.verifyBurnRequest; exports.verifyLoginMessage = _chunkRZDG6SRRcjs.verifyLoginMessage; exports.verifyMintCap = _chunkCLPRSQT2cjs.verifyMintCap; exports.verifyMintRequest = _chunk3QDZFDELcjs.verifyMintRequest; exports.verifyReceiverConsent = _chunk3QDZFDELcjs.verifyReceiverConsent; exports.verifySponsorAuth = _chunkRZDG6SRRcjs.verifySponsorAuth; exports.webPopupAdapter = webPopupAdapter;
1484
+
1485
+
1486
+
1487
+ 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.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;
1451
1488
  //# sourceMappingURL=index.cjs.map