mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* integrate erc-7984 * minor fix * FHE operations and tags * upd * upd * fix mobile * upd * fix mobile * Update TxFHEOperations.tsx * upd * add hover text * Update Address.tsx * Update Address.tsx * add hover text * Revert "Merge branch 'both-prs' into fhe-operations" This reverts commit a8d48de2c077fed37581948ad07576ec751d2003, reversing changes made to f253cae03dc71d38c3fa92fcad29f7be11467521. * fix design of fhe ops page * fix design of fhe ops page * fix design of fhe ops page * fix design of fhe ops page * fix comments * fix: tab name * upd --------- Co-authored-by: Maksym Zub <[email protected]>
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import StatsWidget from 'ui/shared/stats/StatsWidget';
|
|
|
|
interface Props {
|
|
totalHcu: number;
|
|
maxDepthHcu: number;
|
|
operationCount: number;
|
|
isLoading?: boolean;
|
|
}
|
|
|
|
const TxFHEOperationsStats = ({ totalHcu, maxDepthHcu, operationCount, isLoading }: Props) => {
|
|
return (
|
|
<Box
|
|
display="grid"
|
|
gridTemplateColumns={{ base: '1fr', lg: 'repeat(3, calc(33.333% - 8px))' }}
|
|
gap={ 3 }
|
|
mb={ 6 }
|
|
>
|
|
<StatsWidget
|
|
label="Total HCU"
|
|
hint="Sum of all Homomorphic Computation Units consumed by FHE operations in this transaction"
|
|
value={ (totalHcu || 0).toLocaleString() }
|
|
isLoading={ isLoading }
|
|
/>
|
|
<StatsWidget
|
|
label="Max Depth HCU"
|
|
hint="Maximum HCU consumed at any single depth level in the FHE operation tree"
|
|
value={ (maxDepthHcu || 0).toLocaleString() }
|
|
isLoading={ isLoading }
|
|
/>
|
|
<StatsWidget
|
|
label="Operations"
|
|
hint="Total number of FHE operations executed in this transaction"
|
|
value={ operationCount.toLocaleString() }
|
|
isLoading={ isLoading }
|
|
/>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default React.memo(TxFHEOperationsStats);
|