Git Product home page Git Product logo

blockjuice's Introduction

Block Juice

Experience the future of purchasing fresh homemade juices with cryptocurrency through Block Juice. Whether you prefer our convenient vending machines or our user-friendly app, our platform seamlessly combines physical and virtual sales. Powered by Ethereum and Metamask, we offer a secure and decentralized system for transactions. Scan a QR code to transfer crypto to the vendor's wallet. Engage in optional features like giving tips, playing slot machine games for extra rewards, and participating in lotteries. Our SPV platform fosters crypto use and market development. Stay tuned for app delivery options and the integration of NFTs. Imagine our vending machines in high-traffic areas, expanding their reach and impact. Embrace the Web3 revolution with Block Juice!

Features (implemented for now):

  • Buying multiple products in single transaction
  • Using Chainlink Price Feeds to convert product price to price in crypto
  • Role-based access control mechanisms with OpenZeppelin's AccessControl. This allows only merchants to register new products and to transfer ownership if project is sold
  • Fee system (with 2 decimals) for splitting funds between merchant and owner of smart contract
  • Lottery based on tipping when buying single product for chance to get double rewards for the price of one

Installation

Block Juice requires Node.js v18+ to run

Install the dependencies with:

yarn install

To deploy to Sepolia testnet, run the following script:

yarn hardhat run scripts/deploy.js --network sepolia

Address (and abi) of deployed contract will be saved in file frontend.json.

To run tests on local Ethereum network (built-in with Hardhat), first comment line no. 101 and uncomment line no. 102 (to use hardcoded value for ETH price on local network instead of Chainlink Price Feed), and then run following script:

yarn hardhat test

blockjuice's People

Contributors

kaseen 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.