mirror of
https://github.com/luxfi/explore.git
synced 2026-07-27 05:54:15 +00:00
- Rename all @blockscout/* npm packages to @luxfi/* aliases (150+ files) - Override blue accent colors to gray for monochrome theme - Fix dropdown/menu/popover fonts to use Geist Sans - Change Latest Blocks to horizontal scrolling layout - Show dashes instead of zeros for validator stats on error - Fix GHA deploy step to use correct deployment name
15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
import type { InterchainTransfer } from '@luxfi/interchain-indexer-types';
|
|
|
|
export const getItemKey = (data: InterchainTransfer, index?: number) => {
|
|
return [
|
|
data.message_id,
|
|
data.sender?.hash,
|
|
data.source_token?.address_hash,
|
|
data.source_amount,
|
|
data.source_chain?.id,
|
|
index,
|
|
]
|
|
.filter((item) => item !== undefined)
|
|
.join('-');
|
|
};
|