Skip to content

Commit

Permalink
add: surya report
Browse files Browse the repository at this point in the history
  • Loading branch information
yarre-uk committed Apr 22, 2024
1 parent e91c2fa commit 93c587a
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
echo "Running tests..."

yarn lint-staged
yarn test
yarn test

surya mdreport report_outfile.md contracts/**/*.sol
git add report_outfile.md
72 changes: 72 additions & 0 deletions report_outfile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
## Sūrya's Description Report

### Files Description Table


| File Name | SHA-1 Hash |
|-------------|--------------|
| contracts/ERC20/BaseERC20.sol | [object Promise] |
| contracts/ERC20/IERC20.sol | [object Promise] |
| contracts/ERC20/TradableERC20.sol | [object Promise] |
| contracts/ERC20/VotingERC20.sol | [object Promise] |
| contracts/utils/Ownable.sol | [object Promise] |


### Contracts Description Table


| Contract | Type | Bases | | |
|:----------:|:-------------------:|:----------------:|:----------------:|:---------------:|
|| **Function Name** | **Visibility** | **Mutability** | **Modifiers** |
||||||
| **BaseERC20** | Implementation | IERC20, Ownable |||
|| <Constructor> | Public ❗️ | 🛑 |NO❗️ |
|| balanceOf | Public ❗️ | |NO❗️ |
|| transfer | Public ❗️ | 🛑 | validAddress |
|| allowance | Public ❗️ | |NO❗️ |
|| approve | Public ❗️ | 🛑 | validAddress |
|| transferFrom | Public ❗️ | 🛑 | validAddress validAddress |
|| totalSupply | Public ❗️ | |NO❗️ |
|| _mint | Internal 🔒 | 🛑 | validAddress |
|| _burn | Internal 🔒 | 🛑 | validAddress |
||||||
| **IERC20** | Interface | |||
|| totalSupply | External ❗️ | |NO❗️ |
|| balanceOf | External ❗️ | |NO❗️ |
|| transfer | External ❗️ | 🛑 |NO❗️ |
|| allowance | External ❗️ | |NO❗️ |
|| approve | External ❗️ | 🛑 |NO❗️ |
|| transferFrom | External ❗️ | 🛑 |NO❗️ |
||||||
| **TradableERC20** | Implementation | VotingERC20 |||
|| <Constructor> | Public ❗️ | 🛑 | VotingERC20 |
|| buy | Public ❗️ | 💵 | haveNotVoted |
|| sell | Public ❗️ | 🛑 | haveNotVoted |
|| transfer | Public ❗️ | 🛑 | haveNotVoted |
|| approve | Public ❗️ | 🛑 | haveNotVoted |
|| setFeePercentage | Public ❗️ | 🛑 | onlyOwner |
|| collectAndBurnFee | Public ❗️ | 🛑 | onlyOwner |
|| getFeeBalance | Public ❗️ | | onlyOwner |
|| withdrawBalanceAmount | Public ❗️ | 🛑 | onlyOwner |
|| withdrawBalance | Public ❗️ | 🛑 | onlyOwner |
||||||
| **VotingERC20** | Implementation | BaseERC20 |||
|| <Constructor> | Public ❗️ | 🛑 | BaseERC20 |
|| _ownsMoreThan | Internal 🔒 | | |
|| _startVoting | Internal 🔒 | 🛑 | |
|| _updatePrice | Internal 🔒 | 🛑 | |
|| userPercentage | Public ❗️ | |NO❗️ |
|| stopVoting | Public ❗️ | 🛑 |NO❗️ |
|| vote | Public ❗️ | 🛑 |NO❗️ |
|| <Receive Ether> | External ❗️ | 💵 |NO❗️ |
||||||
| **Ownable** | Implementation | |||
|| <Constructor> | Public ❗️ | 🛑 |NO❗️ |


### Legend

| Symbol | Meaning |
|:--------:|-----------|
| 🛑 | Function can modify state |
| 💵 | Function is payable |

0 comments on commit 93c587a

Please sign in to comment.