-
Notifications
You must be signed in to change notification settings - Fork 125
Release v2.0.0
#970
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
Merged
Release v2.0.0
#970
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3fc4f0c
v2.0.0
ascjones 7d15f48
v2.0.0
ascjones 44ad76a
CHANGELOG.md
ascjones e2464c7
Aggregate all changes since `1.5`
ascjones 861a36c
Move to removed
ascjones ab2eae5
Merge branch 'master' into v2.0.0
ascjones 56e2b58
Update CHANGELOG.md
ascjones 32c62b9
Use released `ink!` `4.0` crates
ascjones 2d20b7c
Cargo.lock
ascjones File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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) | ||
ascjones marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - 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`. | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
|
|
||
|
|
@@ -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" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
|
|
@@ -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"] } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
|
|
||
|
|
@@ -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" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.