cw1-subkeys 0.2.0

Implement subkeys for authorizing native tokens as a cw1 proxy contract
Documentation
use std::env::current_dir;
use std::fs::create_dir_all;

use cosmwasm_schema::{export_schema, export_schema_with_title, remove_schemas, schema_for};

use cw1_subkeys::msg::{AllAllowancesResponse, HandleMsg, QueryMsg};
use cw1_subkeys::state::Allowance;
use cw1_whitelist::msg::{AdminListResponse, InitMsg};

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!(InitMsg), &out_dir);
    export_schema_with_title(&mut schema_for!(HandleMsg), &out_dir, "HandleMsg");
    export_schema_with_title(&mut schema_for!(QueryMsg), &out_dir, "QueryMsg");
    export_schema(&schema_for!(Allowance), &out_dir);
    export_schema(&schema_for!(AdminListResponse), &out_dir);
    export_schema(&schema_for!(AllAllowancesResponse), &out_dir);
}