/*
 *
 *  * Copyright ConsenSys AG.
 *  *
 *  * 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.
 *  *
 *  * SPDX-License-Identifier: Apache-2.0
 *
 */

package org.hyperledger.besu.ethereum.transaction;

public enum TransactionInvalidReason {
  WRONG_CHAIN_ID,
  REPLAY_PROTECTED_SIGNATURES_NOT_SUPPORTED,
  INVALID_SIGNATURE,
  UPFRONT_COST_EXCEEDS_BALANCE,
  NONCE_TOO_LOW,
  INCORRECT_NONCE,
  INTRINSIC_GAS_EXCEEDS_GAS_LIMIT,
  EXCEEDS_BLOCK_GAS_LIMIT,
  TX_SENDER_NOT_AUTHORIZED,
  CHAIN_HEAD_WORLD_STATE_NOT_AVAILABLE,
  EXCEEDS_PER_TRANSACTION_GAS_LIMIT,
  INVALID_TRANSACTION_FORMAT,
  TRANSACTION_PRICE_TOO_LOW,
  TRANSACTION_ALREADY_KNOWN,
  TRANSACTION_REPLACEMENT_UNDERPRICED,
  // Private Transaction Invalid Reasons
  PRIVATE_TRANSACTION_FAILED,
  PRIVATE_NONCE_TOO_LOW,
  OFFCHAIN_PRIVACY_GROUP_DOES_NOT_EXIST,
  INCORRECT_PRIVATE_NONCE,
  GAS_PRICE_TOO_LOW,
  TX_FEECAP_EXCEEDED,
  PRIVATE_VALUE_NOT_ZERO,
  PRIVATE_UNIMPLEMENTED_TRANSACTION_TYPE,
  INTERNAL_ERROR,
  // Quroum Compatibility Invalid Reasons
  GAS_PRICE_MUST_BE_ZERO
}
