/*
 * Copyright Consensys Software Inc., 2022
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */

package tech.pegasys.teku.spec.config;

import java.util.Optional;
import tech.pegasys.teku.infrastructure.bytes.Bytes4;
import tech.pegasys.teku.infrastructure.unsigned.UInt64;

public class DelegatingSpecConfigAltair extends DelegatingSpecConfig implements SpecConfigAltair {

  private final SpecConfigAltair specConfigAltair;

  public DelegatingSpecConfigAltair(final SpecConfigAltair specConfig) {
    super(specConfig);
    this.specConfigAltair = specConfig;
  }

  @Override
  public Bytes4 getAltairForkVersion() {
    return specConfigAltair.getAltairForkVersion();
  }

  @Override
  public UInt64 getAltairForkEpoch() {
    return specConfigAltair.getAltairForkEpoch();
  }

  @Override
  public UInt64 getInactivityPenaltyQuotientAltair() {
    return specConfigAltair.getInactivityPenaltyQuotientAltair();
  }

  @Override
  public int getMinSlashingPenaltyQuotientAltair() {
    return specConfigAltair.getMinSlashingPenaltyQuotientAltair();
  }

  @Override
  public int getProportionalSlashingMultiplierAltair() {
    return specConfigAltair.getProportionalSlashingMultiplierAltair();
  }

  @Override
  public int getSyncCommitteeSize() {
    return specConfigAltair.getSyncCommitteeSize();
  }

  @Override
  public UInt64 getInactivityScoreBias() {
    return specConfigAltair.getInactivityScoreBias();
  }

  @Override
  public UInt64 getInactivityScoreRecoveryRate() {
    return specConfigAltair.getInactivityScoreRecoveryRate();
  }

  @Override
  public int getEpochsPerSyncCommitteePeriod() {
    return specConfigAltair.getEpochsPerSyncCommitteePeriod();
  }

  @Override
  public int getMinSyncCommitteeParticipants() {
    return specConfigAltair.getMinSyncCommitteeParticipants();
  }

  @Override
  public int getUpdateTimeout() {
    return specConfigAltair.getUpdateTimeout();
  }

  @Override
  public int getSyncCommitteeBranchLength() {
    return specConfigAltair.getSyncCommitteeBranchLength();
  }

  @Override
  public int getFinalityBranchLength() {
    return specConfigAltair.getFinalityBranchLength();
  }

  @Override
  public Optional<SpecConfigAltair> toVersionAltair() {
    return Optional.of(this);
  }
}
