-
Notifications
You must be signed in to change notification settings - Fork 12
Add simulator package #247
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR really adds a lot of improvements for the testing framework. This is not a complete review. Wondering what is left for this PR to be open?
packages/simulator/package.json
Outdated
@@ -0,0 +1,42 @@ | |||
{ | |||
"name": "@openzeppelin-compact/simulator", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"name": "@openzeppelin-compact/simulator", | |
"name": "@openzeppelin-compact/contracts-simulator", |
I was thinking that should be more specific, as in the suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to contracts-simulator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes that is better, Compact is already there.
/** Retrieves the current public ledger state */ | ||
abstract getPublicState(): L; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it not part of the StateManager?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would make sense haha nah "StateManager" wasn't a good name. I changed it to "CircuitContextManager" which I think provides more clarity
@0xisk Thank you! I just needed to add some fixes so the CI would not fail. All good now |
Types of changes
What types of changes does your code introduce to OpenZeppelin Midnight Contracts?
Put an
x
in the boxes that applyFixes #???
PR Checklist
Overview
WIP