diff --git a/dev-dist/sw.js b/dev-dist/sw.js
index be66ecc..b9a6377 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.g2sg6ddrvtg"
+ "revision": "0.clcjjkrum98"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
diff --git a/src/components/AmountCard/AmountCard.jsx b/src/components/AmountCard/AmountCard.jsx
index db3e511..4dbb3cf 100644
--- a/src/components/AmountCard/AmountCard.jsx
+++ b/src/components/AmountCard/AmountCard.jsx
@@ -50,6 +50,12 @@ const AmountCard = () => {
value: kpDetails?.data?.didCount,
icon: ,
},
+ {
+ label: "Total Supply",
+ value: kpDetails?.data?.totalSupply,
+ icon: ,
+ display: { base: "block", md: "none" }, // Hidden on small, shown on medium and up
+ },
];
const statsDataFour = [
@@ -57,6 +63,7 @@ const AmountCard = () => {
label: "Total Supply",
value: kpDetails?.data?.totalSupply,
icon: ,
+ display: { base: "none", md: "block" }, // Hidden on small, shown on medium and up
},
{
label: "Circulating Supply",
@@ -75,129 +82,122 @@ const AmountCard = () => {
},
];
-
-
-
-
-
-
-
-
-
-
-
return (
{statsData.map((item, index) => (
-
-
-
- {item.label}
-
-
- {item.value}
-
-
-
+
- {item.icon}
-
-
+
+
+ {item.label}
+
+
+ {item.value}
+
+
+
+ {item.icon}
+
+
+
))}
{statsDataFour.map((item, index) => (
-
-
-
- {item.label}
-
-
- {item.value}
-
-
-
+
- {item.icon}
-
-
+
+
+ {item.label}
+
+
+ {item.value}
+
+
+
+ {item.icon}
+
+
+
))}
diff --git a/src/components/Doughnut/LineChart.jsx b/src/components/Doughnut/LineChart.jsx
index 394937a..efcb232 100644
--- a/src/components/Doughnut/LineChart.jsx
+++ b/src/components/Doughnut/LineChart.jsx
@@ -244,7 +244,7 @@ const LineChart = () => {
mt={{ base: 2, md: 0 }}
fontSize={{ base: "sm", md: "md" }}
fontWeight={500}
- mb={{ base: "0px", md: "0px" }}
+ mb={{ base: "5px", md: "0px" }}
px={{ base: "8px", md: "0px" }}
>
Transaction History
diff --git a/src/pages/MainNet.jsx b/src/pages/MainNet.jsx
index 46d8ed1..be42f2d 100644
--- a/src/pages/MainNet.jsx
+++ b/src/pages/MainNet.jsx
@@ -144,14 +144,9 @@ const MainNet = () => {
>
Main Net - Overview
- {/*
- View total number of records
-
- */}
+
+ Total Value Locked (TVL) {mainNetData?.data?.tvl} RBT
+
@@ -184,11 +179,10 @@ const MainNet = () => {
>
Last refresh {relativeRefreshTime}
{
const { subnetId } = useContext(GlobalStateContext);
@@ -83,6 +85,10 @@ const SubnetId = () => {
navigate(`/subnet-id-overview/${item?.networkId}`)}>
{item?.networkId}
+
+ Tvl {item?.tvl} (RBT)
+ Count{item?.transctionsCount}
+
),
"Network Name": item?.networkName,
diff --git a/src/pages/SubnetIdOverview.jsx b/src/pages/SubnetIdOverview.jsx
index a2a19ff..e6fc31a 100644
--- a/src/pages/SubnetIdOverview.jsx
+++ b/src/pages/SubnetIdOverview.jsx
@@ -19,8 +19,6 @@ const SubnetInner = () => {
const navigate = useNavigate()
const params = useParams()
-
-
const [isRotating, setIsRotating] = useState(false);
const [currentPage, setCurrentPage] = useState(1); // Tracks the current page
const [pageSize, setPageSize] = useState(10); // Number of items per page
@@ -50,7 +48,6 @@ const SubnetInner = () => {
});
}
-
const {
data,
isLoading,
@@ -61,13 +58,10 @@ const SubnetInner = () => {
pageSize: pageSize,
})
-
useEffect(() => {
setTotalItems(data?.data?.totalCount);
}, [data]);
-
-
const handleRefreshClick = () => {
setIsRotating(true); // Start rotation
refetch();
@@ -78,8 +72,6 @@ const SubnetInner = () => {
setRelativeRefreshTime("Just now"); // Reset relative time to "Just now"
};
-
-
useEffect(() => {
// Update relative time every minute
const intervalId = setInterval(() => {
@@ -104,7 +96,6 @@ const SubnetInner = () => {
};
-
return (
{
Subnet ID - {params?.id}
+
+ Total Value Locked (TVL) {data?.data?.tvl} RBT
+
{/*
View total number of records
-
+
{data?.data?.transactionId}
@@ -140,206 +135,221 @@ const TransactionDetails = () => {
- {data?.data?.tokenList || data?.data?.blockHash&&
- Token Information
- }
- {data?.data?.tokenList &&
-
-
- Token ID :
-
-
-
- {data?.data?.tokenList}
-
-
- copyToClipboard(data?.data?.tokenList)}
- />
-
-
- }
- {data?.data?.blockHash &&
-
- Block ID :
-
+ {data?.data["tokenList"] && data?.data?.blockHash && (
- {data?.data?.blockHash}
-
- copyToClipboard(data?.data?.blockHash)}
- />
-
+ Token Information
- }
+ )}
+ {data?.data?.tokenList && (
+
+
+ Token ID :
+
+
+
+ {data?.data?.tokenList["0"].tokenId}
+
+
+
+ copyToClipboard(data?.data?.tokenList["0"].tokenId)
+ }
+ />
+
+
+
+ )}
+ {data?.data?.blockHash && (
+
+
+ Block ID :
+
+
+
+ {data?.data?.blockHash}
+
+
+ copyToClipboard(data?.data?.blockHash)}
+ />
+
+
+
+ )}
-
-
-
- {data?.data?.netWorkType && <>
-
- {data?.data?.netWorkType}
-
-
+ {data?.data?.netWorkType && (
+ <>
- {data?.data?.subNetworkId}
+ {data?.data?.netWorkType}
+
+
+ {data?.data?.subNetworkId}
+
+
+ copyToClipboard(data?.data?.netWorkType)}
+ />
+
+
+ >
+ )}
+ {data?.data?.sender && (
+ <>
- copyToClipboard(data?.data?.netWorkType)}
- />
+ Sender
-
- >}
- {data?.data?.sender && <>
-
- Sender
-
-
+
+ navigate(`/did-info/${data?.data?.sender}`)}
+ fontWeight={"inherit"}
+ whiteSpace={"nowrap"} // Prevent the text from wrapping
+ textOverflow={"ellipsis"}
+ isTruncated
+ cursor={"pointer"}
+ >
+ {data?.data?.sender}
+
+
+ copyToClipboard(data?.data?.receiver)}
+ />
+
+
+ >
+ )}
+ {data?.data?.receiver && (
+ <>
navigate(`/did-info/${data?.data?.sender}`)}
- fontWeight={"inherit"}
- whiteSpace={"nowrap"} // Prevent the text from wrapping
- textOverflow={"ellipsis"}
- isTruncated
- cursor={"pointer"}
+ color={colorMode === "light" ? "#000" : "#fff"}
+ fontSize={"sm"}
>
- {data?.data?.sender}
+ Receiver
-
- copyToClipboard(data?.data?.receiver)}
- />
-
-
- >}
- {data?.data?.receiver && <>
-
- Receiver
-
-
- navigate(`/did-info/${data?.data?.receiver}`)}
- fontWeight={"inherit"}
- whiteSpace={"nowrap"} // Prevent the text from wrapping
- textOverflow={"ellipsis"}
- isTruncated
- cursor={"pointer"}
- >
- {data?.data?.receiver}
-
-
- copyToClipboard(data?.data?.receiver)}
- />
-
-
- >}
+
+ navigate(`/did-info/${data?.data?.receiver}`)
+ }
+ fontWeight={"inherit"}
+ whiteSpace={"nowrap"} // Prevent the text from wrapping
+ textOverflow={"ellipsis"}
+ isTruncated
+ cursor={"pointer"}
+ >
+ {data?.data?.receiver}
+
+
+ copyToClipboard(data?.data?.receiver)}
+ />
+
+
+ >
+ )}
{
p={4}
mb={5}
rounded={6}
-
>
-
- {data?.data?.amount &&
- Amount
-
-
- {data?.data?.amount}
-
- }
- {data?.data?.timestamp &&
- Timestamp
- {formatUTCToDDMMYYHHMMSS(data?.data?.timestamp)}
- }
+
+ {data?.data?.amount && (
+
+ Amount
+
+
+ {data?.data?.amount}
+
+
+ )}
+ {data?.data?.timestamp && (
+
+ Timestamp
+
+ {formatUTCToDDMMYYHHMMSS(data?.data?.timestamp)}
+
+
+ )}
-
-
-
-
- {extractedArray&&}
-
-
-
-
+ {extractedArray && (
+
+ )}