OpenZeppelin Contracts is a library for secure smart contract development. (by OpenZeppelin)

Openzeppelin-contracts Alternatives

Similar projects and alternatives to openzeppelin-contracts

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better openzeppelin-contracts alternative or higher similarity.

Suggest an alternative to openzeppelin-contracts

Reviews and mentions

Posts with mentions or reviews of openzeppelin-contracts. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-19.
  • Has anyone built a dApp here? If so can you share what you built? Anyone want to build one together? | 2021-09-20
    I don't know a good DAO project off the top of my head, but if you've already read through the Solidity documentation, have a look at the OpenZeppelin contracts for some examples of this done well.
    function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
  • How do I start developing dapps? | 2021-09-15
    You can also take a look at the templates by OpenZeppelin, they are great for starting contracts/tokens without reinventing the wheel ;)
  • Deploy and Verify smart contracts using Hardhat | 2021-09-13
    As we are importing openzepplin files in our contract, hence we are going to install the OpenZepplin npm package in our project as:
  • NFT 1st sell and royalties split | 2021-09-12
    For payment splitting, check out Open Zeppelin's payment splitter contract. It is built for ETH, though I recently upgraded it for ERC20 tokens, and in the middle of writing a tutorial about it.
  • FCA chair urges investors not to take cryptocurrency advice from Kim Kardashian
    In the interest in giving an honest answer, because I've actually read the ERC721 standard that underpins NFTs, & one of the implementations of the ERC721 standard, & (at least) know the high-level specifications of Ethereum:
  • So what if there is a bug? | 2021-09-07
    If you don't want to do something so drastic as destroy the contract, you can make a contract modifier that checks an "isPaused" boolean before executing the method. As with the kill-switch, the methods for pausing/unpausing should have restricted access. Open Zeppelin has a contract module for this here:
  • YSK: ERC-20 tokens are just a balance tied to your address in a smart contract, and are not stored in your wallet.
  • Has anyone tried to create a coin with polygon? I have tried to find this on their site but no luck. Does anyone have a link to their coin building page?
    All you have to do is use OpenZeppelin’s library to implement a basic erc20 token. I think I used a tutorial like this one. If you have some programming and command line experience, it should not take that much to publish your own token!
  • Ask HN: What are some job sectors which are crying out for tech talent in 2021? | 2021-08-28
    Less than you think. Having some general ideal about the main asset classes and how finance works is useful but don't feel like you need a CFA or anything. Same goes for game theory, helpful especially on the protocol design side of things but don't feel like you need to be an expert to get started.

    More useful coming from webdev would be good solidity [1] skills. There is a real shortage currently. Most general engineering practice carries over. Threat modelling is useful and more generally having a good understand about security. You should know about unit tests, code coverage and how they fit into building robust code.

    In term of tools and frameworks. Hardhat [2] in my experience is a little nicer to use than truffle [3] but both help loads. Knowing how to use the Openzeppelin [4] contracts would be very handy. Waffle [5] for testing is helpful. Understanding about ERC-20 [6], ERC-721 [7] and ERC-1155 [8].

    Cryptozombies [9] is a decent tutorial to get you started. Rust is also useful to know for Polkadot [10] (for ink! [11]) and other chains. The DeFi developer [12] roadmap seems decent for more resources.













  • "Exception generated in contract code" while no require statement has been violated | 2021-08-26
    import ""; import ""; import ""; import "";
  • Daily General Discussion - August 22, 2021
  • NFT for starters! Need help, how do you make a randomly generated NFT with metadata? | 2021-08-21
  • Just found out about the token and looking for some answers
    Contract templates you can find here:
  • When Safemooners tell you to 'buy the dip' but it's been dipping for a quarter year.
    import "";


Basic openzeppelin-contracts repo stats
7 days ago

OpenZeppelin/openzeppelin-contracts is an open source project licensed under MIT License which is an OSI approved license.

Scout APM: A developer's best friend. Try free for 14-days
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Find remote JavaScript jobs at our new job board There are 13 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.