Giter Site home page Giter Site logo

Edit functionality about stake-curate HOT 1 CLOSED

kleros avatar kleros commented on September 23, 2024
Edit functionality

from stake-curate.

Comments (1)

greenlucid avatar greenlucid commented on September 23, 2024

strategy for edits in stake-curate:
0 edit validation or frontend protection contract side
just allow an edit function that (if item is still valid, not being challenged, etc) emits an event with the new edited item
if a challenge came, obviously the challenger wouldn't know about the edited item
but just take note of the timestamp of the edition and the timestamp of the challenge in the subgraph.
each item has an array of editions (ipfs uri and timestamp)
this also allows the evidence groupid to remain the same during the lifecycle of the item

when an item is challenged the same block as it's edited, the (stake-curate) frontend will notify it and show you the previous edition (that happened in a different timestamp, beware multiple editions in the same block), the current one, and the challenge reason etc.
you could notify of the frontran challenge status in the subgraph too

the block at which there's an edition, and the block at which theres a challenge are stored. if those blocks are the same, then lean towards the challenger (e.g. allow challenger to use previous edition)
you can put rules on the list metaevidence to enforce correct challenge reason, so that if a challenger frontruns an edit to "figure out the reason later", then they lose

from stake-curate.

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.