|
@@ -1116,7 +1116,7 @@ def main(argv):
|
|
|
|
|
|
|
|
################################################
|
|
################################################
|
|
|
# Mint the governance token
|
|
# Mint the governance token
|
|
|
- # Send it to two hodlers
|
|
|
|
|
|
|
+ # Send it to three hodlers
|
|
|
################################################
|
|
################################################
|
|
|
|
|
|
|
|
# Hodler 1
|
|
# Hodler 1
|
|
@@ -1220,6 +1220,7 @@ def main(argv):
|
|
|
|
|
|
|
|
################################################
|
|
################################################
|
|
|
# Proposal is accepted!
|
|
# Proposal is accepted!
|
|
|
|
|
+ # Start the voting
|
|
|
################################################
|
|
################################################
|
|
|
|
|
|
|
|
# Lets the voting begin
|
|
# Lets the voting begin
|
|
@@ -1233,6 +1234,10 @@ def main(argv):
|
|
|
# 1. there is a time limit
|
|
# 1. there is a time limit
|
|
|
# 2. both the MPC or users can unblind
|
|
# 2. both the MPC or users can unblind
|
|
|
|
|
|
|
|
|
|
+ # TODO: bug if I vote then send money, then we can double vote
|
|
|
|
|
+ # TODO: all timestamps missing
|
|
|
|
|
+ # - timelock (future voting starts in 2 days)
|
|
|
|
|
+
|
|
|
# User 1: YES
|
|
# User 1: YES
|
|
|
builder = VoteTxBuilder(ec)
|
|
builder = VoteTxBuilder(ec)
|
|
|
builder.add_input(witness, gov_secret_1, gov_user_1_note)
|
|
builder.add_input(witness, gov_secret_1, gov_user_1_note)
|