OpenZeppelin

Tools

परिभाषा

OpenZeppelin सबसे trusted library है secure smart contracts के लिए। यह battle-tested implementations provide करता है common standards (ERC-20, ERC-721, ERC-1155) और security patterns (Ownable, Pausable, ReentrancyGuard) के लिए। OpenZeppelin contracts industry standard हैं और thoroughly audited हैं।

English version

OpenZeppelin is the most trusted library for secure smart contracts. It provides battle-tested implementations of common standards (ERC-20, ERC-721, ERC-1155) and security patterns (Ownable, Pausable, ReentrancyGuard). OpenZeppelin contracts are industry standard and thoroughly audited.

Code Example

// Installation
npm install @openzeppelin/contracts

// Utilisation
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract MyToken is ERC20, Ownable {
    constructor() ERC20("MyToken", "MTK") {}

    function mint(address to, uint256 amount) public onlyOwner {
        _mint(to, amount);
    }
}

संबंधित शब्द

Solingo पर इस concept को practice करें

OpenZeppelin को interactive exercises और integrated IDE के साथ master करें।

मुफ्त में शुरू करें