harrisb002 / Chainlink

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DApp For Crowd Funding

Simulates crowd funding money. Uses chainlink price feed to determine the conversion rate of fiat currency and Ethereum. This project is being deployed on the Avalanche network. Other networks such as Goerli are also supported if desirable. Project that shows how to make a crowd sourcing application that can understand pricing in USD using Chainlink Price Feed.

Usage

Deploy:

npx hardhat run scripts/deployFundMe.js

Testing

npx hardhat test

Deployment to a testnet or mainnet

  1. Setup environment variables

You'll want to set your GOERLI_RPC_URL and PRIVATE_KEY as environment variables. You can add them to a .env file, similar to what you see in .env.example.

  • PRIVATE_KEY: The private key of your account (like from metamask). NOTE: FOR DEVELOPMENT, PLEASE USE A KEY THAT DOESN'T HAVE ANY REAL FUNDS ASSOCIATED WITH IT.
  • GOERLI_RPC_URL: This is url of the goerli testnet node you're working with. You can get setup with one for free from Alchemy
  1. Get testnet ETH

Head over to faucets.chain.link and get some tesnet ETH. You should see the ETH show up in your metamask.

  1. Deploy
npx hardhat run scripts/deployFundMe.js --network goerli

About


Languages

Language:JavaScript 59.2%Language:Solidity 40.8%