use async_graphql::{Request, Response};
use serde::{Deserialize, Serialize};
use crate::linera_base_types::{AccountOwner, ContractAbi, DataBlobHash, ModuleId, ServiceAbi};
pub struct FormatsRegistryAbi;
impl ContractAbi for FormatsRegistryAbi {
type Operation = Operation;
type Response = ();
}
impl ServiceAbi for FormatsRegistryAbi {
type Query = Request;
type QueryResponse = Response;
}
#[derive(Debug, Clone, Deserialize, Serialize)]
#[allow(missing_docs)]
pub enum Operation {
Write {
owner: AccountOwner,
module_id: ModuleId,
blob_hash: DataBlobHash,
},
}