Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
CMPAccept Class Reference

#include <mastercore_dex.h>

+ Collaboration diagram for CMPAccept:

Public Member Functions

uint256 getHash () const
 
uint64_t getOfferAmountOriginal ()
 
uint64_t getBTCDesiredOriginal ()
 
unsigned char getBlockTimeLimit ()
 
unsigned int getProperty () const
 
int getAcceptBlock ()
 
 CMPAccept (uint64_t a, int b, unsigned char blt, unsigned int c, uint64_t o, uint64_t btc, const uint256 &txid)
 
 CMPAccept (uint64_t origA, uint64_t remA, int b, unsigned char blt, unsigned int c, uint64_t o, uint64_t btc, const uint256 &txid)
 
void print ()
 
uint64_t getAcceptAmountRemaining () const
 
bool reduceAcceptAmountRemaining_andIsZero (const uint64_t really_purchased)
 
void saveAccept (ofstream &file, SHA256_CTX *shaCtx, string const &addr, string const &buyer) const
 

Public Attributes

int block
 

Private Attributes

uint64_t accept_amount_original
 
uint64_t accept_amount_remaining
 
unsigned char blocktimelimit
 
unsigned int property
 
uint64_t offer_amount_original
 
uint64_t BTC_desired_original
 
uint256 offer_txid
 

Detailed Description

Definition at line 83 of file mastercore_dex.h.

Constructor & Destructor Documentation

CMPAccept::CMPAccept ( uint64_t  a,
int  b,
unsigned char  blt,
unsigned int  c,
uint64_t  o,
uint64_t  btc,
const uint256 txid 
)
inline

Definition at line 110 of file mastercore_dex.h.

References accept_amount_remaining.

CMPAccept::CMPAccept ( uint64_t  origA,
uint64_t  remA,
int  b,
unsigned char  blt,
unsigned int  c,
uint64_t  o,
uint64_t  btc,
const uint256 txid 
)
inline

Definition at line 117 of file mastercore_dex.h.

Member Function Documentation

uint64_t CMPAccept::getAcceptAmountRemaining ( ) const
inline

Definition at line 129 of file mastercore_dex.h.

References accept_amount_remaining.

Referenced by mastercore::DEx_acceptDestroy(), mastercore::DEx_payment(), and getactivedexsells_MP().

+ Here is the caller graph for this function:

int CMPAccept::getAcceptBlock ( )
inline

Definition at line 108 of file mastercore_dex.h.

References block.

Referenced by getactivedexsells_MP().

+ Here is the caller graph for this function:

unsigned char CMPAccept::getBlockTimeLimit ( )
inline

Definition at line 105 of file mastercore_dex.h.

References blocktimelimit.

Referenced by eraseExpiredAccepts().

+ Here is the caller graph for this function:

uint64_t CMPAccept::getBTCDesiredOriginal ( )
inline

Definition at line 101 of file mastercore_dex.h.

References BTC_desired_original.

Referenced by mastercore::DEx_payment().

+ Here is the caller graph for this function:

uint256 CMPAccept::getHash ( ) const
inline

Definition at line 98 of file mastercore_dex.h.

References offer_txid.

Referenced by mastercore::DEx_acceptDestroy(), and getactivedexsells_MP().

+ Here is the caller graph for this function:

uint64_t CMPAccept::getOfferAmountOriginal ( )
inline

Definition at line 100 of file mastercore_dex.h.

References offer_amount_original.

Referenced by mastercore::DEx_payment().

+ Here is the caller graph for this function:

unsigned int CMPAccept::getProperty ( ) const
inline

Definition at line 106 of file mastercore_dex.h.

References property.

void CMPAccept::print ( )
inline

Definition at line 123 of file mastercore_dex.h.

References COIN.

bool CMPAccept::reduceAcceptAmountRemaining_andIsZero ( const uint64_t  really_purchased)
inline

Definition at line 137 of file mastercore_dex.h.

Referenced by mastercore::DEx_payment().

+ Here is the caller graph for this function:

void CMPAccept::saveAccept ( ofstream &  file,
SHA256_CTX *  shaCtx,
string const &  addr,
string const &  buyer 
) const
inline

Definition at line 148 of file mastercore_dex.h.

References tinyformat::detail::format(), and base_uint< BITS >::ToString().

Referenced by write_mp_accepts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint64_t CMPAccept::accept_amount_original
private

Definition at line 86 of file mastercore_dex.h.

uint64_t CMPAccept::accept_amount_remaining
private

Definition at line 87 of file mastercore_dex.h.

Referenced by CMPAccept(), and getAcceptAmountRemaining().

int CMPAccept::block

Definition at line 103 of file mastercore_dex.h.

Referenced by eraseExpiredAccepts(), and getAcceptBlock().

unsigned char CMPAccept::blocktimelimit
private

Definition at line 89 of file mastercore_dex.h.

Referenced by getBlockTimeLimit().

uint64_t CMPAccept::BTC_desired_original
private

Definition at line 93 of file mastercore_dex.h.

Referenced by getBTCDesiredOriginal().

uint64_t CMPAccept::offer_amount_original
private

Definition at line 92 of file mastercore_dex.h.

Referenced by getOfferAmountOriginal().

uint256 CMPAccept::offer_txid
private

Definition at line 95 of file mastercore_dex.h.

Referenced by getHash().

unsigned int CMPAccept::property
private

Definition at line 90 of file mastercore_dex.h.

Referenced by getProperty().


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