talira

OpenZeppelin Contracts

Library of community-vetted Solidity smart contracts: ERC20, ERC721, access control and reusable components

open sourceMITfree

OpenZeppelin Contracts is a library for secure smart contract development in Solidity. It implements standards such as ERC20 and ERC721, a flexible role-based permissioning scheme, and reusable components for building custom contracts and decentralized systems. Audited releases are published on npm under the latest tag, with unaudited dev and next tags beside them, and it also installs into Foundry projects from git. OpenZeppelin's Contracts Wizard generates contracts from it interactively.

Problems it solves

  • write an ERC20 token contract without implementing the standard myself
  • add role-based permissions to my Solidity contract
  • use audited building blocks for a smart contract instead of writing them from scratch

Features

  • implementations of token standards such as ERC20 and ERC721
  • role-based access control for contracts
  • reusable Solidity utility components
  • audited releases on npm's latest tag, separate from unaudited dev and next tags

Limitations

  • Storage layouts of different major versions are incompatible, so an upgradeable contract can't safely move from one major version to the next.1
  • Installing from git's master branch gets an unreleased development branch; tagged releases are the safe choice.1