abstract-sdk 0.26.1

Helpers for Abstract contracts
Documentation
use cosmwasm_std::{DepsMut, Env, MessageInfo, Response};
use schemars::JsonSchema;
use serde::Serialize;

use crate::base::Handler;

/// Trait for a contract's Instantiate entry point.
pub trait InstantiateEndpoint: Handler {
    /// The message type for the Instantiate entry point.
    type InstantiateMsg: Serialize + JsonSchema;

    /// Handler for the Instantiate endpoint.
    fn instantiate(
        self,
        deps: DepsMut,
        env: Env,
        info: MessageInfo,
        msg: Self::InstantiateMsg,
    ) -> Result<Response, Self::Error>;
}