Fabcoin Core
0.16.2
P2P Digital Currency
|
UI model for a token transaction. More...
#include <tokentransactionrecord.h>
Public Types | |
enum | Type { Other, SendToAddress, SendToOther, RecvWithAddress, RecvFromOther, SendToSelf } |
Public Member Functions | |
TokenTransactionRecord () | |
QString | getTxID () const |
Return the unique identifier for this transaction (part) More... | |
void | updateStatus (const CWallet *wallet, const CTokenTx &wtx) |
Update status from core wallet tx. More... | |
bool | statusUpdateNeeded () |
Return whether a status update is needed. More... | |
Static Public Member Functions | |
static QList< TokenTransactionRecord > | decomposeTransaction (const CWallet *wallet, const CTokenTx &wtx) |
Decompose Token transaction into a record. More... | |
Public Attributes | |
TokenTransactionStatus | status |
Status: can change with block chain update. More... | |
Immutable token transaction attributes | |
uint256 | hash |
uint256 | txid |
qint64 | time |
Type | type |
std::string | address |
dev::s256 | debit |
dev::s256 | credit |
std::string | tokenSymbol |
uint8_t | decimals |
std::string | label |
Static Public Attributes | |
static const int | RecommendedNumConfirmations = 10 |
Number of confirmation recommended for accepting a token transaction. More... | |
UI model for a token transaction.
A core token transaction can be represented by multiple UI token transactions if it has multiple outputs.
Definition at line 50 of file tokentransactionrecord.h.
Enumerator | |
---|---|
Other | |
SendToAddress | |
SendToOther | |
RecvWithAddress | |
RecvFromOther | |
SendToSelf |
Definition at line 53 of file tokentransactionrecord.h.
|
inline |
Definition at line 66 of file tokentransactionrecord.h.
|
static |
Decompose Token transaction into a record.
Definition at line 14 of file tokentransactionrecord.cpp.
QString TokenTransactionRecord::getTxID | ( | ) | const |
Return the unique identifier for this transaction (part)
Definition at line 115 of file tokentransactionrecord.cpp.
bool TokenTransactionRecord::statusUpdateNeeded | ( | ) |
Return whether a status update is needed.
Definition at line 109 of file tokentransactionrecord.cpp.
Update status from core wallet tx.
Definition at line 75 of file tokentransactionrecord.cpp.
std::string TokenTransactionRecord::address |
Definition at line 81 of file tokentransactionrecord.h.
dev::s256 TokenTransactionRecord::credit |
Definition at line 83 of file tokentransactionrecord.h.
dev::s256 TokenTransactionRecord::debit |
Definition at line 82 of file tokentransactionrecord.h.
uint8_t TokenTransactionRecord::decimals |
Definition at line 85 of file tokentransactionrecord.h.
uint256 TokenTransactionRecord::hash |
Definition at line 77 of file tokentransactionrecord.h.
std::string TokenTransactionRecord::label |
Definition at line 86 of file tokentransactionrecord.h.
|
static |
Number of confirmation recommended for accepting a token transaction.
Definition at line 64 of file tokentransactionrecord.h.
TokenTransactionStatus TokenTransactionRecord::status |
Status: can change with block chain update.
Definition at line 93 of file tokentransactionrecord.h.
qint64 TokenTransactionRecord::time |
Definition at line 79 of file tokentransactionrecord.h.
std::string TokenTransactionRecord::tokenSymbol |
Definition at line 84 of file tokentransactionrecord.h.
uint256 TokenTransactionRecord::txid |
Definition at line 78 of file tokentransactionrecord.h.
Type TokenTransactionRecord::type |
Definition at line 80 of file tokentransactionrecord.h.