@btq-js/falcon-wasm
TypeScript icon, indicating that this package has built-in type declarations

0.0.38 • Public • Published

falcon-wasm

Web assembly version of @btq-js/falcon-js. It has the same interface so we can use it the same way as we use falcon-js

How to replace default falcon dependency?

falcon-js is the default dependency for other packages under @btq-js, such @btq-js/tx and @btq-js/simple-wallet.

If we want to swap the underlying falcon from javascript to webassembly, we can simply define overrides in package.json like this:

{
  "overrides": {
    "@btq-js/falcon-js": "npm:@btq-js/falcon-wasm@0.0.33"
  },
  "dependencies": {
    // Usually we don't import falcon-js directly, we use these libs that depend on falcon-js. By using "overrides" we can chagne falcon implementation from javascript to webassembly without any code chagnes
    "@btq-js/simple-wallet": "0.0.33",
    "@btq-js/tx": "0.0.33",
    "@btq-js/web3-provider": "0.0.33"
  }
}

/@btq-js/falcon-wasm/

    Package Sidebar

    Install

    npm i @btq-js/falcon-wasm

    Weekly Downloads

    0

    Version

    0.0.38

    License

    none

    Unpacked Size

    2.31 kB

    Total Files

    5

    Last publish

    Collaborators

    • _alex_dev
    • wei_btq