mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* rename feature * rename evn preset * types, mocks and stubs renaming * rename UI components
23 lines
1.2 KiB
TypeScript
23 lines
1.2 KiB
TypeScript
import type { ChainMetricsSortingField, ChainMetricsSortingValue } from 'types/client/multichainAggregator';
|
|
|
|
import type { SelectOption } from 'toolkit/chakra/select';
|
|
|
|
export const SORT_OPTIONS: Array<SelectOption<ChainMetricsSortingValue>> = [
|
|
{ label: 'Default', value: 'default' },
|
|
{ label: 'Active accounts descending', value: 'active_accounts-desc' },
|
|
{ label: 'Active accounts ascending', value: 'active_accounts-asc' },
|
|
{ label: 'Daily txs descending', value: 'daily_transactions-desc' },
|
|
{ label: 'Daily txs ascending', value: 'daily_transactions-asc' },
|
|
{ label: 'New addresses descending', value: 'new_addresses-desc' },
|
|
{ label: 'New addresses ascending', value: 'new_addresses-asc' },
|
|
{ label: 'TPS descending', value: 'tps-desc' },
|
|
{ label: 'TPS ascending', value: 'tps-asc' },
|
|
];
|
|
|
|
export const SORT_SEQUENCE: Record<ChainMetricsSortingField, Array<ChainMetricsSortingValue>> = {
|
|
active_accounts: [ 'active_accounts-desc', 'active_accounts-asc', 'default' ],
|
|
daily_transactions: [ 'daily_transactions-desc', 'daily_transactions-asc', 'default' ],
|
|
new_addresses: [ 'new_addresses-desc', 'new_addresses-asc', 'default' ],
|
|
tps: [ 'tps-desc', 'tps-asc', 'default' ],
|
|
};
|