Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/Home/Tx/index.tsx
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | import { | ||||
| AirdropIconCtn, | AirdropIconCtn, | ||||
| TxInfoModalParagraph, | TxInfoModalParagraph, | ||||
| } from 'components/Home/Tx/styled'; | } from 'components/Home/Tx/styled'; | ||||
| import { | import { | ||||
| SendIcon, | SendIcon, | ||||
| ReceiveIcon, | ReceiveIcon, | ||||
| MinedIcon, | MinedIcon, | ||||
| AliasIconTx, | AliasIconTx, | ||||
| GenesisIcon, | |||||
| AirdropIcon, | AirdropIcon, | ||||
| EncryptedMsgIcon, | EncryptedMsgIcon, | ||||
| TokenBurnIcon, | |||||
| SwapIcon, | SwapIcon, | ||||
| PayButtonIcon, | PayButtonIcon, | ||||
| ChatIcon, | ChatIcon, | ||||
| MintIcon, | |||||
| UnknownIcon, | UnknownIcon, | ||||
| CashtabMsgIcon, | CashtabMsgIcon, | ||||
| CopyPasteIcon, | CopyPasteIcon, | ||||
| ThemedPdfSolid, | ThemedPdfSolid, | ||||
| ThemedLinkSolid, | ThemedLinkSolid, | ||||
| AddContactIcon, | AddContactIcon, | ||||
| ReplyIcon, | ReplyIcon, | ||||
| SelfSendIcon, | SelfSendIcon, | ||||
| FanOutIcon, | |||||
| MintNftIcon, | |||||
| PaywallPaymentIcon, | PaywallPaymentIcon, | ||||
| AgoraOfferIcon, | |||||
| AgoraBuyIcon, | |||||
| AgoraSaleIcon, | |||||
| AgoraCancelIcon, | |||||
| TokenSendIcon, | |||||
| XecxIcon, | XecxIcon, | ||||
| FirmaIcon, | FirmaIcon, | ||||
| SolIcon, | SolIcon, | ||||
| TetherIcon, | TetherIcon, | ||||
| QuestionIcon, | QuestionIcon, | ||||
| NFToaIcon, | NFToaIcon, | ||||
| DiceIcon, | DiceIcon, | ||||
| PayoutWinIcon, | PayoutWinIcon, | ||||
| BlitsPayoutIcon, | BlitsPayoutIcon, | ||||
| EdjIcon, | EdjIcon, | ||||
| GenesisIcon, | |||||
| MintIcon, | |||||
| MintNftIcon, | |||||
| TokenSendIcon, | |||||
| TokenBurnIcon, | |||||
| AgoraBuyIcon, | |||||
| AgoraSaleIcon, | |||||
| AgoraCancelIcon, | |||||
| AgoraOfferIcon, | |||||
| FanOutIcon, | |||||
| } from 'components/Common/CustomIcons'; | } from 'components/Common/CustomIcons'; | ||||
| import { supportedFiatCurrencies } from 'config/CashtabSettings'; | import { supportedFiatCurrencies } from 'config/CashtabSettings'; | ||||
| import CopyToClipboard from 'components/Common/CopyToClipboard'; | import CopyToClipboard from 'components/Common/CopyToClipboard'; | ||||
| import { explorer } from 'config/explorer'; | import { explorer } from 'config/explorer'; | ||||
| import { ParsedTokenTxType, XecxAction, SolAddrAction } from 'chronik'; | import { ParsedTokenTxType, XecxAction, SolAddrAction } from 'chronik'; | ||||
| import { toFormattedXec, decimalizedTokenQtyToLocaleFormat } from 'formatting'; | import { toFormattedXec, decimalizedTokenQtyToLocaleFormat } from 'formatting'; | ||||
| import { toXec, decimalizeTokenAmount, CashtabTx, SlpDecimals } from 'wallet'; | import { toXec, decimalizeTokenAmount, CashtabTx, SlpDecimals } from 'wallet'; | ||||
| import { opReturn } from 'config/opreturn'; | import { opReturn } from 'config/opreturn'; | ||||
| ▲ Show 20 Lines • Show All 921 Lines • ▼ Show 20 Lines | for (const parsedTokenEntry of parsedTokenEntries) { | ||||
| {tokenIcon} | {tokenIcon} | ||||
| <TokenInfoCol> | <TokenInfoCol> | ||||
| <TokenType> | <TokenType> | ||||
| {renderedTokenType === 'Collection' && | {renderedTokenType === 'Collection' && | ||||
| renderedTxType === 'NONE' | renderedTxType === 'NONE' | ||||
| ? 'BURN' | ? 'BURN' | ||||
| : renderedTxType} | : renderedTxType} | ||||
| </TokenType> | </TokenType> | ||||
| <TokenName to={`/token/${tokenId}`}> | |||||
| {tokenName} | |||||
| </TokenName> | |||||
| </TokenInfoCol> | </TokenInfoCol> | ||||
| </IconAndLabel> | </IconAndLabel> | ||||
| <TokenInfoCol> | |||||
| <TokenName to={`/token/${tokenId}`}>{tokenName}</TokenName> | |||||
| {tokenTicker !== '' && ( | |||||
| <TokenTicker>({tokenTicker})</TokenTicker> | |||||
| )} | |||||
| </TokenInfoCol> | |||||
| <TokenDesc> | <TokenDesc> | ||||
| {renderedTxType === ParsedTokenTxType.FanOut | {renderedTxType === ParsedTokenTxType.FanOut | ||||
| ? `Created ${nftFanInputsCreated} NFT Mint Input${ | ? `Created ${nftFanInputsCreated} NFT Mint Input${ | ||||
| (nftFanInputsCreated as number) > 1 ? 's' : '' | (nftFanInputsCreated as number) > 1 ? 's' : '' | ||||
| }` | }` | ||||
| : renderedTxType === ParsedTokenTxType.AgoraOffer | : renderedTxType === ParsedTokenTxType.AgoraOffer | ||||
| ? `Listed ${ | ? `Listed ${ | ||||
| typeof decimals === 'number' | typeof decimals === 'number' | ||||
| ▲ Show 20 Lines • Show All 419 Lines • Show Last 20 Lines | |||||