-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: move utilities and custom errors to a library * feat: add ERC1363Mintable contract * docs: update code analysis folder
- Loading branch information
1 parent
a8a0e0a
commit 39aaea5
Showing
24 changed files
with
2,450 additions
and
601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
## Sūrya's Description Report | ||
|
||
### Files Description Table | ||
|
||
|
||
| File Name | SHA-1 Hash | | ||
|-------------|--------------| | ||
| dist/ERC1363Mintable.dist.sol | [object Promise] | | ||
|
||
|
||
### Contracts Description Table | ||
|
||
|
||
| Contract | Type | Bases | | | | ||
|:----------:|:-------------------:|:----------------:|:----------------:|:---------------:| | ||
| └ | **Function Name** | **Visibility** | **Mutability** | **Modifiers** | | ||
|||||| | ||
| **IERC20Errors** | Interface | ||| | ||
|||||| | ||
| **IERC721Errors** | Interface | ||| | ||
|||||| | ||
| **IERC1155Errors** | Interface | ||| | ||
|||||| | ||
| **IERC20** | Interface | ||| | ||
| └ | totalSupply | External ❗️ | |NO❗️ | | ||
| └ | balanceOf | External ❗️ | |NO❗️ | | ||
| └ | transfer | External ❗️ | 🛑 |NO❗️ | | ||
| └ | allowance | External ❗️ | |NO❗️ | | ||
| └ | approve | External ❗️ | 🛑 |NO❗️ | | ||
| └ | transferFrom | External ❗️ | 🛑 |NO❗️ | | ||
|||||| | ||
| **IERC20Metadata** | Interface | IERC20 ||| | ||
| └ | name | External ❗️ | |NO❗️ | | ||
| └ | symbol | External ❗️ | |NO❗️ | | ||
| └ | decimals | External ❗️ | |NO❗️ | | ||
|||||| | ||
| **Context** | Implementation | ||| | ||
| └ | _msgSender | Internal 🔒 | | | | ||
| └ | _msgData | Internal 🔒 | | | | ||
| └ | _contextSuffixLength | Internal 🔒 | | | | ||
|||||| | ||
| **ERC20** | Implementation | Context, IERC20, IERC20Metadata, IERC20Errors ||| | ||
| └ | <Constructor> | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | name | Public ❗️ | |NO❗️ | | ||
| └ | symbol | Public ❗️ | |NO❗️ | | ||
| └ | decimals | Public ❗️ | |NO❗️ | | ||
| └ | totalSupply | Public ❗️ | |NO❗️ | | ||
| └ | balanceOf | Public ❗️ | |NO❗️ | | ||
| └ | transfer | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | allowance | Public ❗️ | |NO❗️ | | ||
| └ | approve | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | transferFrom | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | _transfer | Internal 🔒 | 🛑 | | | ||
| └ | _update | Internal 🔒 | 🛑 | | | ||
| └ | _mint | Internal 🔒 | 🛑 | | | ||
| └ | _burn | Internal 🔒 | 🛑 | | | ||
| └ | _approve | Internal 🔒 | 🛑 | | | ||
| └ | _approve | Internal 🔒 | 🛑 | | | ||
| └ | _spendAllowance | Internal 🔒 | 🛑 | | | ||
|||||| | ||
| **IERC165** | Interface | ||| | ||
| └ | supportsInterface | External ❗️ | |NO❗️ | | ||
|||||| | ||
| **ERC165** | Implementation | IERC165 ||| | ||
| └ | supportsInterface | Public ❗️ | |NO❗️ | | ||
|||||| | ||
| **IERC1363Receiver** | Interface | ||| | ||
| └ | onTransferReceived | External ❗️ | 🛑 |NO❗️ | | ||
|||||| | ||
| **IERC1363Spender** | Interface | ||| | ||
| └ | onApprovalReceived | External ❗️ | 🛑 |NO❗️ | | ||
|||||| | ||
| **ERC1363Utils** | Library | ||| | ||
| └ | checkOnERC1363TransferReceived | Internal 🔒 | 🛑 | | | ||
| └ | checkOnERC1363ApprovalReceived | Internal 🔒 | 🛑 | | | ||
|||||| | ||
| **IERC1363** | Interface | IERC20, IERC165 ||| | ||
| └ | transferAndCall | External ❗️ | 🛑 |NO❗️ | | ||
| └ | transferAndCall | External ❗️ | 🛑 |NO❗️ | | ||
| └ | transferFromAndCall | External ❗️ | 🛑 |NO❗️ | | ||
| └ | transferFromAndCall | External ❗️ | 🛑 |NO❗️ | | ||
| └ | approveAndCall | External ❗️ | 🛑 |NO❗️ | | ||
| └ | approveAndCall | External ❗️ | 🛑 |NO❗️ | | ||
|||||| | ||
| **ERC1363** | Implementation | ERC20, ERC165, IERC1363 ||| | ||
| └ | supportsInterface | Public ❗️ | |NO❗️ | | ||
| └ | transferAndCall | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | transferAndCall | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | transferFromAndCall | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | transferFromAndCall | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | approveAndCall | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | approveAndCall | Public ❗️ | 🛑 |NO❗️ | | ||
|||||| | ||
| **ERC1363Mintable** | Implementation | ERC1363 ||| | ||
| └ | _mintAndCall | Internal 🔒 | 🛑 | | | ||
| └ | _mintAndCall | Internal 🔒 | 🛑 | | | ||
|
||
|
||
### Legend | ||
|
||
| Symbol | Meaning | | ||
|:--------:|-----------| | ||
| 🛑 | Function can modify state | | ||
| 💵 | Function is payable | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.