Search in sources :

Example 1 with BeaconStateAccessorsPhase0

use of tech.pegasys.teku.spec.logic.versions.phase0.helpers.BeaconStateAccessorsPhase0 in project teku by ConsenSys.

the class SpecLogicPhase0 method create.

public static SpecLogicPhase0 create(final SpecConfig config, final SchemaDefinitions schemaDefinitions) {
    // Helpers
    final Predicates predicates = new Predicates();
    final MiscHelpers miscHelpers = new MiscHelpers(config);
    final BeaconStateAccessors beaconStateAccessors = new BeaconStateAccessorsPhase0(config, predicates, miscHelpers);
    final BeaconStateMutators beaconStateMutators = new BeaconStateMutators(config, miscHelpers, beaconStateAccessors);
    // Operation validaton
    final OperationSignatureVerifier operationSignatureVerifier = new OperationSignatureVerifier(miscHelpers, beaconStateAccessors);
    // Util
    final ValidatorsUtil validatorsUtil = new ValidatorsUtil(config, miscHelpers, beaconStateAccessors);
    final BeaconStateUtil beaconStateUtil = new BeaconStateUtil(config, schemaDefinitions, predicates, miscHelpers, beaconStateAccessors);
    final AttestationUtil attestationUtil = new AttestationUtil(schemaDefinitions, beaconStateAccessors, miscHelpers);
    final OperationValidator operationValidator = OperationValidator.create(config, predicates, miscHelpers, beaconStateAccessors, attestationUtil);
    final ValidatorStatusFactoryPhase0 validatorStatusFactory = new ValidatorStatusFactoryPhase0(config, beaconStateUtil, attestationUtil, beaconStateAccessors, predicates);
    final EpochProcessorPhase0 epochProcessor = new EpochProcessorPhase0(config, miscHelpers, beaconStateAccessors, beaconStateMutators, validatorsUtil, beaconStateUtil, validatorStatusFactory, schemaDefinitions);
    final BlockProcessorPhase0 blockProcessor = new BlockProcessorPhase0(config, predicates, miscHelpers, beaconStateAccessors, beaconStateMutators, operationSignatureVerifier, beaconStateUtil, attestationUtil, validatorsUtil, operationValidator);
    final ForkChoiceUtil forkChoiceUtil = new ForkChoiceUtil(config, beaconStateAccessors, attestationUtil, miscHelpers);
    final BlockProposalUtil blockProposalUtil = new BlockProposalUtil(schemaDefinitions, blockProcessor);
    return new SpecLogicPhase0(predicates, miscHelpers, beaconStateAccessors, beaconStateMutators, operationSignatureVerifier, validatorsUtil, beaconStateUtil, attestationUtil, operationValidator, validatorStatusFactory, epochProcessor, blockProcessor, forkChoiceUtil, blockProposalUtil);
}
Also used : ForkChoiceUtil(tech.pegasys.teku.spec.logic.common.util.ForkChoiceUtil) AttestationUtil(tech.pegasys.teku.spec.logic.common.util.AttestationUtil) EpochProcessorPhase0(tech.pegasys.teku.spec.logic.versions.phase0.statetransition.epoch.EpochProcessorPhase0) MiscHelpers(tech.pegasys.teku.spec.logic.common.helpers.MiscHelpers) OperationSignatureVerifier(tech.pegasys.teku.spec.logic.common.operations.OperationSignatureVerifier) ValidatorsUtil(tech.pegasys.teku.spec.logic.common.util.ValidatorsUtil) ValidatorStatusFactoryPhase0(tech.pegasys.teku.spec.logic.versions.phase0.statetransition.epoch.ValidatorStatusFactoryPhase0) OperationValidator(tech.pegasys.teku.spec.logic.common.operations.validation.OperationValidator) BeaconStateUtil(tech.pegasys.teku.spec.logic.common.util.BeaconStateUtil) BeaconStateMutators(tech.pegasys.teku.spec.logic.common.helpers.BeaconStateMutators) BlockProposalUtil(tech.pegasys.teku.spec.logic.common.util.BlockProposalUtil) Predicates(tech.pegasys.teku.spec.logic.common.helpers.Predicates) BeaconStateAccessors(tech.pegasys.teku.spec.logic.common.helpers.BeaconStateAccessors) BlockProcessorPhase0(tech.pegasys.teku.spec.logic.versions.phase0.block.BlockProcessorPhase0) BeaconStateAccessorsPhase0(tech.pegasys.teku.spec.logic.versions.phase0.helpers.BeaconStateAccessorsPhase0)

Aggregations

BeaconStateAccessors (tech.pegasys.teku.spec.logic.common.helpers.BeaconStateAccessors)1 BeaconStateMutators (tech.pegasys.teku.spec.logic.common.helpers.BeaconStateMutators)1 MiscHelpers (tech.pegasys.teku.spec.logic.common.helpers.MiscHelpers)1 Predicates (tech.pegasys.teku.spec.logic.common.helpers.Predicates)1 OperationSignatureVerifier (tech.pegasys.teku.spec.logic.common.operations.OperationSignatureVerifier)1 OperationValidator (tech.pegasys.teku.spec.logic.common.operations.validation.OperationValidator)1 AttestationUtil (tech.pegasys.teku.spec.logic.common.util.AttestationUtil)1 BeaconStateUtil (tech.pegasys.teku.spec.logic.common.util.BeaconStateUtil)1 BlockProposalUtil (tech.pegasys.teku.spec.logic.common.util.BlockProposalUtil)1 ForkChoiceUtil (tech.pegasys.teku.spec.logic.common.util.ForkChoiceUtil)1 ValidatorsUtil (tech.pegasys.teku.spec.logic.common.util.ValidatorsUtil)1 BlockProcessorPhase0 (tech.pegasys.teku.spec.logic.versions.phase0.block.BlockProcessorPhase0)1 BeaconStateAccessorsPhase0 (tech.pegasys.teku.spec.logic.versions.phase0.helpers.BeaconStateAccessorsPhase0)1 EpochProcessorPhase0 (tech.pegasys.teku.spec.logic.versions.phase0.statetransition.epoch.EpochProcessorPhase0)1 ValidatorStatusFactoryPhase0 (tech.pegasys.teku.spec.logic.versions.phase0.statetransition.epoch.ValidatorStatusFactoryPhase0)1