@lumiapassport/ui-kit 1.15.7 → 1.15.8
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 +5 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -67
- 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.8</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.8";
|
|
4407
4407
|
var IframeWallet = class {
|
|
4408
4408
|
constructor() {
|
|
4409
4409
|
console.log("=".repeat(60));
|
package/dist/index.cjs
CHANGED
|
@@ -3856,15 +3856,6 @@ async function sendUserOperation(session, callTarget, amountWei, innerData = "0x
|
|
|
3856
3856
|
feeType
|
|
3857
3857
|
);
|
|
3858
3858
|
}
|
|
3859
|
-
const ensureGenerousDefaults = () => {
|
|
3860
|
-
const toHex2 = (v) => `0x${v.toString(16)}`;
|
|
3861
|
-
const minCallGas = 0x7a120n;
|
|
3862
|
-
const minVerificationGas = 0x989680n;
|
|
3863
|
-
const minPreVerificationGas = 0x30d40n;
|
|
3864
|
-
if (BigInt(userOp.callGasLimit || "0x0") < minCallGas) userOp.callGasLimit = toHex2(minCallGas);
|
|
3865
|
-
if (BigInt(userOp.verificationGasLimit || "0x0") < minVerificationGas) userOp.verificationGasLimit = toHex2(minVerificationGas);
|
|
3866
|
-
if (BigInt(userOp.preVerificationGas || "0x0") < minPreVerificationGas) userOp.preVerificationGas = toHex2(minPreVerificationGas);
|
|
3867
|
-
};
|
|
3868
3859
|
const enforceCaps = (usePaymaster) => {
|
|
3869
3860
|
try {
|
|
3870
3861
|
const envCaps = typeof import_meta !== "undefined" && import_meta.env || {};
|
|
@@ -3879,38 +3870,16 @@ async function sendUserOperation(session, callTarget, amountWei, innerData = "0x
|
|
|
3879
3870
|
} catch {
|
|
3880
3871
|
}
|
|
3881
3872
|
};
|
|
3882
|
-
let estimated = false;
|
|
3883
3873
|
try {
|
|
3884
3874
|
const gasEst = await (0, import_bundler.estimateUserOperationGas)(userOp);
|
|
3885
3875
|
console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
|
|
3886
3876
|
userOp.callGasLimit = gasEst.callGasLimit;
|
|
3887
3877
|
userOp.verificationGasLimit = gasEst.verificationGasLimit;
|
|
3888
3878
|
userOp.preVerificationGas = gasEst.preVerificationGas;
|
|
3889
|
-
ensureGenerousDefaults();
|
|
3890
3879
|
enforceCaps(session.usePaymaster);
|
|
3891
|
-
estimated = true;
|
|
3892
|
-
console.log("[Account] Gas after caps:", { callGasLimit: userOp.callGasLimit, verificationGasLimit: userOp.verificationGasLimit, preVerificationGas: userOp.preVerificationGas });
|
|
3893
3880
|
} 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 {
|
|
3881
|
+
console.log("[Account] Gas estimation failed:", e);
|
|
3882
|
+
throw new Error(`Gas estimation failed: ${e}`);
|
|
3914
3883
|
}
|
|
3915
3884
|
if (session.usePaymaster && LUMIA_PAYMASTER_ADDRESS) {
|
|
3916
3885
|
userOp.paymaster = LUMIA_PAYMASTER_ADDRESS;
|
|
@@ -4045,15 +4014,6 @@ async function prepareUserOperation(session, callTarget, amountWei, innerData =
|
|
|
4045
4014
|
feeType
|
|
4046
4015
|
);
|
|
4047
4016
|
}
|
|
4048
|
-
const ensureGenerousDefaults = () => {
|
|
4049
|
-
const toHex2 = (v) => `0x${v.toString(16)}`;
|
|
4050
|
-
const minCallGas = 0x7a120n;
|
|
4051
|
-
const minVerificationGas = 0x989680n;
|
|
4052
|
-
const minPreVerificationGas = 0x30d40n;
|
|
4053
|
-
if (BigInt(userOp.callGasLimit || "0x0") < minCallGas) userOp.callGasLimit = toHex2(minCallGas);
|
|
4054
|
-
if (BigInt(userOp.verificationGasLimit || "0x0") < minVerificationGas) userOp.verificationGasLimit = toHex2(minVerificationGas);
|
|
4055
|
-
if (BigInt(userOp.preVerificationGas || "0x0") < minPreVerificationGas) userOp.preVerificationGas = toHex2(minPreVerificationGas);
|
|
4056
|
-
};
|
|
4057
4017
|
const enforceCaps = (usePaymaster) => {
|
|
4058
4018
|
try {
|
|
4059
4019
|
const envCaps = typeof import_meta !== "undefined" && import_meta.env || {};
|
|
@@ -4068,38 +4028,16 @@ async function prepareUserOperation(session, callTarget, amountWei, innerData =
|
|
|
4068
4028
|
} catch {
|
|
4069
4029
|
}
|
|
4070
4030
|
};
|
|
4071
|
-
let estimated = false;
|
|
4072
4031
|
try {
|
|
4073
4032
|
const gasEst = await (0, import_bundler.estimateUserOperationGas)(userOp);
|
|
4074
4033
|
console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
|
|
4075
4034
|
userOp.callGasLimit = gasEst.callGasLimit;
|
|
4076
4035
|
userOp.verificationGasLimit = gasEst.verificationGasLimit;
|
|
4077
4036
|
userOp.preVerificationGas = gasEst.preVerificationGas;
|
|
4078
|
-
ensureGenerousDefaults();
|
|
4079
4037
|
enforceCaps(session.usePaymaster);
|
|
4080
|
-
estimated = true;
|
|
4081
|
-
console.log("[Account] Gas after caps:", { callGasLimit: userOp.callGasLimit, verificationGasLimit: userOp.verificationGasLimit, preVerificationGas: userOp.preVerificationGas });
|
|
4082
4038
|
} 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 {
|
|
4039
|
+
console.log("[Account] Gas estimation failed:", e);
|
|
4040
|
+
throw new Error(`Gas estimation failed: ${e}`);
|
|
4103
4041
|
}
|
|
4104
4042
|
if (session.usePaymaster && LUMIA_PAYMASTER_ADDRESS) {
|
|
4105
4043
|
userOp.paymaster = LUMIA_PAYMASTER_ADDRESS;
|
|
@@ -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.8",
|
|
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",
|