Giter VIP home page Giter VIP logo

kryptonite's Introduction

Kryptonite

A web 3.0 React-Solidity blockchain application for ethereum cryptocurrency exchange.


๐ŸŽƒ Technologies Used

  • React.js
  • Solidity
  • Hardhat
  • Tailwindcss

๐Ÿญ Prerequisites

  • Node.js@latest [stable version]
  • npm
  • MetaMask extension in the browser

User Interface

๐Ÿš€ Set up in a local environment

  1. Clone the repository
git clone https://github.com/KushGabani/Kryptonite
cd kryptonite
  1. install the required packages and dependencies
cd krypt-client && npm install
cd ..
cd blockchain-contract && npm i
  1. Create a new Alchemy app with Ethereum as the blockchain and Ropsten as our network which will allow us to manage Blockchain API calls on our Metamask account.
  2. Create or signup to a MetaMask account and save the 12-word phrase in a secure place for personal future reference.
  3. Go to settings > advanced settings in your MetaMask browser extension and enable Test Networks.
  4. Then, Select the Ropsten Network from the MetaMask extension home page. The ropsten network is a test network in the ethereum blockchain.
  5. Copy the registered address and get test ETH from Ropsten Faucet ETH
  6. Export the Private Key of our MetaMask account from more options and copy it.
  7. Configure hardhat by creating a .env file for blockchain-contract/hardhat.config.js.
ALCHEMY_ENDPOINT=YOUR_HTTP_ALCHEMY_ENDPOINT
METAMASK_PRIVATE_KEY=METAMASK_PRIVATE_KEY
  1. Compile the Solidity blockchain contract with hardhat by running this command in the blockchain-contract directory.
npx hardhat run scripts/deploy.js --network ropsten
  1. Copy the contract address of the artifact given as the output of the command above and replace it with contractAddress in krypt-client/src/utils/constants.js
  2. Get the artifact created with hardhat by copying the entire file: blockchain-contract/artifacts/contracts/Transactions.sol/Transactions.json
  3. Paste the entire artifact by replacing the content in krypt-client/src/utils/transactions.json
  4. To query Gifs using keywords, I use API provided by developers.giphy.com. Create an account on Giphy and copy the API key provided.
  5. Create a .env file in krypt-client/src/ and write the following -
VITE_GIPHY_API=YOUR_GIPHY_API_KEY
  1. Congratulation โœจ! You've completed the setup, and you can run the npm run dev or vite command from the terminal in the krypt-client/ directory

You can access the web application in localhost:3000/

๐Ÿ’Ž Features

  • Users can connect their metamask wallets in-app
  • Provided a receiver address, the user can send ETH and each transaction requires 21,000 Gwei || 0.000020223 ETH as gas fees.
  • Along with the transaction, the user can specify their twitter @ and a keyword through which a gif is attached to the memory of the blockchain
  • Users can view all their transactions on the blockchains as user-friendly cards with etherscan links associated to each transaction.

kryptonite's People

Contributors

kushgabani avatar

Watchers

 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.