use std::env::current_dir;
use std::fs::create_dir_all;

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

use cw_cyber_passport::msg::{
    AddressResponse, ConfigResponse, ExecuteMsg, InstantiateMsg, PortidResponse, QueryMsg,
    SignatureResponse,
};
use cw_cyber_passport::state::{Config, PassportMetadata};

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!(Config), &out_dir);
    export_schema(&schema_for!(PassportMetadata), &out_dir);
    export_schema(&schema_for!(ConfigResponse), &out_dir);
    export_schema(&schema_for!(PortidResponse), &out_dir);
    export_schema(&schema_for!(AddressResponse), &out_dir);
    export_schema(&schema_for!(SignatureResponse), &out_dir);
}

Dimensions

cw-cyber/contracts/hub-skills/examples/schema.rs
cw-cyber/contracts/litium-mine/examples/schema.rs
cw-cyber/contracts/hub-protocols/examples/schema.rs
cw-cyber/contracts/cw-cyber-subgraph/examples/schema.rs
cw-cyber/contracts/hub-libs/examples/schema.rs
cw-cyber/contracts/cw-cyber-gift/examples/schema.rs
cw-cyber/contracts/litium-refer/examples/schema.rs
cw-cyber/contracts/litium-core/examples/schema.rs
cw-cyber/contracts/hub-channels/examples/schema.rs
cw-cyber/contracts/hub-tokens/examples/schema.rs
cw-cyber/contracts/litium-stake/examples/schema.rs
cw-cyber/contracts/hub-networks/examples/schema.rs
cw-cyber/contracts/graph-filter/bin/schema.rs
cw-cyber/contracts/litium-wrap/examples/schema.rs
cw-cyber/packages/cyber-std/src/bin/schema.rs
cw-cyber/contracts/cybernet/src/bin/schema.rs
cw-cyber/contracts/std-test/src/bin/schema.rs

Local Graph