blokli_client/api/v1/graphql/
graph.rs1use super::{accounts::Account, channels::Channel, schema};
2
3#[derive(cynic::QueryFragment, Debug)]
4#[cynic(graphql_type = "SubscriptionRoot")]
5pub struct SubscribeGraph {
6 pub opened_channel_graph_updated: OpenedChannelsGraphEntry,
7}
8
9#[derive(cynic::QueryFragment, Debug, Clone)]
14#[cfg_attr(feature = "serde", derive(serde::Serialize))]
15pub struct OpenedChannelsGraphEntry {
16 pub channel: Channel,
18 pub destination: Account,
20 pub source: Account,
22}