@pafi-dev/issuer 0.5.29 → 0.5.30
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/index.cjs +22 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2321,7 +2321,28 @@ function createIssuerService(config) {
|
|
|
2321
2321
|
|
|
2322
2322
|
// src/userop-store/serialize.ts
|
|
2323
2323
|
var import_core9 = require("@pafi-dev/core");
|
|
2324
|
-
function serializeEntryToJsonRpc(entry, signature) {
|
|
2324
|
+
function serializeEntryToJsonRpc(entry, signature, variant = "sponsored") {
|
|
2325
|
+
if (variant === "fallback") {
|
|
2326
|
+
if (!entry.fallback) {
|
|
2327
|
+
throw new Error(
|
|
2328
|
+
"serializeEntryToJsonRpc: variant=fallback requested but the stored entry has no `fallback` branch \u2014 caller should resubmit with variant='sponsored' or re-prepare with a fee configured."
|
|
2329
|
+
);
|
|
2330
|
+
}
|
|
2331
|
+
return (0, import_core9.serializeUserOpToJsonRpc)(
|
|
2332
|
+
{
|
|
2333
|
+
sender: entry.sender,
|
|
2334
|
+
nonce: BigInt(entry.nonce),
|
|
2335
|
+
callData: entry.fallback.callData,
|
|
2336
|
+
callGasLimit: BigInt(entry.fallback.callGasLimit),
|
|
2337
|
+
verificationGasLimit: BigInt(entry.fallback.verificationGasLimit),
|
|
2338
|
+
preVerificationGas: BigInt(entry.fallback.preVerificationGas),
|
|
2339
|
+
maxFeePerGas: BigInt(entry.maxFeePerGas),
|
|
2340
|
+
maxPriorityFeePerGas: BigInt(entry.maxPriorityFeePerGas)
|
|
2341
|
+
// intentionally no paymaster — user pays ETH gas
|
|
2342
|
+
},
|
|
2343
|
+
signature
|
|
2344
|
+
);
|
|
2345
|
+
}
|
|
2325
2346
|
return (0, import_core9.serializeUserOpToJsonRpc)(
|
|
2326
2347
|
{
|
|
2327
2348
|
sender: entry.sender,
|