{"id":25623301,"url":"https://github.com/nthe/lisk-dapp-polls","last_synced_at":"2026-06-04T16:31:45.355Z","repository":{"id":53304096,"uuid":"249228606","full_name":"nthe/lisk-dapp-polls","owner":"nthe","description":"Decentralized polling application on Lisk.","archived":false,"fork":false,"pushed_at":"2021-03-31T18:17:49.000Z","size":429,"stargazers_count":0,"open_issues_count":22,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-24T10:34:21.526Z","etag":null,"topics":["application","blockchain","distributed","javascript","lisk","polling"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nthe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-22T16:50:14.000Z","updated_at":"2024-07-24T10:34:21.527Z","dependencies_parsed_at":"2022-09-02T02:00:45.782Z","dependency_job_id":null,"html_url":"https://github.com/nthe/lisk-dapp-polls","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nthe%2Flisk-dapp-polls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nthe%2Flisk-dapp-polls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nthe%2Flisk-dapp-polls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nthe%2Flisk-dapp-polls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nthe","download_url":"https://codeload.github.com/nthe/lisk-dapp-polls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240170069,"owners_count":19759141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["application","blockchain","distributed","javascript","lisk","polling"],"created_at":"2025-02-22T11:36:00.915Z","updated_at":"2026-06-01T13:30:14.795Z","avatar_url":"https://github.com/nthe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\" \u003e\n  \u003cimg src=\"./media/screen.png\" width=600 style=\"border-radius: 16px; box-shadow: 0 0 4px #aaa\"\u003e\n\u003c/p\u003e\n\n# Decentralized voting app on Lisk\n\n## Installation\n\nCheck out [Lisk SDK examples](https://github.com/LiskHQ/lisk-sdk-examples) and official [lisk.io documentation](https://lisk.io/documentation/lisk-sdk/index.html) for setup instructions.\n\n## Description\n\nBelow is the short description of states and transactions.\n\n### Poll states\n\nEach poll is set to created when created. Closed poll cannot be re-opened. Polls and their results cannot be deleted.\n\n1.**Created** state\n\n-   everyone can view the poll\n-   noone can vote\n-   the owner can open the poll\n\n2.**Opened** state\n\n-   everyone can view the poll\n-   everyone can vote and change their vote\n-   noone can see the results\n-   the owner can close the poll\n\n3.**Closed** state\n\n-   everyone can view the poll\n-   everyone can display results\n-   noone can change the vote\n\n### Transactions\n\nIn order to achieve all mentioned states, three transactions were created.\n\n-   create poll\n-   update poll\n-   vote\n\nPolls and votes are stored on the senders account in following form.\n\n```js\n// PollState = [ \"created\", \"opened\", \"closed\" ]\n\n{\n  ...\n  \"address\": string,\n  \"balance\": BigNum,\n  \"asset\": {\n    \"polls\" [\n      {\n        \"id\": uuid,        // pollId\n        \"title\": string,\n        \"options\": [\n          {\n            \"text\": string,\n            \"id\": int      // optionId\n          }\n        ],\n        \"state\": PollState\n      }\n    ],\n    \"votes\": {\n      [pollId]: [optionId]\n    }\n  },\n  ...\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnthe%2Flisk-dapp-polls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnthe%2Flisk-dapp-polls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnthe%2Flisk-dapp-polls/lists"}