import {ssz} from "@lodestar/types"; import {CompositeViewDU} from "@chainsafe/ssz"; export type BeaconStatePhase0 = CompositeViewDU; export type BeaconStateAltair = CompositeViewDU; export type BeaconStateBellatrix = CompositeViewDU; export type BeaconStateCapella = CompositeViewDU; export type BeaconStateEip4844 = CompositeViewDU; // Union at the TreeViewDU level // - Works well as function argument and as generic type for allForks functions // // Quasy equivalent to // CompositeViewDU // + future forks export type BeaconStateAllForks = | BeaconStatePhase0 | BeaconStateAltair | BeaconStateBellatrix | BeaconStateCapella | BeaconStateEip4844; export type BeaconStateExecutions = BeaconStateBellatrix | BeaconStateCapella | BeaconStateEip4844;