docs: 📝 Documentation added

This commit is contained in:
PedroCailleret
2022-11-25 21:36:44 -03:00
parent 856da07def
commit fcdd8d8103
32 changed files with 2402 additions and 294 deletions

View File

@@ -0,0 +1,26 @@
# Counters
*buf0t9Modified from OpenZeppelin Contracts (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Counters.sol)*
> Counters
Provides counters that can only be incremented, decrementedor reset.
*Include with `using Counters for Counters.Counter;`*
## Errors
### DecOverflow
```solidity
error DecOverflow()
```
*0xce3a3d37*

View File

@@ -0,0 +1,26 @@
# ReentrancyGuard
*z0r0z.ethModified from Seaport (https://github.com/ProjectOpenSea/seaport/blob/main/contracts/lib/ReentrancyGuard.sol)Modified from Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/ReentrancyGuard.sol)*
Reentrancy protection for smart contracts.
## Errors
### Reentrancy
```solidity
error Reentrancy()
```

View File

@@ -0,0 +1,12 @@
# SafeTransferLib
*Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol)*
Safe ETH and ERC20 transfer library that gracefully handles missing return values.
*Caution! This library won't check that a token has code, responsibility is delegated to the caller.*