linera-service 0.15.21

Executable for clients (aka CLI wallets), proxy (aka validator frontend) and servers of the Linera protocol.
Documentation
use async_graphql::{{Request, Response}};
use linera_sdk::{{
    graphql::GraphQLMutationRoot,
    linera_base_types::{{ContractAbi, ServiceAbi}},
}};
use serde::{{Deserialize, Serialize}};

pub struct {project_name}Abi;

impl ContractAbi for {project_name}Abi {{
    type Operation = Operation;
    type Response = ();
}}

impl ServiceAbi for {project_name}Abi {{
    type Query = Request;
    type QueryResponse = Response;
}}

#[derive(Debug, Deserialize, Serialize, GraphQLMutationRoot)]
pub enum Operation {{
    Increment {{ value: u64 }},
}}