Skip to content

dindonero/PatrickC-Fcc-Hardhat

Repository files navigation

PatrickCollins FreeCodeCamp Hardhat Tutorial

Youtube Tutorial Link

Official GitHub Repository

Builds

Decentralized NFT Marketplace

NFT Marketplace - Almost fully decentralized NFT Marketplace.

Smart contract Lottery - Winner takes it all

Smart Contract Lottery

A raffle costs 0.00001 ETH.

Every player can enter as many times as they want.

A winner is picked every 30 seconds who is rewarded with all the raffle’s payments.

Implements:

  • Chainlink VRF for randomness - Choosing the winner

  • Chainlink Keepers for maintaining the lottery flow - Calls the end lottery function “performUpkeep” every 30 seconds to provide a fair environment for all players

Available on networks:

Rinkeby

Hosted on fleek - a free decentralized IPFS pinning service

Some troubleshoot tips

Module not found: Can't resolve 'magic-sdk'

yarn add magic-sdk @walletconnect/web3-provider @web3auth/web3auth

Module not found: Can't resolve '@bip/scuro61'

npm install

Running scripts with Windows Powershell (faster than WSL):

Install npm on Windows

Install yarn through npm

Open powershell as admin and run:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Helpful Links

SpeedRunEthereum - Tutorials in the form of challenges to explain DeFi and smart contracts' concepts.

Ethernaut - Interactive game to learn smart contracts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published