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

Initial draft: 0.7.0 #356

Merged
merged 11 commits into from
Jul 24, 2019
Merged

Initial draft: 0.7.0 #356

merged 11 commits into from
Jul 24, 2019

Conversation

cgewecke
Copy link
Member

@cgewecke cgewecke commented Jul 23, 2019

#346 Swaps event-based instrumentation w/ testrpc-sc for variable-based instrumentation processed by a generic ganache VM listener. (This PR targets the next branch.)

The changes here are less extensive than they might seem at first glance. All the core instrumentation logic has been retained and should be +/- recognizable.

Summary

  • modify injector to use variable definitions and assignment statements we can read with an opcode tracer.
  • add DataCollector class which listens to the VM for data-hash-detected-on-stack 'events'
  • rename instrumentSolidity --> Instrumenter & make JS class / top level controller
  • rename instrumenter --> Registrar & make JS class. (annoying...best name I could think of)
  • remove pure/view preprocessing
  • mark instrumentation hits in memory / transform to coverage object from memory
  • refactor test suite for this design

@cgewecke cgewecke merged commit ca93918 into next Jul 24, 2019
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.

1 participant