2024-11-11 22:30:50 +00:00
|
|
|
| contracts/StakeManager.sol:StakeManager contract | | | | | |
|
|
|
|
|--------------------------------------------------|-----------------|--------|--------|--------|---------|
|
|
|
|
| Deployment Cost | Deployment Size | | | | |
|
2024-11-13 15:12:49 +00:00
|
|
|
| 2893352 | 15010 | | | | |
|
2024-11-11 22:30:50 +00:00
|
|
|
| Function Name | min | avg | median | max | # calls |
|
2024-11-13 15:12:49 +00:00
|
|
|
| ACCURE_RATE | 306 | 306 | 306 | 306 | 1546 |
|
2024-11-11 22:30:50 +00:00
|
|
|
| MAX_LOCKUP_PERIOD | 405 | 405 | 405 | 405 | 4 |
|
2024-11-13 15:12:49 +00:00
|
|
|
| MAX_MULTIPLIER | 285 | 285 | 285 | 285 | 685 |
|
2024-11-11 22:30:50 +00:00
|
|
|
| MIN_LOCKUP_PERIOD | 264 | 264 | 264 | 264 | 12 |
|
|
|
|
| REWARD_TOKEN | 317 | 317 | 317 | 317 | 744 |
|
|
|
|
| YEAR | 308 | 308 | 308 | 308 | 685 |
|
|
|
|
| acceptUpdate | 23633 | 23633 | 23633 | 23633 | 1 |
|
2024-11-13 15:12:49 +00:00
|
|
|
| accounts | 1616 | 1616 | 1616 | 1616 | 154911 |
|
|
|
|
| calculateMP | 790 | 790 | 790 | 790 | 1371 |
|
|
|
|
| currentEpoch | 384 | 385 | 384 | 2384 | 25502 |
|
2024-11-11 22:30:50 +00:00
|
|
|
| epochReward | 1381 | 2881 | 1381 | 5881 | 3 |
|
2024-11-13 15:12:49 +00:00
|
|
|
| executeAccount(address) | 33469 | 110369 | 148819 | 148819 | 3 |
|
|
|
|
| executeAccount(address,uint256) | 26562 | 71648 | 73544 | 195463 | 152497 |
|
|
|
|
| executeEpoch() | 23435 | 120637 | 121820 | 900335 | 25337 |
|
2024-11-11 22:30:50 +00:00
|
|
|
| executeEpoch(uint256) | 23861 | 24497 | 23861 | 26090 | 7 |
|
2024-11-13 15:12:49 +00:00
|
|
|
| expiredStakeStorage | 394 | 2303 | 2394 | 2394 | 22 |
|
|
|
|
| getEpochStartTime | 525 | 525 | 525 | 525 | 25448 |
|
2024-11-11 22:30:50 +00:00
|
|
|
| isTrustedCodehash | 541 | 944 | 541 | 2541 | 728 |
|
|
|
|
| leave | 23675 | 23675 | 23675 | 23675 | 1 |
|
|
|
|
| lock | 23840 | 23840 | 23840 | 23840 | 1 |
|
|
|
|
| migration | 417 | 1417 | 1417 | 2417 | 4 |
|
|
|
|
| migrationInitialize | 24646 | 24646 | 24646 | 24646 | 1 |
|
|
|
|
| newEpoch | 463 | 463 | 463 | 463 | 5 |
|
|
|
|
| owner | 2432 | 2432 | 2432 | 2432 | 13 |
|
|
|
|
| pendingReward | 408 | 1442 | 2408 | 2408 | 29 |
|
2024-11-13 15:12:49 +00:00
|
|
|
| potentialMP | 408 | 408 | 408 | 408 | 49978 |
|
2024-11-11 22:30:50 +00:00
|
|
|
| previousManager | 297 | 297 | 297 | 297 | 13 |
|
|
|
|
| setTrustedCodehash | 47982 | 47982 | 47982 | 47982 | 147 |
|
|
|
|
| stake | 24047 | 24047 | 24047 | 24047 | 1 |
|
2024-11-13 15:12:49 +00:00
|
|
|
| startMigration | 103602 | 103610 | 103614 | 103614 | 3 |
|
2024-11-11 22:30:50 +00:00
|
|
|
| startTime | 306 | 306 | 306 | 306 | 21 |
|
2024-11-13 15:12:49 +00:00
|
|
|
| totalMP | 363 | 363 | 363 | 2363 | 49999 |
|
2024-11-11 22:30:50 +00:00
|
|
|
| totalStaked | 386 | 1786 | 2386 | 2386 | 20 |
|
|
|
|
| totalSupply | 784 | 1965 | 2784 | 2784 | 22 |
|
|
|
|
| unstake | 23841 | 23841 | 23841 | 23841 | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
| contracts/StakeVault.sol:StakeVault contract | | | | | |
|
|
|
|
|----------------------------------------------|-----------------|--------|--------|--------|---------|
|
|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
|
|
| 0 | 0 | | | | |
|
|
|
|
| Function Name | min | avg | median | max | # calls |
|
|
|
|
| STAKING_TOKEN | 193 | 193 | 193 | 193 | 2 |
|
|
|
|
| acceptMigration | 35141 | 35141 | 35141 | 35141 | 2 |
|
|
|
|
| leave | 35196 | 35196 | 35196 | 35196 | 1 |
|
2024-11-13 15:12:49 +00:00
|
|
|
| lock | 43196 | 71010 | 62038 | 162394 | 7 |
|
2024-11-11 22:30:50 +00:00
|
|
|
| owner | 318 | 318 | 318 | 318 | 727 |
|
2024-11-13 15:12:49 +00:00
|
|
|
| stake | 27291 | 264286 | 247573 | 342739 | 732 |
|
|
|
|
| unstake | 40179 | 92967 | 80797 | 190882 | 11 |
|
2024-11-11 22:30:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
| contracts/VaultFactory.sol:VaultFactory contract | | | | | |
|
|
|
|
|--------------------------------------------------|-----------------|--------|--------|--------|---------|
|
|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
|
|
| 0 | 0 | | | | |
|
|
|
|
| Function Name | min | avg | median | max | # calls |
|
|
|
|
| createVault | 682927 | 682927 | 682927 | 682927 | 731 |
|
|
|
|
| setStakeManager | 23710 | 26669 | 26076 | 30222 | 3 |
|
|
|
|
| stakeManager | 368 | 1868 | 2368 | 2368 | 4 |
|
|
|
|
|
|
|
|
|
|
|
|
| contracts/storage/ExpiredStakeStorage.sol:ExpiredStakeStorage contract | | | | | |
|
|
|
|
|------------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
|
|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
|
|
| 0 | 0 | | | | |
|
|
|
|
| Function Name | min | avg | median | max | # calls |
|
2024-11-13 15:12:49 +00:00
|
|
|
| getExpiredMP | 2427 | 2427 | 2427 | 2427 | 25493 |
|
2024-11-11 22:30:50 +00:00
|
|
|
| transferOwnership | 28533 | 28533 | 28533 | 28533 | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
| script/Deploy.s.sol:Deploy contract | | | | | |
|
|
|
|
|-------------------------------------|-----------------|---------|---------|---------|---------|
|
|
|
|
| Deployment Cost | Deployment Size | | | | |
|
2024-11-13 15:12:49 +00:00
|
|
|
| 6513756 | 31297 | | | | |
|
2024-11-11 22:30:50 +00:00
|
|
|
| Function Name | min | avg | median | max | # calls |
|
2024-11-13 15:12:49 +00:00
|
|
|
| run | 5694023 | 5694023 | 5694023 | 5694023 | 66 |
|
2024-11-11 22:30:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
| script/DeployMigrationStakeManager.s.sol:DeployMigrationStakeManager contract | | | | | |
|
|
|
|
|-------------------------------------------------------------------------------|-----------------|---------|---------|---------|---------|
|
|
|
|
| Deployment Cost | Deployment Size | | | | |
|
2024-11-13 15:12:49 +00:00
|
|
|
| 3705689 | 18193 | | | | |
|
2024-11-11 22:30:50 +00:00
|
|
|
| Function Name | min | avg | median | max | # calls |
|
2024-11-13 15:12:49 +00:00
|
|
|
| run | 2701563 | 2701563 | 2701563 | 2701563 | 19 |
|
2024-11-11 22:30:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
| script/DeploymentConfig.s.sol:DeploymentConfig contract | | | | | |
|
|
|
|
|---------------------------------------------------------|-----------------|-----|--------|-----|---------|
|
|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
|
|
| 0 | 0 | | | | |
|
|
|
|
| Function Name | min | avg | median | max | # calls |
|
|
|
|
| activeNetworkConfig | 455 | 455 | 455 | 455 | 132 |
|
|
|
|
|
|
|
|
|
|
|
|
| test/mocks/BrokenERC20.s.sol:BrokenERC20 contract | | | | | |
|
|
|
|
|---------------------------------------------------|-----------------|-------|--------|-------|---------|
|
|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
|
|
| 0 | 0 | | | | |
|
|
|
|
| Function Name | min | avg | median | max | # calls |
|
|
|
|
| approve | 46175 | 46175 | 46175 | 46175 | 1 |
|
|
|
|
| balanceOf | 561 | 1227 | 561 | 2561 | 3 |
|
|
|
|
|
|
|
|
|
|
|
|
| test/mocks/MockERC20.sol:MockERC20 contract | | | | | |
|
|
|
|
|---------------------------------------------|-----------------|-------|--------|-------|---------|
|
|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
|
|
| 0 | 0 | | | | |
|
|
|
|
| Function Name | min | avg | median | max | # calls |
|
2024-11-13 15:12:49 +00:00
|
|
|
| approve | 46175 | 46235 | 46199 | 46367 | 727 |
|
|
|
|
| balanceOf | 561 | 2127 | 2561 | 2561 | 32619 |
|
2024-11-11 22:30:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
| test/script/DeployBroken.s.sol:DeployBroken contract | | | | | |
|
|
|
|
|------------------------------------------------------|-----------------|---------|---------|---------|---------|
|
|
|
|
| Deployment Cost | Deployment Size | | | | |
|
2024-11-13 15:12:49 +00:00
|
|
|
| 5211884 | 25233 | | | | |
|
2024-11-11 22:30:50 +00:00
|
|
|
| Function Name | min | avg | median | max | # calls |
|
2024-11-13 15:12:49 +00:00
|
|
|
| run | 4540259 | 4540259 | 4540259 | 4540259 | 1 |
|
2024-11-11 22:30:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|