fuel_core_client/client/schema/
da_compressed.rsuse crate::client::schema::{
schema,
U32,
};
use super::HexString;
#[derive(cynic::QueryVariables, Debug)]
pub struct DaCompressedBlockByHeightArgs {
pub height: U32,
}
#[derive(cynic::QueryFragment, Clone, Debug)]
#[cynic(
schema_path = "./assets/schema.sdl",
graphql_type = "Query",
variables = "DaCompressedBlockByHeightArgs"
)]
pub struct DaCompressedBlockByHeightQuery {
#[arguments(height: $height)]
pub da_compressed_block: Option<DaCompressedBlock>,
}
#[derive(cynic::QueryFragment, Clone, Debug)]
#[cynic(schema_path = "./assets/schema.sdl")]
pub struct DaCompressedBlock {
pub bytes: HexString,
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn block_by_height_query_gql_output() {
use cynic::QueryBuilder;
let operation =
DaCompressedBlockByHeightQuery::build(DaCompressedBlockByHeightArgs {
height: U32(0),
});
insta::assert_snapshot!(operation.query)
}
}