Skip to content

yeahokyok/gas-puzzles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My gas optimized for RareSkills Gas Puzzles

Practice assignments for RareSkills.io and the Udemy Gas Optimization Course

Optimized Puzzles

  • Optimized Vote 138807 to 136499 in gas usage.

  • Optimized ArraySum 23399 to 23396 in gas usage.

  • Optimized Require 43392 to 26284 in gas usage.

  • Optimized Distribute 71953 to 57022 in gas usage.

file structure

- GasPuzzles
  |_
    contracts
    |_
      contracts_optimized
    | |_
    |   OptimizedArraySum.sol
    |   OptimizedDistribute.sol
    |   ..
    |   ...
    |
    ArraySum.sol
    Distribute.sol
    ..
    ...

Testing

yarn hardhat test
yarn hardhat test test/Vote

About

My gas optimized for RareSkills Gas Puzzles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.5%
  • Solidity 41.5%