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
use abstract_sdk::base::{AbstractContract, Handler};
use cosmwasm_std::Empty;
use crate::{ApiContract, ApiError};
impl<Error: From<cosmwasm_std::StdError> + From<ApiError>, ExecMsg, InitMsg, QueryMsg, Receive>
Handler for ApiContract<Error, ExecMsg, InitMsg, QueryMsg, Receive>
{
fn contract(
&self,
) -> &AbstractContract<Self, Error, ExecMsg, InitMsg, QueryMsg, Empty, Receive> {
&self.contract
}
type Error = Error;
type CustomExecMsg = ExecMsg;
type CustomInitMsg = InitMsg;
type CustomQueryMsg = QueryMsg;
type CustomMigrateMsg = Empty;
type ReceiveMsg = Receive;
}