Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add .gitattributes #1

Merged
merged 8 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.css linguist-vendored
*.html linguist-vendored
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@ node_modules
# ignore foundry deploy artifacts
broadcast/

.DS_Store

report/
.DS_Store
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ coverage :; forge coverage --report lcov && \
'src/core/contracts/protocol/libraries/configuration/*' \
'src/core/contracts/protocol/libraries/logic/GenericLogic.sol' \
'src/core/contracts/protocol/libraries/logic/ReserveLogic.sol' \
&& genhtml ./lcov.info.p -o report --branch-coverage
&& genhtml ./lcov.info.p -o report --branch-coverage \
&& coverage=$$(awk -F '[<>]' '/headerCovTableEntryHi/{print $3}' ./report/index.html | sed 's/[^0-9.]//g' | head -n 1); \
wget -O ./report/coverage.svg "https://img.shields.io/badge/coverage-$${coverage}%25-brightgreen"

# Utilities
download :; cast etherscan-source --chain ${chain} -d src/etherscan/${chain}_${address} ${address}
git-diff :
@mkdir -p diffs
@printf '%s\n%s\n%s\n' "\`\`\`diff" "$$(git diff --no-index --diff-algorithm=patience --ignore-space-at-eol ${before} ${after})" "\`\`\`" > diffs/${out}.md
@printf '%s\n%s\n%s\n' "\`\`\`diff" "$$(git diff --no-index --diff-algorithm=patience --ignore-space-at-eol ${before} ${after})" "\`\`\`" > diffs/${out}.md
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@

Aave v3.1 complete codebase, Foundry-based.

[![Coverage badge](./report/coverage.svg)](https://aave-dao.github.io/aave-v3-origin)
<br>



## Dependencies

- Foundry, [how-to install](https://book.getfoundry.sh/getting-started/installation) (we recommend also update to the last version with `foundryup`)
Expand Down Expand Up @@ -99,4 +102,3 @@ Copyright © 2024, Aave DAO, represented by its governance smart contracts.

The [BUSL1.1](./LICENSE) license of this repository allows for any usage of the software, if respecting the Additional Use Grant limitations, forbidding any use case damaging anyhow the Aave DAO's interests.
Interfaces and other components required for integrations are explicitly MIT licensed.

Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LCOV - lcov.info.p - Users/kk/dev/bgd/aave-v3-origin/src/core/contracts/misc/src/core/contracts/misc/AaveOracle.sol - functions</title>
<link rel="stylesheet" type="text/css" href="../../../../../../../../../../../../../gcov.css">
</head>

<body>

<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="title">LCOV - code coverage report</td></tr>
<tr><td class="ruler"><img src="../../../../../../../../../../../../../glass.png" width=3 height=3 alt=""></td></tr>

<tr>
<td width="100%">
<table cellpadding=1 border=0 width="100%">
<tr>
<td width="10%" class="headerItem">Current view:</td>
<td width="10%" class="headerValue"><a href="../../../../../../../../../../../../../index.html">top level</a> - <a href="index.html">/Users/kk/dev/bgd/aave-v3-origin/src/core/contracts/misc/src/core/contracts/misc</a> - AaveOracle.sol<span style="font-size: 80%;"> (<a href="AaveOracle.sol.gcov.html">source</a> / functions)</span></td>
<td width="5%"></td>
<td width="5%"></td>
<td width="5%" class="headerCovTableHead">Coverage</td>
<td width="5%" class="headerCovTableHead" title="Covered + Uncovered code">Total</td>
<td width="5%" class="headerCovTableHead" title="Exercised code only">Hit</td>
</tr>
<tr>
<td class="headerItem">Test:</td>
<td class="headerValue">lcov.info.p</td>
<td></td>
<td class="headerItem">Lines:</td>
<td class="headerCovTableEntryHi">100.0&nbsp;%</td>
<td class="headerCovTableEntry">25</td>
<td class="headerCovTableEntry">25</td>
</tr>
<tr>
<td class="headerItem">Test Date:</td>
<td class="headerValue">2024-04-09 13:34:25</td>
<td></td>
<td class="headerItem">Functions:</td>
<td class="headerCovTableEntryHi">100.0&nbsp;%</td>
<td class="headerCovTableEntry">9</td>
<td class="headerCovTableEntry">9</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td class="headerItem">Branches:</td>
<td class="headerCovTableEntryHi">-</td>
<td class="headerCovTableEntry">0</td>
<td class="headerCovTableEntry">0</td>
</tr>
<tr><td><img src="../../../../../../../../../../../../../glass.png" width=3 height=3 alt=""></td></tr>
</table>
</td>
</tr>

<tr><td class="ruler"><img src="../../../../../../../../../../../../../glass.png" width=3 height=3 alt=""></td></tr>
</table>

<center>
<table cellpadding=1 cellspacing=1 border=0>
<tr><td><br></td></tr>
<tr>
<td class="tableHead">Function Name <span title="Click to sort table by function name" class="tableHeadSort"><a href="AaveOracle.sol.func.html"><img src="../../../../../../../../../../../../../updown.png" width=10 height=14 alt="Sort by function name" title="Click to sort table by function name" border=0></a></span></td>

<td class="tableHead">Hit count <span title="Click to sort table by function hit count" class="tableHeadSort"><img src="../../../../../../../../../../../../../glass.png" width=10 height=14 alt="Sort by function hit count" title="Click to sort table by function hit count" border=0></span></td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L117">AaveOracle.getAssetsPrices</a></td>

<td class="coverFnHi">3</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L133">AaveOracle.getFallbackOracle</a></td>

<td class="coverFnHi">3</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L93">AaveOracle._setFallbackOracle</a></td>

<td class="coverFnHi">4</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L70">AaveOracle.setFallbackOracle</a></td>

<td class="coverFnHi">4</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L81">AaveOracle._setAssetsSources</a></td>

<td class="coverFnHi">590</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L62">AaveOracle.setAssetSources</a></td>

<td class="coverFnHi">591</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L137">AaveOracle._onlyAssetListingOrPoolAdmins</a></td>

<td class="coverFnHi">595</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L128">AaveOracle.getSourceOfAsset</a></td>

<td class="coverFnHi">3030</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L99">AaveOracle.getAssetPrice</a></td>

<td class="coverFnHi">69942</td>


</tr>
</table>
<br>
</center>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="ruler"><img src="../../../../../../../../../../../../../glass.png" width=3 height=3 alt=""></td></tr>
<tr><td class="versionInfo">Generated by: <a href="https://github.com//linux-test-project/lcov" target="_parent">LCOV version 2.0-1</a></td></tr>
</table>
<br>

</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LCOV - lcov.info.p - Users/kk/dev/bgd/aave-v3-origin/src/core/contracts/misc/src/core/contracts/misc/AaveOracle.sol - functions</title>
<link rel="stylesheet" type="text/css" href="../../../../../../../../../../../../../gcov.css">
</head>

<body>

<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="title">LCOV - code coverage report</td></tr>
<tr><td class="ruler"><img src="../../../../../../../../../../../../../glass.png" width=3 height=3 alt=""></td></tr>

<tr>
<td width="100%">
<table cellpadding=1 border=0 width="100%">
<tr>
<td width="10%" class="headerItem">Current view:</td>
<td width="10%" class="headerValue"><a href="../../../../../../../../../../../../../index.html">top level</a> - <a href="index.html">/Users/kk/dev/bgd/aave-v3-origin/src/core/contracts/misc/src/core/contracts/misc</a> - AaveOracle.sol<span style="font-size: 80%;"> (<a href="AaveOracle.sol.gcov.html">source</a> / functions)</span></td>
<td width="5%"></td>
<td width="5%"></td>
<td width="5%" class="headerCovTableHead">Coverage</td>
<td width="5%" class="headerCovTableHead" title="Covered + Uncovered code">Total</td>
<td width="5%" class="headerCovTableHead" title="Exercised code only">Hit</td>
</tr>
<tr>
<td class="headerItem">Test:</td>
<td class="headerValue">lcov.info.p</td>
<td></td>
<td class="headerItem">Lines:</td>
<td class="headerCovTableEntryHi">100.0&nbsp;%</td>
<td class="headerCovTableEntry">25</td>
<td class="headerCovTableEntry">25</td>
</tr>
<tr>
<td class="headerItem">Test Date:</td>
<td class="headerValue">2024-04-09 13:34:25</td>
<td></td>
<td class="headerItem">Functions:</td>
<td class="headerCovTableEntryHi">100.0&nbsp;%</td>
<td class="headerCovTableEntry">9</td>
<td class="headerCovTableEntry">9</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td class="headerItem">Branches:</td>
<td class="headerCovTableEntryHi">-</td>
<td class="headerCovTableEntry">0</td>
<td class="headerCovTableEntry">0</td>
</tr>
<tr><td><img src="../../../../../../../../../../../../../glass.png" width=3 height=3 alt=""></td></tr>
</table>
</td>
</tr>

<tr><td class="ruler"><img src="../../../../../../../../../../../../../glass.png" width=3 height=3 alt=""></td></tr>
</table>

<center>
<table cellpadding=1 cellspacing=1 border=0>
<tr><td><br></td></tr>
<tr>
<td class="tableHead">Function Name <span title="Click to sort table by function name" class="tableHeadSort"><img src="../../../../../../../../../../../../../glass.png" width=10 height=14 alt="Sort by function name" title="Click to sort table by function name" border=0></span></td>

<td class="tableHead">Hit count <span title="Click to sort table by function hit count" class="tableHeadSort"><a href="AaveOracle.sol.func-c.html"><img src="../../../../../../../../../../../../../updown.png" width=10 height=14 alt="Sort by function hit count" title="Click to sort table by function hit count" border=0></a></span></td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L137">AaveOracle._onlyAssetListingOrPoolAdmins</a></td>

<td class="coverFnHi">595</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L81">AaveOracle._setAssetsSources</a></td>

<td class="coverFnHi">590</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L93">AaveOracle._setFallbackOracle</a></td>

<td class="coverFnHi">4</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L99">AaveOracle.getAssetPrice</a></td>

<td class="coverFnHi">69942</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L117">AaveOracle.getAssetsPrices</a></td>

<td class="coverFnHi">3</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L133">AaveOracle.getFallbackOracle</a></td>

<td class="coverFnHi">3</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L128">AaveOracle.getSourceOfAsset</a></td>

<td class="coverFnHi">3030</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L62">AaveOracle.setAssetSources</a></td>

<td class="coverFnHi">591</td>


</tr>
<tr>
<td class="coverFn"><a href="AaveOracle.sol.gcov.html#L70">AaveOracle.setFallbackOracle</a></td>

<td class="coverFnHi">4</td>


</tr>
</table>
<br>
</center>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="ruler"><img src="../../../../../../../../../../../../../glass.png" width=3 height=3 alt=""></td></tr>
<tr><td class="versionInfo">Generated by: <a href="https://github.com//linux-test-project/lcov" target="_parent">LCOV version 2.0-1</a></td></tr>
</table>
<br>

</body>
</html>
Loading
Loading