Closed kangarang closed 6 years ago
Nice, looks good to me.
Not sure if challenger needs to be added to _Challenge event as I get that from the sender of transaction, but not against adding it.
oh yeah, good point @eccheung4 . i do that too lol
@eccheung4 , any particular thoughts on the experimental change?
event _VoteRevealed(address voter, uint pollID, uint votesFor, uint votesAgainst);
maybe...
event _VoteRevealed(uint pollID, uint numTokens, uint votesFor, uint votesAgainst);
since address voter
we can get from tx.from
by that same logic, we can get rid of all the address voter
s
@eccheung4
Here's another good one
Current:
event _ChallengeFailed(uint challengeID);
event _ChallengeSucceeded(uint challengeID);
Proposed:
event _ChallengeFailed(uint challengeID, uint rewardPool, uint totalTokens);
event _ChallengeSucceeded(uint challengeID, uint rewardPool, uint totalTokens);
_ProposalUnprocessed(bytes32 propID);
->
_ProposalExpired(bytes32 propID);
Resolved:
Registry: f5b42b26c7be4ae2a0f7756d6e079561a6a0b925
PLCRVoting: cab98ed1f8fb9746dd4f1afb7149bbd86db0f6fe
Parameterizer: 6d3eac7a54209dad485454bf26a907e1151b2d29
Sorry, I didn't mean to close this so abruptly. Please feel free to comment with any feedback and I'll be happy to reopen this issue.
Still need to add:
event _ChallengeSucceeded(uint challengeID, uint rewardPool, uint totalTokens);
event _ChallengeFailed(uint challengeID, uint rewardPool, uint totalTokens);
REGISTRY
_Application
: addappEndDate
_Challenge
: removedeposit
, addchallenger
, changepollID
tochallengeID
_NewListingWhitelisted
: change to_ApplicationWhitelisted
Add: (#35 & #45)
_ListingWithdrawn(bytes32 listingHash);
_TouchAndRemoved(bytes32 listingHash);
Current Implementation:
Proposed implementation:
PARAMETERIZER
Add: (#34)
_RewardClaimed(msg.sender, _challengeID, reward);
Add: (#33)
_ProposalAccepted(bytes32 propID);
_ProposalUnprocessed(bytes32 propID);
_ChallengeSucceeded(uint challengeID);
_ChallengeFailed(uint challengeID);
Current:
Proposed:
PLCRVOTING
PollCreated
: change args tocommitEndDate
,revealEndDate
Add: underscores for convention
Experimental:
VoteRevealed
: change to(voter, pollID, votesFor, votesAgainst)
Current:
Proposed: