|
|
|
@ -13,17 +13,16 @@ var SolidityLocals = require('./SolidityLocals') |
|
|
|
|
var StorageResolver = require('../storage/storageResolver.js') |
|
|
|
|
var yo = require('yo-yo') |
|
|
|
|
|
|
|
|
|
function VmDebugger (_parent, _traceManager, _codeManager, _solidityProxy, _callTree) { |
|
|
|
|
var storageResolver = new StorageResolver(_parent, _traceManager) |
|
|
|
|
function VmDebugger (_parent, _traceManager, _codeManager, _solidityProxy, _callTree) {
|
|
|
|
|
this.asmCode = new CodeListView(_parent, _codeManager) |
|
|
|
|
this.stackPanel = new StackPanel(_parent, _traceManager) |
|
|
|
|
this.storagePanel = new StoragePanel(_parent, _traceManager, storageResolver) |
|
|
|
|
this.storagePanel = new StoragePanel(_parent, _traceManager) |
|
|
|
|
this.memoryPanel = new MemoryPanel(_parent, _traceManager) |
|
|
|
|
this.calldataPanel = new CalldataPanel(_parent, _traceManager) |
|
|
|
|
this.callstackPanel = new CallstackPanel(_parent, _traceManager) |
|
|
|
|
this.stepDetail = new StepDetail(_parent, _traceManager) |
|
|
|
|
this.solidityState = new SolidityState(_parent, _traceManager, _codeManager, _solidityProxy, storageResolver) |
|
|
|
|
this.solidityLocals = new SolidityLocals(_parent, _traceManager, _callTree, storageResolver) |
|
|
|
|
this.solidityState = new SolidityState(_parent, _traceManager, _codeManager, _solidityProxy) |
|
|
|
|
this.solidityLocals = new SolidityLocals(_parent, _traceManager, _callTree) |
|
|
|
|
|
|
|
|
|
/* Return values - */ |
|
|
|
|
this.returnValuesPanel = new DropdownPanel('Return Value', {json: true}) |
|
|
|
@ -40,11 +39,16 @@ function VmDebugger (_parent, _traceManager, _codeManager, _solidityProxy, _call |
|
|
|
|
}) |
|
|
|
|
/* Return values - */ |
|
|
|
|
|
|
|
|
|
this.fullStoragesChangesPanel = new FullStoragesChangesPanel(_parent, _traceManager, storageResolver) |
|
|
|
|
this.fullStoragesChangesPanel = new FullStoragesChangesPanel(_parent, _traceManager) |
|
|
|
|
|
|
|
|
|
this.view |
|
|
|
|
var self = this |
|
|
|
|
_parent.event.register('newTraceLoaded', this, function () { |
|
|
|
|
var storageResolver = new StorageResolver(_traceManager) |
|
|
|
|
self.storagePanel.storageResolver = storageResolver |
|
|
|
|
self.solidityState.storageResolver = storageResolver |
|
|
|
|
self.solidityLocals.storageResolver = storageResolver |
|
|
|
|
self.fullStoragesChangesPanel.storageResolver = storageResolver |
|
|
|
|
self.view.style.display = 'block' |
|
|
|
|
}) |
|
|
|
|
_parent.event.register('traceUnloaded', this, function () { |
|
|
|
|