infrastructure-upgrade/gas/all.md
AlienTornadosaurusHex c54067a13d also set content hash during the proposal
Signed-off-by: AlienTornadosaurusHex <>
2023-06-27 22:37:30 +00:00

158 lines
15 KiB
Markdown

| src/proposals/InfrastructureUpgradeProposal.sol:InfrastructureUpgradeProposal contract | | | | | |
| -------------------------------------------------------------------------------------- | --------------- | ------- | ------- | ------- | ------- |
| Deployment Cost | Deployment Size | | | | |
| 1429801 | 7747 | | | | |
| Function Name | min | avg | median | max | # calls |
| NEW_CONTENT_HASH | 799 | 799 | 799 | 799 | 4 |
| executeProposal | 2853026 | 2853026 | 2853026 | 2853026 | 4 |
| src/v2/CurveFeeOracle.sol:CurveFeeOracle contract | | | | | |
| ------------------------------------------------- | --------------- | ----- | ------ | ------ | ------- |
| Deployment Cost | Deployment Size | | | | |
| 1208839 | 6137 | | | | |
| Function Name | min | avg | median | max | # calls |
| getChainedOracleHashForInstance | 1332 | 1332 | 1332 | 1332 | 1 |
| getChainedOracleNameForInstance | 2308 | 2308 | 2308 | 2308 | 1 |
| getChainedOracleNameForOracleHash | 1324 | 1324 | 1324 | 1324 | 1 |
| getFee | 1978 | 14640 | 15612 | 24067 | 26 |
| modifyChainedOracleForInstance | 74546 | 95310 | 83150 | 133973 | 12 |
| setTornOracleIsUniswap | 1122 | 2394 | 1122 | 6212 | 4 |
| setUniswapFeeOracle | 1841 | 8918 | 3841 | 21741 | 9 |
| update | 1914 | 1914 | 1914 | 1914 | 32 |
| src/v2/FeeOracleManager.sol:FeeOracleManager contract | | | | | |
| ----------------------------------------------------- | --------------- | ------ | ------ | ------ | ------- |
| Deployment Cost | Deployment Size | | | | |
| 1668677 | 8668 | | | | |
| Function Name | min | avg | median | max | # calls |
| feeUpdaterAddress | 535 | 535 | 535 | 535 | 2 |
| getAllFeeDeviations | 241327 | 241327 | 241327 | 241327 | 1 |
| getFeeDeviationsForInstances | 13460 | 13460 | 13460 | 13460 | 1 |
| getFeePercentForInstance | 1127 | 1127 | 1127 | 1127 | 1 |
| getFeeUpdateIntervalForInstance | 1083 | 1083 | 1083 | 1083 | 1 |
| getLastFeeForInstance | 1103 | 1103 | 1103 | 1103 | 18 |
| getLastUpdatedTimeForInstance | 599 | 599 | 599 | 599 | 3 |
| getUpdatedFeeForInstance | 12565 | 12565 | 12565 | 12565 | 1 |
| initialize | 2783 | 594459 | 890194 | 890194 | 6 |
| instanceFeeOracles | 852 | 852 | 852 | 852 | 1 |
| populateInstanceWithFeeData | 6363 | 6363 | 6363 | 6363 | 7 |
| setFeeOracle | 919 | 42963 | 42398 | 62516 | 13 |
| setFeePercentForInstance | 944 | 11797 | 4616 | 24516 | 15 |
| setFeeUpdateIntervalForInstance | 570 | 7890 | 1867 | 21767 | 13 |
| setFeeUpdater | 1937 | 1937 | 1937 | 1937 | 8 |
| setInstanceRegistry | 928 | 1538 | 1538 | 2149 | 2 |
| updateAllFees | 249612 | 341005 | 321473 | 451930 | 3 |
| updateFee | 672 | 21061 | 20401 | 84507 | 25 |
| updateFees | 62424 | 85101 | 85101 | 107778 | 2 |
| version | 694 | 694 | 694 | 694 | 1 |
| src/v2/InstanceRegistry.sol:InstanceRegistry contract | | | | | |
| ----------------------------------------------------- | --------------- | ------ | ------- | ------- | ------- |
| Deployment Cost | Deployment Size | | | | |
| 1464799 | 7510 | | | | |
| Function Name | min | avg | median | max | # calls |
| addInstance | 44266 | 81412 | 84867 | 89867 | 12 |
| getAllInstanceStates | 29407 | 29407 | 29407 | 29407 | 1 |
| getAllInstances | 10916 | 11649 | 10916 | 13848 | 4 |
| getInstanceByENSName | 18933 | 18933 | 18933 | 18933 | 1 |
| getInstanceIndex | 689 | 689 | 689 | 689 | 1 |
| getInstanceState | 1689 | 1689 | 1689 | 1689 | 126 |
| getInstanceStateByIndex | 1824 | 1824 | 1824 | 1824 | 2 |
| getInstanceStatesByIndex | 6101 | 6101 | 6101 | 6101 | 1 |
| getInstanceToken | 817 | 817 | 817 | 817 | 2 |
| initialize | 1689 | 946962 | 1419495 | 1419495 | 6 |
| instanceData | 1346 | 1346 | 1346 | 1346 | 6 |
| isEnabledInstance | 1099 | 1099 | 1099 | 1099 | 15 |
| isRegisteredInstance | 655 | 655 | 655 | 655 | 2 |
| removeInstanceByAddress | 10215 | 10215 | 10215 | 10215 | 1 |
| removeInstanceByIndex | 3494 | 3494 | 3494 | 3494 | 1 |
| router | 1074 | 1074 | 1074 | 1074 | 1 |
| setTornadoRouter | 1526 | 1526 | 1526 | 1526 | 1 |
| version | 782 | 782 | 782 | 782 | 2 |
| src/v2/RelayerRegistry.sol:RelayerRegistry contract | | | | | |
| --------------------------------------------------- | --------------- | ------ | ------ | ------ | ------- |
| Deployment Cost | Deployment Size | | | | |
| 1921326 | 9915 | | | | |
| Function Name | min | avg | median | max | # calls |
| deductBalance | 785 | 1856 | 1856 | 2928 | 2 |
| getRelayerBalanceByENSName | 5879 | 6003 | 6045 | 6045 | 4 |
| initialize | 113275 | 113275 | 113275 | 113275 | 4 |
| isRegistered | 1249 | 1249 | 1249 | 1249 | 2 |
| isRegisteredByENSName | 6026 | 6136 | 6192 | 6192 | 3 |
| isRelayerByENSName | 5497 | 5607 | 5663 | 5663 | 3 |
| isWorkerByENSName | 6028 | 6138 | 6194 | 6194 | 3 |
| isWorkerOf | 1529 | 1529 | 1529 | 1529 | 2 |
| isWorkerOfByENSName | 5633 | 5633 | 5633 | 5633 | 1 |
| minimumTornStake | 1186 | 1186 | 1186 | 1186 | 3 |
| nullifyBalance | 867 | 1310 | 1310 | 1754 | 2 |
| ownerByName | 21336 | 21336 | 21336 | 21336 | 1 |
| register | 9061 | 63744 | 49097 | 147724 | 4 |
| registerPermit | 8391 | 69745 | 69745 | 131099 | 2 |
| registerWorker | 3463 | 3463 | 3463 | 3463 | 1 |
| reserveAccount | 22374 | 22374 | 22374 | 22374 | 1 |
| setBalanceDeductor | 2219 | 2219 | 2219 | 2219 | 2 |
| setBalanceNullifier | 1713 | 1713 | 1713 | 1713 | 2 |
| setMinimumStakeOracle | 839 | 1879 | 2087 | 2087 | 6 |
| setMinimumTornStake | 1543 | 1543 | 1543 | 1543 | 6 |
| setStakedTokensReceiver | 2425 | 2425 | 2425 | 2425 | 4 |
| stakeToRelayer | 13248 | 13248 | 13248 | 13248 | 1 |
| unregisterWorker | 1037 | 1885 | 2310 | 2310 | 3 |
| version | 895 | 895 | 895 | 895 | 1 |
| src/v2/TornadoRouter.sol:TornadoRouter contract | | | | | |
| ----------------------------------------------- | --------------- | ------ | ------ | ------ | ------- |
| Deployment Cost | Deployment Size | | | | |
| 1179908 | 6092 | | | | |
| Function Name | min | avg | median | max | # calls |
| approveTokenForInstance | 5065 | 29024 | 28086 | 33669 | 64 |
| backupNotes | 3067 | 3067 | 3067 | 3067 | 1 |
| deposit | 831992 | 831992 | 831992 | 831992 | 1 |
| initialize | 1032 | 60789 | 90558 | 90558 | 6 |
| setFeeOracleManager | 552 | 1174 | 1174 | 1797 | 2 |
| setInstanceRegistry | 728 | 1354 | 1354 | 1981 | 2 |
| setStakingRewards | 684 | 1306 | 1306 | 1929 | 2 |
| version | 670 | 670 | 670 | 670 | 2 |
| withdraw | 96364 | 262051 | 262051 | 427739 | 2 |
| src/v2/TornadoStakingRewards.sol:TornadoStakingRewards contract | | | | | |
| --------------------------------------------------------------- | --------------- | ---- | ------ | ---- | ------- |
| Deployment Cost | Deployment Size | | | | |
| 999124 | 5545 | | | | |
| Function Name | min | avg | median | max | # calls |
| addBurnRewards | 6343 | 6343 | 6343 | 6343 | 1 |
| updateRewardsOnLockedBalanceChange | 3685 | 3685 | 3685 | 3685 | 4 |
| src/v2/UniswapFeeOracle.sol:UniswapFeeOracle contract | | | | | |
| ----------------------------------------------------- | --------------- | ----- | ------ | ----- | ------- |
| Deployment Cost | Deployment Size | | | | |
| 1593572 | 8810 | | | | |
| Function Name | min | avg | median | max | # calls |
| getAverageTORNPerETH | 754 | 754 | 754 | 754 | 1 |
| getFee | 2000 | 10408 | 7537 | 24858 | 51 |
| getLastUpdatedTime | 544 | 544 | 544 | 544 | 1 |
| getTORNPerToken | 2248 | 3057 | 2248 | 8748 | 21 |
| getTWAPData | 745 | 745 | 745 | 745 | 1 |
| setFeeOracleManagerAddress | 466 | 1076 | 1076 | 1687 | 2 |
| setMinObservationCardinality | 740 | 14601 | 23825 | 23825 | 12 |
| setPoolFeeForToken | 768 | 11497 | 5795 | 36695 | 72 |
| update | 2243 | 5724 | 2326 | 49062 | 67 |
| test/ProposalTests.sol:MinimumStakeOracle contract | | | | | |
| -------------------------------------------------- | --------------- | ---- | ------ | ---- | ------- |
| Deployment Cost | Deployment Size | | | | |
| 80660 | 468 | | | | |
| Function Name | min | avg | median | max | # calls |
| setAmount | 2661 | 2661 | 2661 | 2661 | 1 |