Using the openzeppelin library
There are many open source libraries available for Ethereum smart contracts re-usability. One of the most commonly used libraries is openzeppelin
. It provides well audited and modularized smart contracts that achieve common tasks in the Ethereum blockchain. Using this can improve your overall DApp standards and security.
In this recipe, you will learn more about the smart contracts provided by the openzeppelin
library. You will also learn to install and use this library in your DApp.
Getting ready
You need to have an understanding of Ethereum and smart contracts to get more out of this recipe. Refer to the first three chapters of this book to get a basic understanding of Ethereum and building DApps.
How to do it…
- Openzeppelin is distributed through
npm
. Install it using thenpm install
command:
npm install -E openzeppelin-solidity
Note
npm does an automatic semantic version update for improved security and bug fixes while installing. This is not suggested for openzeppelin...