use std::fs::create_dir_all;
use std::path::PathBuf;
use cosmwasm_schema::{export_schema, remove_schemas, schema_for};
use litium_core::msg::{
BurnStatsResponse, ConfigResponse, ExecuteMsg, InstantiateMsg, IsAuthorizedCallerResponse,
QueryMsg, TotalMintedResponse,
};
fn main() {
let mut out_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
out_dir.push("schema");
create_dir_all(&out_dir).unwrap();
remove_schemas(&out_dir).unwrap();
export_schema(&schema_for!(InstantiateMsg), &out_dir);
export_schema(&schema_for!(ExecuteMsg), &out_dir);
export_schema(&schema_for!(QueryMsg), &out_dir);
export_schema(&schema_for!(ConfigResponse), &out_dir);
export_schema(&schema_for!(BurnStatsResponse), &out_dir);
export_schema(&schema_for!(TotalMintedResponse), &out_dir);
export_schema(&schema_for!(IsAuthorizedCallerResponse), &out_dir);
}
cw-cyber/contracts/litium-core/examples/schema.rs
ฯ 0.0%
use create_dir_all;
use PathBuf;
use ;
use ;