1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use cosmwasm_std::{DepsMut, Env, Response};
use schemars::JsonSchema;
use serde::Serialize;

use super::super::Handler;

pub type Name = &'static str;
pub type VersionString = &'static str;
pub type Metadata = Option<&'static str>;

pub trait MigrateEndpoint: Handler {
    type MigrateMsg: Serialize + JsonSchema;
    fn migrate(
        self,
        deps: DepsMut,
        env: Env,
        msg: Self::MigrateMsg,
    ) -> Result<Response, Self::Error>;
}