1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
use abstract_os::vesting::*;
use boot_core::{BootEnvironment, Contract};
use cosmwasm_std::Empty;
use boot_core::prelude::boot_contract;
#[boot_contract(InstantiateMsg, ExecuteMsg, QueryMsg, Empty)]
pub struct Vesting<Chain>;
impl<Chain: BootEnvironment> Vesting<Chain> {
pub fn new(name: &str, chain: Chain) -> Self {
Self(
Contract::new(name, chain).with_wasm_path("cw20_vesting"), // .with_mock(Box::new(
// ContractWrapper::new_with_empty(
// ::contract::execute,
// ::contract::instantiate,
// ::contract::query,
// ),
// ))
)
}
// pub fn set_vault_assets<C: Signing + Context>(
// &self,
// sender: &Sender<C>,
// path: &str,
// ) -> Result<(), BootError> {
// let file = File::open(path).expect(&format!("file should be present at {}", path));
// let json: serde_json::Value = from_reader(file)?;
// let maybe_assets = json.get(self.instance().deployment.network.chain_id.clone());
// }
}