Skip to content

Commit

Permalink
Release v4.0.0-alpha (#1243)
Browse files Browse the repository at this point in the history
* Bump versions to `4.0.0-alpha`

* CHANGELOG.md

* Add metadata update
  • Loading branch information
ascjones authored Jul 27, 2023
1 parent 4e20f68 commit 07d2b6a
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 22 deletions.
21 changes: 17 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.0]
## [4.0.0-alpha]

Replaces the yanked `3.1.0` due to issues with supporting *both* Rust versions < `1.70`
and >= `1.70`.

If you intend to use `cargo-contract` with Rust >= `1.70`, and deploy to a node with a
version of `pallet-contracts` at least `polkadot-1.0.0`, then this is the release to use.

If you still want to compile with `1.69` and target an older version of `pallet-contracts`
then use the previous `3.0.1` release.

**Notable changes:**
- Verifiable builds inside a docker container - [#1148](https://github.com/paritytech/cargo-contract/pull/1148)
- Extrinsics extracted to separate crate - [#1181](https://github.com/paritytech/cargo-contract/pull/1181)
- Fix building contracts with Rust >= 1.70: enable `sign_ext` Wasm opcode - [#1189](https://github.com/paritytech/cargo-contract/pull/1189)
- Verifiable builds inside a docker container - [#1148](https://github.com/paritytech/cargo-contract/pull/1148)
- Extrinsics extracted to separate crate - [#1181](https://github.com/paritytech/cargo-contract/pull/1181)
- Fix building contracts with Rust >= 1.70: enable `sign_ext` Wasm opcode - [#1189](https://github.com/paritytech/cargo-contract/pull/1189)

### Added
- Standardised verifiable builds - [#1148](https://github.com/paritytech/cargo-contract/pull/1148)
Expand All @@ -27,6 +36,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgrade wasm-opt to 0.113 - [#1188](https://github.com/paritytech/cargo-contract/pull/1188)
- Update substrate dependencies - [#1149](https://github.com/paritytech/cargo-contract/pull/1149)
- Make output format of cargo contract info consistent with other subcommands - [#1120](https://github.com/paritytech/cargo-contract/pull/1120)
- set minimum supported `rust-version` to `1.70` - [#1241](https://github.com/paritytech/cargo-contract/pull/1241)
- `[extrinsics]` update metadata to `substrate-contracts-node 0.29` - [#1242](https://github.com/paritytech/cargo-contract/pull/1242)

### Fixed
- Configure tty output correctly - [#1209](https://github.com/paritytech/cargo-contract/pull/1209)
Expand All @@ -35,6 +46,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Dry-run result output improvements - [#1123](https://github.com/paritytech/cargo-contract/pull/1123)
- feat: use `CARGO_ENCODED_RUSTFLAGS` instead of `RUSTFLAGS` - [#1124](https://github.com/paritytech/cargo-contract/pull/1124)

## [3.1.0] **YANKED**

## [3.0.1]

### Fixed
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "contract-build"
version = "3.1.0"
version = "4.0.0-alpha"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

Expand Down Expand Up @@ -44,7 +44,7 @@ tokio-stream = "0.1"
bollard = "0.14"
crossterm = "0.26.1"

contract-metadata = { version = "3.1.0", path = "../metadata" }
contract-metadata = { version = "4.0.0-alpha", path = "../metadata" }

[target.'cfg(unix)'.dependencies]
users = "0.11"
Expand Down
8 changes: 4 additions & 4 deletions crates/cargo-contract/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-contract"
version = "3.1.0"
version = "4.0.0-alpha"
authors = ["Parity Technologies <[email protected]>"]
build = "build.rs"
edition = "2021"
Expand All @@ -18,9 +18,9 @@ include = [
]

[dependencies]
contract-build = { version = "3.1.0", path = "../build" }
contract-extrinsics = { version = "3.1.0", path = "../extrinsics" }
contract-transcode = { version = "3.1.0", path = "../transcode" }
contract-build = { version = "4.0.0-alpha", path = "../build" }
contract-extrinsics = { version = "4.0.0-alpha", path = "../extrinsics" }
contract-transcode = { version = "4.0.0-alpha", path = "../transcode" }

anyhow = "1.0.72"
clap = { version = "4.3.19", features = ["derive", "env"] }
Expand Down
8 changes: 4 additions & 4 deletions crates/extrinsics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "contract-extrinsics"
version = "3.1.0"
version = "4.0.0-alpha"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
rust-version = "1.70"
Expand All @@ -15,9 +15,9 @@ keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"]
include = ["Cargo.toml", "*.rs", "LICENSE", "src/**/*.scale",]

[dependencies]
contract-build = { version = "3.1.0", path = "../build" }
contract-metadata = { version = "3.1.0", path = "../metadata" }
contract-transcode = { version = "3.1.0", path = "../transcode" }
contract-build = { version = "4.0.0-alpha", path = "../build" }
contract-metadata = { version = "4.0.0-alpha", path = "../metadata" }
contract-transcode = { version = "4.0.0-alpha", path = "../transcode" }

anyhow = "1.0.72"
clap = { version = "4.3.19", features = ["derive", "env"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/metadata/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "contract-metadata"
version = "3.1.0"
version = "4.0.0-alpha"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

Expand Down
4 changes: 2 additions & 2 deletions crates/transcode/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "contract-transcode"
version = "3.1.0"
version = "4.0.0-alpha"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

Expand All @@ -20,7 +20,7 @@ path = "src/lib.rs"
anyhow = "1.0.72"
base58 = { version = "0.2.0" }
blake2 = { version = "0.10.4", default-features = false }
contract-metadata = { version = "3.1.0", path = "../metadata" }
contract-metadata = { version = "4.0.0-alpha", path = "../metadata" }
escape8259 = "0.5.2"
hex = "0.4.3"
indexmap = "2.0.0"
Expand Down

0 comments on commit 07d2b6a

Please sign in to comment.