commit
2cfc46178a
@ -1,12 +1,24 @@ |
||||
var React = require('react'); |
||||
var TxBrowser = require('./txBrowser'); |
||||
var VmTraceManager = require('./vmTraceManager'); |
||||
var VmTraceBrowser = require('./vmTraceBrowser'); |
||||
|
||||
module.exports = React.createClass({ |
||||
getInitialState: function() { |
||||
return {vmTrace: null} |
||||
}, |
||||
|
||||
render: function() { |
||||
return (<div> |
||||
<p><h1>Debugger</h1></p> |
||||
<TxBrowser/> |
||||
<TxBrowser onNewTxRequested={this.retrieveVmTrace} /> |
||||
<VmTraceBrowser vmTrace={this.state.vmTrace} /> |
||||
</div> |
||||
); |
||||
}, |
||||
|
||||
retrieveVmTrace: function(blockNumber, txNumber) |
||||
{ |
||||
this.setState({vmTrace: VmTraceManager.retrieveVmTrace(blockNumber, txNumber)}); |
||||
} |
||||
}); |
||||
|
@ -0,0 +1,7 @@ |
||||
var React = require('react'); |
||||
|
||||
module.exports = React.createClass({ |
||||
render: function() { |
||||
return (<div>{this.props.vmTrace}</div>) |
||||
} |
||||
}); |
@ -0,0 +1,5 @@ |
||||
module.exports = { |
||||
retrieveVmTrace: function(blockNumber, txNumber) { |
||||
return web3.admin.vmTrace(blockNumber, parseInt(txNumber), "TmrjdiILLn0="); |
||||
} |
||||
} |
Loading…
Reference in new issue