This release contains the first part of our work on governance contracts. The new
ERC20VotesComp extensions to the ERC20 token include vote delegation mechanisms essential to using these tokens for voting in governance systems like Compound’s GovernorAlpha and GovernorBravo.
The full changelog is listed below. Try it out and provide any feedback before the final release one week from now!
ERC20Votes: add a new extension of the
ERC20token with support for voting snapshots and delegation. (#2632)
ERC20VotesComp: Variant of
ERC20Votesthat is compatible with Compound’s
Comptoken interface but restricts supply to
ERC20Wrapper: add a new extension of the
ERC20token which wraps an underlying token. Deposit and withdraw guarantee that the total supply is backed by a corresponding amount of underlying token. (#2633)
- Enumerables: Improve gas cost of removal in
- Enumerables: Improve gas cost of lookup in
Counter: add a reset method. (#2678)
- Tokens: Wrap definitely safe subtractions in
Math: Add a
ceilDivmethod for performing ceiling division.
ERC1155Supply: add a new
ERC1155extension that keeps track of the totalSupply of each tokenId. (#2593)
BitMaps: add a new
BitMapslibrary that provides a storage efficient datastructure for
boolmapping with contiguous keys. (#2710)
ERC20FlashMintis no longer a Draft ERC. (#2673))