Skip to content

teia-community/community-vote

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Community Vote

A voting tool for Teia

Originally developed with the help of TzConnect and Hicathon for hicetnunc

Currently deployed on mainnet at https://vote.teia.art

Prerequisite

  1. Nodejs
  2. Yarn

Deploying smart contract

  1. Create .env file using example.

    • cp .env.example .env
    • update the .env file
  2. Run: yarn deploy

  3. Update the .env file with contract address received from above command.

React App

Update the .env file to include below fields:

  • REACT_APP_NETWORK: Network where contract is deployed. Available options: "MAINNET" | "DELPHINET" | "EDONET" | "FLORENCENET" | "GRANADANET" | "CUSTOM"
  • REACT_APP_RPC_URL: RPC url to connect to. Default: https://florencenet.smartpy.io/
  • REACT_APP_CONTRACT_ADDRESS: Contract address received from the deployment step above.

Available Scripts

  • yarn build: To build the production app.
  • yarn start: To start the app in local dev setup.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 57.9%
  • CSS 26.3%
  • Python 6.2%
  • LigoLANG 4.0%
  • MDX 2.1%
  • JavaScript 1.9%
  • HTML 1.6%