@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.
- package/dist/abi/index.cjs +4 -2
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.js +4 -2
- package/dist/auth/index.cjs +6 -2
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.cts +21 -9
- package/dist/auth/index.d.ts +21 -9
- package/dist/auth/index.js +5 -1
- package/dist/{chunk-6UX2IFA2.js → chunk-4EGXLYMM.js} +20 -2
- package/dist/chunk-4EGXLYMM.js.map +1 -0
- package/dist/{chunk-M5ULOZ3A.cjs → chunk-4QRHSZZQ.cjs} +55 -3
- package/dist/chunk-4QRHSZZQ.cjs.map +1 -0
- package/dist/chunk-6WWSKC3Z.cjs +1097 -0
- package/dist/chunk-6WWSKC3Z.cjs.map +1 -0
- package/dist/{chunk-5254AG3Z.cjs → chunk-75JWR5SA.cjs} +21 -3
- package/dist/chunk-75JWR5SA.cjs.map +1 -0
- package/dist/{chunk-YDLMVWDH.js → chunk-AEYEFV5G.js} +5 -3
- package/dist/{chunk-YDLMVWDH.js.map → chunk-AEYEFV5G.js.map} +1 -1
- package/dist/{chunk-5JZOJIBT.js → chunk-B2NDSIAI.js} +1 -1095
- package/dist/chunk-B2NDSIAI.js.map +1 -0
- package/dist/chunk-JEWSN7Q3.cjs +1059 -0
- package/dist/chunk-JEWSN7Q3.cjs.map +1 -0
- package/dist/{chunk-WJSIB5GF.js → chunk-QL5COJQI.js} +53 -1
- package/dist/chunk-QL5COJQI.js.map +1 -0
- package/dist/{chunk-CLPRSQT2.cjs → chunk-REUEMYWB.cjs} +14 -12
- package/dist/chunk-REUEMYWB.cjs.map +1 -0
- package/dist/chunk-SZMSKZHY.js +1097 -0
- package/dist/chunk-SZMSKZHY.js.map +1 -0
- package/dist/contract/index.cjs +4 -3
- package/dist/contract/index.cjs.map +1 -1
- package/dist/contract/index.d.cts +1 -1
- package/dist/contract/index.d.ts +1 -1
- package/dist/contract/index.js +3 -2
- package/dist/eip712/index.cjs +7 -2
- package/dist/eip712/index.cjs.map +1 -1
- package/dist/eip712/index.d.cts +39 -4
- package/dist/eip712/index.d.ts +39 -4
- package/dist/eip712/index.js +6 -1
- package/dist/index.cjs +98 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -31
- package/dist/index.d.ts +78 -31
- package/dist/index.js +87 -21
- package/dist/index.js.map +1 -1
- package/dist/types-CCvAk-ma.d.cts +159 -0
- package/dist/types-CCvAk-ma.d.ts +159 -0
- package/package.json +1 -1
- package/dist/chunk-5254AG3Z.cjs.map +0 -1
- package/dist/chunk-5JZOJIBT.js.map +0 -1
- package/dist/chunk-6UX2IFA2.js.map +0 -1
- package/dist/chunk-CLPRSQT2.cjs.map +0 -1
- package/dist/chunk-LRHY7GOR.cjs +0 -2153
- package/dist/chunk-LRHY7GOR.cjs.map +0 -1
- package/dist/chunk-M5ULOZ3A.cjs.map +0 -1
- package/dist/chunk-WJSIB5GF.js.map +0 -1
- package/dist/types-BAkmxgVo.d.cts +0 -99
- 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
|
-
|
|
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:
|
|
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:
|
|
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
|
|
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
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
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
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|