|
|
|
@ -1,4 +1,3 @@ |
|
|
|
|
|
|
|
|
|
export const registerCommandAction = (name, command, activate, dispatch) => { |
|
|
|
|
const commands: any = {} |
|
|
|
|
const _commands: any = {} |
|
|
|
@ -135,22 +134,6 @@ export const initListeningOnNetwork = (props, dispatch) => { |
|
|
|
|
}) |
|
|
|
|
props.txListener.event.register('newTransaction', (tx, receipt) => { |
|
|
|
|
log(props, tx, receipt, dispatch) |
|
|
|
|
registerCommandAction('knownTransaction', function (args, cmds, append) { |
|
|
|
|
var data = args[0] |
|
|
|
|
console.log({ data }) |
|
|
|
|
// let el
|
|
|
|
|
// if (data.tx.isCall) {
|
|
|
|
|
// console.log({ data })
|
|
|
|
|
// // el = renderCall(this, data)
|
|
|
|
|
// } else {
|
|
|
|
|
// // el = renderKnownTransaction(this, data, blockchain)
|
|
|
|
|
// }
|
|
|
|
|
// this.seen[data.tx.hash] = el
|
|
|
|
|
// append(el)
|
|
|
|
|
}, { activate: true }, dispatch) |
|
|
|
|
// const result = Object.assign([], tx)
|
|
|
|
|
// console.log({ result })
|
|
|
|
|
// scriptRunnerDispatch({ type: 'knownTransaction', payload: { message: result } })
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const log = async (props, tx, receipt, dispatch) => { |
|
|
|
@ -174,7 +157,6 @@ export const initListeningOnNetwork = (props, dispatch) => { |
|
|
|
|
|
|
|
|
|
props.txListener.event.register('debuggingRequested', async (hash) => { |
|
|
|
|
// TODO should probably be in the run module
|
|
|
|
|
console.log({ hash }, 'register Call') |
|
|
|
|
if (!await props.options.appManager.isActive('debugger')) await props.options.appManager.activatePlugin('debugger') |
|
|
|
|
props.thisState.call('menuicons', 'select', 'debugger') |
|
|
|
|
props.thisState.call('debugger', 'debug', hash) |
|
|
|
|