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
31
32
33
use crate::{ApiContract, ApiError};
use abstract_sdk::{
    base::{AbstractContract, Handler},
    AbstractSdkError,
};
use cosmwasm_std::Empty;

impl<
        Error: From<cosmwasm_std::StdError> + From<ApiError> + From<AbstractSdkError>,
        ExecMsg,
        InitMsg,
        QueryMsg,
        Receive,
    > Handler for ApiContract<Error, ExecMsg, InitMsg, QueryMsg, Receive>
{
    type Error = Error;

    type CustomExecMsg = ExecMsg;

    type CustomInitMsg = InitMsg;

    type CustomQueryMsg = QueryMsg;

    type CustomMigrateMsg = Empty;

    type ReceiveMsg = Receive;

    fn contract(
        &self,
    ) -> &AbstractContract<Self, Error, ExecMsg, InitMsg, QueryMsg, Empty, Receive> {
        &self.contract
    }
}