Skip to content

Update the playground to the latest bdk-cli #118

Merged
afilini merged 6 commits intobitcoindevkit:masterfrom
danielabrozzoni:repl_update
Oct 7, 2022
Merged

Update the playground to the latest bdk-cli #118
afilini merged 6 commits intobitcoindevkit:masterfrom
danielabrozzoni:repl_update

Conversation

@danielabrozzoni
Copy link
Copy Markdown
Member

@danielabrozzoni danielabrozzoni commented Sep 7, 2022

This needs bitcoindevkit/bdk-cli#116 & bitcoindevkit/bdk-cli#117 to be merged first

Everything under docs/.vuepress is auto-generated, so you don't have to review it :)

@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 7, 2022

Deploy Preview for awesome-golick-685c88 ready!

Name Link
🔨 Latest commit c3c4ddc
🔍 Latest deploy log https://app.netlify.com/sites/awesome-golick-685c88/deploys/633eba72b057180008cd1c16
😎 Deploy Preview https://deploy-preview-118--awesome-golick-685c88.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@danielabrozzoni danielabrozzoni marked this pull request as ready for review September 14, 2022 13:31
rajarshimaitra added a commit to bitcoindevkit/bdk-cli that referenced this pull request Sep 26, 2022
731dc74 Add wasm build in CI (Daniela Brozzoni)
b3469b4 Add wasm support (Daniela Brozzoni)

Pull request description:

  ### Description

  This PR adds a module to bdk-cli that exposes some structures/functions to WASM. You can see it in use here: bitcoindevkit/bitcoindevkit.org#118

  ### Notes to the reviewers

  Based on #116

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk-cli/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

  #### New Features:

  * [ ] I've added tests for the new feature
  * [ ] I've added docs for the new feature
  * [x] I've updated `CHANGELOG.md`

  #### Bugfixes:

  * [ ] This pull request breaks the existing API
  * [ ] I've added tests to reproduce the issue which are now passing
  * [ ] I'm linking the issue being fixed by this PR

ACKs for top commit:
  rajarshimaitra:
    ACK 731dc74

Tree-SHA512: 69011ab6cb421f7e6f7dd000f9eaf5581428b2288358e31ffaec4425996951443fa2fc79f99db7de9c030d6a3fda57d25eee11564cf2fab9c745da593324f763
@danielabrozzoni danielabrozzoni force-pushed the repl_update branch 2 times, most recently from da2aaf2 to d2d06d3 Compare October 5, 2022 14:41
Comment thread playground/README.md Outdated
@afilini
Copy link
Copy Markdown
Member

afilini commented Oct 5, 2022

Also I think currently your submodule is pointed to a local path, it should be changed to the https git url

@danielabrozzoni
Copy link
Copy Markdown
Member Author

Also I think currently your submodule is pointed to a local path, it should be changed to the https git url

No, it's a git submodule, so the local path should be ok

@danielabrozzoni danielabrozzoni force-pushed the repl_update branch 2 times, most recently from df5da41 to 8671c03 Compare October 6, 2022 10:26
Copy link
Copy Markdown
Member

@afilini afilini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 8671c03

@afilini
Copy link
Copy Markdown
Member

afilini commented Oct 6, 2022

Actually the wasm file is like 25mb, was it built in release mode?

Remove all the rust code from the playground, instead use the
bdk-cli "wasm" module.
Update the js code to use bdk-cli instead of the utilities
that were previously under src/
Update the README with instructions on how to compile the playground
Fixes bitcoindevkit#111
Before, failing to create the wallet instance wouldn't report
the error back to the caller, which would usually go on
and call methods on inst, casuing null pointer exceptions.
You can try this by entering the current playground and inserting
a descriptor with a mismatched checksum: the error would be logged
in the console, but a weird error would be presented to the user.
The stop button wouldn't work as it was calling `currentWallet.free()`,
which is not defined. Instead, assigning null to currentWallet and let
the garbage collector do its thing.
@danielabrozzoni
Copy link
Copy Markdown
Member Author

Sorry, it's 6MB now

Copy link
Copy Markdown
Member

@afilini afilini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK c3c4ddc

@afilini afilini merged commit c3c4ddc into bitcoindevkit:master Oct 7, 2022
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