/** * Fork code name in order of occurrence */ export enum ForkName { phase0 = "phase0", altair = "altair", bellatrix = "bellatrix", capella = "capella", eip4844 = "eip4844", } /** * Fork sequence number in order of occurrence */ export enum ForkSeq { phase0 = 0, altair = 1, bellatrix = 2, capella = 3, eip4844 = 4, } export type ForkExecution = Exclude; export function isForkExecution(fork: ForkName): fork is ForkExecution { return fork !== ForkName.phase0 && fork !== ForkName.altair; } export type ForkBlobs = Exclude; export function isForkBlobs(fork: ForkName): fork is ForkBlobs { return isForkExecution(fork) && fork !== ForkName.bellatrix && fork !== ForkName.capella; }