15 Commits

Author SHA1 Message Date
tomFlowee 291dedfa30 This adds several features.
* message sending now allows arrays.
The underlying engine allows more than the JS allowed, this has been
fixed.
Specifically we now allow something like:
  message.body[45] = ["first", "second"];

* A new helper method is exposed to JavaScript: parseAddress()
This method allows one to parse Bitcoin addresses and return the
script-hash used elsewhere.
Notice that the second argument is an optional prefix, allowing for
parsing of testnet addresses.
2021-02-26 19:37:16 +01:00
tomFlowee 7fb2ba0c48 Fix memory usage of pools.
This follows a refactor in flowee-libs, we make the reserve amount
mandatory to be called, since its too easy to forget to reserve.
2021-02-18 09:51:31 +01:00
tomFlowee 0829548e2f Fix from elderapo, call it once only. 2021-02-18 09:51:26 +01:00
tomFlowee 525ef09b64 Warp callbacks in unique_ptrs
The NodeJS APis break expected contracts with regards to the
Napi::ThreadSafeFunction and that makes them not work as a normal
object.
Using new / delete on them works much better and allows the user
to re-assign a callback to a new value.
2021-02-17 21:02:06 +01:00
tomFlowee 85f3d9a003 Fix destructor 2021-02-16 17:31:57 +01:00
tomFlowee 46d7bc4066 Copy by value to avoid memory issues 2021-02-12 14:35:56 +01:00
TomZ d7dc95dac4 Add support for the AddressMonitor service 2019-12-30 18:49:53 +01:00
TomZ 18037f09f1 Add Flowee.sendTransaction() JavaScript call. 2019-12-27 22:25:49 +01:00
TomZ 7539772be0 Re-do the connect() family of methods.
Working around lots of NodeJS stupidities.
2019-12-09 15:10:27 +01:00
TomZ 189a668f7b Make nicer for devs
this adds some docs, converts hashes and scripts to strings.
2019-12-09 15:09:23 +01:00
TomZ 122672211c Make most of search work. 2019-11-30 20:07:39 +01:00
TomZ 42516fbf7c Further populate search 2019-11-29 22:12:08 +01:00
TomZ bd795729c2 Port to the C++ api 2019-11-09 19:10:11 +01:00
TomZ 03ede89c36 Refactor; move code around 2019-11-09 18:18:56 +01:00
TomZ ccc6c78d21 import example 2019-11-03 20:52:30 +01:00