Skip to content

A sequence of smart contracts to practice gas optimization. These are used as practice assignments for RareSkills.io and the Udemy Gas Optimization Course

Notifications You must be signed in to change notification settings

jscriptcoder/gas-puzzles

 
 

Repository files navigation

Gas Puzzles

These are the exercises from the Udemy course Advanced Solidity: Understanding and Optimizing Gas Costs.

The idea is to optimize the gas cost for each of the contracts. I'm currently working on the solutions under contracts/optimized

Puzzles solved

  • Distribute
  • Array Sum
  • Mint150
  • ERC165
  • Array Sort
  • Escrow
  • EscrowV2
  • Mint
  • Presale
  • Vote
  • Require
  • Staking

How to test

All the tests:

$ npm test

Individual tests:

$ npx hardhat test test/TestName

About

A sequence of smart contracts to practice gas optimization. These are used as practice assignments for RareSkills.io and the Udemy Gas Optimization Course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 53.2%
  • JavaScript 46.8%