Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vm06007 committed Dec 3, 2023
1 parent 2cf036c commit 4ab6437
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 13,793 deletions.
32 changes: 32 additions & 0 deletions gasreport.ansi
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
No files changed, compilation skipped

Running 2 tests for contracts/Counter.t.sol:CounterTest
[PASS] testIncrement() (gas: 30943)
[PASS] testSetNumber(uint256) (runs: 256, μ: 27219, ~: 28463)
Test result: ok. 2 passed; 0 failed; 0 skipped; finished in 23.61ms

Running 1 test for contracts/PrivateFarm2X.t.sol:PrivateFarmTest
[PASS] testChangeDuration() (gas: 20056)
Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 1.58s
| contracts/Counter.sol:Counter contract | | | | | |
|----------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 65915 | 358 | | | | |
| Function Name | min | avg | median | max | # calls |
| increment | 24715 | 24715 | 24715 | 24715 | 1 |
| number | 303 | 303 | 303 | 303 | 2 |
| setNumber | 2409 | 9042 | 2409 | 22309 | 3 |


| contracts/PrivateFarm2X.sol:PrivateFarm2X contract | | | | | |
|----------------------------------------------------|-----------------|------|--------|------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1695577 | 8672 | | | | |
| Function Name | min | avg | median | max | # calls |
| rewardDuration | 1218 | 2218 | 2218 | 3218 | 2 |
| setRewardDuration | 9209 | 9209 | 9209 | 9209 | 1 |




Ran 2 test suites: 3 tests passed, 0 failed, 0 skipped (3 total tests)
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"chain": "ganache-cli --defaultBalanceEther 10000000000 -i 5777 -p 9545 -l 12500000 -m \"urban prevent meadow draft involve security curtain robot brick question try scatter\"",
"compile": "hardhat compile",
"test": "npx hardhat test",
"foundry-size": "forge build --sizes",
"test-token": "npx hardhat test test/token.test.js",
"test-farms": "npx hardhat test test/farms.test.js",
"test-timelock": "npx hardhat test test/timelock.test.js",
"test-timelock-v2": "npx hardhat test test/timelock-v2.test.js",
"flatten-timelock": "npx hardhat flatten > TimeLockFarmV2.sol",
"coverage": "npx truffle run coverage --network development"
"coverage": "npx truffle run coverage --network development",
"foundry-size": "forge build --sizes",
"foundry-test-default": "forge test --gas-report -vvv",
"foundry-test-reports": "forge test --gas-report > gasreport.ansi -vvv"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 4ab6437

Please sign in to comment.