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

feat(lib): add ContinuousIndexingMath #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PierrickGT
Copy link
Member

No description provided.

Copy link

Changes to gas cost

Generated at commit: e36313e40ed5736350990cfeeb2835240691eb3e, compared to commit: e809402c4cc21f1fa8291f17ee0aee859f3b0d29

🧾 Summary (20% most significant diffs)

Contract Method Avg (+/-) %
ERC20ExtendedHandler approve
mint
+598 ❌
+3,709 ❌
+1.15%
+5.40%

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
ERC20ExtendedHandler 1,407,347 (0) approve
burn
mint
transfer
transferfrom
32,727 (-204)
43,811 (+216)
666 (0)
790 (0)
921 (0)
-0.62%
+0.50%
0.00%
0.00%
0.00%
52,594 (+598)
46,221 (+10)
72,384 (+3,709)
55,296 (+25)
55,768 (+293)
+1.15%
+0.02%
+5.40%
+0.05%
+0.53%
52,879 (+24)
46,311 (0)
67,361 (+96)
55,553 (0)
56,034 (0)
+0.05%
0.00%
+0.14%
0.00%
0.00%
53,227 (0)
46,510 (-7,107)
101,825 (0)
55,752 (0)
56,245 (0)
0.00%
-13.26%
0.00%
0.00%
0.00%
1,248 (-59)
1,234 (0)
1,308 (+55)
1,328 (+15)
1,307 (-11)
ContractHelperHarness 439,021 (0) getContractFrom 1,938 (0) 0.00% 2,150 (+33) +1.56% 2,175 (0) 0.00% 2,222 (0) 0.00% 269 (0)
SignatureCheckerHarness 1,018,077 (0) isValidECDSASignature(address,bytes32,bytes)
validateECDSASignature(address,bytes32,bytes)
validateECDSASignature(address,bytes32,bytes32,bytes32)
2,271 (0)
2,134 (0)
1,670 (0)
0.00%
0.00%
0.00%
6,109 (-1)
5,972 (-1)
5,530 (-1)
-0.02%
-0.02%
-0.02%
6,149 (0)
6,012 (0)
5,548 (0)
0.00%
0.00%
0.00%
6,159 (0)
6,022 (0)
5,558 (0)
0.00%
0.00%
0.00%
262 (0)
262 (0)
518 (0)

Copy link

LCOV of commit dc05783 during Forge Coverage #104

Summary coverage rate:
  lines......: 89.1% (139 of 156 lines)
  functions..: 84.6% (55 of 65 functions)
  branches...: no data found

Files changed coverage rate:
                                     |Lines       |Functions  |Branches    
  Filename                           |Rate     Num|Rate    Num|Rate     Num
  =========================================================================
  src/libs/ContinuousIndexingMath.sol| 0.0%     15| 0.0%    10|    -      0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants