Support for invoke that uses service agreements

Changes:

Purchase now has an Abstract Base Class, which, on purchase (verb not noun), returns either a 'Purchase' Object (the name could be better, perhaps PurchasedAsset, on which you can call consume()), or a Operation object, (on which you can call invoke())
Squid doesn't have support for invoke, therefore some Squid code is now in Starfish.

This is a work in progress, things lets to do:

Use a Factory-like method to create the right objects, based on the asset/operation metadata
Add support for multiple Barge/Koi servers running (Koi is the name of invokable server)
Remove unnecessary steps (e.g encrypting/decrypting URLs, which is irrelevant for Invoke)
Better metadata definition.

I'm asking for a review now so that the changes can be consumed in small chunks.
However, please do not merge this, as Koi-py does not yet run on a docker instance (therefore tests will fail)

responses inline

I think this is a much more feasible approach to adding invoke than forking squid.
That being said I have some suggestions...

Must document Brizo requirement

What I'm trying to do (and which is taking longer than expected), is to have Koi run as in a Docker container similar to Brizo. These errors should go away at that point

NOTE: if barge is started without brizo we get a really long
error (maybe we should have a more friendly error like...
It seems like the brizo service is not available at URL ..
are you sure it has been configured correctly?
_________________ ERROR collecting tests/agents/test_brizo_invoke.py _________________
venv/lib/python3.7/site-packages/urllib3/connection.py:159: in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
venv/lib/python3.7/site-packages/urllib3/util/connection.py:80: in create_connection
    raise err
venv/lib/python3.7/site-packages/urllib3/util/connection.py:70: in create_connection
    sock.connect(sa)
E   ConnectionRefusedError: [Errno 111] Connection refused

Update README.md
needs to say

./start_ocean.sh --no-pleuston --local-spree-node

Will do

Tip: To avoid merge conflicts...
... you probably one to rebase on Bill's feature/memory-asset branch (or develop, if he has merged it).
It was merged with the develop branch, will do that again once the tests are in place.
Wow the logging is super verbose.. can this be redirected to a file?
Will do, they are verbose to debug the flow
Class design vs. starfish-java

Operation has purchase stuff (unlike the Java version.. need
to be careful about these differences). Specifically I'm not sure that
Operation wants to be a subclass of PurchaseABC
http://shrimp.octet.services/starfish/starfish-java/latest/apidocs/

The java version doesn't seem to have an Object on which purchase() can be called. I spoke to Mike and he believes that it should be in the Listing object. I would put that in a separate PR, since this is a show-that-it-works kinda PR.

Also this introduces using abc for Abstract Base Classes...
https://docs.python.org/3/library/abc.html
And thus I'm even less sure about combining the abstract ideas
of a purchase with an operation (as that's not done in Java).

I'm a Python newbie, and I learnt that Python doesn't have Interfaces, hence I used an Abstract Base Class.

Consider naming the abstract base classes with an "A" prefix
as is done in Java (e.g. APurchase vs. PurchaseABC)

Will do

Even with Brizo tests still fail
8 warnings, 1 error

As mentioned earlier, the tests need a new Docker container with Koi running on it, which is a WIP

_________________ ERROR collecting tests/agents/test_brizo_invoke.py _________________
tests/agents/test_brizo_invoke.py:162: in <module>
    test_asset()
tests/agents/test_brizo_invoke.py:147: in test_asset
    assert event, 'No event received for ServiceAgreement Fulfilled.'
E   AssertionError: No event received for ServiceAgreement Fulfilled.
E   assert None

Travis needs updating

Yes, that will be done as well!

It is likely that the .travis.yml (and or tox) configuration will need to change to add Brizo (possibly other changes to ensure that Travis passes).

@shark8me I tried testing this with the add_koi_compose_file branch of barge.
The first error is that the name aquarius does not resolve:
====================================== FAILURES ======================================
____________________________________ test_invoke _____________________________________

address = ('aquarius', 5000), timeout = None, source_address = None
socket_options = [(6, 1, 1)]

E           requests.exceptions.ConnectionError: HTTPConnectionPool(host='aquarius', port=5000): Max retries exceeded with url: /api/v1/aquarius/assets (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc157ff9c18>: Failed to establish a new connection: [Errno -2] Name or service not known'))

As the service is running on localhost, I added a synonym to /etc/hosts:
tmarble@cerise 207 :) netstat -aln  | grep 5000
tcp6       0      0 :::5000                 :::*                    LISTEN
tmarble@cerise 208 :) grep localhost /etc/hosts
<IP_ADDRESS>       localhost aquarius
::1     localhost ip6-localhost ip6-loopback
tmarble@cerise 209 :)

However now there is a different error:
>       assert event, 'No event received for ServiceAgreement Fulfilled.'
E       AssertionError: No event received for ServiceAgreement Fulfilled.
E       assert None

2019-03-05 09:34:32 cerise root[18050] INFO  invoke test purchase id 0x08bcdc7be3d34fc69b45a895edccbf8ce24e0e3245ee452695854df0b7ca759d
2019-03-05 09:34:53 cerise root[18050] DEBUG Received event AgreementInitialized: None
2019-03-05 09:35:14 cerise root[18050] DEBUG Received event AccessGranted: None
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/squid_py/keeper/event_listener.py", line 76, in watch_one_event
    callback(None)
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/squid_py/agreements/event_listener.py", line 102, in _callback
    service_definition, consume_callback, did, payload
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/squid_py/modules/v0_1/payment.py", line 53, in lock_payment
    'lockPayment', 'PaymentLocked')
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/squid_py/modules/v0_1/payment.py", line 26, in handle_payment_action
    payment_conditions.address, abi, function_name):
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/squid_py/modules/v0_1/utils.py", line 41, in is_condition_fulfilled
    template_id
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/contract.py", line 879, in __call__
    return self.__prepared_function(*args, **kwargs)
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/contract.py", line 892, in __prepared_function
    return getattr(self._function(*args), modifier)(modifier_dict)
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/contract.py", line 1106, in call
    **self.kwargs
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/contract.py", line 1355, in call_contract_function
    return_data = web3.eth.call(call_transaction, block_identifier=block_id)
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/eth_utils/functional.py", line 46, in inner
    return callback(fn(*args, **kwargs))
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/eth.py", line 294, in call
    [transaction, block_identifier],
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/manager.py", line 110, in request_blocking
    raise ValueError(response["error"])
ValueError: {'code': -32015, 'message': 'VM execution error.', 'data': 'Reverted 0x'}

I tried to reproduce these results on trigonia.octet.services, but got 10 errors???

hi @tmarble
Setting the aquarius hostname is a known issue that I've to address in Barge, thanks for pointing that out.
Second, could you please send me the test log. There were different tests that were generating this error, and its not clear (from your stacktrace) which test generates this error.
Thanks!

@shark8me here is how I started barge...

tmarble@cerise 610 :) pwd
/home/tmarble/src/github/DEX-Company/barge
tmarble@cerise 611 :) git status
On branch add_koi_compose_file
Your branch is up to date with 'origin/add_koi_compose_file'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   networks/secret-store/config/config.toml

no changes added to commit (use "git add" and/or "git commit -a")
tmarble@cerise 612 :) git pull
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 8 (delta 4), reused 5 (delta 4), pack-reused 0
Unpacking objects: 100% (8/8), done.
From github.com:DEX-Company/barge
   3055e73..316e458  add_koi_compose_file -> origin/add_koi_compose_file
Updating 3055e73..316e458
Fast-forward
 compose-files/koi.yml          |  2 +-
 scripts/read_stack_versions.sh | 43 +++++++++++++------------------------------
 start_ocean.sh                 | 18 +++++++++++-------
 3 files changed, 25 insertions(+), 38 deletions(-)
tmarble@cerise 613 :) ./start_ocean.sh --no-brizo --no-pleuston --local-spree-node

Here is how I ran the tests:

tmarble@cerise 1037 :) git status
On branch add_operation
Your branch is up to date with 'origin/add_operation'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	NOT/

nothing added to commit but untracked files present (use "git add" to track)
tmarble@cerise 1038 :) git pull
Already up to date.
tmarble@cerise 1039 :) source venv/bin/activate
(venv) tmarble@cerise 1040 :) pip install -r requirements_dev.txt
Obtaining file:///home/tmarble/src/github/DEX-Company/starfish-py (from -r requirements_dev.txt (line 11))
Requirement already satisfied: squid-py==0.4.4 in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.4.4)
Requirement already satisfied: coloredlogs in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (10.0)
Requirement already satisfied: eciespy in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.1.5)
Requirement already satisfied: pyopenssl in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (19.0.0)
Requirement already satisfied: PyJWT in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.7.1)
Requirement already satisfied: PyYAML==4.2b4 in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (4.2b4)
Requirement already satisfied: web3==4.5.0 in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (4.5.0)
Requirement already satisfied: bumpversion in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.5.3)
Requirement already satisfied: pkginfo in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (<IP_ADDRESS>)
Requirement already satisfied: twine in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.12.1)
Requirement already satisfied: watchdog in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.9.0)
Requirement already satisfied: codacy-coverage in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.3.11)
Requirement already satisfied: coverage in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (4.5.2)
Requirement already satisfied: docker in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (3.7.0)
Requirement already satisfied: flake8 in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (3.7.5)
Requirement already satisfied: mccabe in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.6.1)
Requirement already satisfied: pyflakes in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.1.0)
Requirement already satisfied: pytest in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (4.2.0)
Requirement already satisfied: tox in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (3.7.0)
Requirement already satisfied: Sphinx in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.8.4)
Requirement already satisfied: sphinx-rtd-theme in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.4.2)
Requirement already satisfied: sphinxcontrib-apidoc in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.3.0)
Requirement already satisfied: sphinxcontrib-plantuml in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.14)
Requirement already satisfied: sphinx-automodapi in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.10)
Requirement already satisfied: pygments in ./venv/lib/python3.7/site-packages (from starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.3.1)
Requirement already satisfied: keeper-contracts==0.6.12 in ./venv/lib/python3.7/site-packages (from squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.6.12)
Requirement already satisfied: pycryptodomex in ./venv/lib/python3.7/site-packages (from squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (3.7.3)
Requirement already satisfied: requests in ./venv/lib/python3.7/site-packages (from squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.21.0)
Requirement already satisfied: pytz in ./venv/lib/python3.7/site-packages (from squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2018.9)
Requirement already satisfied: deprecated in ./venv/lib/python3.7/site-packages (from squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.2.4)
Requirement already satisfied: tqdm in ./venv/lib/python3.7/site-packages (from squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (4.30.0)
Requirement already satisfied: ocean-secret-store-client==0.0.1 in ./venv/lib/python3.7/site-packages (from squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.0.1)
Requirement already satisfied: humanfriendly>=4.7 in ./venv/lib/python3.7/site-packages (from coloredlogs->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (4.17)
Requirement already satisfied: eth-keys in ./venv/lib/python3.7/site-packages (from eciespy->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.2.1)
Requirement already satisfied: pysha3 in ./venv/lib/python3.7/site-packages (from eciespy->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.0.2)
Requirement already satisfied: coincurve in ./venv/lib/python3.7/site-packages (from eciespy->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (11.0.0)
Requirement already satisfied: cryptography>=2.3 in ./venv/lib/python3.7/site-packages (from pyopenssl->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.5)
Requirement already satisfied: six>=1.5.2 in ./venv/lib/python3.7/site-packages (from pyopenssl->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.12.0)
Requirement already satisfied: cytoolz<1.0.0,>=0.9.0; implementation_name == "cpython" in ./venv/lib/python3.7/site-packages (from web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (<IP_ADDRESS>)
Requirement already satisfied: eth-account<0.4.0,>=0.2.1 in ./venv/lib/python3.7/site-packages (from web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.3.0)
Requirement already satisfied: websockets<6.0.0,>=5.0.1 in ./venv/lib/python3.7/site-packages (from web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (5.0.1)
Requirement already satisfied: lru-dict<2.0.0,>=1.1.6 in ./venv/lib/python3.7/site-packages (from web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.1.6)
Requirement already satisfied: eth-utils<2.0.0,>=1.0.1 in ./venv/lib/python3.7/site-packages (from web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.4.1)
Requirement already satisfied: hexbytes<1.0.0,>=0.1.0 in ./venv/lib/python3.7/site-packages (from web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.1.0)
Requirement already satisfied: eth-abi<2,>=1.1.1 in ./venv/lib/python3.7/site-packages (from web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.3.0)
Requirement already satisfied: eth-hash[pycryptodome] in ./venv/lib/python3.7/site-packages (from web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.2.0)
Requirement already satisfied: readme-renderer>=21.0 in ./venv/lib/python3.7/site-packages (from twine->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (24.0)
Requirement already satisfied: requests-toolbelt>=0.8.0 in ./venv/lib/python3.7/site-packages (from twine->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.9.1)
Requirement already satisfied: setuptools>=0.7.0 in ./venv/lib/python3.7/site-packages (from twine->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (40.8.0)
Requirement already satisfied: pathtools>=0.1.1 in ./venv/lib/python3.7/site-packages (from watchdog->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.1.2)
Requirement already satisfied: argh>=0.24.1 in ./venv/lib/python3.7/site-packages (from watchdog->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.26.2)
Requirement already satisfied: docker-pycreds>=0.4.0 in ./venv/lib/python3.7/site-packages (from docker->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.4.0)
Requirement already satisfied: websocket-client>=0.32.0 in ./venv/lib/python3.7/site-packages (from docker->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.54.0)
Requirement already satisfied: entrypoints<0.4.0,>=0.3.0 in ./venv/lib/python3.7/site-packages (from flake8->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.3)
Requirement already satisfied: pycodestyle<2.6.0,>=2.5.0 in ./venv/lib/python3.7/site-packages (from flake8->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.5.0)
Requirement already satisfied: more-itertools>=4.0.0 in ./venv/lib/python3.7/site-packages (from pytest->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (5.0.0)
Requirement already satisfied: pluggy>=0.7 in ./venv/lib/python3.7/site-packages (from pytest->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.8.1)
Requirement already satisfied: attrs>=17.4.0 in ./venv/lib/python3.7/site-packages (from pytest->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (18.2.0)
Requirement already satisfied: atomicwrites>=1.0 in ./venv/lib/python3.7/site-packages (from pytest->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.3.0)
Requirement already satisfied: py>=1.5.0 in ./venv/lib/python3.7/site-packages (from pytest->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.7.0)
Requirement already satisfied: filelock<4,>=3.0.0 in ./venv/lib/python3.7/site-packages (from tox->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (3.0.10)
Requirement already satisfied: virtualenv>=1.11.2 in ./venv/lib/python3.7/site-packages (from tox->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (16.3.0)
Requirement already satisfied: toml>=0.9.4 in ./venv/lib/python3.7/site-packages (from tox->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.10.0)
Requirement already satisfied: docutils>=0.11 in ./venv/lib/python3.7/site-packages (from Sphinx->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.14)
Requirement already satisfied: Jinja2>=2.3 in ./venv/lib/python3.7/site-packages (from Sphinx->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.10)
Requirement already satisfied: imagesize in ./venv/lib/python3.7/site-packages (from Sphinx->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.1.0)
Requirement already satisfied: packaging in ./venv/lib/python3.7/site-packages (from Sphinx->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (19.0)
Requirement already satisfied: alabaster<0.8,>=0.7 in ./venv/lib/python3.7/site-packages (from Sphinx->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.7.12)
Requirement already satisfied: sphinxcontrib-websupport in ./venv/lib/python3.7/site-packages (from Sphinx->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.1.0)
Requirement already satisfied: snowballstemmer>=1.1 in ./venv/lib/python3.7/site-packages (from Sphinx->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.2.1)
Requirement already satisfied: babel!=2.0,>=1.3 in ./venv/lib/python3.7/site-packages (from Sphinx->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.6.0)
Requirement already satisfied: pbr in ./venv/lib/python3.7/site-packages (from sphinxcontrib-apidoc->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (5.1.2)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./venv/lib/python3.7/site-packages (from requests->squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (3.0.4)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in ./venv/lib/python3.7/site-packages (from requests->squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.24.1)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.7/site-packages (from requests->squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2018.11.29)
Requirement already satisfied: idna<2.9,>=2.5 in ./venv/lib/python3.7/site-packages (from requests->squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.8)
Requirement already satisfied: wrapt<2,>=1 in ./venv/lib/python3.7/site-packages (from deprecated->squid-py==0.4.4->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.11.1)
Requirement already satisfied: cffi>=1.3.0 in ./venv/lib/python3.7/site-packages (from coincurve->eciespy->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.11.5)
Requirement already satisfied: asn1crypto in ./venv/lib/python3.7/site-packages (from coincurve->eciespy->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.24.0)
Requirement already satisfied: toolz>=0.8.0 in ./venv/lib/python3.7/site-packages (from cytoolz<1.0.0,>=0.9.0; implementation_name == "cpython"->web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.9.0)
Requirement already satisfied: attrdict<3,>=2.0.0 in ./venv/lib/python3.7/site-packages (from eth-account<0.4.0,>=0.2.1->web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.0.1)
Requirement already satisfied: eth-keyfile<0.6.0,>=0.5.0 in ./venv/lib/python3.7/site-packages (from eth-account<0.4.0,>=0.2.1->web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.5.1)
Requirement already satisfied: eth-rlp<1,>=0.1.2 in ./venv/lib/python3.7/site-packages (from eth-account<0.4.0,>=0.2.1->web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.1.2)
Requirement already satisfied: eth-typing<3.0.0,>=1.0.0 in ./venv/lib/python3.7/site-packages (from eth-utils<2.0.0,>=1.0.1->web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.0.0)
Requirement already satisfied: parsimonious<0.9.0,>=0.8.0 in ./venv/lib/python3.7/site-packages (from eth-abi<2,>=1.1.1->web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.8.1)
Requirement already satisfied: pycryptodome<4,>=3.6.6; extra == "pycryptodome" in ./venv/lib/python3.7/site-packages (from eth-hash[pycryptodome]->web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (3.7.3)
Requirement already satisfied: bleach>=2.1.0 in ./venv/lib/python3.7/site-packages (from readme-renderer>=21.0->twine->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (3.1.0)
Requirement already satisfied: MarkupSafe>=0.23 in ./venv/lib/python3.7/site-packages (from Jinja2>=2.3->Sphinx->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.1.0)
Requirement already satisfied: pyparsing>=2.0.2 in ./venv/lib/python3.7/site-packages (from packaging->Sphinx->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.3.1)
Requirement already satisfied: pycparser in ./venv/lib/python3.7/site-packages (from cffi>=1.3.0->coincurve->eciespy->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (2.19)
Requirement already satisfied: rlp<2,>=0.6.0 in ./venv/lib/python3.7/site-packages (from eth-rlp<1,>=0.1.2->eth-account<0.4.0,>=0.2.1->web3==4.5.0->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (1.1.0)
Requirement already satisfied: webencodings in ./venv/lib/python3.7/site-packages (from bleach>=2.1.0->readme-renderer>=21.0->twine->starfish-py==0.0.1->-r requirements_dev.txt (line 11)) (0.5.1)
Installing collected packages: starfish-py
  Found existing installation: starfish-py 0.0.1
    Uninstalling starfish-py-0.0.1:
      Successfully uninstalled starfish-py-0.0.1
  Running setup.py develop for starfish-py
Successfully installed starfish-py
(venv) tmarble@cerise 1041 :) ./scripts/wait_for_migration_and_extract_keeper_artifacts.sh
copied over the following contracts:
AccessConditions.spree.json
ComputeConditions.spree.json
DIDRegistry.spree.json
Dispenser.spree.json
FitchainConditions.spree.json
OceanToken.spree.json
PaymentConditions.spree.json
ready
ServiceExecutionAgreement.spree.json
(venv) tmarble@cerise 1042 :) python3 setup.py test
running pytest
running egg_info
writing starfish_py.egg-info/PKG-INFO
writing dependency_links to starfish_py.egg-info/dependency_links.txt
writing requirements to starfish_py.egg-info/requires.txt
writing top-level names to starfish_py.egg-info/top_level.txt
reading manifest file 'starfish_py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'CONTRIBUTING.md'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no files found matching 'make.bat' under directory 'docs'
warning: no files found matching '*.jpg' under directory 'docs'
writing manifest file 'starfish_py.egg-info/SOURCES.txt'
running build_ext
================================ test session starts =================================
platform linux -- Python 3.7.2, pytest-4.2.0, py-1.7.0, pluggy-0.8.1
rootdir: /home/tmarble/src/github/DEX-Company/starfish-py, inifile: setup.cfg
collected 11 items

tests/test_account.py ....                                                     [ 36%]
tests/test_command_line.py .                                                   [ 45%]
tests/test_ocean_cli.py .                                                      [ 54%]
tests/agents/test_brizo_invoke.py F                                            [ 63%]
tests/agents/test_memory_agent.py ..                                           [ 81%]
tests/agents/test_squid_agent.py .F                                            [100%]

====================================== FAILURES ======================================
____________________________________ test_invoke _____________________________________

    def test_invoke():

        # create an ocean object
        ocean = Ocean(CONFIG_PARAMS)
        assert ocean
        assert ocean.accounts

        agent = SquidAgent(ocean, SQUID_AGENT_CONFIG_PARAMS)
        assert agent

        # test node has the account #0 unlocked
        publisher_account = ocean.get_account(PUBLISHER_ACCOUNT)
        publisher_account.unlock()
        publisher_account.request_tokens(20)

        # check to see if the sla template has been registered, this is only run on
        # new networks, especially during a travis test run..
        model = SquidModel(ocean)
        if not model.is_service_agreement_template_registered(ACCESS_SERVICE_TEMPLATE_ID):
            model.register_service_agreement_template(ACCESS_SERVICE_TEMPLATE_ID, publisher_account._squid_account)

        listing = _register_asset_for_sale(agent, publisher_account)
        assert listing
        assert publisher_account

        listing_did = listing.asset.did
        # start to test getting the asset from storage
        listing = agent.get_listing(listing_did)
        assert listing
        assert listing.asset.did == listing_did

        purchase_account = ocean.get_account(PURCHASER_ACCOUNT)
        logging.info(f'purchase_account {purchase_account.ocean_balance}')

        purchase_account.unlock()

        purchase_account.request_tokens(10)

        time.sleep(2)
        logging.info(f'purchase_account after token request {purchase_account.ocean_balance}')

        #Use the Koi server, and therefore use the Koi client instead of Brizo.py
        BrizoProvider.set_brizo_class(KoiClient)

        # test purchase an asset
        # this purchase does not automatically fire a consume() request as no callback is registered
        purchase_asset = listing.purchase(purchase_account)
        assert purchase_asset

        _filter = {'agreementId': Web3.toBytes(hexstr=purchase_asset.purchase_id)}
        pid=purchase_asset.purchase_id
        logging.info(f' invoke test purchase id {pid}')
        EventListener('ServiceExecutionAgreement', 'AgreementInitialized', filters=_filter).listen_once(
            _log_event('AgreementInitialized'),
            20,
            blocking=True
        )
        EventListener('AccessConditions', 'AccessGranted', filters=_filter).listen_once(
            _log_event('AccessGranted'),
            20,
            blocking=True
        )
        event = EventListener('ServiceExecutionAgreement', 'AgreementFulfilled', filters=_filter).listen_once(
            _log_event('AgreementFulfilled'),
            20,
            blocking=True
        )

>       assert event, 'No event received for ServiceAgreement Fulfilled.'
E       AssertionError: No event received for ServiceAgreement Fulfilled.
E       assert None

tests/agents/test_brizo_invoke.py:150: AssertionError
-------------------------------- Captured stderr call --------------------------------
2019-03-05 18:03:14 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:14 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:14 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:14 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:14 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:14 cerise root[12085] INFO The `Access` Service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d is not deployed to the current keeper network.
2019-03-05 18:03:14 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:14 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:14 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:14 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:14 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:14 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:14 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:14 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:14 cerise root[12085] INFO The `Access` Service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d is not deployed to the current keeper network.
2019-03-05 18:03:14 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:14 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:14 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:14 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:14 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:14 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:14 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:14 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:14 cerise root[12085] INFO The `Access` Service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d is not deployed to the current keeper network.
2019-03-05 18:03:14 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:14 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:14 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:14 cerise root[12085] DEBUG 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e requests 20 tokens, returning receipt
2019-03-05 18:03:15 cerise root[12085] DEBUG requestTokens receipt: AttributeDict({'blockHash': HexBytes('0xc65e9192144733a09cee66329611fa7ddc69f041ea60e5279e71327dacfa2185'), 'blockNumber': 10974, 'contractAddress': None, 'cumulativeGasUsed': 47584, 'from': '0x00bd138abd70e2f00903268f3db08f2d25677c9e', 'gasUsed': 47584, 'logs': [AttributeDict({'address': '0x8C8e79260ce44755a4Fff564dC4c414084629fbB', 'blockHash': HexBytes('0xc65e9192144733a09cee66329611fa7ddc69f041ea60e5279e71327dacfa2185'), 'blockNumber': 10974, 'data': '0x0000000000000000000000000000000000000000000000000000000000000014', 'logIndex': 0, 'removed': False, 'topics': [HexBytes('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'), HexBytes('0x0000000000000000000000000000000000000000000000000000000000000000'), HexBytes('0x00000000000000000000000000bd138abd70e2f00903268f3db08f2d25677c9e')], 'transactionHash': HexBytes('0x1a1897dfe465c65c0915d8532b2e1c3643b7c068109b669cafe106aad1566932'), 'transactionIndex': 0, 'transactionLogIndex': '0x0', 'type': 'mined'})], 'logsBloom': HexBytes('0x00000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000100000008000020000000000000040000800000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000001000000000000000000000020000000000000000000000000000000000000000000000000000000000100000000'), 'root': None, 'status': 1, 'to': '0x176ec9b938d0ece9ae1252eceb84c6bef9a68576', 'transactionHash': HexBytes('0x1a1897dfe465c65c0915d8532b2e1c3643b7c068109b669cafe106aad1566932'), 'transactionIndex': 0})
2019-03-05 18:03:15 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:15 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:15 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:15 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:15 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:15 cerise root[12085] INFO The `Access` Service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d is not deployed to the current keeper network.
2019-03-05 18:03:15 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:15 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:15 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:18 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://aquarius:5000', 'brizo.url': 'http://localhost:8031', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:18 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:18 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:18 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:18 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:18 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:03:18 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:18 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:18 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:18 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545', 'parity.address': '0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', 'parity.password': 'node0'}, 'resources': {'aquarius.url': 'http://aquarius:5000', 'brizo.url': 'http://localhost:8031', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:18 cerise squid_py.ocean.ocean_secret_store[12085] INFO 	SecretStore: url http://localhost:12001, parity-client http://localhost:8545, account 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e
2019-03-05 18:03:18 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:18 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:18 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:18 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:18 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:03:18 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:18 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:18 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:18 cerise ocean[12085] DEBUG Generating new did: did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:18 cerise root[12085] DEBUG Metadata Store connected at http://aquarius:5000
2019-03-05 18:03:18 cerise root[12085] DEBUG Metadata Store API documentation at http://aquarius:5000/api/v1/docs
2019-03-05 18:03:18 cerise root[12085] DEBUG Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
2019-03-05 18:03:18 cerise ddo[12085] DEBUG Adding public key <squid_py.ddo.public_key_hex.PublicKeyHex object at 0x7fa33a0744e0>
2019-03-05 18:03:18 cerise ddo[12085] DEBUG Adding authentication <squid_py.ddo.authentication.Authentication object at 0x7fa33a0747b8>
2019-03-05 18:03:18 cerise ddo[12085] DEBUG Adding public key <squid_py.ddo.public_key_rsa.PublicKeyRSA object at 0x7fa33a082828>
2019-03-05 18:03:18 cerise ddo[12085] DEBUG Adding authentication <squid_py.ddo.authentication.Authentication object at 0x7fa33a082978>
2019-03-05 18:03:18 cerise ddo[12085] DEBUG Adding signature to the ddo object.
2019-03-05 18:03:18 cerise ocean[12085] DEBUG Encrypting content urls in the metadata.
2019-03-05 18:03:18 cerise ocean[12085] INFO Content urls encrypted successfully 0x90e412f06d5405831653e8756372f30a7bccbe76f219ada9d40b6649081ec21f0b7b49a91b8aebf36c3cd9ba329ef2c1
2019-03-05 18:03:18 cerise root[12085] DEBUG Metadata Store connected at http://aquarius:5000
2019-03-05 18:03:18 cerise root[12085] DEBUG Metadata Store API documentation at http://aquarius:5000/api/v1/docs
2019-03-05 18:03:18 cerise root[12085] DEBUG Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
2019-03-05 18:03:18 cerise ddo[12085] DEBUG Adding service with service type <squid_py.ddo.service.Service object at 0x7fa33a0e8b70> with did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:18 cerise ddo[12085] DEBUG Adding service with service type <squid_py.ddo.service.Service object at 0x7fa33a0e8c18> with did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:18 cerise ddo[12085] DEBUG Adding service with service type <squid_py.ddo.service.Service object at 0x7fa339a7ba20> with did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:18 cerise ocean[12085] DEBUG Generated ddo and services, DID is did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27, metadata service @http://aquarius:5000/api/v1/aquarius/assets/ddo/did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27, `Access` service purchase @http://localhost:12001.
2019-03-05 18:03:18 cerise root[12085] DEBUG Metadata Store connected at http://aquarius:5000
2019-03-05 18:03:18 cerise root[12085] DEBUG Metadata Store API documentation at http://aquarius:5000/api/v1/docs
2019-03-05 18:03:18 cerise root[12085] DEBUG Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
2019-03-05 18:03:18 cerise aquarius[12085] DEBUG Published asset DID did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:18 cerise ocean[12085] DEBUG Asset/ddo published successfully in aquarius.
2019-03-05 18:03:21 cerise ocean[12085] INFO DDO with DID did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27 successfully registered on chain.
2019-03-05 18:03:21 cerise squid_py.keeper.didregistry[12085] DEBUG got blockNumber 10976 for did 0x1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:21 cerise keeper[12085] DEBUG found did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27 -> url=http://aquarius:5000/api/v1/aquarius/assets/ddo/did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:21 cerise root[12085] DEBUG Metadata Store connected at http://aquarius:5000
2019-03-05 18:03:21 cerise root[12085] DEBUG Metadata Store API documentation at http://aquarius:5000/api/v1/docs
2019-03-05 18:03:21 cerise root[12085] DEBUG Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
2019-03-05 18:03:21 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:21 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:21 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:03:21 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:21 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:21 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:21 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:21 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:21 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:03:21 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:21 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:21 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:21 cerise root[12085] INFO purchase_account<PHONE_NUMBER>58925200000000000
2019-03-05 18:03:21 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:21 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:21 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:03:21 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:21 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:21 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:21 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:21 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:21 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:21 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:03:21 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:21 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:21 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:21 cerise root[12085] DEBUG 0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0 requests 10 tokens, returning receipt
2019-03-05 18:03:24 cerise root[12085] DEBUG requestTokens receipt: AttributeDict({'blockHash': HexBytes('0x98f4fd501fdf4a13143c12681d7b90d09e1d3557774466f85cf54f615e3a4a0c'), 'blockNumber': 10977, 'contractAddress': None, 'cumulativeGasUsed': 77584, 'from': '0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0', 'gasUsed': 77584, 'logs': [AttributeDict({'address': '0x8C8e79260ce44755a4Fff564dC4c414084629fbB', 'blockHash': HexBytes('0x98f4fd501fdf4a13143c12681d7b90d09e1d3557774466f85cf54f615e3a4a0c'), 'blockNumber': 10977, 'data': '0x000000000000000000000000000000000000000000000000000000000000000a', 'logIndex': 0, 'removed': False, 'topics': [HexBytes('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'), HexBytes('0x0000000000000000000000000000000000000000000000000000000000000000'), HexBytes('0x000000000000000000000000068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0')], 'transactionHash': HexBytes('0xf23bc2a9bc9f8971b4b1fdc60591521e98b97723cf6a5b1f7771ebd328248031'), 'transactionIndex': 0, 'transactionLogIndex': '0x0', 'type': 'mined'})], 'logsBloom': HexBytes('0x00000000000000004001000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000100000000000020000000000000000000800000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000020000000000000000004000000000000000000000000000000000000000100000000'), 'root': None, 'status': 1, 'to': '0x176ec9b938d0ece9ae1252eceb84c6bef9a68576', 'transactionHash': HexBytes('0xf23bc2a9bc9f8971b4b1fdc60591521e98b97723cf6a5b1f7771ebd328248031'), 'transactionIndex': 0})
2019-03-05 18:03:26 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:03:26 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:03:26 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:03:26 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:03:26 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:03:26 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:03:26 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:03:26 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:03:26 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:03:26 cerise root[12085] INFO purchase_account after token request<PHONE_NUMBER>51166800000000000
2019-03-05 18:03:26 cerise ocean[12085] INFO purchase invoke operation
2019-03-05 18:03:26 cerise squid_py.keeper.didregistry[12085] DEBUG got blockNumber 10976 for did 0x1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:26 cerise keeper[12085] DEBUG found did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27 -> url=http://aquarius:5000/api/v1/aquarius/assets/ddo/did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:26 cerise root[12085] DEBUG Metadata Store connected at http://aquarius:5000
2019-03-05 18:03:26 cerise root[12085] DEBUG Metadata Store API documentation at http://aquarius:5000/api/v1/docs
2019-03-05 18:03:26 cerise root[12085] DEBUG Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
2019-03-05 18:03:26 cerise squid_py.keeper.didregistry[12085] DEBUG got blockNumber 10976 for did 0x1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:26 cerise keeper[12085] DEBUG found did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27 -> url=http://aquarius:5000/api/v1/aquarius/assets/ddo/did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
2019-03-05 18:03:26 cerise root[12085] DEBUG Metadata Store connected at http://aquarius:5000
2019-03-05 18:03:26 cerise root[12085] DEBUG Metadata Store API documentation at http://aquarius:5000/api/v1/docs
2019-03-05 18:03:26 cerise root[12085] DEBUG Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
2019-03-05 18:03:26 cerise ocean[12085] DEBUG Registering service agreement with id: 0x75a40f7db96d4d9fa849198aacf8d4c5a78929d9f43e48d1997c9cfa7764253d
2019-03-05 18:03:26 cerise tests.helpers.koi_client[12085] INFO  Koi client sending request to server {'asset-did': 'did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27', 'service-agreement-id': '0x75a40f7db96d4d9fa849198aacf8d4c5a78929d9f43e48d1997c9cfa7764253d', 'service-definition-id': '1', 'signature': '0xfa44a51b8d8b7d19742848764b76b0c9a76beb7d25db3696f9c1216eae2a69571b4defcc7df2c275792782dcb0c8b8542be559a649e765c793ecbcdda170ab6a1c', 'consumer-address': '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0'}
2019-03-05 18:03:26 cerise root[12085] INFO  invoke test purchase id 0x75a40f7db96d4d9fa849198aacf8d4c5a78929d9f43e48d1997c9cfa7764253d
2019-03-05 18:03:47 cerise root[12085] DEBUG Received event AgreementInitialized: None
2019-03-05 18:04:08 cerise root[12085] DEBUG Received event AccessGranted: None
2019-03-05 18:04:27 cerise service_agreement[12085] INFO About to do fulfillAgreement: account 0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0, saId 0x75a40f7db96d4d9fa849198aacf8d4c5a78929d9f43e48d1997c9cfa7764253d, ServiceAgreement address 0x90988436A75c308fBfc52D27fca65d28D5A3b919
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/squid_py/keeper/event_listener.py", line 76, in watch_one_event
    callback(None)
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/squid_py/agreements/event_listener.py", line 102, in _callback
    service_definition, consume_callback, did, payload
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/squid_py/modules/v0_1/payment.py", line 53, in lock_payment
    'lockPayment', 'PaymentLocked')
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/squid_py/modules/v0_1/payment.py", line 26, in handle_payment_action
    payment_conditions.address, abi, function_name):
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/squid_py/modules/v0_1/utils.py", line 41, in is_condition_fulfilled
    template_id
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/contract.py", line 879, in __call__
    return self.__prepared_function(*args, **kwargs)
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/contract.py", line 892, in __prepared_function
    return getattr(self._function(*args), modifier)(modifier_dict)
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/contract.py", line 1106, in call
    **self.kwargs
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/contract.py", line 1355, in call_contract_function
    return_data = web3.eth.call(call_transaction, block_identifier=block_id)
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/eth_utils/functional.py", line 46, in inner
    return callback(fn(*args, **kwargs))
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/eth.py", line 294, in call
    [transaction, block_identifier],
  File "/home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/manager.py", line 110, in request_blocking
    raise ValueError(response["error"])
ValueError: {'code': -32015, 'message': 'VM execution error.', 'data': 'Reverted 0x'}

2019-03-05 18:04:29 cerise root[12085] DEBUG Received event AgreementFulfilled: None
--------------------------------- Captured log call ----------------------------------
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              20 INFO     The `Access` Service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d is not deployed to the current keeper network.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              20 INFO     The `Access` Service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d is not deployed to the current keeper network.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              20 INFO     The `Access` Service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d is not deployed to the current keeper network.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
dispenser.py                32 DEBUG    0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e requests 20 tokens, returning receipt
dispenser.py                34 DEBUG    requestTokens receipt: AttributeDict({'blockHash': HexBytes('0xc65e9192144733a09cee66329611fa7ddc69f041ea60e5279e71327dacfa2185'), 'blockNumber': 10974, 'contractAddress': None, 'cumulativeGasUsed': 47584, 'from': '0x00bd138abd70e2f00903268f3db08f2d25677c9e', 'gasUsed': 47584, 'logs': [AttributeDict({'address': '0x8C8e79260ce44755a4Fff564dC4c414084629fbB', 'blockHash': HexBytes('0xc65e9192144733a09cee66329611fa7ddc69f041ea60e5279e71327dacfa2185'), 'blockNumber': 10974, 'data': '0x0000000000000000000000000000000000000000000000000000000000000014', 'logIndex': 0, 'removed': False, 'topics': [HexBytes('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'), HexBytes('0x0000000000000000000000000000000000000000000000000000000000000000'), HexBytes('0x00000000000000000000000000bd138abd70e2f00903268f3db08f2d25677c9e')], 'transactionHash': HexBytes('0x1a1897dfe465c65c0915d8532b2e1c3643b7c068109b669cafe106aad1566932'), 'transactionIndex': 0, 'transactionLogIndex': '0x0', 'type': 'mined'})], 'logsBloom': HexBytes('0x00000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000100000008000020000000000000040000800000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000001000000000000000000000020000000000000000000000000000000000000000000000000000000000100000000'), 'root': None, 'status': 1, 'to': '0x176ec9b938d0ece9ae1252eceb84c6bef9a68576', 'transactionHash': HexBytes('0x1a1897dfe465c65c0915d8532b2e1c3643b7c068109b669cafe106aad1566932'), 'transactionIndex': 0})
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              20 INFO     The `Access` Service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d is not deployed to the current keeper network.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://aquarius:5000', 'brizo.url': 'http://localhost:8031', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545', 'parity.address': '0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', 'parity.password': 'node0'}, 'resources': {'aquarius.url': 'http://aquarius:5000', 'brizo.url': 'http://localhost:8031', 'storage.path': 'squid_py.db'}}
ocean_secret_store.py       13 INFO     	SecretStore: url http://localhost:12001, parity-client http://localhost:8545, account 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
ocean_assets.py             72 DEBUG    Generating new did: did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
aquarius.py                 32 DEBUG    Metadata Store connected at http://aquarius:5000
aquarius.py                 33 DEBUG    Metadata Store API documentation at http://aquarius:5000/api/v1/docs
aquarius.py                 34 DEBUG    Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
ddo.py                      84 DEBUG    Adding public key <squid_py.ddo.public_key_hex.PublicKeyHex object at 0x7fa33a0744e0>
ddo.py                     108 DEBUG    Adding authentication <squid_py.ddo.authentication.Authentication object at 0x7fa33a0747b8>
ddo.py                      84 DEBUG    Adding public key <squid_py.ddo.public_key_rsa.PublicKeyRSA object at 0x7fa33a082828>
ddo.py                     108 DEBUG    Adding authentication <squid_py.ddo.authentication.Authentication object at 0x7fa33a082978>
ddo.py                     145 DEBUG    Adding signature to the ddo object.
ocean_assets.py             95 DEBUG    Encrypting content urls in the metadata.
ocean_assets.py            106 INFO     Content urls encrypted successfully 0x90e412f06d5405831653e8756372f30a7bccbe76f219ada9d40b6649081ec21f0b7b49a91b8aebf36c3cd9ba329ef2c1
aquarius.py                 32 DEBUG    Metadata Store connected at http://aquarius:5000
aquarius.py                 33 DEBUG    Metadata Store API documentation at http://aquarius:5000/api/v1/docs
aquarius.py                 34 DEBUG    Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
ddo.py                     162 DEBUG    Adding service with service type <squid_py.ddo.service.Service object at 0x7fa33a0e8b70> with did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
ddo.py                     162 DEBUG    Adding service with service type <squid_py.ddo.service.Service object at 0x7fa33a0e8c18> with did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
ddo.py                     162 DEBUG    Adding service with service type <squid_py.ddo.service.Service object at 0x7fa339a7ba20> with did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
ocean_assets.py            149 DEBUG    Generated ddo and services, DID is did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27, metadata service @http://aquarius:5000/api/v1/aquarius/assets/ddo/did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27, `Access` service purchase @http://localhost:12001.
aquarius.py                 32 DEBUG    Metadata Store connected at http://aquarius:5000
aquarius.py                 33 DEBUG    Metadata Store API documentation at http://aquarius:5000/api/v1/docs
aquarius.py                 34 DEBUG    Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
aquarius.py                142 DEBUG    Published asset DID did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
ocean_assets.py            156 DEBUG    Asset/ddo published successfully in aquarius.
ocean_assets.py            173 INFO     DDO with DID did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27 successfully registered on chain.
didregistry.py             110 DEBUG    got blockNumber 10976 for did 0x1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
did_resolver.py             40 DEBUG    found did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27 -> url=http://aquarius:5000/api/v1/aquarius/assets/ddo/did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
aquarius.py                 32 DEBUG    Metadata Store connected at http://aquarius:5000
aquarius.py                 33 DEBUG    Metadata Store API documentation at http://aquarius:5000/api/v1/docs
aquarius.py                 34 DEBUG    Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
test_brizo_invoke.py       113 INFO     purchase_account<PHONE_NUMBER>58925200000000000
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
dispenser.py                32 DEBUG    0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0 requests 10 tokens, returning receipt
dispenser.py                34 DEBUG    requestTokens receipt: AttributeDict({'blockHash': HexBytes('0x98f4fd501fdf4a13143c12681d7b90d09e1d3557774466f85cf54f615e3a4a0c'), 'blockNumber': 10977, 'contractAddress': None, 'cumulativeGasUsed': 77584, 'from': '0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0', 'gasUsed': 77584, 'logs': [AttributeDict({'address': '0x8C8e79260ce44755a4Fff564dC4c414084629fbB', 'blockHash': HexBytes('0x98f4fd501fdf4a13143c12681d7b90d09e1d3557774466f85cf54f615e3a4a0c'), 'blockNumber': 10977, 'data': '0x000000000000000000000000000000000000000000000000000000000000000a', 'logIndex': 0, 'removed': False, 'topics': [HexBytes('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'), HexBytes('0x0000000000000000000000000000000000000000000000000000000000000000'), HexBytes('0x000000000000000000000000068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0')], 'transactionHash': HexBytes('0xf23bc2a9bc9f8971b4b1fdc60591521e98b97723cf6a5b1f7771ebd328248031'), 'transactionIndex': 0, 'transactionLogIndex': '0x0', 'type': 'mined'})], 'logsBloom': HexBytes('0x00000000000000004001000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000100000000000020000000000000000000800000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000020000000000000000004000000000000000000000000000000000000000100000000'), 'root': None, 'status': 1, 'to': '0x176ec9b938d0ece9ae1252eceb84c6bef9a68576', 'transactionHash': HexBytes('0xf23bc2a9bc9f8971b4b1fdc60591521e98b97723cf6a5b1f7771ebd328248031'), 'transactionIndex': 0})
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
test_brizo_invoke.py       120 INFO     purchase_account after token request<PHONE_NUMBER>51166800000000000
squid_model.py             131 INFO     purchase invoke operation
didregistry.py             110 DEBUG    got blockNumber 10976 for did 0x1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
did_resolver.py             40 DEBUG    found did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27 -> url=http://aquarius:5000/api/v1/aquarius/assets/ddo/did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
aquarius.py                 32 DEBUG    Metadata Store connected at http://aquarius:5000
aquarius.py                 33 DEBUG    Metadata Store API documentation at http://aquarius:5000/api/v1/docs
aquarius.py                 34 DEBUG    Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
didregistry.py             110 DEBUG    got blockNumber 10976 for did 0x1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
did_resolver.py             40 DEBUG    found did did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27 -> url=http://aquarius:5000/api/v1/aquarius/assets/ddo/did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27
aquarius.py                 32 DEBUG    Metadata Store connected at http://aquarius:5000
aquarius.py                 33 DEBUG    Metadata Store API documentation at http://aquarius:5000/api/v1/docs
aquarius.py                 34 DEBUG    Metadata assets at http://aquarius:5000/api/v1/aquarius/assets
squid_model.py             143 DEBUG    Registering service agreement with id: 0x75a40f7db96d4d9fa849198aacf8d4c5a78929d9f43e48d1997c9cfa7764253d
koi_client.py               57 INFO      Koi client sending request to server {'asset-did': 'did:op:1e1c67fcd97f4db585068f741ec8620cd6b9a2a2ef6e42e3a2811e65d3cd6d27', 'service-agreement-id': '0x75a40f7db96d4d9fa849198aacf8d4c5a78929d9f43e48d1997c9cfa7764253d', 'service-definition-id': '1', 'signature': '0xfa44a51b8d8b7d19742848764b76b0c9a76beb7d25db3696f9c1216eae2a69571b4defcc7df2c275792782dcb0c8b8542be559a649e765c793ecbcdda170ab6a1c', 'consumer-address': '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0'}
test_brizo_invoke.py       133 INFO      invoke test purchase id 0x75a40f7db96d4d9fa849198aacf8d4c5a78929d9f43e48d1997c9cfa7764253d
test_brizo_invoke.py        74 DEBUG    Received event AgreementInitialized: None
test_brizo_invoke.py        74 DEBUG    Received event AccessGranted: None
serviceAgreement.py         19 INFO     About to do fulfillAgreement: account 0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0, saId 0x75a40f7db96d4d9fa849198aacf8d4c5a78929d9f43e48d1997c9cfa7764253d, ServiceAgreement address 0x90988436A75c308fBfc52D27fca65d28D5A3b919
test_brizo_invoke.py        74 DEBUG    Received event AgreementFulfilled: None
________________________________ test_search_listing _________________________________

    def test_search_listing():

        ocean = Ocean(CONFIG_PARAMS)
        assert ocean
        assert ocean.accounts

        agent = SquidAgent(ocean, SQUID_AGENT_CONFIG_PARAMS)

        # test node has the account #0 unlocked
        publisher_account = ocean.get_account(PUBLISHER_ACCOUNT)
        publisher_account.unlock()

        listing = _register_asset_for_sale(agent, publisher_account)
        assert listing
        assert publisher_account

        metadata = _read_metadata()
        assert metadata

        # choose a word from the description field
        text = metadata['base']['description']
        words = text.split(' ')
        word = words[0]

        # should return at least 1 or more assets
        logging.info(f'search word is {word}')
>       searchResult = agent.search_listings(word)

tests/agents/test_squid_agent.py:191:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
starfish/agent/squid_agent.py:173: in search_listings
    ddo_list = model.search_assets(text, sort, offset, page)
starfish/models/squid_model.py:68: in search_assets
    ddo_list = self._squid_ocean.assets.search(text, sort, offset, page)
venv/lib/python3.7/site-packages/squid_py/ocean/ocean_assets.py:209: in search
    self._get_aquarius(aquarius_url).text_search(text, sort, offset, page)]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <squid_py.aquarius.aquarius.Aquarius object at 0x7fa339aa5550>
text = 'Weather', sort = None, offset = 100, page = 0

    def text_search(self, text, sort=None, offset=100, page=0):
        """
        Search in aquarius using text query.

        Given the string aquarius will do a full-text query to search in all documents.

        Currently implemented are the MongoDB and Elastic Search drivers.

        For a detailed guide on how to search, see the MongoDB driver documentation:
        mongodb driverCurrently implemented in:
        https://docs.mongodb.com/manual/reference/operator/query/text/

        And the Elastic Search documentation:
        https://www.elastic.co/guide/en/elasticsearch/guide/current/full-text-search.html
        Other drivers are possible according to each implementation.

        :param text: String to be search.
        :param sort: 1/-1 to sort ascending or descending.
        :param offset: Integer with the number of elements displayed per page.
        :param page: Integer with the number of page.
        :return: List of DDO instance
        """
        payload = {"text": text, "sort": sort, "offset": offset, "page": page}
        response = requests.get(
            f'{self.url}/query',
            params=payload,
            headers=self._headers
        )
        if response.status_code == 200:
            return self._parse_search_response(response.content)
        else:
>           raise Exception(f'Unable to search for DDO: {response.content}')
E           Exception: Unable to search for DDO: b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.</p>\n'

venv/lib/python3.7/site-packages/squid_py/aquarius/aquarius.py:194: Exception
-------------------------------- Captured stderr call --------------------------------
2019-03-05 18:04:51 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:04:51 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:04:51 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:04:51 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:04:51 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:04:51 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:04:51 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:04:51 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:04:51 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:04:51 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:04:51 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:04:51 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:04:51 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:04:51 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:04:51 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:04:51 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:04:51 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:04:51 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:04:51 cerise config[12085] DEBUG Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545', 'parity.address': '0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', 'parity.password': 'node0'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
2019-03-05 18:04:51 cerise squid_py.ocean.ocean_secret_store[12085] INFO 	SecretStore: url http://localhost:12001, parity-client http://localhost:8545, account 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Using keeper contracts from network spree, network id is 8996
2019-03-05 18:04:51 cerise squid_py.keeper.diagnostics[12085] INFO Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
2019-03-05 18:04:51 cerise root[12085] INFO Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
2019-03-05 18:04:51 cerise root[12085] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
2019-03-05 18:04:51 cerise ocean[12085] INFO Squid Ocean instance initialized:
2019-03-05 18:04:51 cerise ocean[12085] INFO 	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-05 18:04:51 cerise ocean[12085] INFO 	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
2019-03-05 18:04:51 cerise ocean[12085] DEBUG Generating new did: did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524
2019-03-05 18:04:51 cerise root[12085] DEBUG Metadata Store connected at http://localhost:5000
2019-03-05 18:04:51 cerise root[12085] DEBUG Metadata Store API documentation at http://localhost:5000/api/v1/docs
2019-03-05 18:04:51 cerise root[12085] DEBUG Metadata assets at http://localhost:5000/api/v1/aquarius/assets
2019-03-05 18:04:51 cerise ddo[12085] DEBUG Adding public key <squid_py.ddo.public_key_hex.PublicKeyHex object at 0x7fa33a38db00>
2019-03-05 18:04:51 cerise ddo[12085] DEBUG Adding authentication <squid_py.ddo.authentication.Authentication object at 0x7fa33a38dbe0>
2019-03-05 18:04:51 cerise ddo[12085] DEBUG Adding public key <squid_py.ddo.public_key_rsa.PublicKeyRSA object at 0x7fa33a101ba8>
2019-03-05 18:04:51 cerise ddo[12085] DEBUG Adding authentication <squid_py.ddo.authentication.Authentication object at 0x7fa33867cf60>
2019-03-05 18:04:51 cerise ddo[12085] DEBUG Adding signature to the ddo object.
2019-03-05 18:04:51 cerise ocean[12085] DEBUG Encrypting content urls in the metadata.
2019-03-05 18:04:51 cerise ocean[12085] INFO Content urls encrypted successfully 0x6abcc119a3b692072ef201e9e49ea798e787360cc53cc0a75e5432e937ffb955375bfaba4041a7e36b4a7099742cdbb9b2253a66ce7e39d7cc29ca2f84ce65ffe8a8c4e688f5947865dea84f930adcb4b7598a2880e188a9b6832b39ff9729f92c0094beb3203c40d3efafbac4c78cbf7604a123403d258a4368d77f00dd8b4f52a39b75b3cf1ef74c264eaec086a22e1bc2e351baeb76bc255e27c28e2965f56181b4a8fb2da20e00d20378c339013390b9191bc03b7463314930b9e281e03993006dad7d4a1f12ff4905e0efd046f0d37777c8b68dad40dccba068587e2e49e4a1641f626e4e8621edbb69c1b8fff61904e2774cce059c8fbdf63681786203128c41ac98d502574a121dee1bb77656a8529211f86e124a46966886d1609c6aabae3f985de753fba7259e7442f3da1b48d2a3d2163baef1f225f3cb9b0155b1d86657178df4fa75e32cdc1f2ab7422ce51d714e07e3733ed80d7038628509b7f9592cfd249806b7d8c28a9d9f35a2ee2a809769d679ec47b11f95c6591bd44d3ea35900ec52470c415d1e27dca0f8f6f322e5a7426ecbee2304d0224af5ea71e971379313ad2e413593a055f09144532019da92bbac0955c60ac1875e2154840a5ef1dd9004b5eebdac4b6f522b8e3d2342118416e3df83dc9e3cbd98e7b10e12bd78640fe39ff5c824318ecff921eddff35a45fc81b811d2c2d1420af3e241c0d8e18d8cc19026fdf928854d5678297ddf553e9b11584c4c0864da5759344c9e79d6b2df
2019-03-05 18:04:51 cerise root[12085] DEBUG Metadata Store connected at http://localhost:5000
2019-03-05 18:04:51 cerise root[12085] DEBUG Metadata Store API documentation at http://localhost:5000/api/v1/docs
2019-03-05 18:04:51 cerise root[12085] DEBUG Metadata assets at http://localhost:5000/api/v1/aquarius/assets
2019-03-05 18:04:51 cerise ddo[12085] DEBUG Adding service with service type <squid_py.ddo.service.Service object at 0x7fa33867c208> with did did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524
2019-03-05 18:04:51 cerise ddo[12085] DEBUG Adding service with service type <squid_py.ddo.service.Service object at 0x7fa33a3b84e0> with did did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524
2019-03-05 18:04:51 cerise ddo[12085] DEBUG Adding service with service type <squid_py.ddo.service.Service object at 0x7fa33a082940> with did did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524
2019-03-05 18:04:51 cerise ocean[12085] DEBUG Generated ddo and services, DID is did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524, metadata service @http://localhost:5000/api/v1/aquarius/assets/ddo/did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524, `Access` service purchase @http://localhost:12001.
2019-03-05 18:04:51 cerise root[12085] DEBUG Metadata Store connected at http://localhost:5000
2019-03-05 18:04:51 cerise root[12085] DEBUG Metadata Store API documentation at http://localhost:5000/api/v1/docs
2019-03-05 18:04:51 cerise root[12085] DEBUG Metadata assets at http://localhost:5000/api/v1/aquarius/assets
2019-03-05 18:04:51 cerise aquarius[12085] DEBUG Published asset DID did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524
2019-03-05 18:04:51 cerise ocean[12085] DEBUG Asset/ddo published successfully in aquarius.
2019-03-05 18:04:54 cerise ocean[12085] INFO DDO with DID did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524 successfully registered on chain.
2019-03-05 18:04:54 cerise root[12085] INFO search word is Weather
2019-03-05 18:04:54 cerise ocean[12085] INFO Searching asset containing: Weather
2019-03-05 18:04:54 cerise root[12085] DEBUG Metadata Store connected at http://localhost:5000
2019-03-05 18:04:54 cerise root[12085] DEBUG Metadata Store API documentation at http://localhost:5000/api/v1/docs
2019-03-05 18:04:54 cerise root[12085] DEBUG Metadata assets at http://localhost:5000/api/v1/aquarius/assets
--------------------------------- Captured log call ----------------------------------
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
config.py                  100 DEBUG    Config: loading from dict {'keeper-contracts': {'keeper.url': 'http://localhost:8545', 'keeper.path': 'artifacts', 'secret_store.url': 'http://localhost:12001', 'parity.url': 'http://localhost:8545', 'parity.address': '0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', 'parity.password': 'node0'}, 'resources': {'aquarius.url': 'http://localhost:5000', 'brizo.url': 'http://localhost:8030', 'storage.path': 'squid_py.db'}}
ocean_secret_store.py       13 INFO     	SecretStore: url http://localhost:12001, parity-client http://localhost:8545, account 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e
diagnostics.py              30 INFO     Keeper contract artifacts (JSON abi files) at: /home/tmarble/src/github/DEX-Company/starfish-py/artifacts
diagnostics.py              41 INFO     Using keeper contracts from network spree, network id is 8996
diagnostics.py              43 INFO     Looking for keeper contracts ending with ".spree.json", e.g. "ServiceExecutionAgreement.spree.json".
diagnostics.py              65 INFO     Finished loading keeper contracts:
	Dispenser: 0x176EC9B938d0ecE9aE1252EceB84c6bEf9a68576
	OceanToken: 0x8C8e79260ce44755a4Fff564dC4c414084629fbB
	DIDRegistry: 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
	ServiceExecutionAgreement: 0x90988436A75c308fBfc52D27fca65d28D5A3b919
	PaymentConditions: 0x62d3A47EeB5742ADCa26C7F75eE106707CbCC53e
	AccessConditions: 0xeB0E4AEa7BEb29AD1018185A3e097b4588eA902C
diagnostics.py              23 INFO     Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type `Access` deployed in the current keeper network published by 0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e.
ocean.py                    93 INFO     Squid Ocean instance initialized:
ocean.py                    94 INFO     	Other accounts: ['0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
ocean.py                    96 INFO     	DIDRegistry @ 0xC87a8c97E70bc082A2B4b64818511d96cEdc3e7d
ocean_assets.py             72 DEBUG    Generating new did: did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524
aquarius.py                 32 DEBUG    Metadata Store connected at http://localhost:5000
aquarius.py                 33 DEBUG    Metadata Store API documentation at http://localhost:5000/api/v1/docs
aquarius.py                 34 DEBUG    Metadata assets at http://localhost:5000/api/v1/aquarius/assets
ddo.py                      84 DEBUG    Adding public key <squid_py.ddo.public_key_hex.PublicKeyHex object at 0x7fa33a38db00>
ddo.py                     108 DEBUG    Adding authentication <squid_py.ddo.authentication.Authentication object at 0x7fa33a38dbe0>
ddo.py                      84 DEBUG    Adding public key <squid_py.ddo.public_key_rsa.PublicKeyRSA object at 0x7fa33a101ba8>
ddo.py                     108 DEBUG    Adding authentication <squid_py.ddo.authentication.Authentication object at 0x7fa33867cf60>
ddo.py                     145 DEBUG    Adding signature to the ddo object.
ocean_assets.py             95 DEBUG    Encrypting content urls in the metadata.
ocean_assets.py            106 INFO     Content urls encrypted successfully 0x6abcc119a3b692072ef201e9e49ea798e787360cc53cc0a75e5432e937ffb955375bfaba4041a7e36b4a7099742cdbb9b2253a66ce7e39d7cc29ca2f84ce65ffe8a8c4e688f5947865dea84f930adcb4b7598a2880e188a9b6832b39ff9729f92c0094beb3203c40d3efafbac4c78cbf7604a123403d258a4368d77f00dd8b4f52a39b75b3cf1ef74c264eaec086a22e1bc2e351baeb76bc255e27c28e2965f56181b4a8fb2da20e00d20378c339013390b9191bc03b7463314930b9e281e03993006dad7d4a1f12ff4905e0efd046f0d37777c8b68dad40dccba068587e2e49e4a1641f626e4e8621edbb69c1b8fff61904e2774cce059c8fbdf63681786203128c41ac98d502574a121dee1bb77656a8529211f86e124a46966886d1609c6aabae3f985de753fba7259e7442f3da1b48d2a3d2163baef1f225f3cb9b0155b1d86657178df4fa75e32cdc1f2ab7422ce51d714e07e3733ed80d7038628509b7f9592cfd249806b7d8c28a9d9f35a2ee2a809769d679ec47b11f95c6591bd44d3ea35900ec52470c415d1e27dca0f8f6f322e5a7426ecbee2304d0224af5ea71e971379313ad2e413593a055f09144532019da92bbac0955c60ac1875e2154840a5ef1dd9004b5eebdac4b6f522b8e3d2342118416e3df83dc9e3cbd98e7b10e12bd78640fe39ff5c824318ecff921eddff35a45fc81b811d2c2d1420af3e241c0d8e18d8cc19026fdf928854d5678297ddf553e9b11584c4c0864da5759344c9e79d6b2df
aquarius.py                 32 DEBUG    Metadata Store connected at http://localhost:5000
aquarius.py                 33 DEBUG    Metadata Store API documentation at http://localhost:5000/api/v1/docs
aquarius.py                 34 DEBUG    Metadata assets at http://localhost:5000/api/v1/aquarius/assets
ddo.py                     162 DEBUG    Adding service with service type <squid_py.ddo.service.Service object at 0x7fa33867c208> with did did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524
ddo.py                     162 DEBUG    Adding service with service type <squid_py.ddo.service.Service object at 0x7fa33a3b84e0> with did did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524
ddo.py                     162 DEBUG    Adding service with service type <squid_py.ddo.service.Service object at 0x7fa33a082940> with did did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524
ocean_assets.py            149 DEBUG    Generated ddo and services, DID is did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524, metadata service @http://localhost:5000/api/v1/aquarius/assets/ddo/did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524, `Access` service purchase @http://localhost:12001.
aquarius.py                 32 DEBUG    Metadata Store connected at http://localhost:5000
aquarius.py                 33 DEBUG    Metadata Store API documentation at http://localhost:5000/api/v1/docs
aquarius.py                 34 DEBUG    Metadata assets at http://localhost:5000/api/v1/aquarius/assets
aquarius.py                142 DEBUG    Published asset DID did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524
ocean_assets.py            156 DEBUG    Asset/ddo published successfully in aquarius.
ocean_assets.py            173 INFO     DDO with DID did:op:7dad978eb3a04cd994132156595a0aae09319378ac194b2fbbef4d4c4580c524 successfully registered on chain.
test_squid_agent.py        190 INFO     search word is Weather
ocean_assets.py            207 INFO     Searching asset containing: Weather
aquarius.py                 32 DEBUG    Metadata Store connected at http://localhost:5000
aquarius.py                 33 DEBUG    Metadata Store API documentation at http://localhost:5000/api/v1/docs
aquarius.py                 34 DEBUG    Metadata assets at http://localhost:5000/api/v1/aquarius/assets
================================== warnings summary ==================================
venv/lib/python3.7/site-packages/eth_account/account.py:1
  /home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/eth_account/account.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import (

venv/lib/python3.7/site-packages/eth_keys/datatypes.py:107
  /home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/eth_keys/datatypes.py:107: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    class BaseKey(ByteString, collections.Hashable):

venv/lib/python3.7/site-packages/attrdict/mixins.py:5
venv/lib/python3.7/site-packages/attrdict/mixins.py:5
  /home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/attrdict/mixins.py:5: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import Mapping, MutableMapping, Sequence

venv/lib/python3.7/site-packages/rlp/lazy.py:1
  /home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/rlp/lazy.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import Iterable, Sequence

venv/lib/python3.7/site-packages/web3/utils/six/six.py:7
  /home/tmarble/src/github/DEX-Company/starfish-py/venv/lib/python3.7/site-packages/web3/utils/six/six.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    Generator = collections.Generator

venv/lib/python3.7/site-packages/eth_utils/applicators.py:32