|
|
@ -200,21 +200,8 @@ export const initListeningOnNetwork = (props, dispatch) => { |
|
|
|
await props.eventsDecoder.parseLogs(tx, resolvedTransaction.contractName, compiledContracts, (error, logs) => { |
|
|
|
await props.eventsDecoder.parseLogs(tx, resolvedTransaction.contractName, compiledContracts, (error, logs) => { |
|
|
|
if (!error) { |
|
|
|
if (!error) { |
|
|
|
console.log({ tx: tx, receipt: receipt, resolvedData: resolvedTransaction, logs: logs }) |
|
|
|
console.log({ tx: tx, receipt: receipt, resolvedData: resolvedTransaction, logs: logs }) |
|
|
|
console.log('knownTransaction') |
|
|
|
console.log('knownTransaction dispatch') |
|
|
|
// logKnownTX({ tx: tx, receipt: receipt, resolvedData: resolvedTransaction, logs: logs })
|
|
|
|
dispatch({ type: 'knownTransaction', payload: { message: [{ tx: tx, receipt: receipt }] } }) |
|
|
|
registerCommandAction('knownTransaction', function (args, cmds, append) { |
|
|
|
|
|
|
|
var data = args[0] |
|
|
|
|
|
|
|
console.log({ data }, 'knownTransaction') |
|
|
|
|
|
|
|
// 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) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|