@lumiapassport/ui-kit 1.15.4 → 1.15.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/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +14 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -850,7 +850,7 @@ function defaultRpcUrl(network) {
|
|
|
850
850
|
return network === "prisma" ? "https://prisma-rpc.lumia.org" : "https://beam-rpc.lumia.org";
|
|
851
851
|
}
|
|
852
852
|
function defaultExplorerUrl(network) {
|
|
853
|
-
return network === "prisma" ? "https://explorer.lumia.org
|
|
853
|
+
return network === "prisma" ? "https://explorer.lumia.org" : "https://beam-explorer.lumia.org";
|
|
854
854
|
}
|
|
855
855
|
function getExplorerUrl() {
|
|
856
856
|
const paramUrl = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("explorerUrl") || void 0 : void 0;
|
|
@@ -3893,7 +3893,7 @@ async function sendUserOperation(session, callTarget, amountWei, innerData = "0x
|
|
|
3893
3893
|
};
|
|
3894
3894
|
let estimated = false;
|
|
3895
3895
|
try {
|
|
3896
|
-
const gasEst = await estimateUserOperationGas(
|
|
3896
|
+
const gasEst = await estimateUserOperationGas(userOp);
|
|
3897
3897
|
console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
|
|
3898
3898
|
userOp.callGasLimit = gasEst.callGasLimit;
|
|
3899
3899
|
userOp.verificationGasLimit = gasEst.verificationGasLimit;
|
|
@@ -4082,7 +4082,7 @@ async function prepareUserOperation(session, callTarget, amountWei, innerData =
|
|
|
4082
4082
|
};
|
|
4083
4083
|
let estimated = false;
|
|
4084
4084
|
try {
|
|
4085
|
-
const gasEst = await estimateUserOperationGas(
|
|
4085
|
+
const gasEst = await estimateUserOperationGas(userOp);
|
|
4086
4086
|
console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
|
|
4087
4087
|
userOp.callGasLimit = gasEst.callGasLimit;
|
|
4088
4088
|
userOp.verificationGasLimit = gasEst.verificationGasLimit;
|
|
@@ -5563,7 +5563,7 @@ function Header() {
|
|
|
5563
5563
|
// package.json
|
|
5564
5564
|
var package_default = {
|
|
5565
5565
|
name: "@lumiapassport/ui-kit",
|
|
5566
|
-
version: "1.15.
|
|
5566
|
+
version: "1.15.6",
|
|
5567
5567
|
description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
|
|
5568
5568
|
type: "module",
|
|
5569
5569
|
main: "./dist/index.cjs",
|
|
@@ -13615,6 +13615,10 @@ async function getTransactionsListQuery(address) {
|
|
|
13615
13615
|
});
|
|
13616
13616
|
});
|
|
13617
13617
|
tokenTransfersData.forEach((transfer, index) => {
|
|
13618
|
+
const txHash = transfer.tx_hash || transfer.transaction_hash;
|
|
13619
|
+
if (!txHash) {
|
|
13620
|
+
return;
|
|
13621
|
+
}
|
|
13618
13622
|
const rawValue = transfer.total?.value ?? transfer.value ?? "0";
|
|
13619
13623
|
const amount = toBigInt(rawValue);
|
|
13620
13624
|
if (amount === 0n) {
|
|
@@ -13635,10 +13639,10 @@ async function getTransactionsListQuery(address) {
|
|
|
13635
13639
|
const decimals = typeof decimalsRaw === "string" ? parseInt(decimalsRaw, 10) : typeof decimalsRaw === "number" ? decimalsRaw : 18;
|
|
13636
13640
|
const assetSymbol = transfer.token?.symbol || "Token";
|
|
13637
13641
|
const tokenItem = {
|
|
13638
|
-
id: `token-${
|
|
13642
|
+
id: `token-${txHash}-${index}`,
|
|
13639
13643
|
kind: "token",
|
|
13640
|
-
hash:
|
|
13641
|
-
parentHash:
|
|
13644
|
+
hash: txHash,
|
|
13645
|
+
parentHash: txHash,
|
|
13642
13646
|
direction,
|
|
13643
13647
|
counterparty,
|
|
13644
13648
|
counterpartyName: null,
|
|
@@ -13718,6 +13722,9 @@ var formatValue2 = (value, decimals = 18) => {
|
|
|
13718
13722
|
return `${whole.toString()}.${trimmed}`;
|
|
13719
13723
|
};
|
|
13720
13724
|
var openInExplorer2 = (txHash) => {
|
|
13725
|
+
if (!txHash) {
|
|
13726
|
+
return;
|
|
13727
|
+
}
|
|
13721
13728
|
const explorerUrl = getExplorerUrl();
|
|
13722
13729
|
window.open(`${explorerUrl}/tx/${txHash}`, "_blank");
|
|
13723
13730
|
};
|