shell
$ forge build
shell
$ forge test
| Coverage Type |
Rate |
Total |
Hit |
| Lines |
100.0% |
111 |
111 |
| Functions |
100.0% |
29 |
29 |
| Branches |
100.0% |
38 |
38 |
| Filename |
Line Coverage |
Branch Coverage |
Function Coverage |
| RentalUnit.sol |
100.0% (104/104) |
100.0% (36/36) |
100.0% (27/27) |
| RentalUnitFactory.sol |
100.0% (7/7) |
100.0% (2/2) |
100.0% (2/2) |
| src/RentalUnit.sol:RentalUnit contract |
|
|
|
|
|
| Deployment Cost |
Deployment Size |
|
|
|
|
| 2608244 |
13091 |
|
|
|
|
| Function Name |
min |
avg |
median |
max |
# calls |
| addSeason |
$${\color{green}23805}$$ |
$${\color{orange}90726}$$ |
$${\color{orange}112993}$$ |
$${\color{red}112993}$$ |
20 |
| checkAvailability |
$${\color{green}411}$$ |
$${\color{orange}2707}$$ |
$${\color{orange}1940}$$ |
$${\color{red}9182}$$ |
14 |
| endTime |
$${\color{green}837}$$ |
$${\color{orange}1204}$$ |
$${\color{orange}837}$$ |
$${\color{red}2674}$$ |
5 |
| expiryType |
$${\color{green}272}$$ |
$${\color{orange}272}$$ |
$${\color{orange}272}$$ |
$${\color{red}272}$$ |
1 |
| getInfo |
$${\color{green}27209}$$ |
$${\color{orange}27542}$$ |
$${\color{orange}27209}$$ |
$${\color{red}29209}$$ |
6 |
| getSeason |
$${\color{green}1045}$$ |
$${\color{orange}1045}$$ |
$${\color{orange}1045}$$ |
$${\color{red}1045}$$ |
1 |
| getSetSeasonId |
$${\color{green}359}$$ |
$${\color{orange}359}$$ |
$${\color{orange}359}$$ |
$${\color{red}359}$$ |
1 |
| isTokenExpired |
$${\color{green}774}$$ |
$${\color{orange}1229}$$ |
$${\color{orange}774}$$ |
$${\color{red}2597}$$ |
4 |
| name |
$${\color{green}3314}$$ |
$${\color{orange}3314}$$ |
$${\color{orange}3314}$$ |
$${\color{red}3314}$$ |
1 |
| paused |
$${\color{green}404}$$ |
$${\color{orange}1070}$$ |
$${\color{orange}404}$$ |
$${\color{red}2404}$$ |
6 |
| reservationCost |
$${\color{green}643}$$ |
$${\color{orange}2518}$$ |
$${\color{orange}2643}$$ |
$${\color{red}2643}$$ |
16 |
| reserve |
$${\color{green}21980}$$ |
$${\color{orange}119581}$$ |
$${\color{orange}147483}$$ |
$${\color{red}195943}$$ |
19 |
| safeTransferFrom |
$${\color{green}24742}$$ |
$${\color{orange}24742}$$ |
$${\color{orange}24742}$$ |
$${\color{red}24742}$$ |
1 |
| setCurrentSeason |
$${\color{green}23704}$$ |
$${\color{orange}50609}$$ |
$${\color{orange}54244}$$ |
$${\color{red}54244}$$ |
15 |
| setPause |
$${\color{green}23716}$$ |
$${\color{orange}35028}$$ |
$${\color{orange}25938}$$ |
$${\color{red}47572}$$ |
9 |
| startTime |
$${\color{green}793}$$ |
$${\color{orange}1160}$$ |
$${\color{orange}793}$$ |
$${\color{red}2630}$$ |
5 |
| supportsInterface |
$${\color{green}452}$$ |
$${\color{orange}532}$$ |
$${\color{orange}563}$$ |
$${\color{red}563}$$ |
6 |
| symbol |
$${\color{green}3290}$$ |
$${\color{orange}3290}$$ |
$${\color{orange}3290}$$ |
$${\color{red}3290}$$ |
1 |
| tokenURI |
$${\color{green}608}$$ |
$${\color{orange}608}$$ |
$${\color{orange}608}$$ |
$${\color{red}608}$$ |
1 |
| updateCapacity |
$${\color{green}23703}$$ |
$${\color{orange}25657}$$ |
$${\color{orange}23759}$$ |
$${\color{red}29509}$$ |
3 |
| updateCategory |
$${\color{green}24247}$$ |
$${\color{orange}27326}$$ |
$${\color{orange}27326}$$ |
$${\color{red}30405}$$ |
2 |
| updateDescriptions |
$${\color{green}24347}$$ |
$${\color{orange}27426}$$ |
$${\color{orange}27426}$$ |
$${\color{red}30505}$$ |
2 |
| updateImagesUrl |
$${\color{green}24055}$$ |
$${\color{orange}26314}$$ |
$${\color{orange}24352}$$ |
$${\color{red}30536}$$ |
3 |
| updatePricePerNight |
$${\color{green}23738}$$ |
$${\color{orange}25684}$$ |
$${\color{orange}23754}$$ |
$${\color{red}29560}$$ |
3 |
| withdraw |
$${\color{green}23399}$$ |
$${\color{orange}27294}$$ |
$${\color{orange}27294}$$ |
$${\color{red}31189}$$ |
2 |
| src/RentalUnitFactory.sol:RentalUnitFactory contract |
|
|
|
|
|
| Deployment Cost |
Deployment Size |
|
|
|
|
| 3101400 |
14150 |
|
|
|
|
| Function Name |
min |
avg |
median |
max |
# calls |
| computeTokenAddress |
$${\color{green}41787}$$ |
$${\color{orange}41787}$$ |
$${\color{orange}41787}$$ |
$${\color{red}41787}$$ |
1 |
| deployRentalUnit |
$${\color{green}70670}$$ |
$${\color{orange}1879478}$$ |
$${\color{orange}2482414}$$ |
$${\color{red}2482414}$$ |
4 |
| deployedContracts |
$${\color{green}468}$$ |
$${\color{orange}468}$$ |
$${\color{orange}468}$$ |
$${\color{red}468}$$ |
1 |
Test Suite Results:
- Compiled with solc
- Total number of contracts in source files: 9
- Source lines of code (SLOC) in source files: 937
- Number of assembly lines: 0
- Number of optimization issues: 0
- Number of informational issues: 63
- Number of low issues: 2
- Number of medium issues: 0
- Number of high issues: 0
| Name |
# Functions |
ERCs |
ERC20 Info |
Complex Code |
Features |
| Create2 |
3 |
|
|
No |
Assembly |
| Errors |
0 |
|
|
No |
|
| RentalUnit |
100 |
ERC165, ERC721 |
|
Yes |
Receive ETH, Send ETH, Assembly |
| RentalUnitFactory |
2 |
|
|
No |
|
| Errors |
0 |
|
|
No |
|
This report provides an overview of the contracts analyzed by Slither, detailing the number of functions, ERC compliance, complex code usage, and specific features for each contract.