|
|
@ -11,15 +11,20 @@ var yo = require('yo-yo') |
|
|
|
var init = require('./helpers/init') |
|
|
|
var init = require('./helpers/init') |
|
|
|
var ui = require('./helpers/ui') |
|
|
|
var ui = require('./helpers/ui') |
|
|
|
|
|
|
|
|
|
|
|
function Ethdebugger () { |
|
|
|
function Ethdebugger (_web3) { |
|
|
|
util.extend(this, new EventManager()) |
|
|
|
util.extend(this, new EventManager()) |
|
|
|
this.currentStepIndex = -1 |
|
|
|
this.currentStepIndex = -1 |
|
|
|
this.tx |
|
|
|
this.tx |
|
|
|
this.statusMessage = '' |
|
|
|
this.statusMessage = '' |
|
|
|
|
|
|
|
|
|
|
|
this.view |
|
|
|
this.view |
|
|
|
|
|
|
|
if (_web3) { |
|
|
|
|
|
|
|
this.web3 = _web3 |
|
|
|
|
|
|
|
init.extendWeb3(this.web3) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.web3 = init.loadWeb3() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.web3 = init.loadWeb3() |
|
|
|
|
|
|
|
this.traceManager = new TraceManager(this.web3) |
|
|
|
this.traceManager = new TraceManager(this.web3) |
|
|
|
|
|
|
|
|
|
|
|
var self = this |
|
|
|
var self = this |
|
|
@ -41,6 +46,10 @@ function Ethdebugger () { |
|
|
|
this.sticker = new Sticker(this, this.traceManager, this.web3) |
|
|
|
this.sticker = new Sticker(this, this.traceManager, this.web3) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ethdebugger.prototype.debug = function (tx) { |
|
|
|
|
|
|
|
this.txBrowser.load(tx.hash) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Ethdebugger.prototype.render = function () { |
|
|
|
Ethdebugger.prototype.render = function () { |
|
|
|
var view = yo`<div style=${ui.formatCss(style.font)}>
|
|
|
|
var view = yo`<div style=${ui.formatCss(style.font)}>
|
|
|
|
<h1 style=${ui.formatCss(style.container)}>VM Debugger</h1> |
|
|
|
<h1 style=${ui.formatCss(style.container)}>VM Debugger</h1> |
|
|
|