-
Notifications
You must be signed in to change notification settings - Fork 480
Release v4.0.0-alpha.3
#1409
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
Merged
Release v4.0.0-alpha.3
#1409
Conversation
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
cmichi
approved these changes
Sep 21, 2022
HCastano
approved these changes
Sep 21, 2022
Contributor
HCastano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
Co-authored-by: Hernando Castano <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1409 +/- ##
==========================================
+ Coverage 71.98% 71.99% +0.01%
==========================================
Files 187 187
Lines 5953 5953
==========================================
+ Hits 4285 4286 +1
+ Misses 1668 1667 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When attempting to release
alpha.2, thecargo releaseauto bumped the version toalpha.3(see commits in this PR) because I supplied simplyalphaas thelevelinstead of the specific versionv4.0.0 alpha.2. The result was some crates were published asv4.0.0-alpha.3, with others not being published because the inter-crate dependency versions were not updated.Version 4.0.0-alpha.3
Breaking Changes
New
inkcrateThe
ink_langcrate has been replaced in #1223 by a new top levelinkcrate. All existing sub-crates are reexported and should be used via the new
inkcrate, so e.g.ink::envinstead ofink_env. Contract authors should now import the top levelinkcrate instead of the individual crates.Migration
Cargo.tomlReplace all individualink_*crate dependencies with theinkcrate.use ink_lang as inkidiom.ink_env➜ink::env.Storage Rework
#1331 changes the way
ink!works with contract storage. Storage keysare generated at compile-time, and user facing abstractions which determine how contract data is laid out in storage
have changed.
Migration
Mappingfields withMapping::default()instead ofink_lang::utils::initialize_contractinconstructors. See
erc20and other examples which use aMapping.SpreadAllocate,SpreadLayoutandPackedLayoutimplementations.Removal of
wee-allocsupportink! uses a bump allocator by default, additionally we supported another allocator (
wee-alloc)through a feature flag.
wee-allocis no longer maintained and we removed support for it.Changed
inkentrance crate ‒ #1223XXH32instead ofsha256for calculating storage keys ‒ #1393Fixed
docsfield ‒ #1385Added
ink_env::pay_with_call!helper macro for off-chain emulation of sending payments with contract message calls ‒ #1379Removed
wee-alloc‒ #1403