2019-01-28 19:44:32 +03:00
2018-12-18 14:26:23 -03:00
2017-09-16 10:20:06 -04:00
2019-01-24 17:49:30 -03:00
2018-04-26 12:36:41 -03:00
2019-01-24 13:18:09 -03:00
2018-07-27 14:55:24 -03:00
2017-12-20 18:28:22 -03:00
2019-01-18 15:45:25 -03:00
2017-09-16 10:20:06 -04:00
2018-09-07 14:33:38 -03:00
2019-01-24 13:18:09 -03:00
2019-01-28 19:44:32 +03:00
2018-12-12 15:36:00 -03:00
2019-01-24 19:17:18 -03:00

OpenZeppelin

OpenZeppelin EVM Package

NPM Package Build Status

OpenZeppelin is a library for secure smart contract development. It provides implementations of standards like ERC20 and ERC721 which you can deploy as-is or extend to suit your needs, as well as Solidity components to build custom contracts and more complex decentralized systems.

This fork of OpenZeppelin is set up as a reusable EVM Package. It is deployed to the kovan, rinkeby, and ropsten test networks, as well as to the main Ethereum network. You can reuse any of the pre-deployed on-chain contracts by simply linking to them using ZeppelinOS, or reuse their Solidity source code as with the vanilla version of OpenZeppelin.

Install

npm install openzeppelin-eth

Usage

To write your custom contracts, import ours and extend them through inheritance.

pragma solidity ^0.5.0;

import 'zos-lib/contracts/Initializable.sol';
import 'openzeppelin-eth/contracts/token/ERC721/ERC721Full.sol';
import 'openzeppelin-eth/contracts/token/ERC721/ERC721Mintable.sol';

contract MyNFT is Initializable, ERC721Full, ERC721Mintable {
  function initialize() public initializer {
    ERC721.initialize();
    ERC721Enumerable.initialize();
    ERC721Metadata.initialize("MyNFT", "MNFT");
    ERC721Mintable.initialize(msg.sender);
  }
}

Pre-deployed contracts

  • StandaloneERC20
  • StandaloneERC721
  • TokenVesting
  • PaymentSplitter

License

OpenZeppelin is released under the MIT License.

Description
OpenZeppelin Contracts is a library for secure smart contract development.
Readme MIT 100 MiB
Languages
JavaScript 84.2%
Ruby 14.1%
Python 0.7%
Shell 0.5%
Solidity 0.4%