@pafi-dev/issuer 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.
- package/dist/index.cjs +16 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -32
- package/dist/index.d.ts +12 -32
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2344,14 +2344,22 @@ var DEFAULT_DELEGATE_GAS = {
|
|
|
2344
2344
|
};
|
|
2345
2345
|
async function handleDelegateSubmit(params) {
|
|
2346
2346
|
const { batchExecutor } = (0, import_core10.getContractAddresses)(params.chainId);
|
|
2347
|
-
const
|
|
2347
|
+
const partial = (0, import_core10.buildDelegationUserOp)({
|
|
2348
|
+
userAddress: params.userAddress,
|
|
2349
|
+
aaNonce: params.aaNonce,
|
|
2350
|
+
gasLimits: {
|
|
2351
|
+
callGasLimit: params.gasLimits?.callGasLimit ?? DEFAULT_DELEGATE_GAS.callGasLimit,
|
|
2352
|
+
verificationGasLimit: params.gasLimits?.verificationGasLimit ?? DEFAULT_DELEGATE_GAS.verificationGasLimit,
|
|
2353
|
+
preVerificationGas: params.gasLimits?.preVerificationGas ?? DEFAULT_DELEGATE_GAS.preVerificationGas
|
|
2354
|
+
}
|
|
2355
|
+
});
|
|
2348
2356
|
const userOp = {
|
|
2349
|
-
sender:
|
|
2350
|
-
nonce:
|
|
2351
|
-
callData,
|
|
2352
|
-
callGasLimit:
|
|
2353
|
-
verificationGasLimit:
|
|
2354
|
-
preVerificationGas:
|
|
2357
|
+
sender: partial.sender,
|
|
2358
|
+
nonce: partial.nonce,
|
|
2359
|
+
callData: partial.callData,
|
|
2360
|
+
callGasLimit: partial.callGasLimit,
|
|
2361
|
+
verificationGasLimit: partial.verificationGasLimit,
|
|
2362
|
+
preVerificationGas: partial.preVerificationGas,
|
|
2355
2363
|
maxFeePerGas: params.fees.maxFeePerGas ?? 0n,
|
|
2356
2364
|
maxPriorityFeePerGas: params.fees.maxPriorityFeePerGas ?? 0n
|
|
2357
2365
|
};
|
|
@@ -2772,11 +2780,6 @@ var IssuerApiAdapter = class {
|
|
|
2772
2780
|
/**
|
|
2773
2781
|
* Build + sign a SponsorAuth payload. Returns `undefined` when no
|
|
2774
2782
|
* issuer id is configured, so the controller can skip the field.
|
|
2775
|
-
*
|
|
2776
|
-
* v0.7.1 — `scenario` typed as `SponsorshipScenario` (was `string`).
|
|
2777
|
-
* Previously a typo (`"perp_deposit"` vs `"perp-deposit"`) compiled
|
|
2778
|
-
* fine but rejected at L1 by sponsor-relayer's IntentValidator. See
|
|
2779
|
-
* SDK_ISSUER_AUDIT.md N5.
|
|
2780
2783
|
*/
|
|
2781
2784
|
async buildSponsorAuth(authenticatedAddress, callData, chainId, scenario) {
|
|
2782
2785
|
if (!this.cfg.pafiIssuerId) return void 0;
|
|
@@ -3677,7 +3680,7 @@ var IssuerStateValidator = class _IssuerStateValidator {
|
|
|
3677
3680
|
};
|
|
3678
3681
|
|
|
3679
3682
|
// src/index.ts
|
|
3680
|
-
var PAFI_ISSUER_SDK_VERSION = true ? "0.7.
|
|
3683
|
+
var PAFI_ISSUER_SDK_VERSION = true ? "0.7.3" : "dev";
|
|
3681
3684
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3682
3685
|
0 && (module.exports = {
|
|
3683
3686
|
AdapterMisconfiguredError,
|