AztecProtocol / aztec-packages

Apache License 2.0
204 stars 235 forks source link

refactor!: nuke top level await #10128

Open olehmisar opened 1 day ago

olehmisar commented 1 day ago

Closes #9959

May be postponed if #9987 makes performance acceptable.

Removed top-level await. BarretenbergSync.getSingleton and all functions and methods that depend on it are now marked as async.

Changes

There may be bugs introduced

olehmisar commented 22 hours ago

still countless errors to fix

ludamad commented 10 hours ago

@charlielye any comments on the approach of mass-asyncifying bb?

olehmisar commented 9 hours ago

everything except end-to-end typechecks. Waiting whether this PR is even gonna be merged before continuing. Also, see the PR description for substantial changes and potential bugs introduced.