avalon icon indicating copy to clipboard operation
avalon copied to clipboard

How to subscribe smart contract events with avalon?

Open YK0101 opened this issue 5 years ago • 2 comments

I want to test proxy model with besu, but I can't find any examples. I tried using eth_generic_client.py, but it didn't work. How to subscribe smart contract events with avalon?

_dev) xxxx@xxxx:~/avalon$ examples/apps/generic_client//eth_generic_client.py -b ethereum --workload_id "echo-result" -o --in_data "Hello" --worker_id "--worker_id "singleton-worker-1" [07:05:16 INFO main] ******* Hyperledger Avalon Generic client ******* [07:05:16 INFO solcx] Using solc version v0.5.15 [07:05:16 INFO main] Worker 0b03616a46ea9cf574f3f8eedc93a62c691a60dbd3783427c0243bacfe5bba94 is not active

YK0101 avatar Sep 11 '20 07:09 YK0101

Were you able to bring up the Besu network ? Did you face any difficulty following - https://github.com/hyperledger/avalon/blob/master/docs/TestingBesuProxyModel.rst ?

rranjan3 avatar Sep 11 '20 07:09 rranjan3

I coud bring up the Besu network, but error occured during the tutorial.

(_dev) xxxx@xxxx:~/avalon$ examples/apps/generic_client/generic_client.py -b ethereum --workload_id "echo-result" -o --in_data "Hello" --worker_id "singleton-worker-1" usage: generic_client.py [-h] [-c CONFIG] [-u URI | -a ADDRESS] [-m {listing,registry}] [-w WORKER_ID | -wx WORKER_ID_HEX] [-l WORKLOAD_ID] [-i IN_DATA [IN_DATA ...]] [-p] [-r] [-o] [-rs] generic_client.py: error: unrecognized arguments: -b ethereum

YK0101 avatar Sep 11 '20 08:09 YK0101