diff --git a/types/api/stakingTransaction.ts b/types/api/stakingTransaction.ts index b9fe04c274..073bfcf22a 100644 --- a/types/api/stakingTransaction.ts +++ b/types/api/stakingTransaction.ts @@ -8,6 +8,9 @@ export type StakingTransaction = { from: AddressParam; gas_price: string | null; gas: string | null; + gas_used: string | null; + comulative_gas_used: string | null; + status: 'ok' | 'error' | null | undefined; type: string | null; transaction_index: number; msg_validator_address: string; diff --git a/ui/stakingTx/StakingTxInfo.tsx b/ui/stakingTx/StakingTxInfo.tsx index 07c40b1e95..ffad839c87 100644 --- a/ui/stakingTx/StakingTxInfo.tsx +++ b/ui/stakingTx/StakingTxInfo.tsx @@ -7,6 +7,7 @@ import { Flex, Skeleton, } from '@chakra-ui/react'; +import BigNumber from 'bignumber.js'; import React from 'react'; import { scroller, Element } from 'react-scroll'; @@ -26,8 +27,9 @@ import BlockEntity from 'ui/shared/entities/block/BlockEntity'; import HashStringShorten from 'ui/shared/HashStringShorten'; import HashStringShortenDynamic from 'ui/shared/HashStringShortenDynamic'; import StakingTxType from 'ui/shared/stakingTx/StakingTxType'; +import TxStatus from 'ui/shared/statusTag/TxStatus'; import TextSeparator from 'ui/shared/TextSeparator'; -import TxDetailsFeePerGas from 'ui/tx/details/TxDetailsFeePerGas'; +import Utilization from 'ui/shared/Utilization/Utilization'; import TxDetailsGasPrice from 'ui/tx/details/TxDetailsGasPrice'; interface Props { @@ -112,6 +114,15 @@ const StakingTxInfo = ({ data, isLoading }: Props) => { > { shardId ?? '0' } + { data.status && ( + + + + ) } { - + > + { BigNumber(data.gas_used || 0).toFormat() } + + { BigNumber(data.gas || 0).toFormat() } + +