-
Notifications
You must be signed in to change notification settings - Fork 5
docs(simulator): add a changelog and rewrite the README for 0.4.0 #155
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to `@openzeppelin/compact-simulator` are documented in this | ||
| file. | ||
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
| and this package adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
| Releases before `0.4.0` predate this file; see the `compact-simulator/v*` tags. | ||
|
|
||
| ## Unreleased | ||
|
|
||
| ### Added | ||
|
|
||
| - `BaseSimulatorOptions.time` sets the block time the kernel's time operations observe, in seconds since the epoch. Defaults to `0` for reproducible runs (#147) | ||
|
|
||
| ### Changed | ||
|
|
||
| - **Breaking:** `@midnight-ntwrk/compact-runtime` moves to `0.19.0`, which made `initialState` and every circuit async. The `@midnight-ntwrk/midnight-js-contracts` and `@midnight-ntwrk/midnight-js-types` peers move from `^4.1.0` to `^5.0.0-beta.7`. Both peers stay optional, so a dry-only consumer needs neither (#152) | ||
| - **Breaking:** construction is async. Replace `new MySimulator(args, options)` with `await MySimulator.create(args, options)`. Subclass `create` overrides return `Promise<MySimulator>` and delegate to `super._create([...args], options)` (#145, #147) | ||
| - **Breaking:** circuit proxies return promises. `ContextlessCircuits` maps to `Promise<R>`, so an un-awaited call that used to pass as a truthy promise, such as `if (sim.isOwner(x))`, no longer typechecks (#145, #154) | ||
| - **Breaking:** `getPrivateState()`, `getPublicState()`, and `getContractState()` return promises (#145) | ||
| - **Breaking:** `CircuitContextManager`'s constructor takes `time`, as `(contract, privateState, coinPK, contractAddress, time, ...contractArgs)`, and `init()` must be awaited once before any circuit call. Direct users of `CircuitContextManager` or `AbstractSimulator` are affected; the `createSimulator` path awaits `init()` internally (#147) | ||
| - **Breaking:** `CircuitContext` nests its runtime state under `callContext`, e.g. `ctx.callContext.currentPrivateState` and `ctx.callContext.currentQueryContext.state.state` (#145) | ||
| - **Breaking:** live pure circuits bind to the deployed address. An explicit `contractAddress` that differs from the deployed one is rejected rather than silently used for local pure evaluation (#154) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,6 +28,7 @@ | |
| "files": [ | ||
| "dist", | ||
| "README.md", | ||
| "CHANGELOG.md", | ||
| "LICENSE" | ||
| ], | ||
| "engines": { | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
git cat-file -e 'main:packages/simulator/CHANGELOG.md'Repository: OpenZeppelin/compact-tools
Length of output: 248
🏁 Script executed:
Repository: OpenZeppelin/compact-tools
Length of output: 1924
Use a beta-relative changelog link.
maindoes not containpackages/simulator/CHANGELOG.md, so beta users can receive a 404. Use[changelog](./CHANGELOG.md)instead.🤖 Prompt for AI Agents