diff --git a/Cargo.lock b/Cargo.lock index af85f55f..1c4389f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5167,7 +5167,7 @@ dependencies = [ [[package]] name = "pallet-doas" -version = "2.3.1" +version = "12.0.0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5256,7 +5256,7 @@ dependencies = [ [[package]] name = "pallet-process-validation" -version = "3.7.1" +version = "12.0.0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5329,7 +5329,7 @@ dependencies = [ [[package]] name = "pallet-symmetric-key" -version = "2.3.1" +version = "12.0.0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5385,7 +5385,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-free" -version = "2.3.1" +version = "12.0.0" dependencies = [ "frame-support", "frame-system", @@ -5432,7 +5432,7 @@ dependencies = [ [[package]] name = "pallet-utxo-nft" -version = "6.4.1" +version = "12.0.0" dependencies = [ "frame-benchmarking", "frame-support", @@ -9147,7 +9147,7 @@ dependencies = [ [[package]] name = "sqnc-lang" -version = "0.5.1" +version = "12.0.0" dependencies = [ "clap", "exitcode", @@ -9162,7 +9162,7 @@ dependencies = [ [[package]] name = "sqnc-node" -version = "11.4.1" +version = "12.0.0" dependencies = [ "async-trait", "bs58 0.5.1", @@ -9216,7 +9216,7 @@ dependencies = [ [[package]] name = "sqnc-pallet-traits" -version = "3.5.1" +version = "12.0.0" dependencies = [ "frame-support", "parity-scale-codec", @@ -9227,7 +9227,7 @@ dependencies = [ [[package]] name = "sqnc-runtime" -version = "11.3.1" +version = "12.0.0" dependencies = [ "frame-benchmarking", "frame-executive", @@ -9278,7 +9278,7 @@ dependencies = [ [[package]] name = "sqnc-runtime-types" -version = "1.1.1" +version = "12.0.0" dependencies = [ "frame-support", "pallet-process-validation", diff --git a/Cargo.toml b/Cargo.toml index 4cb90cd3..adf4d982 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ resolver = "2" [workspace.package] edition = "2021" +version = "12.0.0" [workspace.dependencies] ############################## diff --git a/Upgrade.md b/Upgrade.md index 06f639a6..0d25bcbc 100644 --- a/Upgrade.md +++ b/Upgrade.md @@ -71,7 +71,7 @@ If tests pass, bump at least a minor version in the pallet `Cargo.toml` e.g. `pa Test that the upgraded dependencies work for the runtime, including the newly upgraded pallets `cargo build --release -p sqnc-runtime`. Fix any compilation errors. -Bump the runtime version in `runtime/Cargo.toml`. Also increment the runtime `spec_version` in `runtime/src/lib.rs` to match. Note `spec_version` does not recognize semver, so treat it as a whole number. e.g. in place of `5.6.8` the `spec_version` would be `568`. +Bump the version in top-level `Cargo.toml`. Also increment the runtime `spec_version` in `runtime/src/lib.rs` by one. Run the tests for the runtime: diff --git a/node/Cargo.toml b/node/Cargo.toml index eb2be2a0..8091be3c 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -6,7 +6,7 @@ edition = '2021' license = 'Apache-2.0' repository = 'https://github.com/digicatapult/sqnc-node/' name = 'sqnc-node' -version = '11.4.1' +version = { workspace = true } [[bin]] name = 'sqnc-node' diff --git a/pallets/doas/Cargo.toml b/pallets/doas/Cargo.toml index 9ac00d51..6f55a84c 100644 --- a/pallets/doas/Cargo.toml +++ b/pallets/doas/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pallet-doas" -version = "2.3.1" +version = { workspace = true } authors = [ "Digital Catapult ", "Parity Technologies ", diff --git a/pallets/process-validation/Cargo.toml b/pallets/process-validation/Cargo.toml index 70154f60..ff71bb02 100644 --- a/pallets/process-validation/Cargo.toml +++ b/pallets/process-validation/Cargo.toml @@ -5,7 +5,7 @@ edition = '2021' license = 'Apache-2.0' repository = 'https://github.com/digicatapult/sqnc-node/' name = 'pallet-process-validation' -version = "3.7.1" +version = { workspace = true } [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] diff --git a/pallets/symmetric-key/Cargo.toml b/pallets/symmetric-key/Cargo.toml index 21e24a50..51042c65 100644 --- a/pallets/symmetric-key/Cargo.toml +++ b/pallets/symmetric-key/Cargo.toml @@ -5,7 +5,7 @@ edition = '2021' license = 'Apache-2.0' repository = 'https://github.com/digicatapult/sqnc-node/' name = 'pallet-symmetric-key' -version = "2.3.1" +version = { workspace = true } [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] diff --git a/pallets/traits/Cargo.toml b/pallets/traits/Cargo.toml index ebbb0c3b..1c8bad2d 100644 --- a/pallets/traits/Cargo.toml +++ b/pallets/traits/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sqnc-pallet-traits" -version = "3.5.1" +version = { workspace = true } edition = "2021" authors = ['Digital Catapult '] license = 'Apache-2.0' diff --git a/pallets/transaction-payment-free/Cargo.toml b/pallets/transaction-payment-free/Cargo.toml index f8758ada..a154b475 100644 --- a/pallets/transaction-payment-free/Cargo.toml +++ b/pallets/transaction-payment-free/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pallet-transaction-payment-free" -version = "2.3.1" +version = { workspace = true } authors = [ "Digital Catapult ", "Parity Technologies ", diff --git a/pallets/utxo-nft/Cargo.toml b/pallets/utxo-nft/Cargo.toml index 51e22a10..46fd8a1f 100644 --- a/pallets/utxo-nft/Cargo.toml +++ b/pallets/utxo-nft/Cargo.toml @@ -5,7 +5,7 @@ edition = '2021' license = 'Apache-2.0' repository = 'https://github.com/digicatapult/sqnc-node/' name = 'pallet-utxo-nft' -version = "6.4.1" +version = { workspace = true } [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index bb39d14f..b6c5dc9b 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sqnc-runtime" -version = "11.3.1" +version = { workspace = true } authors = ["Digital Catapult "] edition = "2021" license = "Apache-2.0" diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index cb1faa8b..7b1d9456 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -87,7 +87,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("sqnc"), impl_name: create_runtime_str!("sqnc"), authoring_version: 1, - spec_version: 1131, + spec_version: 1132, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1, diff --git a/runtime/types/Cargo.toml b/runtime/types/Cargo.toml index b342ea9b..2bd2228a 100644 --- a/runtime/types/Cargo.toml +++ b/runtime/types/Cargo.toml @@ -5,7 +5,7 @@ edition = '2021' license = 'Apache-2.0' repository = 'https://github.com/digicatapult/sqnc-node/' name = 'sqnc-runtime-types' -version = "1.1.1" +version = { workspace = true } [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] diff --git a/scripts/check-version.sh b/scripts/check-version.sh index 03d0735c..2761f90b 100755 --- a/scripts/check-version.sh +++ b/scripts/check-version.sh @@ -43,7 +43,7 @@ function assert_tomlq() { function get_working_copy_version() { assert_tomlq - CURRENT_VERSION=$(tomlq .package.version ./node/Cargo.toml | sed 's/"//g') + CURRENT_VERSION=$(tomlq .workspace.package.version ./Cargo.toml | sed 's/"//g') printf "This version found to be %s\n" "$CURRENT_VERSION" diff --git a/tools/lang/Cargo.toml b/tools/lang/Cargo.toml index daa0e87c..4002adbd 100644 --- a/tools/lang/Cargo.toml +++ b/tools/lang/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sqnc-lang" authors = ['Digital Catapult '] -version = "0.5.1" +version = { workspace = true } edition = "2021" [lib]