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

#include <mastercore_dex.h>

+ Collaboration diagram for CMPOffer:

Public Member Functions

uint256 getHash () const
 
unsigned int getProperty () const
 
uint64_t getMinFee () const
 
unsigned char getBlockTimeLimit () const
 
unsigned char getSubaction () const
 
uint64_t getOfferAmountOriginal () const
 
uint64_t getBTCDesiredOriginal () const
 
 CMPOffer ()
 
 CMPOffer (int b, uint64_t a, unsigned int cu, uint64_t d, uint64_t fee, unsigned char btl, const uint256 &tx)
 
void Set (uint64_t d, uint64_t fee, unsigned char btl, unsigned char suba)
 
void saveOffer (ofstream &file, SHA256_CTX *shaCtx, string const &addr) const
 

Private Attributes

int offerBlock
 
uint64_t offer_amount_original
 
unsigned int property
 
uint64_t BTC_desired_original
 
uint64_t min_fee
 
unsigned char blocktimelimit
 
uint256 txid
 
unsigned char subaction
 

Detailed Description

Definition at line 19 of file mastercore_dex.h.

Constructor & Destructor Documentation

CMPOffer::CMPOffer ( )
inline

Definition at line 41 of file mastercore_dex.h.

CMPOffer::CMPOffer ( int  b,
uint64_t  a,
unsigned int  cu,
uint64_t  d,
uint64_t  fee,
unsigned char  btl,
const uint256 tx 
)
inline

Definition at line 45 of file mastercore_dex.h.

References base_uint< BITS >::GetHex(), and msc_debug_dex.

+ Here is the call graph for this function:

Member Function Documentation

unsigned char CMPOffer::getBlockTimeLimit ( ) const
inline

Definition at line 35 of file mastercore_dex.h.

References blocktimelimit.

Referenced by mastercore::DEx_acceptCreate(), getactivedexsells_MP(), and populateRPCTransactionObject().

+ Here is the caller graph for this function:

uint64_t CMPOffer::getBTCDesiredOriginal ( ) const
inline

Definition at line 39 of file mastercore_dex.h.

References BTC_desired_original.

Referenced by mastercore::DEx_acceptCreate(), getactivedexsells_MP(), and populateRPCTransactionObject().

+ Here is the caller graph for this function:

uint256 CMPOffer::getHash ( ) const
inline

Definition at line 32 of file mastercore_dex.h.

References txid.

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

+ Here is the caller graph for this function:

uint64_t CMPOffer::getMinFee ( ) const
inline

Definition at line 34 of file mastercore_dex.h.

References min_fee.

Referenced by mastercore::DEx_acceptCreate(), getactivedexsells_MP(), and populateRPCTransactionObject().

+ Here is the caller graph for this function:

uint64_t CMPOffer::getOfferAmountOriginal ( ) const
inline

Definition at line 38 of file mastercore_dex.h.

References offer_amount_original.

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

+ Here is the caller graph for this function:

unsigned int CMPOffer::getProperty ( ) const
inline

Definition at line 33 of file mastercore_dex.h.

References property.

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

+ Here is the caller graph for this function:

unsigned char CMPOffer::getSubaction ( ) const
inline

Definition at line 36 of file mastercore_dex.h.

References subaction.

Referenced by populateRPCTransactionObject().

+ Here is the caller graph for this function:

void CMPOffer::saveOffer ( ofstream &  file,
SHA256_CTX *  shaCtx,
string const &  addr 
) const
inline

Definition at line 59 of file mastercore_dex.h.

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

Referenced by write_mp_offers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CMPOffer::Set ( uint64_t  d,
uint64_t  fee,
unsigned char  btl,
unsigned char  suba 
)
inline

Definition at line 51 of file mastercore_dex.h.

Referenced by CMPTransaction::logicMath_TradeOffer().

+ Here is the caller graph for this function:

Member Data Documentation

unsigned char CMPOffer::blocktimelimit
private

Definition at line 27 of file mastercore_dex.h.

Referenced by getBlockTimeLimit().

uint64_t CMPOffer::BTC_desired_original
private

Definition at line 25 of file mastercore_dex.h.

Referenced by getBTCDesiredOriginal().

uint64_t CMPOffer::min_fee
private

Definition at line 26 of file mastercore_dex.h.

Referenced by getMinFee().

uint64_t CMPOffer::offer_amount_original
private

Definition at line 23 of file mastercore_dex.h.

Referenced by getOfferAmountOriginal().

int CMPOffer::offerBlock
private

Definition at line 22 of file mastercore_dex.h.

unsigned int CMPOffer::property
private

Definition at line 24 of file mastercore_dex.h.

Referenced by getProperty().

unsigned char CMPOffer::subaction
private

Definition at line 29 of file mastercore_dex.h.

Referenced by getSubaction().

uint256 CMPOffer::txid
private

Definition at line 28 of file mastercore_dex.h.

Referenced by getHash().


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