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

Release v3.1.0 #1237

Merged
merged 6 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from 4 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
26 changes: 22 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,36 @@ 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).

## [Unreleased]
## [3.1.0]

**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)

### Added
- Standardised verifiable builds - [#1148](https://github.com/paritytech/cargo-contract/pull/1148)
- Enable Wasm sign_ext [#1189](https://github.com/paritytech/cargo-contract/pull/1189)
- Expose extrinsics operations as a library - [#1181](https://github.com/paritytech/cargo-contract/pull/1181)
- Suggest valid message or constructor name, when misspelled - [#1162](https://github.com/paritytech/cargo-contract/pull/1162)
- Add flag -y as a shortcut for --skip-confirm - [#1127](https://github.com/paritytech/cargo-contract/pull/1127)
- Add command line argument --max-memory-pages - [#1128](https://github.com/paritytech/cargo-contract/pull/1128)
- Show Gas consumption by default for dry-runs - [#1121](https://github.com/paritytech/cargo-contract/pull/1121)

### Changed
- Dry-run result output improvements - [1123](https://github.com/paritytech/cargo-contract/pull/1123)
- Display build progress with --output-json, print to stderr [1211](https://github.com/paritytech/cargo-contract/pull/1211)
- Display build progress with --output-json, print to stderr - [1211](https://github.com/paritytech/cargo-contract/pull/1211)
- Update `subxt` to `0.30.1` with new `subxt-signer` crate - [#1236](https://github.com/paritytech/cargo-contract/pull/1236)
- 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)

### Fixed
- Configure tty output correctly - [#1209]((https://github.com/paritytech/cargo-contract/pull/1209))

- Configure tty output correctly - [#1209](https://github.com/paritytech/cargo-contract/pull/1209)
- Set `lto = "thin"` for metadata build to fix `linkme` on macOS - [#1200](https://github.com/paritytech/cargo-contract/pull/1200)
- fix(build): An error when running with `--lint` - [#1174](https://github.com/paritytech/cargo-contract/pull/1174)
- 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.0.1]

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ In order to publish a new version of `cargo-contract`:

- Bump all crate versions, we move them in lockstep.
- Make sure your PR is approved by one or more core developers.
- Publish `metadata` ➜ `transcode` ➜ `build` ➜ `cargo-contract`.
- Publish `metadata` ➜ `transcode` ➜ `extrinsics` ➜ `build` ➜ `cargo-contract`.
- Merge you PR and push a tag `vX.X` with your version number.
- Create a GitHub release with the changelog entries.

Expand Down
6 changes: 2 additions & 4 deletions build-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM docker.io/bitnami/minideb:bullseye-amd64 as slimmed-rust

# The rust version to use
# The 1.69 toolchain is temporarily required to build ink! contracts because of
# https://github.com/paritytech/cargo-contract/issues/1139
ARG RUST_VERSION=1.69
ARG RUST_VERSION=stable
# The cargo contract version to use
ARG CARGO_CONTRACT_VERSION=3.0.1
ARG CARGO_CONTRACT_VERSION=3.1.0
# Url to the cargo-contract repository to install from
ARG CARGO_CONTRACT_GIT
# Branch to use in git repository
Expand Down
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.0.1"
version = "3.1.0"
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.0.1", path = "../metadata" }
contract-metadata = { version = "3.1.0", 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.0.1"
version = "3.1.0"
authors = ["Parity Technologies <[email protected]>"]
build = "build.rs"
edition = "2021"
Expand All @@ -18,9 +18,9 @@ include = [
]

[dependencies]
contract-build = { version = "3.0.1", path = "../build" }
contract-extrinsics = { version = "3.0.1", path = "../extrinsics" }
contract-transcode = { version = "3.0.1", path = "../transcode" }
contract-build = { version = "3.1.0", path = "../build" }
contract-extrinsics = { version = "3.1.0", path = "../extrinsics" }
contract-transcode = { version = "3.1.0", 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.0.1"
version = "3.1.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

Expand All @@ -14,9 +14,9 @@ keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"]
include = ["Cargo.toml", "*.rs", "LICENSE"]

[dependencies]
contract-build = { version = "3.0.1", path = "../build" }
contract-metadata = { version = "3.0.1", path = "../metadata" }
contract-transcode = { version = "3.0.1", path = "../transcode" }
contract-build = { version = "3.1.0", path = "../build" }
contract-metadata = { version = "3.1.0", path = "../metadata" }
contract-transcode = { version = "3.1.0", 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.0.1"
version = "3.1.0"
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.0.1"
version = "3.1.0"
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.0.1", path = "../metadata" }
contract-metadata = { version = "3.1.0", path = "../metadata" }
escape8259 = "0.5.2"
hex = "0.4.3"
indexmap = "2.0.0"
Expand Down