Skip to content

Commit

Permalink
Merge pull request #760 from CosmWasm/schema-gen-in-bin-crate
Browse files Browse the repository at this point in the history
contracts: move schema gen boilerplate to a binary crate
  • Loading branch information
uint authored Aug 15, 2022
2 parents 3d73325 + 972b693 commit 8246967
Show file tree
Hide file tree
Showing 30 changed files with 20 additions and 28 deletions.
2 changes: 1 addition & 1 deletion contracts/cw1-subkeys/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
schema = "run --bin schema"
2 changes: 1 addition & 1 deletion contracts/cw1-subkeys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ library = []
test-utils = []

[dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-utils = { path = "../../packages/utils", version = "0.14.0" }
cw1 = { path = "../../packages/cw1", version = "0.14.0" }
cw2 = { path = "../../packages/cw2", version = "0.14.0" }
Expand All @@ -31,5 +32,4 @@ thiserror = "1.0.23"
semver = "1"

[dev-dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw1-whitelist = { path = "../cw1-whitelist", version = "0.14.0", features = ["library", "test-utils"] }
File renamed without changes.
2 changes: 1 addition & 1 deletion contracts/cw1-whitelist-ng/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
schema = "run --bin schema"
2 changes: 1 addition & 1 deletion contracts/cw1-whitelist-ng/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ querier = ["library"]
multitest = ["cw-multi-test", "anyhow"]

[dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-utils = { path = "../../packages/utils", version = "0.14.0" }
cw1 = { path = "../../packages/cw1", version = "0.14.0" }
cw2 = { path = "../../packages/cw2", version = "0.14.0" }
Expand All @@ -36,6 +37,5 @@ anyhow = { version = "1", optional = true }
[dev-dependencies]
anyhow = "1"
assert_matches = "1"
cosmwasm-schema = { version = "1.0.0" }
cw-multi-test = { path = "../../packages/multi-test", version = "0.14.0" }
derivative = "2"
2 changes: 1 addition & 1 deletion contracts/cw1-whitelist/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
schema = "run --bin schema"
2 changes: 1 addition & 1 deletion contracts/cw1-whitelist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ library = []
test-utils = []

[dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-utils = { path = "../../packages/utils", version = "0.14.0" }
cw1 = { path = "../../packages/cw1", version = "0.14.0" }
cw2 = { path = "../../packages/cw2", version = "0.14.0" }
Expand All @@ -31,6 +32,5 @@ thiserror = { version = "1.0.23" }
[dev-dependencies]
anyhow = "1"
assert_matches = "1"
cosmwasm-schema = { version = "1.0.0" }
cw-multi-test = { path = "../../packages/multi-test", version = "0.14.0" }
derivative = "2"
File renamed without changes.
2 changes: 1 addition & 1 deletion contracts/cw1155-base/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
schema = "run --example schema"
schema = "run --bin schema"
4 changes: 1 addition & 3 deletions contracts/cw1155-base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-utils = { path = "../../packages/utils", version = "0.14.0" }
cw2 = { path = "../../packages/cw2", version = "0.14.0" }
cw1155 = { path = "../../packages/cw1155", version = "0.14.0" }
Expand All @@ -26,6 +27,3 @@ cosmwasm-std = { version = "1.0.0" }
schemars = "0.8.1"
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.20" }

[dev-dependencies]
cosmwasm-schema = { version = "1.0.0" }
File renamed without changes.
2 changes: 1 addition & 1 deletion contracts/cw20-base/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
schema = "run --bin schema"
2 changes: 1 addition & 1 deletion contracts/cw20-base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-utils = { path = "../../packages/utils", version = "0.14.0" }
cw2 = { path = "../../packages/cw2", version = "0.14.0" }
cw20 = { path = "../../packages/cw20", version = "0.14.0" }
Expand All @@ -29,5 +30,4 @@ serde = { version = "1.0.103", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.23" }

[dev-dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-multi-test = { path = "../../packages/multi-test", version = "0.14.0" }
File renamed without changes.
2 changes: 1 addition & 1 deletion contracts/cw20-ics20/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
schema = "run --bin schema"
4 changes: 1 addition & 3 deletions contracts/cw20-ics20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-utils = { path = "../../packages/utils", version = "0.14.0" }
cw2 = { path = "../../packages/cw2", version = "0.14.0" }
cw20 = { path = "../../packages/cw20", version = "0.14.0" }
Expand All @@ -28,6 +29,3 @@ schemars = "0.8.1"
semver = "1"
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.23" }

[dev-dependencies]
cosmwasm-schema = { version = "1.0.0" }
File renamed without changes.
2 changes: 1 addition & 1 deletion contracts/cw3-fixed-multisig/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
schema = "run --bin schema"
2 changes: 1 addition & 1 deletion contracts/cw3-fixed-multisig/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-utils = { path = "../../packages/utils", version = "0.14.0" }
cw2 = { path = "../../packages/cw2", version = "0.14.0" }
cw3 = { path = "../../packages/cw3", version = "0.14.0" }
Expand All @@ -28,7 +29,6 @@ serde = { version = "1.0.103", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.23" }

[dev-dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw20 = { path = "../../packages/cw20", version = "0.14.0" }
cw20-base = { path = "../cw20-base", version = "0.14.0", features = ["library"] }
cw-multi-test = { path = "../../packages/multi-test", version = "0.14.0" }
2 changes: 1 addition & 1 deletion contracts/cw3-flex-multisig/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
schema = "run --bin schema"
2 changes: 1 addition & 1 deletion contracts/cw3-flex-multisig/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-utils = { path = "../../packages/utils", version = "0.14.0" }
cw2 = { path = "../../packages/cw2", version = "0.14.0" }
cw3 = { path = "../../packages/cw3", version = "0.14.0" }
Expand All @@ -30,6 +31,5 @@ serde = { version = "1.0.103", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.23" }

[dev-dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw4-group = { path = "../cw4-group", version = "0.14.0" }
cw-multi-test = { path = "../../packages/multi-test", version = "0.14.0" }
2 changes: 1 addition & 1 deletion contracts/cw4-group/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
schema = "run --example schema"
schema = "run --bin schema"
4 changes: 1 addition & 3 deletions contracts/cw4-group/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-utils = { path = "../../packages/utils", version = "0.14.0" }
cw2 = { path = "../../packages/cw2", version = "0.14.0" }
cw4 = { path = "../../packages/cw4", version = "0.14.0" }
Expand All @@ -35,6 +36,3 @@ cosmwasm-std = { version = "1.0.0" }
schemars = "0.8.1"
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.23" }

[dev-dependencies]
cosmwasm-schema = { version = "1.0.0" }
File renamed without changes.
2 changes: 1 addition & 1 deletion contracts/cw4-stake/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
schema = "run --example schema"
schema = "run --bin schema"
4 changes: 1 addition & 3 deletions contracts/cw4-stake/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-schema = { version = "1.0.0" }
cw-utils = { path = "../../packages/utils", version = "0.14.0" }
cw2 = { path = "../../packages/cw2", version = "0.14.0" }
cw4 = { path = "../../packages/cw4", version = "0.14.0" }
Expand All @@ -36,6 +37,3 @@ cosmwasm-std = { version = "1.0.0" }
schemars = "0.8.1"
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.23" }

[dev-dependencies]
cosmwasm-schema = { version = "1.0.0" }
File renamed without changes.

0 comments on commit 8246967

Please sign in to comment.