//! This code was AUTOGENERATED using the Codama library.
use {
    carbon_core::graphql::primitives::{U128, U64},
    juniper::GraphQLObject,
};

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "InitializeRewardParam")]
pub struct InitializeRewardParamGraphQL {
    pub open_time: U64,
    pub end_time: U64,
    pub emissions_per_second_x64: U128,
}

impl From<crate::types::InitializeRewardParam> for InitializeRewardParamGraphQL {
    fn from(original: crate::types::InitializeRewardParam) -> Self {
        Self {
            open_time: carbon_core::graphql::primitives::U64(original.open_time),
            end_time: carbon_core::graphql::primitives::U64(original.end_time),
            emissions_per_second_x64: carbon_core::graphql::primitives::U128(
                original.emissions_per_second_x64,
            ),
        }
    }
}
