Common functions in OpenZeppelin
-
Here are some common functions in OpenZeppelin:
-
SafeMath: A library containing math functions that prevent arithmetic overflow and underflow errors. These functions include add, sub, mul, div, mod,…
-
Ownable: A contract that contains a function to check ownership and allows the contract owner to be specified. The onlyOwner function checks if the caller is the contract owner.
-
ERC20: An ERC-20 standard contract that enables the implementation of a standard token that can be transferred between addresses. The functions in this contract include transfer, approve, transferFrom,…
-
ERC721: An ERC-721 standard contract that enables the implementation of a non-fungible token (NFT) to manage non-fungible assets, such as digital art or collectibles. The functions in this contract include balanceOf, ownerOf, safeTransferFrom,…
-
ReentrancyGuard: A contract that contains a function to check reentrancy in the contract and protects against reentrancy attacks. The nonReentrant function checks if the function being called is a reentrant function.
-
Pausable: A contract that allows the contract to be paused to perform maintenance or to prevent security issues. The pause function pauses the contract and the unpause function resumes the contract.
-