mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
25 lines
485 B
TypeScript
25 lines
485 B
TypeScript
import config from 'configs/app';
|
|
|
|
export default function getNetworkValidationActionText(chainConfig = config) {
|
|
switch (chainConfig.chain.verificationType) {
|
|
case 'validation': {
|
|
return 'validated';
|
|
}
|
|
case 'mining': {
|
|
return 'mined';
|
|
}
|
|
case 'posting': {
|
|
return 'posted';
|
|
}
|
|
case 'sequencing': {
|
|
return 'sequenced';
|
|
}
|
|
case 'fee reception': {
|
|
return 'validated';
|
|
}
|
|
default: {
|
|
return 'mined';
|
|
}
|
|
}
|
|
}
|