Commit 822b909b authored by isstuev's avatar isstuev

token transfer key

parent a2aaae0b
......@@ -38,6 +38,8 @@ export const erc20: TokenTransfer = {
tx_hash: '0x62d597ebcf3e8d60096dd0363bc2f0f5e2df27ba1dacd696c51aa7c9409f3193',
type: 'token_transfer',
timestamp: '2022-10-10T14:34:30.000000Z',
block_hash: '1',
log_index: '1',
};
export const erc721: TokenTransfer = {
......@@ -77,6 +79,8 @@ export const erc721: TokenTransfer = {
tx_hash: '0xf13bc7afe5e02b494dd2f22078381d36a4800ef94a0ccc147431db56c301e6cc',
type: 'token_transfer',
timestamp: '2022-10-10T14:34:30.000000Z',
block_hash: '1',
log_index: '1',
};
export const erc1155: TokenTransfer = {
......@@ -118,6 +122,8 @@ export const erc1155: TokenTransfer = {
tx_hash: '0x05d6589367633c032d757a69c5fb16c0e33e3994b0d9d1483f82aeee1f05d746',
type: 'token_minting',
timestamp: '2022-10-10T14:34:30.000000Z',
block_hash: '1',
log_index: '1',
};
export const erc1155multiple: TokenTransfer = {
......
......@@ -37,6 +37,8 @@ interface TokenTransferBase {
from: AddressParam;
to: AddressParam;
timestamp: string;
block_hash: string;
log_index: string;
}
export type TokenTransferPagination = {
......
......@@ -16,8 +16,8 @@ const TokenTransferList = ({ data, baseAddress, showTxInfo, enableTimeIncrement
return (
<Box>
{ data.map((item) => (
// eslint-disable-next-line react/jsx-key
<TokenTransferListItem
key={ item.tx_hash + item.block_hash + item.log_index }
{ ...item }
baseAddress={ baseAddress }
showTxInfo={ showTxInfo }
......
......@@ -59,8 +59,13 @@ const TokenTransferTable = ({
</Tr>
) }
{ data.map((item) => (
// eslint-disable-next-line react/jsx-key
<TokenTransferTableItem { ...item } baseAddress={ baseAddress } showTxInfo={ showTxInfo } enableTimeIncrement={ enableTimeIncrement }/>
<TokenTransferTableItem
key={ item.tx_hash + item.block_hash + item.log_index }
{ ...item }
baseAddress={ baseAddress }
showTxInfo={ showTxInfo }
enableTimeIncrement={ enableTimeIncrement }
/>
)) }
</Tbody>
</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