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