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

ZkPrograms QoL improvements #1933

Merged
merged 12 commits into from
Dec 19, 2024
Merged

ZkPrograms QoL improvements #1933

merged 12 commits into from
Dec 19, 2024

Conversation

mitschabaude
Copy link
Collaborator

@mitschabaude mitschabaude commented Nov 29, 2024

Small collection of QoL improvements around ZkProgram:

  • change the TupleToInstances<> type so that it gets fully resolved by intellisense, i.e. we now see a normal method signature when hovering over ZkProgram methods
  • Expose maxProofsVerified() and the Proof class directly on the ZkProgram
  • Fix an outdated ZkProgram test
  • Delete an unused test/example (that was also outdated and didn't build)

@mitschabaude mitschabaude marked this pull request as ready for review November 29, 2024 14:42
@mitschabaude mitschabaude requested review from a team as code owners November 29, 2024 14:42
@mitschabaude mitschabaude requested review from 45930 and Geometer1729 and removed request for a team November 29, 2024 14:42
@mitschabaude
Copy link
Collaborator Author

Ready for review

@mitschabaude
Copy link
Collaborator Author

note: the commonjs test failure just seems to be a runner problem

Copy link
Member

@Geometer1729 Geometer1729 left a comment

Choose a reason for hiding this comment

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

LGTM

@Geometer1729
Copy link
Member

Your first two bullets should probably be added to CHANGELOG.md

CI is supposed to catch when PRs don't update the changelog, not sure why it didn't here.

@@ -1112,7 +1126,7 @@ type Infer<T> = T extends Subclass<typeof ProofBase>

type TupleToInstances<T> = {
[I in keyof T]: Infer<T[I]>;
} & any[];
};
Copy link
Contributor

Choose a reason for hiding this comment

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

This is really nice! <3

Copy link
Member

@Trivo25 Trivo25 left a comment

Choose a reason for hiding this comment

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

That's a great and clean addition! I think this is good to go if we can add a quick changelog entry too!

@mitschabaude
Copy link
Collaborator Author

updated the PR incl. changelog, just waiting for base PR to merge

Base automatically changed from feature/declare-proofs to main December 19, 2024 14:37
@mitschabaude mitschabaude merged commit 17adf4b into main Dec 19, 2024
27 of 28 checks passed
@mitschabaude mitschabaude deleted the feature/zkprogram-qol branch December 19, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants