|
|
@ -72,6 +72,7 @@ struct TransactionSettings |
|
|
|
class RecordLogEntry: public QObject |
|
|
|
{ |
|
|
|
Q_OBJECT |
|
|
|
Q_ENUMS(RecordType) |
|
|
|
/// Recording index
|
|
|
|
Q_PROPERTY(unsigned recordIndex MEMBER m_recordIndex CONSTANT) |
|
|
|
/// Human readable transaction bloack and transaction index
|
|
|
@ -88,13 +89,20 @@ class RecordLogEntry: public QObject |
|
|
|
Q_PROPERTY(QString returned MEMBER m_returned CONSTANT) |
|
|
|
/// true if call, false if transaction
|
|
|
|
Q_PROPERTY(bool call MEMBER m_call CONSTANT) |
|
|
|
|
|
|
|
/// @returns record type
|
|
|
|
Q_PROPERTY(RecordType type MEMBER m_type CONSTANT) |
|
|
|
|
|
|
|
public: |
|
|
|
enum RecordType |
|
|
|
{ |
|
|
|
Transaction, |
|
|
|
Block |
|
|
|
}; |
|
|
|
|
|
|
|
RecordLogEntry(): |
|
|
|
m_recordIndex(0), m_call(false) {} |
|
|
|
RecordLogEntry(unsigned _recordIndex, QString _transactionIndex, QString _contract, QString _function, QString _value, QString _address, QString _returned, bool _call): |
|
|
|
m_recordIndex(_recordIndex), m_transactionIndex(_transactionIndex), m_contract(_contract), m_function(_function), m_value(_value), m_address(_address), m_returned(_returned), m_call(_call) {} |
|
|
|
m_recordIndex(0), m_call(false), m_type(RecordType::Transaction) {} |
|
|
|
RecordLogEntry(unsigned _recordIndex, QString _transactionIndex, QString _contract, QString _function, QString _value, QString _address, QString _returned, bool _call, RecordType _type): |
|
|
|
m_recordIndex(_recordIndex), m_transactionIndex(_transactionIndex), m_contract(_contract), m_function(_function), m_value(_value), m_address(_address), m_returned(_returned), m_call(_call), m_type(_type) {} |
|
|
|
|
|
|
|
private: |
|
|
|
unsigned m_recordIndex; |
|
|
@ -105,6 +113,7 @@ private: |
|
|
|
QString m_address; |
|
|
|
QString m_returned; |
|
|
|
bool m_call; |
|
|
|
RecordType m_type; |
|
|
|
}; |
|
|
|
|
|
|
|
/**
|
|
|
@ -140,6 +149,8 @@ public slots: |
|
|
|
void setupState(QVariantMap _state); |
|
|
|
/// Show the debugger for a specified record
|
|
|
|
Q_INVOKABLE void debugRecord(unsigned _index); |
|
|
|
/// Show the debugger for an empty record
|
|
|
|
Q_INVOKABLE void emptyRecord(); |
|
|
|
|
|
|
|
private slots: |
|
|
|
/// Update UI with machine states result. Display a modal dialog.
|
|
|
|