-
Notifications
You must be signed in to change notification settings - Fork 9
Testing All Possible Events in a TCR
Eddy Muñoz edited this page Mar 10, 2018
·
9 revisions
Below are a list of all possible events that can happen amongst applicants, challengers, and voters both in registry listings and in governance interactions:
W1 = Wallet 1 = Applicant Wallet
W2 = Wallet 2 = Challenger Wallet
W3 = Wallet 3 = Support–Vote Wallet
W4 = Wallet 4 = Oppose–Vote Wallet
dispensationPct = 50%
voteQuorum = 50%
Unchallenged Application
- W1 applies
foo.com
into the registry -
foo.com
goes unchallenged and is admitted into the registry - W1 now has the ability to:
- Stake more token into the
foo.com
- Withdraw token from
foo.com
's stake - Withdraw
foo.com
from the registry and withdraw all tokens staked withfoo.com
- Stake more token into the
No Vote Challenge
- W1 applies
foo.com
into the registry - W2 challenges
foo.com
from the registry - In voting, nobody votes on
foo.com
, and tie goes to the challenger - W2 wins 100% of the
minDeposit
used by W1 to applyfoo.com
Supporting Votes
- W1 applies
foo.com
into the registry - W2 challenges
foo.com
from the registry - W3 commits and reveals 1 vote to SUPPORT
- Once voting ends,
foo.com
is admitted into the registry- W1 wins 50% of W2's
minDeposit
used to challengefoo.com
- W2 loses 100% of
minDeposit
tokens staked to challengefoo.com
- W3 wins the remaining 50% of W2's
minDeposit
token & callswithdrawVotingRights
to have the token used to vote returned to it
- W1 wins 50% of W2's
- W1 now has the ability to:
- Stake more token into the
foo.com
- Withdraw token from
foo.com
's stake - Withdraw
foo.com
from the registry and withdraw all tokens staked withfoo.com
- Stake more token into the
Majority Wins
- W1 applies
foo.com
into the registry - W2 challenges
foo.com
from the registry - W3 commits 2 token votes to SUPPORT
- W4 commits 1 token vote to OPPOSE
- W3 reveals its 2 token votes to SUPPORT
- W4 reveals its 1 token vote to OPPOSE
- Once voting ends,
foo.com
is admitted into the registry- W1 wins 50% of W2's
minDeposit
used to challengefoo.com
- W2 loses 100% of
minDeposit
tokens staked to challengefoo.com
- W3 wins the remaining 50% of W2's
minDeposit
token & callswithdrawVotingRights
to have the 2 tokens used to vote returned to the wallet - W4 calls
withdrawVotingRights
to have the 1 token used to vote returned
- W1 wins 50% of W2's
- W1 now has the ability to:
- Stake more token into the
foo.com
- Withdraw token from
foo.com
's stake - Withdraw
foo.com
from the registry and withdraw all tokens staked withfoo.com
- Stake more token into the
Unrevealed Votes
- W1 applies
foo.com
into the registry - W2 challenges
foo.com
from the registry - W3 commits 1 token vote to SUPPORT
- W4 commits 1 token vote to OPPOSE
- W3 reveals its 1 vote to SUPPORT
- W4 fails to reveal its 1 token vote to OPPOSE
- Once voting ends,
foo.com
is admitted into the registry- W1 wins 50% of W2's
minDeposit
used to challengefoo.com
- W2 loses 100% of
minDeposit
tokens staked to challengefoo.com
- W3 wins the remaining 50% of W2's
minDeposit
token & callswithdrawVotingRights
to have the 1 token used to vote returned to the wallet - W4 has to call
rescueTokens
to withdraw the committed 1 token vote
- W1 wins 50% of W2's
- W1 now has the ability to:
- Stake more token into the
foo.com
- Withdraw token from
foo.com
's stake - Withdraw
foo.com
from the registry and withdraw all tokens staked withfoo.com
- Stake more token into the