Skip to content

Commit

Permalink
Release v2.0.0 (#970)
Browse files Browse the repository at this point in the history
* v2.0.0

* v2.0.0

* CHANGELOG.md

* Aggregate all changes since `1.5`

* Move to removed

* Update CHANGELOG.md

* Use released `ink!` `4.0` crates

* Cargo.lock
  • Loading branch information
ascjones authored Feb 15, 2023
1 parent 901d805 commit 9502d89
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 31 deletions.
49 changes: 48 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,62 @@ 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]
## [2.0.0]

Major release compatible with `ink! 4.0.0`. All the changes in aggregate since `1.5`:

### Added
- Add support for ink!'s `version` metadata field - [#641](https://github.com/paritytech/cargo-contract/pull/641)
- Add Rust specific build info to metadata - [#680](https://github.com/paritytech/cargo-contract/pull/680)
- Log code hash if contract is already uploaded - [#805](https://github.com/paritytech/cargo-contract/pull/805)
- Add remove command - [#837](https://github.com/paritytech/cargo-contract/pull/837)

### Changed
- Build contracts and dylint driver with stable - [#698](https://github.com/paritytech/cargo-contract/pull/698)
- Compile dylints when compiling the contract - [#703](https://github.com/paritytech/cargo-contract/pull/703)
- Move transcode example to doc test, add helper method - [#705](https://github.com/paritytech/cargo-contract/pull/705)
- Note that alongside this PR we released [`[email protected]`](https://crates.io/crates/contract-transcode/0.2.0)
- Replace custom RPCs by `state_call` - [#701](https://github.com/paritytech/cargo-contract/pull/701)
- Removed requirement to install binaryen. The `wasm-opt` tool is now compiled into `cargo-contract` - [#766](https://github.com/paritytech/cargo-contract/pull/766).
- Make linting opt in with `--lint` - [#799](https://github.com/paritytech/cargo-contract/pull/799)
- Update to weights v2 - [#809](https://github.com/paritytech/cargo-contract/pull/809)
- Update validation for renamed FFI functions - [#816](https://github.com/paritytech/cargo-contract/pull/816)
- Denominated units for balances in events - [#750](https://github.com/paritytech/cargo-contract/pull/750)
- Upgrade wasm-opt to 0.110.2 - [#802](https://github.com/paritytech/cargo-contract/pull/802)
- Pass `--features` through to `cargo` - [#853](https://github.com/paritytech/cargo-contract/pull/853/files)
- Bump minimum requirement of `scale-info` in template to `2.3` - [#847](https://github.com/paritytech/cargo-contract/pull/847/files)
- Remove `unstable` module check, add `--skip-wasm-validation` - [#846](https://github.com/paritytech/cargo-contract/pull/846/files)
- Extract lib for invoking contract build - [#787](https://github.com/paritytech/cargo-contract/pull/787/files)
- Upgrade wasm-opt to 0.111.0 [#888](https://github.com/paritytech/cargo-contract/pull/888)
- Enable `wasm-opt` MVP features only [#891](https://github.com/paritytech/cargo-contract/pull/891)
- Require env_type transcoders to be Send + Sync [#879](https://github.com/paritytech/cargo-contract/pull/879)
- Extrinsics: allow specifying contract artifact directly [#893](https://github.com/paritytech/cargo-contract/pull/893)
- Upgrade `subxt` to `0.26` [#924](https://github.com/paritytech/cargo-contract/pull/924)
- Display detailed cause of an error [#931](https://github.com/paritytech/cargo-contract/pull/931)
- Use package name instead of lib name, default to "rlib" [#929](https://github.com/paritytech/cargo-contract/pull/929)
- Rename `metadata.json` to `{contract_name}.json` - [#952](https://github.com/paritytech/cargo-contract/pull/952)
- Do not postprocess or generate metadata if contract unchanged [#964](https://github.com/paritytech/cargo-contract/pull/964)
- Update `subxt` and substrate dependencies [#968](https://github.com/paritytech/cargo-contract/pull/968)

### Fixed
- Fix `tracing_subscriber` filtering - [#702](https://github.com/paritytech/cargo-contract/pull/702)
- Sync version of transcode crate to fix metadata parsing - [#723](https://githubcom/paritytech/cargo-contract/pull/723)
- Fix numbering of steps during `build` - [#715](https://github.com/paritytech/cargo-contract/pull/715)
- Skip linting if running building in --offline mode - [#737](https://github.com/paritytech/cargo-contract/pull/737)
- Fix storage deposit limit encoding - [#751](https://github.com/paritytech/cargo-contract/pull/751)
- Rewrite relative path for `dev-dependency` - [#760](https://github.com/paritytech/cargo-contract/pull/760)
- Log failure instead of failing when decoding an event - [#769](https://github.com/paritytech/cargo-contract/pull/769)
- Fixed having non-JSON output after calling `instantiate` with `--output-json` - [#839](https://github.com/paritytech/cargo-contract/pull/839/files)
- add `-C target-cpu=mvp` rust flag to build command - [#838](https://github.com/paritytech/cargo-contract/pull/838/files)
- Miscellaneous extrinsics display improvements [#916](https://github.com/paritytech/cargo-contract/pull/916)
- Fix decoding of `LangError` [#919](https://github.com/paritytech/cargo-contract/pull/919)
- Respect the lockfile [#948](https://github.com/paritytech/cargo-contract/pull/948)
- Error if mismatching # of args for instantiate/call [#966](https://github.com/paritytech/cargo-contract/pull/966)
- Pretty-print call dry-run return data [#967](https://github.com/paritytech/cargo-contract/pull/967)

### Removed
- Remove the `test` command [#958](https://github.com/paritytech/cargo-contract/pull/958)
- Remove rust toolchain channel check - [#848](https://github.com/paritytech/cargo-contract/pull/848/files)

## [2.0.0-rc.1] - 2023-02-01
Second release candidate compatible with `ink! 4.0.0-rc`.
Expand Down
41 changes: 22 additions & 19 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 = "2.0.0-rc.1"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

Expand Down Expand Up @@ -36,7 +36,7 @@ wasm-opt = "0.111.0"
which = "4.4.0"
zip = { version = "0.6.4", default-features = false }

contract-metadata = { version = "2.0.0-rc.1", path = "../metadata" }
contract-metadata = { version = "2.0.0", path = "../metadata" }

[build-dependencies]
anyhow = "1.0.69"
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 = "2.0.0-rc.1"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
build = "build.rs"
edition = "2021"
Expand All @@ -18,9 +18,9 @@ include = [
]

[dependencies]
contract-build = { version = "2.0.0-rc.1", path = "../build" }
contract-metadata = { version = "2.0.0-rc.1", path = "../metadata" }
contract-transcode = { version = "2.0.0-rc.1", path = "../transcode" }
contract-build = { version = "2.0.0", path = "../build" }
contract-metadata = { version = "2.0.0", path = "../metadata" }
contract-transcode = { version = "2.0.0", path = "../transcode" }

anyhow = "1.0.69"
clap = { version = "4.1.4", 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 = "2.0.0-rc.1"
version = "2.0.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

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

Expand All @@ -18,12 +18,12 @@ path = "src/lib.rs"

[dependencies]
anyhow = "1.0.69"
contract-metadata = { version = "2.0.0-rc.1", path = "../metadata" }
contract-metadata = { version = "2.0.0", path = "../metadata" }
escape8259 = "0.5.2"
hex = "0.4.3"
indexmap = "1.9.2"
ink_env = "4.0.0-rc"
ink_metadata = "4.0.0-rc"
ink_env = "4.0.0"
ink_metadata = "4.0.0"
itertools = "0.10.5"
tracing = "0.1.37"
nom = "7.1.3"
Expand Down

0 comments on commit 9502d89

Please sign in to comment.