Coder Social home page Coder Social logo

Discussion: Event changes about tcr HOT 9 CLOSED

skmgoldin avatar skmgoldin commented on August 22, 2024
Discussion: Event changes

from tcr.

Comments (9)

kangarang avatar kangarang commented on August 22, 2024 1

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.

from tcr.

kangarang avatar kangarang commented on August 22, 2024 1

Still need to add:

  • event _ChallengeSucceeded(uint challengeID, uint rewardPool, uint totalTokens);
  • event _ChallengeFailed(uint challengeID, uint rewardPool, uint totalTokens);

from tcr.

eccheung4 avatar eccheung4 commented on August 22, 2024

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.

from tcr.

kangarang avatar kangarang commented on August 22, 2024

oh yeah, good point @eccheung4 . i do that too lol

from tcr.

kangarang avatar kangarang commented on August 22, 2024

@eccheung4 , any particular thoughts on the experimental change?

event _VoteRevealed(address voter, uint pollID, uint votesFor, uint votesAgainst);

from tcr.

kangarang avatar kangarang commented on August 22, 2024

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 voters

from tcr.

kangarang avatar kangarang commented on August 22, 2024

@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);

from tcr.

kangarang avatar kangarang commented on August 22, 2024

_ProposalUnprocessed(bytes32 propID);
->
_ProposalExpired(bytes32 propID);

from tcr.

kangarang avatar kangarang commented on August 22, 2024

Resolved:

Registry: f5b42b2

PLCRVoting: cab98ed

Parameterizer: 6d3eac7

from tcr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.