1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use crate::{BlockNumber, CmlId};
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct AsyncQuery {
pub at_height: Option<BlockNumber>,
pub query_type: QueryType,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum QueryType {
Default,
CmlInfo(Vec<CmlId>),
MultisigThreshold,
}
impl Default for QueryType {
fn default() -> Self {
QueryType::Default
}
}