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

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "UpdateRewardInfosEvent")]
pub struct UpdateRewardInfosEventGraphQL {
    pub reward_growth_global_x64: Vec<U128>,
}

impl From<crate::types::UpdateRewardInfosEvent> for UpdateRewardInfosEventGraphQL {
    fn from(original: crate::types::UpdateRewardInfosEvent) -> Self {
        Self {
            reward_growth_global_x64: original
                .reward_growth_global_x64
                .into_iter()
                .map(carbon_core::graphql::primitives::U128)
                .collect(),
        }
    }
}
