Skip to content

Fix schema generation scripts and remove outdated files #2509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions contracts/hackatom/schema/raw/response_to_other_balance.json

This file was deleted.

2 changes: 2 additions & 0 deletions contracts/ibc-reflect-send/src/bin/schema.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::env::current_dir;
use std::fs::create_dir_all;

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

Expand All @@ -19,6 +20,7 @@ fn main() {
let mut out_dir = current_dir().unwrap();
out_dir.push("schema");
out_dir.push("ibc");
create_dir_all(&out_dir).unwrap();
export_schema(&schema_for!(PacketMsg), &out_dir);
export_schema_with_title(
&schema_for!(AcknowledgementMsg<BalancesResponse>),
Expand Down
2 changes: 2 additions & 0 deletions contracts/ibc-reflect/src/bin/schema.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::env::current_dir;
use std::fs::create_dir_all;

use cosmwasm_schema::{export_schema, export_schema_with_title, schema_for, write_api};
use cosmwasm_std::Empty;
Expand All @@ -21,6 +22,7 @@ fn main() {
let mut out_dir = current_dir().unwrap();
out_dir.push("schema");
out_dir.push("ibc");
create_dir_all(&out_dir).unwrap();
export_schema(&schema_for!(PacketMsg), &out_dir);
export_schema_with_title(
&schema_for!(AcknowledgementMsg<BalanceResponse>),
Expand Down
31 changes: 0 additions & 31 deletions contracts/ibc2/schema/raw/execute.json

This file was deleted.

2 changes: 2 additions & 0 deletions devtools/update_schemas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ command -v shellcheck >/dev/null && shellcheck "$0"

for contract_dir in contracts/*/; do
(
echo "Updating schema for $contract_dir"
cd "$contract_dir"
rm -r ./schema || true # ensure outdated schema files are deleted
cargo schema
)
done
Loading