-
Notifications
You must be signed in to change notification settings - Fork 448
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
Release v4.0.0 alpha.2
#1408
Conversation
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 |
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
ink
crateThe
ink_lang
crate has been replaced in #1223 by a new top levelink
crate. All existing sub-crates are reexported and should be used via the new
ink
crate, so e.g.ink::env
instead ofink_env
. Contract authors should now import the top levelink
crate instead of the individual crates.Migration
Cargo.toml
Replace all individualink_*
crate dependencies with theink
crate.use ink_lang as ink
idiom.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
Mapping
fields withMapping::default()
instead ofink_lang::utils::initialize_contract
inconstructors. See
erc20
and other examples which use aMapping
.SpreadAllocate
,SpreadLayout
andPackedLayout
implementations.Removal of
wee-alloc
supportink! uses a bump allocator by default, additionally we supported another allocator (
wee-alloc
)through a feature flag.
wee-alloc
is no longer maintained and we removed support for it.Changed
ink
entrance crate ‒ #1223XXH32
instead ofsha256
for calculating storage keys ‒ #1393Fixed
docs
field ‒ #1385Added
ink_env::pay_with_call!
helper macro for off-chain emulation of sending payments with contract message calls ‒ #1379Removed
wee-alloc
‒ #1403