1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use super::super::Handler;
use cosmwasm_std::{DepsMut, Env, Response};
use schemars::JsonSchema;
use serde::Serialize;
pub trait MigrateEndpoint: Handler {
type MigrateMsg: Serialize + JsonSchema;
/// Handler for the Migrate endpoint.
fn migrate(
self,
deps: DepsMut,
env: Env,
msg: Self::MigrateMsg,
) -> Result<Response, Self::Error>;
}