Fabcoin Core  0.16.2
P2P Digital Currency
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
TokenTransactionRecord Class Reference

UI model for a token transaction. More...

#include <tokentransactionrecord.h>

Collaboration diagram for TokenTransactionRecord:
[legend]

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< TokenTransactionRecorddecomposeTransaction (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...
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator
Other 
SendToAddress 
SendToOther 
RecvWithAddress 
RecvFromOther 
SendToSelf 

Definition at line 53 of file tokentransactionrecord.h.

Constructor & Destructor Documentation

TokenTransactionRecord::TokenTransactionRecord ( )
inline

Definition at line 66 of file tokentransactionrecord.h.

Member Function Documentation

QList< TokenTransactionRecord > TokenTransactionRecord::decomposeTransaction ( const CWallet wallet,
const CTokenTx wtx 
)
static

Decompose Token transaction into a record.

Definition at line 14 of file tokentransactionrecord.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString TokenTransactionRecord::getTxID ( ) const

Return the unique identifier for this transaction (part)

Definition at line 115 of file tokentransactionrecord.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool TokenTransactionRecord::statusUpdateNeeded ( )

Return whether a status update is needed.

Definition at line 109 of file tokentransactionrecord.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TokenTransactionRecord::updateStatus ( const CWallet wallet,
const CTokenTx wtx 
)

Update status from core wallet tx.

Definition at line 75 of file tokentransactionrecord.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

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.

const int TokenTransactionRecord::RecommendedNumConfirmations = 10
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.


The documentation for this class was generated from the following files: