Skip to content

SrikanthAlva/FrontrunReentrancy

Repository files navigation

QuillAudits - Blockchain Lead Take Home Project

Steps

  1. Create a folder on your device and enter the folder
mkdir ReentrancyProject
cd ReentrancyProject
  1. Clone this repo on to your folder.
git clone https://github.com/SrikanthAlva/ReentrancyProject.git .
  1. Download dependencies
yarn 
OR
npm install
  1. Create .env file and copy content from .env.example folder
  2. Get Goerli RPC URL
Create an account in alchemy.com
Create New App
Enter an App Name
Select ETHEREUM as Chain and GOERLI as Network
Click on Create App. App will be displayed on your Dashboard
Click on View Details of the App
Clcik on View Key > Copy the HTTPS URL
Paste the URL next to GOERLI_RPC_URL in .env file 
  1. Get Goerli Ethers
Go to https://goerlifaucet.com/
Login with your Alchemy Account
Copy your wallet address from Metamask and Paste it in the input box
Click on Send ETH
You will receive 0.05 ETH in your wallet in a few mins.
  1. Get GOERLI_PRIVATE_KEY
Open Metamask
Click on the Right Menu Next to your Wallet Address
Click on Account Details > Export Private Key > Enter your Metamask Password  > Confirm
Copy the Private Key and Paste it under GOERLI_PRIVATE_KEY in .env file
  1. Get ETHERSCAN_API_KEY
Go to https://etherscan.io/
Create an Account and Login to your Account
Click on your Name to open a Drop down menu > Select API KEYS
Create New API Key and Paste the API KEY under ETHERSCAN_API_KEY in .env file.
  1. Execution Commands
yarn hardhat compile - to compile your smart contract
yarn hardhat deploy --network goerli - executes all scripts in deploy folder to goerli network
yarn hardhat run scripts/4_FlagSuspicious.ts --network goerli
yarn hardhat run scripts/3_Notification.ts --network goerli
yarn hardhat run scripts/2_UnpauseContract.ts --network goerli

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published