Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Challenge Submission #10

Open
marlowl opened this issue May 11, 2022 · 0 comments
Open

Advanced Challenge Submission #10

marlowl opened this issue May 11, 2022 · 0 comments

Comments

@marlowl
Copy link

marlowl commented May 11, 2022

Starter template for an account based voting mechanism

Introduction

This starter template has been build for the Advanced Phala Challenge of the amsterDOT hackathon. The template can be a start for developers who want to try the Phala privacy-preserving fat contract feature, in combination with wallet accounts from PolkadotJs.

The template can for example be expanded to build more advanced features like:

  • Governance proposals
  • Delegating voting rights to other accounts
  • RBAC mechanisms

In the current Phala js-sdk examples, I missed an easy example that would allow me to do something with multiple PolkadotJs accounts. This seemed like a fun challenge to figure out myself. So I decided to build a simple account based voting mechanism, that is still making use of the Phala fat contract benefits! 😄

Demo video

Peek.2022-05-11.09-51.mp4

Smart contract address

0x64634772085d8ab106d20cfb73b6fac0a0d4fc3720df05ff3d5349626eb4c813

Contract is deployed on the Phala Testnet, in cluster:

0x0000000000000000000000000000000000000000000000000000000000000000

Repo links

Smart contract: https://github.com/marlowl/ink-voter-contract
Frontend: https://github.com/marlowl/js-sdk/tree/amsterDot-2022

Twitter link

https://twitter.com/marl0wl/status/1524435176872361985

Discord handler

marlowl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant