-
Notifications
You must be signed in to change notification settings - Fork 480
Release v4.0.0 alpha.2
#1408
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 v4.0.0 alpha.2
#1408
Conversation
cmichi
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.
Please include the suggestions I made, other than that 👍 .
|
Small thing, can we make sure #1401 gets in to the release? |
Sure, I will pick this up again tomorrow and include that |
32d42c9 to
c9e99e7
Compare
Co-authored-by: Michael Müller <[email protected]>
Co-authored-by: Michael Müller <[email protected]>
e7e1761 to
8841505
Compare
Codecov Report
@@ Coverage Diff @@
## master #1408 +/- ##
==========================================
- Coverage 71.98% 66.15% -5.83%
==========================================
Files 187 186 -1
Lines 5953 5927 -26
==========================================
- Hits 4285 3921 -364
- Misses 1668 2006 +338
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
![]()
Version 4.0.0-alpha.2
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