@lumiapassport/ui-kit 1.15.4 → 1.15.5
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 +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- 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;
|
|
@@ -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
|
};
|