helium_api/models/transactions/
state_channel_close_v1.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Serialize, Deserialize, Debug)]
4pub struct StateChannelCloseV1 {
5    pub hash: String,
6    pub state_channel: StateChannel,
7    pub conflicts_with: Option<StateChannel>,
8    pub closer: String,
9}
10
11#[derive(Clone, Serialize, Deserialize, Debug)]
12pub struct StateChannel {
13    pub summaries: Vec<StateChannelSummary>,
14    pub state: String,
15    pub root_hash: String,
16    pub owner: String,
17    pub nonce: u64,
18    pub id: String,
19    pub expire_at_block: u64,
20}
21
22#[derive(Clone, Serialize, Deserialize, Debug)]
23pub struct StateChannelSummary {
24    pub num_packets: u64,
25    pub num_dcs: u64,
26    pub client: String,
27}