Skip to content

Releases: dl-solarity/solidity-lib

v2.6.1

11 Oct 15:15
Compare
Choose a tag to compare

Release notes v2.6.1 🎉

This is a bugfix release

Fixes

  • Fixed UniswapV2Oracle incompatibility with the Solidity 0.8.0 version which resulted in the revert when the desired overflow happened.

v2.6.0

10 Oct 10:45
Compare
Choose a tag to compare

Release notes v2.6.0 🎉

This is a major release

What's new

  • The whole repository got rewritten to use typescript and ethers-v6.
  • Added flexible UniswapV2Oracle contract.
  • Added lightweight SBT contract.
  • Added BlockGuard contract that acts as a flash loan protection mechanism.
  • Added DiamondERC165 facet.

Changes

  • Diamond contracts got refactored to be compliant with ERC-2535 diamond standard.
  • PoolContractsRegistry now has an internal virtual function to override the default deployment of Beacons.
  • ContractsRegistry now also has an internal virtual function to override the default deployment of TransparentProxies.
  • ArrayHelper utility lowerBound() and upperBound() functions now work with storage arrays instead of memory ones.
  • DiamondERC20 got rid of non-standard increaseAllowance() and decreaseAllowance() functions.
  • DecimalsConverter received a syntax sugar upgrade which now allows decimals conversion directly to ERC20 tokens.

Fixes

  • Many internal functions became virtual to be easily overridable.
  • Fixed storage variables visibility to be more SOLID.

v2.5.4

08 Aug 14:15
Compare
Choose a tag to compare

Release notes v2.5.4 🎉

This is a minor release

What's new

  • Added push methods to Vector to support pushes of dynamic arrays.
  • Added addProxyContractAddCall method to AbstractContractsRegistry to avoid initialization front-running.

Fixes

  • Changed bytes behavioral variable from calldata to memory in AbstactDependant.
  • Changed decimals return value from uint256 to uint8 in DeciamalsConverter.

v2.5.2

02 Aug 10:21
de6603a
Compare
Choose a tag to compare

Release notes v2.5.2 🎉

This is a bugfix release

Fixes

  • Removed Context from ERC20Diamond to follow conventions of other contracts.

v2.5.1

19 Jul 09:48
c024a09
Compare
Choose a tag to compare

Release notes v2.5.1 🎉

This is a bugfix release

What's new

  • Added yielding with value to ReturnDataProxy contract.

Fixes

  • Fixed calldata length bug in the ReturnDataProxy contract.
  • Fixed comments style.

v2.5.0

18 Jul 11:51
Compare
Choose a tag to compare

Release notes v2.5.0 🎉

This is a major release

What's new

  • Added ReturnDataProxy for returndata yielding to avoid extra ABI encoding/decoding.
  • Added DiamondERC20 diamond facet contract to implement ERC20 tokens inside diamonds.
  • Added MultiOwnable contract to set up equally rightful owners of the contract.
  • Added crop() function to arrays utility to decrease the length of arrays.
  • Added asDynamic() function to convert static memory arrays to dynamic ones.
  • Added asSingletonArray() function for bool.
  • Upgraded OpenZeppelin contracts version to 4.9.2.

Fixes

  • Fixed code examples inside the documentation to work with the latest hardhat-markup plugin.

v2.4.4

05 Jun 10:25
39e2c85
Compare
Choose a tag to compare

Release notes v2.4.4 🎉

This is a feature release

What's new

  • Added IncrementalMerkleTree implementation for cheap on-chain history recording.

Fixes

  • Fixed documentation tags.

v2.4.3

25 May 09:10
Compare
Choose a tag to compare

Release notes v2.4.3

This is a minor feature release

What's new

  • Added default user group to RBACGroupable. Now one is able to toggle a default group with the name "" without explicitly assigning it to the users.

Fixes

  • Fixed variables visibility in AbstractCompoundRateKeeper. Made public variables private and added getters.

v2.4.2

23 Apr 09:57
497ea97
Compare
Choose a tag to compare

Release notes v2.4.2

This is a minor feature release

What's new

  • Added beforeFallback function to the Diamond proxy
  • Added virtual modifier to OwnableDiamond functions

Fixes

  • Fixed internal function naming in the diamond pattern

v2.4.1

21 Apr 08:59
Compare
Choose a tag to compare

Release notes v2.4.1

This is a minor feature release

  • Added virtual modifier to Diamond fallback function