1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use crate::{AbstractContract, Handler};
use crate::{AppContract, AppError};

impl<
        Error: From<cosmwasm_std::StdError> + From<AppError>,
        ExecMsg,
        InitMsg,
        QueryMsg,
        MigrateMsg,
        Receive,
    > Handler for AppContract<Error, ExecMsg, InitMsg, QueryMsg, MigrateMsg, Receive>
{
    fn contract(
        &self,
    ) -> &AbstractContract<Self, Error, ExecMsg, InitMsg, QueryMsg, MigrateMsg, Receive> {
        &self.contract
    }

    type Error = Error;

    type CustomExecMsg = ExecMsg;

    type CustomInitMsg = InitMsg;

    type CustomQueryMsg = QueryMsg;

    type CustomMigrateMsg = MigrateMsg;

    type ReceiveMsg = Receive;
}