Contracts 4.0 Timeline

We know many of you are awaiting a release of OpenZeppelin Contracts with support for Solidity 0.8. Since this is a breaking change, we will be releasing a version 4.0 of Contracts, with a few other changes bundled in as well.

This is the timeline we’re aiming for:

  • February 19th 22nd: Preview release (Beta). The goal of this preview is to gather feedback on a few changes that are somewhat big. There could be other preview releases during the next 2 weeks, based on the feedback we receive.
  • March 4th: Release candidate.
  • March 11th: Final release.

People who want to jump onto Solidity 0.8 sooner would be able to use the preview release starting next week. The only drawback is you may see some breaking changes over the course of the following weeks until the final release is out.

Stay tuned!


Hope crowdsale contract and staking contract are part of 4.0

1 Like

HI @ashishk74,

Neither are in the plan for OpenZeppelin Contracts 4.0 currently.

Crowdsales were removed from the 3.0.0 release. They are available in OpenZeppelin Contracts 2.x. See the documentation for details:

For staking, I suggest adding to the discussion: Studying the building blocks of DeFi.

Crowdsale and stacking are pretty wide concepts, that take very different forms depending on which project you consider. If you have ideas of generic contracts, that could benefit many projects, feel free to share any ideas !

1 Like

Does this mean that SafeMath will be deprecated due to the changed arithmetic semantics in Solidity 0.8.x?

1 Like

Hi @jmcph4,

Welcome to the community :wave:

Following this discussion, SafeMath has been slightly modified to benefit from solidity ^0.8.0 new features. This new version is visible in the master branch (which is now ^0.8.0 based) and soon in 4.0 preview. If you have any concern with the “new” version of SafeMath, fell free to raise an issue.

1 Like

A quick update, the preview release will be out Monday instead of today Friday. Sorry for this delay!

1 Like

See the Beta announcement:

1 Like