Code Monkey home page Code Monkey logo

airdrop_hunter's Introduction

Airdrop Hunter

Technology Stack & Tools

  • Solidity (Writing Smart Contract)
  • Javascript (React & Testing)
  • Ethers.js (Blockchain Interaction)
  • Alchemy (Blockchain Connection)
  • Netlify (Cloud Service)

Requirements For Initial Setup

  • Install NodeJS. We recommend using the latest LTS (Long-Term-Support) version, and preferably installing NodeJS via NVM.
  • Create an Alchemy account, you'll need to create an API key, and use the Goerli RPC URL for testing.
  • Create a Netlify account.

Setting Up

1. Clone/Download the Repository

2. Create a GitHub Repository

Create a GitHub repository at https://github.com/new.

3. Connect to GitHub Repository

In your terminal, execute: git remote set-url origin <GIT_URL>

For the GIT_URL, this will be the .git link to your personal repository on GitHub.

4. Push to GitHub Repository

In your terminal, execute: git push origin master

5. Login to Netlify

Once logged in to Netlify, under the Team overview tab, scroll down to Sites and click on Import from Git

Connect to your GitHub account, select the repository you created, and click Deploy site

6. Configure Environment Variables

While looking at the site's configuration, at the top tab, click on Site settings.

On the sidebar, click on Environment variables, then click on Add a variable.

Here you can add an environment variable, you'll need to add 9 variables:

  • RPC_URL="" (Alchemy RPC URL)

  • PRIVATE_KEY_1=""

  • PRIVATE_KEY_2=""

  • PRIVATE_KEY_3=""

  • TRANSFER_AMOUNT="10000000" (10 USDC)

  • TOKEN_ADDRESS="0x07865c6E87B9F70255377e024ace6630C1Eaa37F" (USDC on Goerli)

  • WETH_ADDRESS="0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6" (WETH on Goerli)

  • V2_ROUTER_ADDRESS="0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D" (Uniswap V2 Router on Goerli)

  • SWAP_AMOUNT="25000000000000000" (0.025 ETH)

Note

If you've set the environment variables after deployment has finished you may want to redeploy. Under the Deploys tab, you'll see a list of previous deploys done, there should be a drop down titled Trigger deploy. Click on the dropdown, and select the Clear cache and deploy site to redeploy the site.

airdrop_hunter's People

Contributors

glitchical avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.