-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More flexible dependencies, no cursor timeout, cache 4bytes #140
Conversation
def get_address_semantics(self, chain_id, address) -> Optional[Dict]: | ||
def get_address_semantics( | ||
self, chain_id, address, *, cursor_timeout_millis=None | ||
) -> Cursor: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this return cursor, this can't be cache. If it's working, it's only because we got lucky because cache
is getting all the data from this cursor. Could we add list(...)
around returned value, and change type from Cursor
, just to make it clear what is returned?
return self._signatures.find({"signature_hash": signature_hash}) | ||
def get_signature_semantics( | ||
self, signature_hash: str, *, cursor_timeout_millis=None | ||
) -> Cursor: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as before
def get_contract_semantics(self, code_hash): | ||
def get_contract_semantics( | ||
self, code_hash, *, cursor_timeout_millis=None | ||
) -> Cursor: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as before
@piotr-rudnik , maybe lets remove |
ethtx
is easier to install in other apps4bytes
resposne, if some transactions have a lot of guessed functions/events, it definitely speeds upethtx
!README
mongo string