@pafi-dev/issuer 0.7.4 → 0.7.6
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 +10 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1913,7 +1913,8 @@ async function requestPaymaster(params) {
|
|
|
1913
1913
|
contract: params.pointTokenAddress,
|
|
1914
1914
|
function: fn,
|
|
1915
1915
|
pointToken: params.pointTokenAddress
|
|
1916
|
-
}
|
|
1916
|
+
},
|
|
1917
|
+
...params.eip7702Auth ? { eip7702Auth: params.eip7702Auth } : {}
|
|
1917
1918
|
});
|
|
1918
1919
|
} catch (err) {
|
|
1919
1920
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -2342,12 +2343,19 @@ async function handleDelegateSubmit(params) {
|
|
|
2342
2343
|
maxFeePerGas: params.fees.maxFeePerGas ?? 0n,
|
|
2343
2344
|
maxPriorityFeePerGas: params.fees.maxPriorityFeePerGas ?? 0n
|
|
2344
2345
|
};
|
|
2346
|
+
const authorization = (0, import_core13.buildEip7702Authorization)({
|
|
2347
|
+
chainId: params.chainId,
|
|
2348
|
+
address: batchExecutor,
|
|
2349
|
+
nonce: params.delegationNonce,
|
|
2350
|
+
authSig: params.authSig
|
|
2351
|
+
});
|
|
2345
2352
|
const paymasterFields = await requestPaymaster({
|
|
2346
2353
|
client: params.pafiBackendClient,
|
|
2347
2354
|
chainId: params.chainId,
|
|
2348
2355
|
scenario: "delegate",
|
|
2349
2356
|
userOp,
|
|
2350
2357
|
pointTokenAddress: batchExecutor,
|
|
2358
|
+
eip7702Auth: authorization,
|
|
2351
2359
|
onWarning: params.onWarning
|
|
2352
2360
|
});
|
|
2353
2361
|
const merged = {
|
|
@@ -2373,12 +2381,6 @@ async function handleDelegateSubmit(params) {
|
|
|
2373
2381
|
// is the user's "consent"; no separate AA signature is needed.
|
|
2374
2382
|
"0x"
|
|
2375
2383
|
);
|
|
2376
|
-
const authorization = (0, import_core13.buildEip7702Authorization)({
|
|
2377
|
-
chainId: params.chainId,
|
|
2378
|
-
address: batchExecutor,
|
|
2379
|
-
nonce: params.delegationNonce,
|
|
2380
|
-
authSig: params.authSig
|
|
2381
|
-
});
|
|
2382
2384
|
const result = await relayUserOp({
|
|
2383
2385
|
client: params.pafiBackendClient,
|
|
2384
2386
|
userOp: userOpJson,
|
|
@@ -3659,7 +3661,7 @@ var IssuerStateValidator = class _IssuerStateValidator {
|
|
|
3659
3661
|
};
|
|
3660
3662
|
|
|
3661
3663
|
// src/index.ts
|
|
3662
|
-
var PAFI_ISSUER_SDK_VERSION = true ? "0.7.
|
|
3664
|
+
var PAFI_ISSUER_SDK_VERSION = true ? "0.7.6" : "dev";
|
|
3663
3665
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3664
3666
|
0 && (module.exports = {
|
|
3665
3667
|
AdapterMisconfiguredError,
|