Skip to content

Commit

Permalink
Remove generated schemas from the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
uint committed Sep 5, 2022
1 parent b37a50b commit 14a3d1f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 125 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Build results
/target
/schema

# Cargo+Git helper file (https://github.com/rust-lang/cargo/blob/0.44.1/src/cargo/sources/git/utils.rs#L320-L327)
.cargo-ok
Expand Down
23 changes: 7 additions & 16 deletions examples/schema.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
use std::env::current_dir;
use std::fs::create_dir_all;
use cosmwasm_schema::write_api;

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

use {{crate_name}}::msg::{ExecuteMsg, GetCountResponse, InstantiateMsg, QueryMsg};
use {{crate_name}}::state::State;
use {{crate_name}}::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};

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!(GetCountResponse), &out_dir);
write_api! {
instantiate: InstantiateMsg,
execute: ExecuteMsg,
query: QueryMsg,
}
}
39 changes: 0 additions & 39 deletions schema/execute_msg.json

This file was deleted.

14 changes: 0 additions & 14 deletions schema/get_count_response.json

This file was deleted.

14 changes: 0 additions & 14 deletions schema/instantiate_msg.json

This file was deleted.

18 changes: 0 additions & 18 deletions schema/query_msg.json

This file was deleted.

24 changes: 0 additions & 24 deletions schema/state.json

This file was deleted.

0 comments on commit 14a3d1f

Please sign in to comment.