https://github.com/masdxi/contract-optimize-tutorial
tutorial for learning solidity optimizer
https://github.com/masdxi/contract-optimize-tutorial
optimization smart-contracts solidity
Last synced: 10 months ago
JSON representation
tutorial for learning solidity optimizer
- Host: GitHub
- URL: https://github.com/masdxi/contract-optimize-tutorial
- Owner: MASDXI
- License: mit
- Created: 2022-04-26T05:43:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-28T09:52:17.000Z (over 3 years ago)
- Last Synced: 2025-03-04T01:44:36.519Z (10 months ago)
- Topics: optimization, smart-contracts, solidity
- Language: Solidity
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tutorial Smart Contract Optimizer
## disclaimer
this is used only for research only not for the production
and so sorry if my code suck.
`1_MyToken20.sol` is compile without eanble optimizer
`2_MyToken20.sol` is compile enable optimizer `200` runs (default)
`3_MyToken20.sol` is compile eanble optimizer `50000` runs
`4_MyToken20.sol` is compile eanble optimizer `1000000` runs
`5_MyToken20.sol` is compile eanble optimizer `788` runs (coursed tune)
`6_MyToken20.sol` is compile eanble optimizer `684` runs (fine tune)
Set up project:
```bash
yarn install
```
Commands:
```bash
yarn clean #Clear cache.
yarn compile #Compile smart-contract.
yarn contract-size #Show smart-contract sizing
yarn test #Summary test and benchmark.
yarn rpc #Run hardhat node.
```