Skip to content
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

BCI-1469: Update CosmWasm contracts #370

Merged
merged 12 commits into from
Sep 11, 2023
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,7 @@ build_contracts: contracts_compile contracts_install
contracts_compile: artifacts_clean
./scripts/build-contracts.sh

contracts_install: artifacts_curl_deps artifacts_cp_gauntlet artifacts_cp_wasmd

artifacts_curl_deps: artifacts_curl_cw20

artifacts_curl_cw20:
curl -Lo artifacts/cw20_base.wasm https://github.com/CosmWasm/cw-plus/releases/download/v0.8.0/cw20_base.wasm
contracts_install: artifacts_cp_gauntlet artifacts_cp_wasmd

artifacts_cp_gauntlet:
cp -r artifacts/. packages-ts/gauntlet-cosmos-contracts/artifacts/bin
Expand Down
18 changes: 0 additions & 18 deletions contracts/deviation-flagging-validator/examples/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,4 @@ fn main() {
execute: ExecuteMsg,
query: QueryMsg,
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

// put main schema under main folder for codegen.js (else it will error)
let mut main_dir = out_dir.clone();
main_dir.push("main");
create_dir_all(&main_dir).unwrap();

let mut main_file = out_dir.clone();
main_file.push("deviation-flagging-validator.json");

let mut new_location = main_dir.clone();
new_location.push("deviation-flagging-validator.json");
rename(&main_file, &new_location).unwrap();

// put other hand-exported schemas in seperate folder
let mut other_dir = out_dir.clone();
other_dir.push("other");
create_dir_all(&other_dir).unwrap();
export_schema(&schema_for!(State), &other_dir);
}
25 changes: 0 additions & 25 deletions contracts/deviation-flagging-validator/schema/other/state.json

This file was deleted.

26 changes: 0 additions & 26 deletions contracts/ocr2/examples/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,4 @@ fn main() {
execute: ExecuteMsg,
query: QueryMsg,
}

// put main schema under main folder for codegen.js (else it will error)
let mut main_dir = out_dir.clone();
main_dir.push("main");
create_dir_all(&main_dir).unwrap();

let mut main_file = out_dir.clone();
main_file.push("ocr2.json");

let mut new_location = main_dir.clone();
new_location.push("ocr2.json");
rename(&main_file, &new_location).unwrap();

// put other hand-exported schemas in seperate folder
let mut other_dir = out_dir.clone();
other_dir.push("other");
create_dir_all(&other_dir).unwrap();
export_schema(&schema_for!(Config), &other_dir);
export_schema(&schema_for!(Proposal), &other_dir);
export_schema(&schema_for!(Billing), &other_dir);
export_schema(&schema_for!(Validator), &other_dir);
export_schema(&schema_for!(Transmitter), &other_dir);
export_schema(&schema_for!(LatestConfigDetailsResponse), &other_dir);
export_schema(&schema_for!(TransmittersResponse), &other_dir);
export_schema(&schema_for!(LatestTransmissionDetailsResponse), &other_dir);
export_schema(&schema_for!(LinkAvailableForPaymentResponse), &other_dir);
}
File renamed without changes.
61 changes: 0 additions & 61 deletions contracts/ocr2/schema/other/billing.json

This file was deleted.

199 changes: 0 additions & 199 deletions contracts/ocr2/schema/other/config.json

This file was deleted.

32 changes: 0 additions & 32 deletions contracts/ocr2/schema/other/latest_config_details_response.json

This file was deleted.

Loading