1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Debug)]
pub enum ViewResult<View, Error> {
    ViewResponse(View),
    ContractError(Error),
    RuntimeError(String),
}

#[derive(Debug)]
pub enum WriteResult<State, Error> {
    WriteResponse(State),
    ContractError(Error),
    RuntimeError(String),
}