-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rebase contracts and support ERC721 (#19)
* feat: moved erc20 recover to a dedicated contract * feat: add NFT recover (ERC721) * feat: remove examples * feat: update solc to 0.8.22 * docs: update documentation
- Loading branch information
1 parent
bfad07f
commit 53fd6d6
Showing
58 changed files
with
3,878 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# vuepress deploy | ||
GIT_DEPLOY_DIR=docs/.vuepress/dist | ||
GIT_DEPLOY_DIR=pages/.vuepress/dist | ||
GIT_DEPLOY_BRANCH=gh-pages | ||
GIT_DEPLOY_REPO=origin |
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
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
Empty file.
Empty file.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
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,51 @@ | ||
## Sūrya's Description Report | ||
|
||
### Files Description Table | ||
|
||
|
||
| File Name | SHA-1 Hash | | ||
|-------------|--------------| | ||
| dist/ERC20Recover.dist.sol | [object Promise] | | ||
|
||
|
||
### Contracts Description Table | ||
|
||
|
||
| Contract | Type | Bases | | | | ||
|:----------:|:-------------------:|:----------------:|:----------------:|:---------------:| | ||
| └ | **Function Name** | **Visibility** | **Mutability** | **Modifiers** | | ||
|||||| | ||
| **Context** | Implementation | ||| | ||
| └ | _msgSender | Internal 🔒 | | | | ||
| └ | _msgData | Internal 🔒 | | | | ||
|||||| | ||
| **Ownable** | Implementation | Context ||| | ||
| └ | <Constructor> | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | owner | Public ❗️ | |NO❗️ | | ||
| └ | _checkOwner | Internal 🔒 | | | | ||
| └ | renounceOwnership | Public ❗️ | 🛑 | onlyOwner | | ||
| └ | transferOwnership | Public ❗️ | 🛑 | onlyOwner | | ||
| └ | _transferOwnership | Internal 🔒 | 🛑 | | | ||
|||||| | ||
| **IERC20** | Interface | ||| | ||
| └ | totalSupply | External ❗️ | |NO❗️ | | ||
| └ | balanceOf | External ❗️ | |NO❗️ | | ||
| └ | transfer | External ❗️ | 🛑 |NO❗️ | | ||
| └ | allowance | External ❗️ | |NO❗️ | | ||
| └ | approve | External ❗️ | 🛑 |NO❗️ | | ||
| └ | transferFrom | External ❗️ | 🛑 |NO❗️ | | ||
|||||| | ||
| **RecoverERC20** | Implementation | ||| | ||
| └ | _recoverERC20 | Internal 🔒 | 🛑 | | | ||
|||||| | ||
| **ERC20Recover** | Implementation | Ownable, RecoverERC20 ||| | ||
| └ | <Constructor> | Public ❗️ | 🛑 | Ownable | | ||
| └ | recoverERC20 | Public ❗️ | 🛑 | onlyOwner | | ||
|
||
|
||
### Legend | ||
|
||
| Symbol | Meaning | | ||
|:--------:|-----------| | ||
| 🛑 | Function can modify state | | ||
| 💵 | Function is payable | |
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,57 @@ | ||
## Sūrya's Description Report | ||
|
||
### Files Description Table | ||
|
||
|
||
| File Name | SHA-1 Hash | | ||
|-------------|--------------| | ||
| dist/ERC721Recover.dist.sol | [object Promise] | | ||
|
||
|
||
### Contracts Description Table | ||
|
||
|
||
| Contract | Type | Bases | | | | ||
|:----------:|:-------------------:|:----------------:|:----------------:|:---------------:| | ||
| └ | **Function Name** | **Visibility** | **Mutability** | **Modifiers** | | ||
|||||| | ||
| **Context** | Implementation | ||| | ||
| └ | _msgSender | Internal 🔒 | | | | ||
| └ | _msgData | Internal 🔒 | | | | ||
|||||| | ||
| **Ownable** | Implementation | Context ||| | ||
| └ | <Constructor> | Public ❗️ | 🛑 |NO❗️ | | ||
| └ | owner | Public ❗️ | |NO❗️ | | ||
| └ | _checkOwner | Internal 🔒 | | | | ||
| └ | renounceOwnership | Public ❗️ | 🛑 | onlyOwner | | ||
| └ | transferOwnership | Public ❗️ | 🛑 | onlyOwner | | ||
| └ | _transferOwnership | Internal 🔒 | 🛑 | | | ||
|||||| | ||
| **IERC165** | Interface | ||| | ||
| └ | supportsInterface | External ❗️ | |NO❗️ | | ||
|||||| | ||
| **IERC721** | Interface | IERC165 ||| | ||
| └ | balanceOf | External ❗️ | |NO❗️ | | ||
| └ | ownerOf | External ❗️ | |NO❗️ | | ||
| └ | safeTransferFrom | External ❗️ | 🛑 |NO❗️ | | ||
| └ | safeTransferFrom | External ❗️ | 🛑 |NO❗️ | | ||
| └ | transferFrom | External ❗️ | 🛑 |NO❗️ | | ||
| └ | approve | External ❗️ | 🛑 |NO❗️ | | ||
| └ | setApprovalForAll | External ❗️ | 🛑 |NO❗️ | | ||
| └ | getApproved | External ❗️ | |NO❗️ | | ||
| └ | isApprovedForAll | External ❗️ | |NO❗️ | | ||
|||||| | ||
| **RecoverERC721** | Implementation | ||| | ||
| └ | _recoverERC721 | Internal 🔒 | 🛑 | | | ||
|||||| | ||
| **ERC721Recover** | Implementation | Ownable, RecoverERC721 ||| | ||
| └ | <Constructor> | Public ❗️ | 🛑 | Ownable | | ||
| └ | recoverERC721 | Public ❗️ | 🛑 | onlyOwner | | ||
|
||
|
||
### Legend | ||
|
||
| Symbol | Meaning | | ||
|:--------:|-----------| | ||
| 🛑 | Function can modify state | | ||
| 💵 | Function is payable | |
Oops, something went wrong.