openzeppelin-contracts

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?
    reddit.com/r/Python | 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.
  • ODESTINYFINANCECOIN surcecode
    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: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 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?
    reddit.com/r/ethdev | 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 ;) https://github.com/OpenZeppelin/openzeppelin-contracts/
  • Deploy and Verify smart contracts using Hardhat
    dev.to | 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
    reddit.com/r/ethdev | 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. https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/finance/PaymentSplitter.sol
  • 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?
    reddit.com/r/solidity | 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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/b0cf6fbb7a70f31527f36579ad644e1cf12fdf4e/contracts/security/Pausable.sol
  • 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?
    news.ycombinator.com | 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.

    [1] https://soliditylang.org/

    [2] https://hardhat.org/

    [3] https://www.trufflesuite.com/

    [4] https://openzeppelin.com/contracts/

    [5] https://getwaffle.io/

    [6] https://eips.ethereum.org/EIPS/eip-20

    [7] https://eips.ethereum.org/EIPS/eip-721

    [8] https://eips.ethereum.org/EIPS/eip-1155

    [9] https://cryptozombies.io/

    [10] https://polkadot.network/

    [11] https://github.com/paritytech/ink

    [12] https://github.com/OffcierCia/DeFi-Developer-Road-Map

  • "Exception generated in contract code" while no require statement has been violated
    reddit.com/r/ethdev | 2021-08-26
    import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Counters.sol";
  • Daily General Discussion - August 22, 2021
  • NFT for starters! Need help, how do you make a randomly generated NFT with metadata?
    reddit.com/r/ethdev | 2021-08-21
  • Just found out about the token and looking for some answers
    Contract templates you can find here: https://github.com/OpenZeppelin/openzeppelin-contracts
  • When Safemooners tell you to 'buy the dip' but it's been dipping for a quarter year.
    import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0-solc-0.7/contracts/token/ERC20/ERC20.sol";

Stats

Basic openzeppelin-contracts repo stats
65
12,254
9.5
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.
scoutapm.com
Find remote JavaScript jobs at our new job board 99remotejobs.com. There are 13 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.