Skip to content

Commit

Permalink
chore: update gas reports
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed Oct 10, 2024
1 parent aa87e84 commit c615a4e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .gas-report
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@
| updateGlobalState | 30008 | 52396 | 49622 | 80335 | 4 |


| src/XPToken.sol:XPToken contract | | | | | |
|----------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 725645 | 3153 | | | | |
| Function Name | min | avg | median | max | # calls |
| addXPProvider | 23968 | 57184 | 51091 | 68191 | 18 |
| allowance | 488 | 488 | 488 | 488 | 1 |
| approve | 390 | 390 | 390 | 390 | 1 |
| balanceOf | 8808 | 14560 | 11066 | 23808 | 3 |
| getXPProviders | 1033 | 3286 | 3286 | 5539 | 2 |
| removeXPProvider | 23665 | 28074 | 25780 | 34777 | 3 |
| setTotalSupply | 23792 | 26266 | 26266 | 28740 | 2 |
| totalSupply | 363 | 1863 | 2363 | 2363 | 4 |
| transfer | 411 | 411 | 411 | 411 | 1 |
| transferFrom | 521 | 521 | 521 | 521 | 1 |


| test/mocks/MockToken.sol:MockToken contract | | | | | |
|---------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
Expand All @@ -39,5 +56,16 @@
| transfer | 34390 | 42940 | 42940 | 51490 | 4 |


| test/mocks/XPProviderMock.sol:XPProviderMock contract | | | | | |
|-------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 152145 | 489 | | | | |
| Function Name | min | avg | median | max | # calls |
| getTotalXPShares | 302 | 968 | 302 | 2302 | 6 |
| getUserXPShare | 504 | 1837 | 2504 | 2504 | 6 |
| setTotalXPShares | 43632 | 43632 | 43632 | 43632 | 2 |
| setUserXPShare | 43900 | 43900 | 43900 | 43900 | 2 |




10 changes: 9 additions & 1 deletion .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
RewardsStreamerMPTest:testStake() (gas: 1377536)
RewardsStreamerTest:testStake() (gas: 869874)
RewardsStreamerTest:testStake() (gas: 869874)
XPTokenTest:testAddXPProviderOnlyOwner() (gas: 285732)
XPTokenTest:testBalanceOf() (gas: 210530)
XPTokenTest:testBalanceOfWithNoSystemTotalXP() (gas: 45808)
XPTokenTest:testRemoveXPProviderIndexOutOfBounds() (gas: 36277)
XPTokenTest:testRemoveXPProviderOnlyOwner() (gas: 72074)
XPTokenTest:testSetTotalSupplyOnlyOwner() (gas: 70544)
XPTokenTest:testTotalSupply() (gas: 10507)
XPTokenTest:testTransfersNotAllowed() (gas: 20634)

0 comments on commit c615a4e

Please sign in to comment.