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

Consolidated preconditions within Party #11096

Merged
merged 15 commits into from
May 31, 2022

Conversation

bkase
Copy link
Member

@bkase bkase commented May 25, 2022

account_precondition and protocol_state_precondition are now
colocated under a preconditions umbrella called: account and
network respectively ala the comments in o1-labs/o1js#179

At the moment, the protocol_state_precondition vestige is left in the
code in many places. Assuming this PR is accepted, I'll open a cleanup
issue to go through and rename those variables and modules throughout
the codebase. As these names won't ever see the light of day from a
user's perspective (neither via GraphQL nor JSON nor SnarkyJS etc) it's
benign to leave those in for now.

If existing tests pass, I did this surgery properly

`account_precondition` and `protocol_state_precondition` are now
colocated under a `preconditions` umbrella called: `account` and
`network` respectively ala the comments in o1-labs/o1js#179

At the moment, the `protocol_state_precondition` vestige is left in the
code in many places. Assuming this PR is accepted, I'll open a cleanup
issue to go through and rename those variables and modules throughout
the codebase. As these names won't ever see the light of day from a
user's perspective (neither via GraphQL nor JSON nor SnarkyJS etc) it's
benign to leave those in for now.
@bkase bkase requested review from a team as code owners May 25, 2022 22:06
@bkase bkase added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label May 25, 2022
Copy link
Member

@mrmr1993 mrmr1993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but you'll need to update the archive node etc. too

bkase added a commit that referenced this pull request May 25, 2022
SnarkyJS side of #11096 addressing the naming
consistency part of #179
@@ -795,7 +795,7 @@ module Body = struct
; sequence_events : Events'.Stable.V1.t
; protocol_state_precondition :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this to network_precondition to be consistent?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this via the @name annotation for now because I didn't want this PR to balloon in scope. Was planning on making an issue for addressing that later. Is that okay?

@bkase bkase requested a review from imeckler as a code owner May 26, 2022 09:31
Copy link
Member

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snarkyjs / graphql side gets my 👍🏻
It really speaks for our architecture how easy this change across projects was @bkase

@bkase bkase merged commit 49c199c into develop May 31, 2022
@bkase bkase deleted the feature/consolidated-preconditions-parties branch May 31, 2022 21:42
mitschabaude added a commit to o1-labs/o1js that referenced this pull request Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants