Skip to content

Dapp for delegators to vote on Tezos governance. Goal is for delegates to understand what delegators want and avoid to just chose pass or vote against the crowd

License

Notifications You must be signed in to change notification settings

marigold-dev/tzvote

Repository files navigation

TzVote

Oracle

The Oracle is here to store missing information of current voting period index

compile

TAQ_LIGO_IMAGE=ligolang/ligo:0.72.0 taq compile votingPeriodOracle.jsligo

Test

Dry run

taq simulate votingPeriodOracle.tz --param pokeGame.parameter.default_parameter.tz  --sender alice --protocol nairobi

Unit tests

taq test unit_votingPeriodOracle.jsligo

Deploy

taq deploy votingPeriodOracle.tz -e "testing" --storage votingPeriodOracle.storage.ghostnet.tz
taq deploy votingPeriodOracle.tz -e "production" --storage votingPeriodOracle.storage.mainnet.tz

ghostnet : KT1ACfH87dohx1bAVc4PigcNBAFSTdxrRwj7 mainnet : KT1C8Varn3RWkSk6jJBVSRUHkmmXArGefifp

initialize some data

taq call votingPeriodOracle --param pokeGame.parameter.default_parameter.tz  -e testing

Smart contract

Compile Tezos baker contract

TAQ_LIGO_IMAGE=ligolang/ligo:0.72.0 taq compile tezosTemplate3.jsligo

Unit tests

taq test unit_tezosTemplate3.jsligo

Deploy

taq deploy tezosTemplate3.tz -e "testing" --storage tezosTemplate3.storage.ghostnet.tz

KT1G4DCjT2SviF7T6Ji9zB5m65DR67Mw91nZ

taq deploy tezosTemplate3.tz -e "production" --storage tezosTemplate3.storage.mainnet.tz

KT1FohLnkN7zNk4fQy99D4TJoM83Ln8JJz4c

Compile permissioned Simple Poll contract

TAQ_LIGO_IMAGE=ligolang/ligo:0.72.0 taq compile permissionedSimplePoll.jsligo

Unit tests

taq test unit_permissionedSimplePoll.jsligo

Deploy

taq deploy permissionedSimplePoll.tz -e "testing" --storage permissionedSimplePoll.storage.ghostnet.tz

KT1ACfH87dohx1bAVc4PigcNBAFSTdxrRwj7

taq deploy permissionedSimplePoll.tz -e "production" --storage permissionedSimplePoll.storage.mainnet.tz

KT1CXVRgTKeEn2F2fqVX7tWcMrYRn8vaJwUa

App

Compile both for the frontend

TAQ_LIGO_IMAGE=ligolang/ligo:0.72.0 taq compile tezosTemplate3.jsligo --json && mv artifacts/tezosTemplate3.json ./app/src/contracttemplates/

TAQ_LIGO_IMAGE=ligolang/ligo:0.72.0 taq compile permissionedSimplePoll.jsligo --json && mv artifacts/permissionedSimplePoll.json ./app/src/contracttemplates/

Generate types

taq install @taqueria/plugin-contract-types
taq generate types ./app/src

Build

Install dependencies:

npm i
npm run local

Build for Android (linked to mainnet config by default on package.json)

ionic capacitor add android
ionic capacitor copy android
npm install -g cordova-res
cordova-res android --skip-config --copy
ionic capacitor sync android
ionic capacitor update android

TzCommunity

  • TzVote utilizes TzCommunity to retrieve people's profile data.

TIPS

Add one of my account alice as a baker

tezos-client register key alice as delegate

Docs

import git submodule and run doc locally

git submodule add https://github.com/marigold-dev/marigold-docs-theme.git docs/theme
git submodule update --init --recursive
mdbook serve --open --port 3003

About

Dapp for delegators to vote on Tezos governance. Goal is for delegates to understand what delegators want and avoid to just chose pass or vote against the crowd

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •