packages feed

cardano-c-clib-0.1.1.0: vendor/src/uplc/cost/uplc_one_arg_kind.h

/**
 * \file uplc_one_arg_kind.h
 *
 * \author angel.castillo
 * \date   Jun 27, 2026
 *
 * Copyright 2026 Biglup Labs
 *
 * 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
 *
 *     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.
 */

#ifndef BIGLUP_LABS_INCLUDE_CARDANO_UPLC_COST_UPLC_ONE_ARG_KIND_H
#define BIGLUP_LABS_INCLUDE_CARDANO_UPLC_COST_UPLC_ONE_ARG_KIND_H

/* DECLARATIONS **************************************************************/

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/**
 * \brief Discriminator for a one-argument costing function.
 */
typedef enum
{
  /** \brief A fixed cost independent of the argument. */
  CARDANO_UPLC_ONE_ARG_CONSTANT = 0,
  /** \brief A linear cost in the argument. */
  CARDANO_UPLC_ONE_ARG_LINEAR = 1,
  /** \brief A quadratic cost in the argument. */
  CARDANO_UPLC_ONE_ARG_QUADRATIC = 2
} cardano_uplc_one_arg_kind_t;

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* BIGLUP_LABS_INCLUDE_CARDANO_UPLC_COST_UPLC_ONE_ARG_KIND_H */