Coder Social home page Coder Social logo

zuction's Introduction

Zuction - Zero-Knowledge Auction

Check the Documentation for detailed info about project structure.

The project is currently on Harmony Devnet and the frontend is hosted on Surge.

Run Project Locally

  1. Install the required node modules by running:
yarn install
  1. compile circuits, this step will also copy necessary files to hardhat and react-app folders:
cd packages/circom
chmod u+x ./scripts/run.sh
./scripts/run.sh LessThanWinner 14
  1. install and start your ๐Ÿ‘ทโ€ Hardhat chain:
yarn chain
  1. in a second terminal window, start your ๐Ÿ“ฑ frontend:
yarn start
  1. in a third terminal window, ๐Ÿ›ฐ deploy your contract:
yarn deploy

Devnet / Production deployment

Step 1 and 2 are same as Run Locally, but instead of spinning your local blockchain do as follows:

Deploy contracts:

in packages/hardhat directory:

  1. go to hardhat directory packages/hardhat
  2. modify Hardhat's config file to add your desired EVM based chain in networks section.
  3. run yarn generate to create a new deployer account. the mnemonic.txt is now created in the hardhat directory.
  4. run yarn account to get address of that account and then send some native funds to that address
  5. deploy to desired network with yarn deploy --network NETWORK_NAME_HERE and set desired gas price using --gasprice 100000000in wei

Deploy Front-End:

in packages/react-app directory:

  1. .sample.env to .env and set network to desired network (e.g localhost or devnetHarmony) also add the public address of front-end domain with its protocol (e.g REACT_APP_PUBLIC_URL=https://example.surge.sh)
  2. run yarn build
  3. you can deploy the packages/react-app/build folder on any webserver. an easy way it to use surge by running yarn surge

zuction's People

Contributors

0x4r45h 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.