diff --git a/dev-dist/sw.js b/dev-dist/sw.js
index e5fc8bd..4e17852 100644
--- a/dev-dist/sw.js
+++ b/dev-dist/sw.js
@@ -82,7 +82,7 @@ define(['./workbox-b5f7729d'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "index.html",
- "revision": "0.6b12fkst04g"
+ "revision": "0.tf8v4fmkk8g"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
diff --git a/src/components/Doughnut/LineChart.jsx b/src/components/Doughnut/LineChart.jsx
index 1299ba1..19b5bad 100644
--- a/src/components/Doughnut/LineChart.jsx
+++ b/src/components/Doughnut/LineChart.jsx
@@ -180,7 +180,7 @@ const LineChart = () => {
// max: maxYValue, // Dynamically set max value
beginAtZero: true,
ticks: {
- callback: (value) => value / 1000 + "k",
+ callback: (value) => value ,
},
grid: {
border: false,
diff --git a/src/components/LatestTransactions/LatestTransactions.jsx b/src/components/LatestTransactions/LatestTransactions.jsx
index 59d8821..3f4f548 100644
--- a/src/components/LatestTransactions/LatestTransactions.jsx
+++ b/src/components/LatestTransactions/LatestTransactions.jsx
@@ -241,6 +241,14 @@ const LatestTransactions = () => {
amount,
transactionType,
subNetworkId,
+
+
+
+ executor,
+ deployer,
+ creator,
+ pledgeAmount,
+ scTokenHash
},
index
) => (
@@ -300,7 +308,7 @@ const LatestTransactions = () => {
- {
copyToClipboard(sender)} />
-
- }
+ {receiver&& {
/>
-
+ }
+
+
+
+ {creator&&
+
+ Creator:
+
+
+ navigate(`/did-info/${creator}`)}
+ >
+ {creator}
+
+
+ copyToClipboard(creator)}
+ />
+
+
+ }
+
+ {executor&&
+
+ Executor:
+
+
+ navigate(`/did-info/${executor}`)}
+ >
+ {executor}
+
+
+ copyToClipboard(executor)}
+ />
+
+
+ }
+
+
+ {deployer&&
+
+ Deployer:
+
+
+ navigate(`/did-info/${deployer}`)}
+ >
+ {deployer}
+
+
+ copyToClipboard(deployer)}
+ />
+
+
+ }
+
+
+
+
- {smartContract && (
+ {scTokenHash && (
{
- {smartContract}
+ {scTokenHash}
)}
+
{
{formatUTCToDDMMYYHHMMSS(timestamp)}
-
+
+
+
+ {amount&&
{
{amount}
-
+ }
+
+
+ {pledgeAmount&&
+
+ Pledge Amount:
+
+
+
+ {pledgeAmount}
+
+ }
+
+
),
});
+ setIsCopy(true)
})
.catch((err) => {
console.error("Failed to copy text: ", err);
@@ -110,6 +111,7 @@ const toast = useToast()
),
});
+ setIsCopy(true)
} catch (err) {
console.error("Fallback: Failed to copy text: ", err);
}
diff --git a/src/pages/SubnetIdOverview.jsx b/src/pages/SubnetIdOverview.jsx
index 1243470..1856e62 100644
--- a/src/pages/SubnetIdOverview.jsx
+++ b/src/pages/SubnetIdOverview.jsx
@@ -110,7 +110,7 @@ const SubnetInner = () => {
Subnet ID - {params?.id}
- Total Value Locked (TVL) {data?.data?.tvl} RBT
+ Total Value Locked (TVL) {Number(data?.data?.tvl).toFixed(3)} RBT
{/*
View total number of records
diff --git a/src/pages/Transaction/TransactionDetails.jsx b/src/pages/Transaction/TransactionDetails.jsx
index 97cf604..61c263b 100644
--- a/src/pages/Transaction/TransactionDetails.jsx
+++ b/src/pages/Transaction/TransactionDetails.jsx
@@ -1,5 +1,6 @@
import {
Box,
+ Button,
Container,
Divider,
Heading,
@@ -94,6 +95,12 @@ const TransactionDetails = () => {
),
}));
+
+ console.log(data?.data?.blockNumber );
+
+ const fullUrl = window.location.href;
+console.log(fullUrl);
+
return (
<>
{
pb={"5rem"}
>
+
- Transaction Info
+ {data?.data?.transactionType === "SC" ? "Smart Contract Info":"Transaction Info"}
+
+
{
Transaction ID
-
+
{
cursor={"pointer"}
>
copyToClipboard(filteredData.sender)}
+ onClick={() => copyToClipboard(data?.data?.transactionId)}
/>
+
+
- {data?.data["tokenList"] && data?.data?.blockHash && (
+
{
>
Token Information
- )}
- {data?.data?.tokenList && (
+
+ {data?.data?.scTokenHash && (
{
display={{ base: "block", md: "flex" }}
>
- Token ID :
+ Token Hash :
{
isTruncated
cursor={"pointer"}
>
- {data?.data?.tokenList["0"].tokenId}
+ {data?.data?.scTokenHash}
{
>
- copyToClipboard(data?.data?.tokenList["0"].tokenId)
+ copyToClipboard(data?.data?.scTokenHash)
}
/>
@@ -239,6 +252,48 @@ const TransactionDetails = () => {
)}
+
+ {data?.data?.transactionType === "SC" &&(
+
+
+ Block number:
+
+
+
+ {data?.data?.blockNumber}
+ {/* hello */}
+
+
+
+ copyToClipboard(data?.data?.blockNumber)
+ }
+ />
+
+
+
+ )}
{
mb={extractedArray && 5}
rounded={6}
>
- {data?.data?.netWorkType && (
+ {/* {data?.data?.netWorkType && (
<>
{
>
- )}
+ )} */}
{data?.data?.sender && (
<>
{
>
)}
+
+
+
+
+{data?.data?.creator&&
+
+ Creator:
+
+
+ navigate(`/did-info/${data?.data?.creator}`)}
+ >
+ {data?.data?.creator}
+
+
+ copyToClipboard(data?.data?.creator)}
+ />
+
+
+ }
+
+ {data?.data?.executor&&
+
+ Executor:
+
+
+ navigate(`/did-info/${data?.data?.executor}`)}
+ >
+ {data?.data?.executor}
+
+
+ copyToClipboard(data?.data?.executor)}
+ />
+
+
+ }
+
+
+ {data?.data?.deployer&&
+
+ Deployer:
+
+
+ navigate(`/did-info/${data?.data?.deployer}`)}
+ >
+ {data?.data?.deployer}
+
+
+ copyToClipboard(data?.data?.deployer)}
+ />
+
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
)}
+
+{data?.data?.pledgeAmount&&
+
+ Pledge Amount:
+
+
+
+ {data?.data?.pledgeAmount}
+
+ }
{data?.data?.timestamp && (
Timestamp