-
Notifications
You must be signed in to change notification settings - Fork 0
Implement zkit wrapper generation for given circuits #4
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 4 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
e65d179
Fixed a bug related to: Array could have any number of dimensions (e.…
KyrylR 041c738
Updated versions and CHANGELOG.md
KyrylR 0cac0c5
Refactored architecture to work as a library
KyrylR 71b1828
Implemented Zkit wrapper generation for given circuits
KyrylR f153cf8
Moved to node and mocha
KyrylR ea5a152
Used ejs instead of ts factory to render the wrapper class
KyrylR 6462b15
Added test to check proof generation and verification
KyrylR e941bca
Updated project structure
KyrylR 0ae192d
Added generation of the hardhat runtime extension file for circuits
KyrylR a39f3c2
Added a helper function to return the circuit object from given name
KyrylR aca16d9
Changed the ArtifactGeneratorConfig to accept an array of paths to ci…
KyrylR 04ac182
Updated CHANGELOG.md
KyrylR 80e0b0b
Resolved an issue where inputs could have the wrong number of dimensions
KyrylR 93f0811
Fixed tests
KyrylR f2455fa
Updated CHANGELOG.md
KyrylR 5a95e88
Updated deps
KyrylR 78c4797
Fixed tests
KyrylR 17a698e
Updated JSDoc
KyrylR 4d42041
Added circuit types Hardhat definition generation of all possible cir…
KyrylR 476683d
Updated package.json
KyrylR bbee0de
Updated README
KyrylR 603ab9e
Deleted automatic artifacts clean up
KyrylR 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
## [v0.2.0] | ||
|
||
## [Unreleased] | ||
- Resolved an issue where arrays might have multiple dimensions, such as `bigint[][][]`. | ||
- Refactored architecture to work as a library | ||
- Deleted support for standalone run | ||
- Added ability to specify where the circuit's AST files are stored | ||
- Added ability to specify where to put generated artifacts and types | ||
- Implemented Zkit wrapper generation for given circuits | ||
|
||
## [v0.1.1] | ||
|
||
### Added | ||
|
||
- Initial release of the ZKType package | ||
- Support for generating TypeScript bindings for Circom circuits | ||
|
||
[Unreleased]: https://github.com/dl-solarity/zktype/compare/master...develop |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
[test] | ||
coverage = true | ||
coverage = false | ||
coverageThreshold = { lines = 0.95, functions = 0.95 } | ||
|
||
coverageReporter = ["text", "lcov"] |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,14 +1,8 @@ | ||
import { CircuitProcessorConfig } from "./types"; | ||
import { ZKTypeConfig } from "./types"; | ||
|
||
export const defaultCircuitProcessorConfig: CircuitProcessorConfig = { | ||
defaultFolder: "circuits", | ||
skip: [], | ||
only: [], | ||
strict: false, | ||
clean: true, | ||
quiet: false, | ||
}; | ||
|
||
export const defaultCircuitArtifactGeneratorConfig = { | ||
export const defaultCircuitArtifactGeneratorConfig: ZKTypeConfig = { | ||
inputDir: "circuits", | ||
outputArtifactsDir: "artifacts/circuits", | ||
outputTypesDir: "generated-types/circuits", | ||
clean: true, | ||
}; |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.