//! This code was AUTOGENERATED using the Codama library.
use juniper::GraphQLEnum;

#[derive(Debug, Clone, GraphQLEnum)]
#[graphql(name = "CurveType")]
pub enum CurveTypeGraphQL {
    ConstantProduct,
    ConstantPrice,
    Offset,
}

impl From<crate::types::CurveType> for CurveTypeGraphQL {
    fn from(original: crate::types::CurveType) -> Self {
        match original {
            crate::types::CurveType::ConstantProduct => Self::ConstantProduct,
            crate::types::CurveType::ConstantPrice => Self::ConstantPrice,
            crate::types::CurveType::Offset => Self::Offset,
        }
    }
}
