Skip to content

alohamonius/codebucket

Repository files navigation

WEB3 code examples

deploy_sol_badge

Connect with me:

al0hatech https://www.linkedin.com/in/oleksii-bichuk-a2698613b/

Languages and Tools:

javascript mocha nodejs javascript javascript

Solidity

Basic contracts cases with openzeppelin, mocks and hardhat deploy mechanism.

  • Unit tests
  • Stage tests
  • Mocks
  • Deploy&Verification of contract (hardhat)
  • VRF (LINK) function case (random lottery)
  • Storage class (funwithStorage.js + .sol)

This repository about code examples in Solidity and JS, based on hardhat sample.

Solidity tools:

  • hardhat deploy
  • hardhat gas-reporter
  • coverage

Contracts:

  • Airdrop (merkletree drop)
  • Lottery (chainlink VRF)
  • StorageTester (data storage tester)
  • ERC721 stake -> ERC20 rewards
  • Marketplace (ERC721 with mock weth)
  • VerifySignature
  • CrowdFunding
  • NFTstaker

GAS OPTIMISATION TRICKS:

  • use errors instead of require
  • external instead of public (copy args)

alohamonius

About

WEB3 examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published