Skip to content
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

API changes #58

Merged
merged 2 commits into from Oct 25, 2018
Merged

API changes #58

merged 2 commits into from Oct 25, 2018

Conversation

montyly
Copy link
Member

@montyly montyly commented Oct 24, 2018

This PR uses slihtIR to improve the following attributes of node and function:

  • variables_read
  • variables_written
  • state_variables_read
  • state_variables_written
  • internal_call

It replaces the attribute external_calls by:

  • solidity_calls: returns the list of SolidiyFunction called
  • high_level_calls: returns the list of (Contract, Function|Variable) called (it includes library calls). Variable is used for calls to public state variables.
  • low_level_calls: returns the list of low level calls, represented by (Variable|SolidityVariable, function_name), where function_name can be call/delegatecall/codecall

The PR should simplify the detectors and will be directly useful for #49 and #56

I am waiting to merge the PR into dev, as it breaks the API used by other PRs

 - use slihtIR for node.state_vars read/write and calls
 - remove external_calls of node/function, split into node.low_level_calls/high_level_calls
@montyly montyly merged commit 7e2b9e3 into dev Oct 25, 2018
@montyly montyly deleted the dev-refactor-nodes-info branch October 25, 2018 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant