Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal Validation Phase 1 - Without Tx Simulation #16

Open
Tracked by #9
jaybuidl opened this issue Apr 23, 2024 · 0 comments
Open
Tracked by #9

Proposal Validation Phase 1 - Without Tx Simulation #16

jaybuidl opened this issue Apr 23, 2024 · 0 comments
Labels
Type: Epic 🐉 A large user story that can be broken down into a number of smaller stories.

Comments

@jaybuidl
Copy link
Member

jaybuidl commented Apr 23, 2024

We want to make sure that the hash of the concatenation of each transaction hash matches between Snapshot and Reality.

image

Step 1: the Expected Hash

  1. Get the LogNewQuestion event
    image
  2. Get the event parameter question which is a string of values delimited by the fullstop character 0x2e, they are used to populate the question template.
  3. The expected hash is the 2nd token in question: 95de4e30a67f13ab3343a172f4b7b96c72984ed47a54667b279f131fef1e4652 in the example above.

Remember to add 0x in front of it.

Step 2: Compute and Check the Hash for the transaction batch

Follow the procedure from the script computeSafeSnapTxHash.sh. It takes in input the Snapshot space, the proposal ID, and the expected hash (from the previous step).

Links to the above example

Snapshot proposal
Reality Question
Reality Question transaction
Reality Answer transaction

@jaybuidl jaybuidl added the Type: Epic 🐉 A large user story that can be broken down into a number of smaller stories. label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Epic 🐉 A large user story that can be broken down into a number of smaller stories.
Projects
None yet
Development

No branches or pull requests

1 participant