andelf / tronpy

TRON Python Client Library.
MIT License
204 stars 96 forks source link

Cut new release + add `code_hash` to Contract #57

Closed RohitK89 closed 1 year ago

RohitK89 commented 2 years ago

Hi @andelf. I noticed that logic was added two weeks ago to parse event logs, but there hasn't been a release since these changes. Could you please publish a new version when you can?

Secondly, I noticed that the Contract class doesn't have a field for code_hash, which is one of the keys returned in each contract object by Tron nodes. According to the Tron docs, it's the hash of the bytecode for the contract. See here for more.

Thanks!

MioYvo commented 2 years ago

Hi @RohitK89, commit 560d692ba5befde9996bd69fba84afc46d3a5ed8 added event_logs parser, so u can install from git and specify commit hash : pip install git+https://github.com/andelf/tronpy@560d692ba5befde9996bd69fba84afc46d3a5ed8

MrNaif2018 commented 1 year ago

Added code_hash in b8d9fe5ecb1cfe130dbb42ec6cf7b4c9d9d9438d Also added missing origin_address in sync Contract version too

I will make a release soon