Skip to content

Split large files in wasm bindings#1925

Merged
ImplOfAnImpl merged 7 commits into
masterfrom
wasm_tests_as_ts
Jun 4, 2025
Merged

Split large files in wasm bindings#1925
ImplOfAnImpl merged 7 commits into
masterfrom
wasm_tests_as_ts

Conversation

@ImplOfAnImpl

Copy link
Copy Markdown
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