├── .DS_Store ├── .github └── workflows │ └── test.yml ├── .gitignore ├── .gitmodules ├── README.md ├── foundry.toml ├── script └── Counter.s.sol ├── src ├── BoolsInStorageComp.sol ├── CacheArrayLength.sol ├── NoDefaultValue.sol ├── PayableProtectedFunction.sol ├── StateVariablesInStack.sol └── ZeroAddressGasComp.sol └── test ├── BoolsInStorageComp.t.sol ├── CacheArrayLength.t.sol ├── GasPoC.t.sol ├── NoDefaultValue.t.sol ├── PayableProtectedFunction.t.sol └── StateVariablesInStack.t.sol /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/.DS_Store -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/.gitmodules -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/README.md -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/foundry.toml -------------------------------------------------------------------------------- /script/Counter.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/script/Counter.s.sol -------------------------------------------------------------------------------- /src/BoolsInStorageComp.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/src/BoolsInStorageComp.sol -------------------------------------------------------------------------------- /src/CacheArrayLength.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/src/CacheArrayLength.sol -------------------------------------------------------------------------------- /src/NoDefaultValue.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/src/NoDefaultValue.sol -------------------------------------------------------------------------------- /src/PayableProtectedFunction.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/src/PayableProtectedFunction.sol -------------------------------------------------------------------------------- /src/StateVariablesInStack.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/src/StateVariablesInStack.sol -------------------------------------------------------------------------------- /src/ZeroAddressGasComp.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/src/ZeroAddressGasComp.sol -------------------------------------------------------------------------------- /test/BoolsInStorageComp.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/test/BoolsInStorageComp.t.sol -------------------------------------------------------------------------------- /test/CacheArrayLength.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/test/CacheArrayLength.t.sol -------------------------------------------------------------------------------- /test/GasPoC.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/test/GasPoC.t.sol -------------------------------------------------------------------------------- /test/NoDefaultValue.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/test/NoDefaultValue.t.sol -------------------------------------------------------------------------------- /test/PayableProtectedFunction.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/test/PayableProtectedFunction.t.sol -------------------------------------------------------------------------------- /test/StateVariablesInStack.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexotsu/gas-optimizations/HEAD/test/StateVariablesInStack.t.sol --------------------------------------------------------------------------------