Skip to content

React app to interact with voting contract written in cairo, deployed in Starkware goerli tesnet

Notifications You must be signed in to change notification settings

vishnuc77/voting-starkware

Repository files navigation

Interacting with voting contract deployed in goerli Starkware

Prerequisites

  • Node

Get it running

  1. Install the required npm packages npm install

  2. Compile and Deploy the contracts

npx hardhat starknet-compile
npx hardhat starknet-deploy starknet-artifacts/contracts/Result.cairo --starknet-network alpha
npx hardhat starknet-deploy starknet-artifacts/contracts/Voter.cairo --inputs "<address-of-result-contract-here>" --starknet-network alpha
  1. Front-end
cd frontend
npm install

Also change VOTER_ADDRESS and RESULT_ADDRESS in app.js

npm start
  1. Install Argent X

About

React app to interact with voting contract written in cairo, deployed in Starkware goerli tesnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published