Commit 822b909b authored by isstuev's avatar isstuev

token transfer key

parent a2aaae0b
...@@ -38,6 +38,8 @@ export const erc20: TokenTransfer = { ...@@ -38,6 +38,8 @@ export const erc20: TokenTransfer = {
tx_hash: '0x62d597ebcf3e8d60096dd0363bc2f0f5e2df27ba1dacd696c51aa7c9409f3193', tx_hash: '0x62d597ebcf3e8d60096dd0363bc2f0f5e2df27ba1dacd696c51aa7c9409f3193',
type: 'token_transfer', type: 'token_transfer',
timestamp: '2022-10-10T14:34:30.000000Z', timestamp: '2022-10-10T14:34:30.000000Z',
block_hash: '1',
log_index: '1',
}; };
export const erc721: TokenTransfer = { export const erc721: TokenTransfer = {
...@@ -77,6 +79,8 @@ export const erc721: TokenTransfer = { ...@@ -77,6 +79,8 @@ export const erc721: TokenTransfer = {
tx_hash: '0xf13bc7afe5e02b494dd2f22078381d36a4800ef94a0ccc147431db56c301e6cc', tx_hash: '0xf13bc7afe5e02b494dd2f22078381d36a4800ef94a0ccc147431db56c301e6cc',
type: 'token_transfer', type: 'token_transfer',
timestamp: '2022-10-10T14:34:30.000000Z', timestamp: '2022-10-10T14:34:30.000000Z',
block_hash: '1',
log_index: '1',
}; };
export const erc1155: TokenTransfer = { export const erc1155: TokenTransfer = {
...@@ -118,6 +122,8 @@ export const erc1155: TokenTransfer = { ...@@ -118,6 +122,8 @@ export const erc1155: TokenTransfer = {
tx_hash: '0x05d6589367633c032d757a69c5fb16c0e33e3994b0d9d1483f82aeee1f05d746', tx_hash: '0x05d6589367633c032d757a69c5fb16c0e33e3994b0d9d1483f82aeee1f05d746',
type: 'token_minting', type: 'token_minting',
timestamp: '2022-10-10T14:34:30.000000Z', timestamp: '2022-10-10T14:34:30.000000Z',
block_hash: '1',
log_index: '1',
}; };
export const erc1155multiple: TokenTransfer = { export const erc1155multiple: TokenTransfer = {
......
...@@ -37,6 +37,8 @@ interface TokenTransferBase { ...@@ -37,6 +37,8 @@ interface TokenTransferBase {
from: AddressParam; from: AddressParam;
to: AddressParam; to: AddressParam;
timestamp: string; timestamp: string;
block_hash: string;
log_index: string;
} }
export type TokenTransferPagination = { export type TokenTransferPagination = {
......
...@@ -16,8 +16,8 @@ const TokenTransferList = ({ data, baseAddress, showTxInfo, enableTimeIncrement ...@@ -16,8 +16,8 @@ const TokenTransferList = ({ data, baseAddress, showTxInfo, enableTimeIncrement
return ( return (
<Box> <Box>
{ data.map((item) => ( { data.map((item) => (
// eslint-disable-next-line react/jsx-key
<TokenTransferListItem <TokenTransferListItem
key={ item.tx_hash + item.block_hash + item.log_index }
{ ...item } { ...item }
baseAddress={ baseAddress } baseAddress={ baseAddress }
showTxInfo={ showTxInfo } showTxInfo={ showTxInfo }
......
...@@ -59,8 +59,13 @@ const TokenTransferTable = ({ ...@@ -59,8 +59,13 @@ const TokenTransferTable = ({
</Tr> </Tr>
) } ) }
{ data.map((item) => ( { data.map((item) => (
// eslint-disable-next-line react/jsx-key <TokenTransferTableItem
<TokenTransferTableItem { ...item } baseAddress={ baseAddress } showTxInfo={ showTxInfo } enableTimeIncrement={ enableTimeIncrement }/> key={ item.tx_hash + item.block_hash + item.log_index }
{ ...item }
baseAddress={ baseAddress }
showTxInfo={ showTxInfo }
enableTimeIncrement={ enableTimeIncrement }
/>
)) } )) }
</Tbody> </Tbody>
</Table> </Table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment