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

feat: Enforce WitnessMap type in TS #9

Merged
merged 2 commits into from
May 22, 2023
Merged

Conversation

TomAFrench
Copy link
Member

Related issue(s)

Related to #8

Description

Summary of changes

This PR adds bindings to the JS Map API for the JSWitnessMap struct. We can then export a WitnessMap type in TS which is enforced on all relevant functions.

Dependency additions / changes

Test additions / changes

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Documentation needs

  • This PR requires documentation updates when merged.

Additional context

@TomAFrench TomAFrench changed the title feat: Enforce WitnessMap type in JS feat: Enforce WitnessMap type in TS May 22, 2023
@TomAFrench TomAFrench merged commit 26b909f into master May 22, 2023
11 checks passed
@TomAFrench TomAFrench deleted the enforce-witnessmap-type branch May 22, 2023 06:50
TomAFrench added a commit that referenced this pull request May 22, 2023
* master:
  chore: enforce type on oracle callback function (#15)
  chore: add jsdoc for `execute_circuit` (#13)
  chore: add release-please action (#12)
  chore: add smoketest for build-info (#11)
  chore(ci): add eslint to CI (#10)
  feat: Enforce `WitnessMap` type in TS (#9)
  chore: add type aliases for tests (#7)
  feat: use JS naming convention for generated functions (#6)
  chore: remove unnecessary peer dependency
@github-actions github-actions bot mentioned this pull request Jun 5, 2023
@github-actions github-actions bot mentioned this pull request Jun 26, 2023
kobyhallx pushed a commit to noir-lang/acvm that referenced this pull request Jul 26, 2023
chore: implement `From` between JS and Rust witness maps
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.

None yet

1 participant