mirror of
https://github.com/luxfi/explore.git
synced 2026-11-03 07:53:34 +00:00
52 lines
1.6 KiB
TypeScript
52 lines
1.6 KiB
TypeScript
import React from 'react';
|
|
|
|
import type { ArbitrumL2TxnBatchDACelestia } from 'types/api/arbitrumL2';
|
|
|
|
import config from 'configs/app';
|
|
import CeleniumLink from 'ui/shared/batch/CeleniumLink';
|
|
import CopyToClipboard from 'ui/shared/CopyToClipboard';
|
|
import * as DetailedInfo from 'ui/shared/DetailedInfo/DetailedInfo';
|
|
import HashStringShortenDynamic from 'ui/shared/HashStringShortenDynamic';
|
|
|
|
const feature = config.features.rollup;
|
|
|
|
interface Props {
|
|
data: ArbitrumL2TxnBatchDACelestia;
|
|
}
|
|
|
|
const ArbitrumL2TxnBatchDetailsCelestiaDA = ({ data }: Props) => {
|
|
return (
|
|
<>
|
|
<DetailedInfo.ItemLabel
|
|
hint="The block number in Celestia where the Data Availability blob was published"
|
|
>
|
|
Height
|
|
</DetailedInfo.ItemLabel>
|
|
<DetailedInfo.ItemValue className="break-all whitespace-break-spaces">
|
|
{ data.height }
|
|
</DetailedInfo.ItemValue>
|
|
|
|
<DetailedInfo.ItemLabel
|
|
hint="The Data Availability blob's unique cryptographic proof"
|
|
>
|
|
Commitment
|
|
</DetailedInfo.ItemLabel>
|
|
<DetailedInfo.ItemValue className="flex-nowrap">
|
|
<div className="overflow-hidden min-w-0">
|
|
<HashStringShortenDynamic hash={ data.transaction_commitment }/>
|
|
</div>
|
|
<CopyToClipboard text={ data.transaction_commitment } className="mr-3"/>
|
|
{ feature.isEnabled && feature.DA.celestia.namespace && (
|
|
<CeleniumLink
|
|
commitment={ data.transaction_commitment }
|
|
namespace={ feature.DA.celestia.namespace }
|
|
height={ data.height }
|
|
/>
|
|
) }
|
|
</DetailedInfo.ItemValue>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default ArbitrumL2TxnBatchDetailsCelestiaDA;
|