Skip to content

Split large files in wasm bindings #1925

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 7 commits into from
Jun 4, 2025
Merged

Split large files in wasm bindings #1925

merged 7 commits into from
Jun 4, 2025

Conversation

ImplOfAnImpl
Copy link
Contributor

wasm-wrappers/src/lib.rs was split into multiple files. The moved code is mostly the same, except:

  • some parameters were renamed;
  • Error::InvalidInputUtxoEncoding is used instead of InvalidInputEncoding when dealing with utxos;
  • decode_raw_array was introduced and used instead of the explicit while loops.

The js tests for the wasm bindings were split into multiple functions/files. Also:

  • they now use TypeScript;
  • knip is used on CI to ensure that the test files have no unused exports (i.e. to ensure that there are no forgotten tests).

Again, the moved code is mostly the same, except for the changes I had to make to satisfy TypeScript's type checks.

@ImplOfAnImpl ImplOfAnImpl marked this pull request as draft May 23, 2025 15:30
@ImplOfAnImpl ImplOfAnImpl marked this pull request as ready for review June 3, 2025 09:24
@ImplOfAnImpl ImplOfAnImpl merged commit 85ef3a5 into master Jun 4, 2025
18 checks passed
@ImplOfAnImpl ImplOfAnImpl deleted the wasm_tests_as_ts branch June 4, 2025 09:12
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.

2 participants