OpenZeppelin - Build Secure Smart Contracts in Solidity

Thư viện code solidity sưu tầm
Phản hồi bài viết
Site Admin
Bài viết: 45
Ngày tham gia: Thứ 5 Tháng 4 04, 2019 2:36 pm

OpenZeppelin - Build Secure Smart Contracts in Solidity

Gửi bài gửi bởi support » Thứ 2 Tháng 4 22, 2019 4:02 pm

OpenZeppelin.png (15.12 KiB) Đã xem 659 lần
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.


Mã: Chọn tất cả

npm install openzeppelin-solidity
OpenZeppelin features a stable API, which means your contracts won't break unexpectedly when upgrading to a newer minor version. You can read ṫhe details in our API Stability document.


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

Mã: Chọn tất cả

pragma solidity ^0.5.0;

import 'openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol';
import 'openzeppelin-solidity/contracts/token/ERC721/ERC721Mintable.sol';

contract MyNFT is ERC721Full, ERC721Mintable {
  constructor() ERC721Full("MyNFT", "MNFT") public {
You need an ethereum development framework for the above import statements to work! Check out these guides for Truffle, Embark or Buidler.

Get Started OpenZeppelin
Website: - Skype: nclinh.it3

Phản hồi bài viết