4e03759c0f
* Updated smart contract to work with future cosmwasm 0.14.0 update * Updated the rest of the codebase * Reordered imports * Missing imports * cargo fmt * More cargo fmt action * Introduced type alias for IdentityKey reference
20 lines
700 B
Rust
20 lines
700 B
Rust
use cosmwasm_schema::{export_schema, remove_schemas, schema_for};
|
|
use mixnet_contract::MixNodeBond;
|
|
use mixnet_contracts::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};
|
|
use mixnet_contracts::state::State;
|
|
use std::env::current_dir;
|
|
use std::fs::create_dir_all;
|
|
|
|
fn main() {
|
|
let mut out_dir = current_dir().unwrap();
|
|
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!(State), &out_dir);
|
|
export_schema(&schema_for!(MixNodeBond), &out_dir);
|
|
}
|