@lumiapassport/ui-kit 1.15.7 → 1.15.9
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/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +17 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -79
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/iframe/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<meta http-equiv="X-Content-Type-Options" content="nosniff" />
|
|
16
16
|
<meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
|
|
17
17
|
|
|
18
|
-
<title>Lumia Passport Secure Wallet - iframe version 1.15.
|
|
18
|
+
<title>Lumia Passport Secure Wallet - iframe version 1.15.9</title>
|
|
19
19
|
|
|
20
20
|
<!-- Styles will be injected by build process -->
|
|
21
21
|
<style>
|
package/dist/iframe/main.js
CHANGED
|
@@ -4403,7 +4403,7 @@ var SigningManager = class extends TokenRefreshApiClient {
|
|
|
4403
4403
|
};
|
|
4404
4404
|
|
|
4405
4405
|
// src/iframe/main.ts
|
|
4406
|
-
var IFRAME_VERSION = "1.15.
|
|
4406
|
+
var IFRAME_VERSION = "1.15.9";
|
|
4407
4407
|
var IframeWallet = class {
|
|
4408
4408
|
constructor() {
|
|
4409
4409
|
console.log("=".repeat(60));
|
package/dist/index.cjs
CHANGED
|
@@ -3856,15 +3856,12 @@ async function sendUserOperation(session, callTarget, amountWei, innerData = "0x
|
|
|
3856
3856
|
feeType
|
|
3857
3857
|
);
|
|
3858
3858
|
}
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
if (BigInt(userOp.verificationGasLimit || "0x0") < minVerificationGas) userOp.verificationGasLimit = toHex2(minVerificationGas);
|
|
3866
|
-
if (BigInt(userOp.preVerificationGas || "0x0") < minPreVerificationGas) userOp.preVerificationGas = toHex2(minPreVerificationGas);
|
|
3867
|
-
};
|
|
3859
|
+
if (session.usePaymaster && LUMIA_PAYMASTER_ADDRESS) {
|
|
3860
|
+
userOp.paymaster = LUMIA_PAYMASTER_ADDRESS;
|
|
3861
|
+
userOp.paymasterData = "0x";
|
|
3862
|
+
userOp.paymasterVerificationGasLimit = PAYMASTER_VERIFICATION_GAS_LIMIT;
|
|
3863
|
+
userOp.paymasterPostOpGasLimit = PAYMASTER_POSTOP_GAS_LIMIT;
|
|
3864
|
+
}
|
|
3868
3865
|
const enforceCaps = (usePaymaster) => {
|
|
3869
3866
|
try {
|
|
3870
3867
|
const envCaps = typeof import_meta !== "undefined" && import_meta.env || {};
|
|
@@ -3879,44 +3876,16 @@ async function sendUserOperation(session, callTarget, amountWei, innerData = "0x
|
|
|
3879
3876
|
} catch {
|
|
3880
3877
|
}
|
|
3881
3878
|
};
|
|
3882
|
-
let estimated = false;
|
|
3883
3879
|
try {
|
|
3884
3880
|
const gasEst = await (0, import_bundler.estimateUserOperationGas)(userOp);
|
|
3885
3881
|
console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
|
|
3886
3882
|
userOp.callGasLimit = gasEst.callGasLimit;
|
|
3887
3883
|
userOp.verificationGasLimit = gasEst.verificationGasLimit;
|
|
3888
3884
|
userOp.preVerificationGas = gasEst.preVerificationGas;
|
|
3889
|
-
ensureGenerousDefaults();
|
|
3890
3885
|
enforceCaps(session.usePaymaster);
|
|
3891
|
-
estimated = true;
|
|
3892
|
-
console.log("[Account] Gas after caps:", { callGasLimit: userOp.callGasLimit, verificationGasLimit: userOp.verificationGasLimit, preVerificationGas: userOp.preVerificationGas });
|
|
3893
3886
|
} catch (e) {
|
|
3894
|
-
console.log("[Account] Gas estimation failed
|
|
3895
|
-
|
|
3896
|
-
enforceCaps(session.usePaymaster);
|
|
3897
|
-
console.log("[Account] Gas after defaults:", { callGasLimit: userOp.callGasLimit, verificationGasLimit: userOp.verificationGasLimit, preVerificationGas: userOp.preVerificationGas });
|
|
3898
|
-
}
|
|
3899
|
-
try {
|
|
3900
|
-
const toHex2 = (v) => `0x${v.toString(16)}`;
|
|
3901
|
-
const isContractCall = !!userOp.callData && userOp.callData !== "0x";
|
|
3902
|
-
if (isContractCall) {
|
|
3903
|
-
const currentVer = BigInt(userOp.verificationGasLimit || "0x0");
|
|
3904
|
-
const call = BigInt(userOp.callGasLimit || "0x0");
|
|
3905
|
-
const postOp = 150000n;
|
|
3906
|
-
const safety10k = 10000n;
|
|
3907
|
-
let buffer = call + postOp + safety10k;
|
|
3908
|
-
buffer += buffer / 63n;
|
|
3909
|
-
const newVer = currentVer + buffer;
|
|
3910
|
-
userOp.verificationGasLimit = toHex2(newVer);
|
|
3911
|
-
enforceCaps(session.usePaymaster);
|
|
3912
|
-
}
|
|
3913
|
-
} catch {
|
|
3914
|
-
}
|
|
3915
|
-
if (session.usePaymaster && LUMIA_PAYMASTER_ADDRESS) {
|
|
3916
|
-
userOp.paymaster = LUMIA_PAYMASTER_ADDRESS;
|
|
3917
|
-
userOp.paymasterData = "0x";
|
|
3918
|
-
userOp.paymasterVerificationGasLimit = PAYMASTER_VERIFICATION_GAS_LIMIT;
|
|
3919
|
-
userOp.paymasterPostOpGasLimit = PAYMASTER_POSTOP_GAS_LIMIT;
|
|
3887
|
+
console.log("[Account] Gas estimation failed:", e);
|
|
3888
|
+
throw new Error(`Gas estimation failed: ${e}`);
|
|
3920
3889
|
}
|
|
3921
3890
|
const signUserOp = async (nonce2) => {
|
|
3922
3891
|
userOp.nonce = nonce2;
|
|
@@ -4045,15 +4014,12 @@ async function prepareUserOperation(session, callTarget, amountWei, innerData =
|
|
|
4045
4014
|
feeType
|
|
4046
4015
|
);
|
|
4047
4016
|
}
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
if (BigInt(userOp.verificationGasLimit || "0x0") < minVerificationGas) userOp.verificationGasLimit = toHex2(minVerificationGas);
|
|
4055
|
-
if (BigInt(userOp.preVerificationGas || "0x0") < minPreVerificationGas) userOp.preVerificationGas = toHex2(minPreVerificationGas);
|
|
4056
|
-
};
|
|
4017
|
+
if (session.usePaymaster && LUMIA_PAYMASTER_ADDRESS) {
|
|
4018
|
+
userOp.paymaster = LUMIA_PAYMASTER_ADDRESS;
|
|
4019
|
+
userOp.paymasterData = "0x";
|
|
4020
|
+
userOp.paymasterVerificationGasLimit = PAYMASTER_VERIFICATION_GAS_LIMIT;
|
|
4021
|
+
userOp.paymasterPostOpGasLimit = PAYMASTER_POSTOP_GAS_LIMIT;
|
|
4022
|
+
}
|
|
4057
4023
|
const enforceCaps = (usePaymaster) => {
|
|
4058
4024
|
try {
|
|
4059
4025
|
const envCaps = typeof import_meta !== "undefined" && import_meta.env || {};
|
|
@@ -4068,44 +4034,16 @@ async function prepareUserOperation(session, callTarget, amountWei, innerData =
|
|
|
4068
4034
|
} catch {
|
|
4069
4035
|
}
|
|
4070
4036
|
};
|
|
4071
|
-
let estimated = false;
|
|
4072
4037
|
try {
|
|
4073
4038
|
const gasEst = await (0, import_bundler.estimateUserOperationGas)(userOp);
|
|
4074
4039
|
console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
|
|
4075
4040
|
userOp.callGasLimit = gasEst.callGasLimit;
|
|
4076
4041
|
userOp.verificationGasLimit = gasEst.verificationGasLimit;
|
|
4077
4042
|
userOp.preVerificationGas = gasEst.preVerificationGas;
|
|
4078
|
-
ensureGenerousDefaults();
|
|
4079
4043
|
enforceCaps(session.usePaymaster);
|
|
4080
|
-
estimated = true;
|
|
4081
|
-
console.log("[Account] Gas after caps:", { callGasLimit: userOp.callGasLimit, verificationGasLimit: userOp.verificationGasLimit, preVerificationGas: userOp.preVerificationGas });
|
|
4082
4044
|
} catch (e) {
|
|
4083
|
-
console.log("[Account] Gas estimation failed
|
|
4084
|
-
|
|
4085
|
-
enforceCaps(session.usePaymaster);
|
|
4086
|
-
console.log("[Account] Gas after defaults:", { callGasLimit: userOp.callGasLimit, verificationGasLimit: userOp.verificationGasLimit, preVerificationGas: userOp.preVerificationGas });
|
|
4087
|
-
}
|
|
4088
|
-
try {
|
|
4089
|
-
const toHex2 = (v) => `0x${v.toString(16)}`;
|
|
4090
|
-
const isContractCall = !!userOp.callData && userOp.callData !== "0x";
|
|
4091
|
-
if (isContractCall) {
|
|
4092
|
-
const currentVer = BigInt(userOp.verificationGasLimit || "0x0");
|
|
4093
|
-
const call = BigInt(userOp.callGasLimit || "0x0");
|
|
4094
|
-
const postOp = 150000n;
|
|
4095
|
-
const safety10k = 10000n;
|
|
4096
|
-
let buffer = call + postOp + safety10k;
|
|
4097
|
-
buffer += buffer / 63n;
|
|
4098
|
-
const newVer = currentVer + buffer;
|
|
4099
|
-
userOp.verificationGasLimit = toHex2(newVer);
|
|
4100
|
-
enforceCaps(session.usePaymaster);
|
|
4101
|
-
}
|
|
4102
|
-
} catch {
|
|
4103
|
-
}
|
|
4104
|
-
if (session.usePaymaster && LUMIA_PAYMASTER_ADDRESS) {
|
|
4105
|
-
userOp.paymaster = LUMIA_PAYMASTER_ADDRESS;
|
|
4106
|
-
userOp.paymasterData = "0x";
|
|
4107
|
-
userOp.paymasterVerificationGasLimit = PAYMASTER_VERIFICATION_GAS_LIMIT;
|
|
4108
|
-
userOp.paymasterPostOpGasLimit = PAYMASTER_POSTOP_GAS_LIMIT;
|
|
4045
|
+
console.log("[Account] Gas estimation failed:", e);
|
|
4046
|
+
throw new Error(`Gas estimation failed: ${e}`);
|
|
4109
4047
|
}
|
|
4110
4048
|
userOp.nonce = nonce;
|
|
4111
4049
|
let opHash;
|
|
@@ -5615,7 +5553,7 @@ function Header() {
|
|
|
5615
5553
|
// package.json
|
|
5616
5554
|
var package_default = {
|
|
5617
5555
|
name: "@lumiapassport/ui-kit",
|
|
5618
|
-
version: "1.15.
|
|
5556
|
+
version: "1.15.9",
|
|
5619
5557
|
description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
|
|
5620
5558
|
type: "module",
|
|
5621
5559
|
main: "./dist/index.cjs",
|