Files
tom goriunovandGitHub d667de4b07 Celo: Cross-link to epoch block on the regular block view and Epoch rewards CSV export (#2386)
* Celo: Cross-link to epoch block on the regular block view

Fixes #2365

* [skip ci] fix hover state for gray-blue tag

* CSV export of epoch transactions for address
2024-11-21 13:44:03 +01:00

25 lines
616 B
TypeScript

import type { Feature } from './types';
import { getEnvValue } from '../utils';
const title = 'Celo chain';
const config: Feature<{ L2UpgradeBlock: number | undefined; BLOCKS_PER_EPOCH: number }> = (() => {
if (getEnvValue('NEXT_PUBLIC_CELO_ENABLED') === 'true') {
return Object.freeze({
title,
isEnabled: true,
L2UpgradeBlock: getEnvValue('NEXT_PUBLIC_CELO_L2_UPGRADE_BLOCK') ? Number(getEnvValue('NEXT_PUBLIC_CELO_L2_UPGRADE_BLOCK')) : undefined,
BLOCKS_PER_EPOCH: 17_280,
});
}
return Object.freeze({
title,
isEnabled: false,
});
})();
export default config;