153 Commits

Author SHA1 Message Date
tomFlowee 7ce891937a Be more silent by default 2021-02-12 21:38:06 +01:00
tomFlowee 10ca339b57 Make floweejs compile with ancient boost.
For people that want to compile in docker this is needed as there
are not really any dockers with an up-to-date boost.
2021-02-12 14:37:13 +01:00
tomFlowee 1b91ba38fb increase version 2021-02-12 14:37:03 +01:00
tomFlowee 46d7bc4066 Copy by value to avoid memory issues 2021-02-12 14:35:56 +01:00
tomFlowee ce3394376d another bugfix release 2021-02-11 17:45:04 +01:00
tomFlowee d6244fb8f6 Improvements of FindAddressInMempool
Make FindAddressInMempool also call onAddressUsedInOutput()

Make the mempool methods use better filter defaults, as the
offset in block doesn't make much sense for them.
2021-02-11 17:43:41 +01:00
tomFlowee 2e9e37005d Bugfix release 2021-02-11 15:53:15 +01:00
tomFlowee 67c3572730 Add FindTxInMempool / FindAddressInMempool
This makes available two new jobtypes to JavaScript
2021-02-11 15:52:00 +01:00
tomFlowee 51fc065453 New version 2021-02-07 20:44:04 +01:00
tomFlowee 3510af86cc Import 2021.01 changes 2021-02-07 20:41:53 +01:00
tomFlowee dd1bbd7647 import 2021-01-05 23:07:07 +01:00
tomFlowee ee697e6db0 Print more complete error message 2020-12-16 22:25:40 +01:00
tomFlowee e273521a48 import upstream changes 2020-12-16 22:14:15 +01:00
tomFlowee 1691cb19b1 Make testnet4 work much easier.
This adds calls;
    Flowee.testConnectHub()
    Flowee.testConnectIndexer()

And if you want to connect to both:
    Flowee.testConnect()
2020-12-16 22:11:55 +01:00
tomFlowee bfc510c3d9 Less confusion 2020-12-08 12:23:18 +01:00
TomZ 212e54cba5 Update to new version 2020-11-17 21:55:32 +01:00
TomZ b869ba178d update to 2020.07 2020-11-17 21:53:04 +01:00
TomZ 8343f61ec2 Update to 2020.06.1 release 2020-09-19 23:53:54 +02:00
TomZ e8f5a693b3 Import update 2020.05.1 2020-08-12 22:23:16 +02:00
TomZ 4962804d3f Move common code to its own method 2020-07-28 12:35:27 +02:00
TomZ 998885700b of all the things to copy/paste 2020-07-28 12:30:28 +02:00
TomZ ff70c7e4da Remove obsolete doc 2020-07-27 21:04:46 +02:00
TomZ 5b878aa7cd Prepare for next release 2020-07-27 20:55:59 +02:00
TomZ cb3470d72e Move processing to the main() 2020-07-27 20:54:08 +02:00
TomZ 79bf994962 Fixlets in Search
This fixes a type on a method name,
this also fixes unexpected results in some cases when the user did not
implement onFinished()
2020-07-27 20:52:38 +02:00
TomZ da773ae97e Add UTXO accessor methods 2020-07-27 20:05:53 +02:00
TomZ d0df3452cb Make connecting to one server work better
This ensures that we also resolve the promise when only one
of the server-types (hub/indexer) is connected to.
2020-07-27 19:26:05 +02:00
TomZ be5663ba7e Start new service, add getLiveTransaction method 2020-07-27 12:41:23 +02:00
TomZ a529506cd0 Add getBlockHeader getter 2020-07-27 12:00:42 +02:00
TomZ 35c2b9d17a Add getRawTransaction method 2020-07-27 11:44:26 +02:00
TomZ 4e042ce150 fix misuses of hashToString 2020-07-27 11:43:55 +02:00
TomZ c579d1da47 small fixes 2020-07-27 11:42:25 +02:00
TomZ 7edbcc6ba3 Enrich addressmonitor callback object
Allow for the possibility that more than one watched address matches
the transaction we notify about and therefore make an array.
Additionally, include the block-height property when mined.
2020-07-27 10:53:06 +02:00
TomZ d695d85ddb Make much complete the sending of messages
This converts more JS values to the proper NetworkManager values
and vice versa for the return message.

Return messages now have the following structure;

{
  serviceId: 1,
  messageId: 1,
  '67': 'main',
  '68': 644459,
  header: {},
  body: [
    { key: '67', value: 'main' },
    { key: '68', value: 644459 },
  ]
}

The keys in CMF are all intergers, and the 67 and 68 here are examples.
The body is now an array of properties.

For convenience each item is also set on the main return message.
Be aware, though, that for properties that are repeated only the last
one will be present on the return-message.

This commit also implements several blockchain service methods and
adds an example.

Last point is that for byte-arrays (like hashes) we produce a property
like this:
{
  key: '70',
  value: [Uint8Array],
  string: '000000000000000001613440a154e4c35c6467f65dafd70605d5578ec00b0192'
}

Again, as convenience, we add the string version of hashes. This is also
present on the return-message as '70str' next to the '70' bytearray.
2020-07-18 14:42:50 +02:00
TomZ e3e3eb90d0 Make sendMessage call return the msg to JS 2020-07-17 23:21:06 +02:00
TomZ fcba07e674 import fixlet from theHub 2020-07-17 23:21:06 +02:00
TomZ 04e4a9cac2 Make an actual C++ message to be sent
This takes the JavaScript 'message' object and converts it into
a message that the NetworkManager uses.
2020-07-17 23:21:05 +02:00
TomZ 30108aba48 Combine with native JavaScript lib
This starts a native JS lib, taking inspiration for the basics
from the Flowee-JS-pure repo.
Additionally this exposes sending of CMF messages from JS over
the connection already set up in C++.
2020-07-17 23:20:23 +02:00
TomZ 62004df7ce Prepare a bugfix release 2020-06-20 12:54:45 +02:00
TomZ 67bb8474b3 Add context logs to debug builds 2020-06-19 16:43:53 +02:00
TomZ 69bf16358c import upstream changes 2020-06-19 16:43:15 +02:00
TomZ 66d96dc8a0 This seems needed for some 2020-06-05 21:45:56 +02:00
TomZ 7820f4fa74 Set a default build-level
use 'release-with-debug-info' as the default build-type when nothing
is specified.

Also fix some warnings from a newer CMake
2020-06-05 18:32:52 +02:00
TomZ d46b62c676 Follow guidelines for license file 2020-05-23 11:15:12 +02:00
TomZ 7ce8bc9c2f update 2020-05-23 11:14:01 +02:00
TomZ 24adc83b29 JS has an off-by-one in the month 2020-05-23 00:07:22 +02:00
TomZ bc87f336a1 new release 2020-05-20 12:12:02 +02:00
TomZ 5e82bef884 Actually include the imported data in the git repo. 2020-05-20 12:11:23 +02:00
TomZ 6590d39b3b List the indexer status 2020-05-20 12:06:21 +02:00
TomZ 4e14aac032 Make cmake required version less strict
Tested with 3.7, so set that as the minimum
2019-12-31 13:47:41 +01:00