Trait abstract_sdk::base::MigrateEndpoint

source ·
pub trait MigrateEndpoint: Handler {
    type MigrateMsg: Serialize + JsonSchema;

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

Trait for a contract’s Migrate entry point.

Required Associated Types§

source

type MigrateMsg: Serialize + JsonSchema

The message type for the Migrate entry point.

Required Methods§

source

fn migrate( self, deps: DepsMut<'_>, env: Env, msg: Self::MigrateMsg ) -> Result<Response, Self::Error>

Handler for the Migrate endpoint.

Object Safety§

This trait is not object safe.

Implementors§