@btq-js/falcon-wasm
v0.0.38
Published
Web assembly version of [@btq-js/falcon-js](https://github.com/btq-ag/btq-js/blob/main/packages/falcon-js/README.md). It has the same interface so we can use it the same way as we use [falcon-js](https://github.com/btq-ag/btq-js/blob/main/packages/falcon-
Downloads
14
Readme
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/[email protected]"
},
"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"
}
}