mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
20 lines
851 B
TypeScript
20 lines
851 B
TypeScript
import type {
|
|
ValidatorsStabilitySortingValue,
|
|
ValidatorsStabilitySortingField,
|
|
} from 'types/api/validators';
|
|
|
|
import type { SelectOption } from '@luxfi/ui/select';
|
|
|
|
export const VALIDATORS_STABILITY_SORT_OPTIONS: Array<SelectOption<ValidatorsStabilitySortingValue>> = [
|
|
{ label: 'Default', value: 'default' },
|
|
{ label: 'Status descending', value: 'state-desc' },
|
|
{ label: 'Status ascending', value: 'state-asc' },
|
|
{ label: 'Blocks validated descending', value: 'blocks_validated-desc' },
|
|
{ label: 'Blocks validated ascending', value: 'blocks_validated-asc' },
|
|
];
|
|
|
|
export const VALIDATORS_STABILITY_SORT_SEQUENCE: Record<ValidatorsStabilitySortingField, Array<ValidatorsStabilitySortingValue>> = {
|
|
state: [ 'state-desc', 'state-asc', 'default' ],
|
|
blocks_validated: [ 'blocks_validated-desc', 'blocks_validated-asc', 'default' ],
|
|
};
|