@pafi-dev/core 0.7.7 → 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 +96 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -29
- package/dist/index.d.ts +76 -29
- package/dist/index.js +85 -20
- 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]
|
|
@@ -1058,7 +1074,8 @@ async function quoteOperatorFeeUsdt(config) {
|
|
|
1058
1074
|
const ethPrice8dec = await getEthPrice8dec(
|
|
1059
1075
|
provider,
|
|
1060
1076
|
chainlinkFeedAddress,
|
|
1061
|
-
allowStaleFallback ? fallbackEthPriceUsd : null
|
|
1077
|
+
allowStaleFallback ? fallbackEthPriceUsd : null,
|
|
1078
|
+
config.onFallback
|
|
1062
1079
|
);
|
|
1063
1080
|
const denomExp = 18 + 8 - usdtDecimals;
|
|
1064
1081
|
return withPremium * ethPrice8dec / 10n ** BigInt(denomExp);
|
|
@@ -1086,18 +1103,20 @@ async function quoteOperatorFeePt(config) {
|
|
|
1086
1103
|
getEthPrice8dec(
|
|
1087
1104
|
provider,
|
|
1088
1105
|
chainlinkFeedAddress,
|
|
1089
|
-
allowStaleFallback ? fallbackEthPriceUsd : null
|
|
1106
|
+
allowStaleFallback ? fallbackEthPriceUsd : null,
|
|
1107
|
+
config.onFallback
|
|
1090
1108
|
),
|
|
1091
1109
|
getPtPerUsdt18dec(
|
|
1092
1110
|
fetchImpl,
|
|
1093
1111
|
subgraphUrl,
|
|
1094
1112
|
pointTokenAddress,
|
|
1095
|
-
allowStaleFallback ? fallbackPtPriceUsdt : null
|
|
1113
|
+
allowStaleFallback ? fallbackPtPriceUsdt : null,
|
|
1114
|
+
config.onFallback
|
|
1096
1115
|
)
|
|
1097
1116
|
]);
|
|
1098
1117
|
return withPremium * ethPrice8dec * ptPerUsdt18dec / 10n ** 26n;
|
|
1099
1118
|
}
|
|
1100
|
-
async function getEthPrice8dec(provider, feed, fallback) {
|
|
1119
|
+
async function getEthPrice8dec(provider, feed, fallback, onFallback) {
|
|
1101
1120
|
try {
|
|
1102
1121
|
const result = await provider.readContract({
|
|
1103
1122
|
address: feed,
|
|
@@ -1117,14 +1136,18 @@ async function getEthPrice8dec(provider, feed, fallback) {
|
|
|
1117
1136
|
if (fallback === null) {
|
|
1118
1137
|
throw new OracleStaleError("chainlink", reason);
|
|
1119
1138
|
}
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
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
|
+
}
|
|
1124
1147
|
return BigInt(Math.round(fallback * 1e8));
|
|
1125
1148
|
}
|
|
1126
1149
|
}
|
|
1127
|
-
async function getPtPerUsdt18dec(fetchImpl, subgraphUrl, pointTokenAddress, fallbackPtPriceUsdt) {
|
|
1150
|
+
async function getPtPerUsdt18dec(fetchImpl, subgraphUrl, pointTokenAddress, fallbackPtPriceUsdt, onFallback) {
|
|
1128
1151
|
try {
|
|
1129
1152
|
const response = await fetchImpl(subgraphUrl, {
|
|
1130
1153
|
method: "POST",
|
|
@@ -1156,10 +1179,18 @@ async function getPtPerUsdt18dec(fetchImpl, subgraphUrl, pointTokenAddress, fall
|
|
|
1156
1179
|
if (fallbackPtPriceUsdt === null) {
|
|
1157
1180
|
throw new OracleStaleError("subgraph", reason);
|
|
1158
1181
|
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
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
|
+
}
|
|
1163
1194
|
const ptPerUsdtHuman = 1 / fallbackPtPriceUsdt;
|
|
1164
1195
|
return parseBigDecimalTo18(ptPerUsdtHuman.toFixed(18));
|
|
1165
1196
|
}
|
|
@@ -1175,6 +1206,29 @@ function parseBigDecimalTo18(s) {
|
|
|
1175
1206
|
var BATCH_EXECUTOR_ADDRESS_BASE_MAINNET = getContractAddresses(8453).batchExecutor;
|
|
1176
1207
|
var BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA = getContractAddresses(84532).batchExecutor;
|
|
1177
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
|
+
|
|
1178
1232
|
// src/web-handoff/webPopup.ts
|
|
1179
1233
|
var DEFAULT_WIDTH = 900;
|
|
1180
1234
|
var DEFAULT_HEIGHT = 700;
|
|
@@ -1231,10 +1285,15 @@ function openWebPopup(url, options = {}) {
|
|
|
1231
1285
|
}, 500);
|
|
1232
1286
|
if (options.onMessage) {
|
|
1233
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
|
+
}
|
|
1234
1293
|
const onMessage = options.onMessage;
|
|
1235
1294
|
messageListener = (event) => {
|
|
1236
1295
|
if (event.source !== popup) return;
|
|
1237
|
-
if (!allowed.includes(event.origin)) return;
|
|
1296
|
+
if (!allowed.includes("*") && !allowed.includes(event.origin)) return;
|
|
1238
1297
|
onMessage(event.data, event.origin);
|
|
1239
1298
|
};
|
|
1240
1299
|
window.addEventListener("message", messageListener);
|
|
@@ -1384,7 +1443,7 @@ var PafiSDK = class {
|
|
|
1384
1443
|
const provider = this.requireProvider();
|
|
1385
1444
|
const pointToken = this.requirePointToken();
|
|
1386
1445
|
const chainId = this.requireChainId();
|
|
1387
|
-
const name = await
|
|
1446
|
+
const name = await _chunkREUEMYWBcjs.getTokenName.call(void 0, provider, pointToken);
|
|
1388
1447
|
return { name, verifyingContract: pointToken, chainId };
|
|
1389
1448
|
}
|
|
1390
1449
|
// -------------------------------------------------------------------------
|
|
@@ -1392,40 +1451,40 @@ var PafiSDK = class {
|
|
|
1392
1451
|
// -------------------------------------------------------------------------
|
|
1393
1452
|
async buildMintRequestTypedData(message) {
|
|
1394
1453
|
const domain = await this.getDomain();
|
|
1395
|
-
return
|
|
1454
|
+
return _chunk4QRHSZZQcjs.buildMintRequestTypedData.call(void 0, domain, message);
|
|
1396
1455
|
}
|
|
1397
1456
|
async buildReceiverConsentTypedData(message) {
|
|
1398
1457
|
const domain = await this.getDomain();
|
|
1399
|
-
return
|
|
1458
|
+
return _chunk4QRHSZZQcjs.buildReceiverConsentTypedData.call(void 0, domain, message);
|
|
1400
1459
|
}
|
|
1401
1460
|
async signMintRequest(message) {
|
|
1402
1461
|
const domain = await this.getDomain();
|
|
1403
|
-
return
|
|
1462
|
+
return _chunk4QRHSZZQcjs.signMintRequest.call(void 0, this.requireSigner(), domain, message);
|
|
1404
1463
|
}
|
|
1405
1464
|
async verifyMintRequest(message, signature, expectedMinter) {
|
|
1406
1465
|
const domain = await this.getDomain();
|
|
1407
|
-
return
|
|
1466
|
+
return _chunk4QRHSZZQcjs.verifyMintRequest.call(void 0, domain, message, signature, expectedMinter);
|
|
1408
1467
|
}
|
|
1409
1468
|
async signReceiverConsent(message) {
|
|
1410
1469
|
const domain = await this.getDomain();
|
|
1411
|
-
return
|
|
1470
|
+
return _chunk4QRHSZZQcjs.signReceiverConsent.call(void 0, this.requireSigner(), domain, message);
|
|
1412
1471
|
}
|
|
1413
1472
|
async verifyReceiverConsent(message, signature, expectedReceiver) {
|
|
1414
1473
|
const domain = await this.getDomain();
|
|
1415
|
-
return
|
|
1474
|
+
return _chunk4QRHSZZQcjs.verifyReceiverConsent.call(void 0, domain, message, signature, expectedReceiver);
|
|
1416
1475
|
}
|
|
1417
1476
|
// -------------------------------------------------------------------------
|
|
1418
1477
|
// Contract reads
|
|
1419
1478
|
// -------------------------------------------------------------------------
|
|
1420
1479
|
async getMintRequestNonce(receiver) {
|
|
1421
|
-
return
|
|
1480
|
+
return _chunkREUEMYWBcjs.getMintRequestNonce.call(void 0,
|
|
1422
1481
|
this.requireProvider(),
|
|
1423
1482
|
this.requirePointToken(),
|
|
1424
1483
|
receiver
|
|
1425
1484
|
);
|
|
1426
1485
|
}
|
|
1427
1486
|
async getReceiverConsentNonce(receiver) {
|
|
1428
|
-
return
|
|
1487
|
+
return _chunkREUEMYWBcjs.getReceiverConsentNonce.call(void 0,
|
|
1429
1488
|
this.requireProvider(),
|
|
1430
1489
|
this.requirePointToken(),
|
|
1431
1490
|
receiver
|
|
@@ -1441,7 +1500,7 @@ var PafiSDK = class {
|
|
|
1441
1500
|
if (!account) {
|
|
1442
1501
|
throw new ConfigurationError("signer has no account attached");
|
|
1443
1502
|
}
|
|
1444
|
-
return
|
|
1503
|
+
return _chunk75JWR5SAcjs.createLoginMessage.call(void 0, { ...params, address: account.address, chainId });
|
|
1445
1504
|
}
|
|
1446
1505
|
/** Sign a login message string with the current signer (personal_sign) */
|
|
1447
1506
|
async signLoginMessage(message) {
|
|
@@ -1578,5 +1637,11 @@ var PafiSDK = class {
|
|
|
1578
1637
|
|
|
1579
1638
|
|
|
1580
1639
|
|
|
1581
|
-
|
|
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;
|
|
1582
1647
|
//# sourceMappingURL=index.cjs.map
|