Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Make ganache-core/cli interface more adaptable and less invasive #45

Open
mikeseese opened this issue Jul 11, 2018 · 0 comments
Open

Make ganache-core/cli interface more adaptable and less invasive #45

mikeseese opened this issue Jul 11, 2018 · 0 comments
Assignees
Milestone

Comments

@mikeseese
Copy link
Owner

Since Velma is a real-time debugger, every step event needs to be processed to determine if it's a breakpoint/etc. At first the VM/ganache interface to Velma was a websocket connection, but this was way too slow. So now Velma<->ganache/ejsvm (ethereumjs-vm) need to have in-memory communication (IPC hasn't been tried yet to keep things simple and in-memory [aka the same process] has worked thusfar) has been used.

The current implementation adds sdbhook.js (Velma used to be called Solidity Debugger [aka sdb] before release) to ganache-core to add the necessary extensions support for handling these VM events.

This issue proposes the following changes:

  • Remove sdbhook.js from ganache-core
  • Add some sort of extensibility API for node modules to listen to these events through ganache-core (aka maybe just adding an event emitter that re-emits events, with maybe some nice structure)
  • Move most of the sdbhook.js functionality into Velma
@mikeseese mikeseese self-assigned this Jul 11, 2018
@mikeseese mikeseese added this to the 2.0.0 milestone Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant