Trait abstract_sdk::base::InstantiateEndpoint

source ·
pub trait InstantiateEndpoint: Handler {
    type InstantiateMsg: Serialize + JsonSchema;

    // Required method
    fn instantiate(
        self,
        deps: DepsMut<'_>,
        env: Env,
        info: MessageInfo,
        msg: Self::InstantiateMsg
    ) -> Result<Response, Self::Error>;
}
Expand description

Trait for a contract’s Instantiate entry point.

Required Associated Types§

source

type InstantiateMsg: Serialize + JsonSchema

The message type for the Instantiate entry point.

Required Methods§

source

fn instantiate( self, deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: Self::InstantiateMsg ) -> Result<Response, Self::Error>

Handler for the Instantiate endpoint.

Object Safety§

This trait is not object safe.

Implementors§