1
1
#[ cfg( not( feature = "library" ) ) ]
2
2
use cosmwasm_std:: entry_point;
3
- use cosmwasm_std:: { to_binary, Binary , Deps , DepsMut , Env , MessageInfo , Response } ;
3
+ use cosmwasm_std:: { to_binary, Binary , Deps , DepsMut , Empty , Env , MessageInfo , Response } ;
4
4
use cw2:: set_contract_version;
5
5
use mars_owner:: OwnerInit :: SetInitialOwner ;
6
6
use mars_types:: params:: {
@@ -15,15 +15,16 @@ use crate::{
15
15
assert_thf, update_asset_params, update_config, update_target_health_factor,
16
16
update_vault_config,
17
17
} ,
18
+ migrations,
18
19
query:: {
19
20
query_all_asset_params, query_all_vault_configs, query_config, query_total_deposit,
20
21
query_vault_config,
21
22
} ,
22
23
state:: { ADDRESS_PROVIDER , ASSET_PARAMS , OWNER , TARGET_HEALTH_FACTOR } ,
23
24
} ;
24
25
25
- const CONTRACT_NAME : & str = env ! ( "CARGO_PKG_NAME" ) ;
26
- const CONTRACT_VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
26
+ pub const CONTRACT_NAME : & str = env ! ( "CARGO_PKG_NAME" ) ;
27
+ pub const CONTRACT_VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
27
28
28
29
#[ cfg_attr( not( feature = "library" ) , entry_point) ]
29
30
pub fn instantiate (
@@ -109,3 +110,8 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> ContractResult<Binary> {
109
110
} ;
110
111
res. map_err ( Into :: into)
111
112
}
113
+
114
+ #[ cfg_attr( not( feature = "library" ) , entry_point) ]
115
+ pub fn migrate ( deps : DepsMut , _env : Env , _msg : Empty ) -> ContractResult < Response > {
116
+ migrations:: v2_0_1:: migrate ( deps)
117
+ }
0 commit comments