Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Data Structures | Typedefs | Functions | Variables
mastercore Namespace Reference

Data Structures

class  MetaDEx_compare
 

Typedefs

typedef std::map< uint256, CMPPendingPendingMap
 
typedef std::map< string, CMPOfferOfferMap
 
typedef std::map< string, CMPAcceptAcceptMap
 
typedef std::pair< uint64_t, uint64_t > MetaDExTypePrice
 
typedef std::set< CMPMetaDEx, MetaDEx_comparemd_Set
 
typedef std::map< XDOUBLE, md_Setmd_PricesMap
 
typedef std::map< unsigned int, md_PricesMapmd_PropertiesMap
 
typedef std::map< string, CMPCrowdCrowdMap
 

Functions

string strMPProperty (unsigned int i)
 
int GetHeight (void)
 
uint32_t GetLatestBlockTime (void)
 
bool isPropertyDivisible (unsigned int propertyId)
 
string getPropertyName (unsigned int propertyId)
 
bool isCrowdsaleActive (unsigned int propertyId)
 
bool isCrowdsalePurchase (uint256 txid, string address, int64_t *propertyId=NULL, int64_t *userTokens=NULL, int64_t *issuerTokens=NULL)
 
bool isMPinBlockRange (int starting_block, int ending_block, bool bDeleteFound)
 
std::string FormatIndivisibleMP (int64_t n)
 
int ClassB_send (const string &senderAddress, const string &receiverAddress, const string &redemptionAddress, const vector< unsigned char > &data, uint256 &txid, int64_t additional=0)
 
uint256 send_INTERNAL_1packet (const string &FromAddress, const string &ToAddress, const string &RedeemAddress, unsigned int PropertyID, uint64_t Amount, unsigned int PropertyID_2, uint64_t Amount_2, unsigned int TransactionType, int64_t additional, int *error_code=NULL)
 
bool isTestEcosystemProperty (unsigned int property)
 
bool isMainEcosystemProperty (unsigned int property)
 
CMPTallygetTally (const string &address)
 
bool isMetaDExOfferActive (const uint256 txid, unsigned int propertyId)
 
int64_t getTotalTokens (unsigned int propertyId, int64_t *n_owners_total=NULL)
 
bool checkExpiredAlerts (unsigned int curBlock, uint64_t curTime)
 
int set_wallet_totals ()
 
char * c_strMasterProtocolTXType (int i)
 
bool isTransactionTypeAllowed (int txBlock, unsigned int txProperty, unsigned int txType, unsigned short version, bool bAllowNullProperty=false)
 
bool getValidMPTX (const uint256 &txid, int *block=NULL, unsigned int *type=NULL, uint64_t *nAmended=NULL)
 
bool update_tally_map (string who, unsigned int which_currency, int64_t amount, TallyType ttype)
 
std::string getMasterCoreAlertString ()
 
static bool isBigEndian ()
 
uint64_t rounduint64 (long double)
 Converts numbers to 64 bit wide unsigned integer whereby any signedness is ignored. More...
 
void swapByteOrder16 (uint16_t &)
 Swaps byte order on little-endian systems and does nothing otherwise. More...
 
void swapByteOrder32 (uint32_t &ui)
 
void swapByteOrder64 (uint64_t &ull)
 
bool DEx_offerExists (const string &seller_addr, unsigned int)
 
CMPOfferDEx_getOffer (const string &seller_addr, unsigned int)
 
CMPAcceptDEx_getAccept (const string &seller_addr, unsigned int, const string &buyer_addr)
 
int DEx_offerCreate (string seller_addr, unsigned int, uint64_t nValue, int block, uint64_t amount_desired, uint64_t fee, unsigned char btl, const uint256 &txid, uint64_t *nAmended=NULL)
 
int DEx_offerDestroy (const string &seller_addr, unsigned int)
 
int DEx_offerUpdate (const string &seller_addr, unsigned int, uint64_t nValue, int block, uint64_t desired, uint64_t fee, unsigned char btl, const uint256 &txid, uint64_t *nAmended=NULL)
 
int DEx_acceptCreate (const string &buyer, const string &seller, int, uint64_t nValue, int block, uint64_t fee_paid, uint64_t *nAmended=NULL)
 
int DEx_acceptDestroy (const string &buyer, const string &seller, int, bool bForceErase=false)
 
int DEx_payment (uint256 txid, unsigned int vout, string seller, string buyer, uint64_t BTC_paid, int blockNow, uint64_t *nAmended=NULL)
 
int MetaDEx_ADD (const string &sender_addr, unsigned int, uint64_t, int block, unsigned int property_desired, uint64_t amount_desired, const uint256 &txid, unsigned int idx)
 
int MetaDEx_CANCEL_AT_PRICE (const uint256, unsigned int, const string &, unsigned int, uint64_t, unsigned int, uint64_t)
 
int MetaDEx_CANCEL_ALL_FOR_PAIR (const uint256, unsigned int, const string &, unsigned int, unsigned int)
 
int MetaDEx_CANCEL_EVERYTHING (const uint256, unsigned int, const string &)
 
md_PricesMapget_Prices (unsigned int prop)
 
md_Setget_Indexes (md_PricesMap *p, XDOUBLE price)
 
void MetaDEx_debug_print (bool bShowPriceLevel=false, bool bDisplay=false)
 
int64_t StrToInt64 (const std::string &str, bool divisible)
 
char * c_strPropertyType (int i)
 
CMPCrowdgetCrowd (const string &address)
 
int calculateFractional (unsigned short int propType, unsigned char bonusPerc, uint64_t fundraiserSecs, uint64_t numProps, unsigned char issuerPerc, const std::map< std::string, std::vector< uint64_t > > txFundraiserData, const uint64_t amountPremined)
 
void eraseMaxedCrowdsale (const string &address, uint64_t blockTime, int block)
 
unsigned int eraseExpiredCrowdsale (CBlockIndex const *pBlockIndex)
 
void dumpCrowdsaleInfo (const string &address, CMPCrowd &crowd, bool bExpired=false)
 
template<class T >
bool IsEcosystem (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes an ecosystem. More...
 
bool IsEcosystem (const char *pzn)
 Checks whether the value describes an ecosystem. More...
 
bool IsEcosystem (const std::string &str)
 Checks whether the value describes an ecosystem. More...
 
template<class T >
bool IsBlockInterval (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes an interval measured in blocks. More...
 
bool IsBlockInterval (const char *pzn)
 Checks whether the value describes an interval measured in blocks. More...
 
bool IsBlockInterval (const std::string &str)
 Checks whether the value describes an interval measured in blocks. More...
 
template<class T >
bool IsDexAction (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes an action of the distributed exchange. More...
 
bool IsDexAction (const char *pzn)
 Checks whether the value describes an action of the distributed exchange. More...
 
bool IsDexAction (const std::string &str)
 Checks whether the value describes an action of the distributed exchange. More...
 
template<class T >
bool IsMetaDexAction (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes an action of the distributed token exchange. More...
 
bool IsMetaDexAction (const char *pzn)
 Checks whether the value describes an action of the distributed token exchange. More...
 
bool IsMetaDexAction (const std::string &str)
 Checks whether the value describes an action of the distributed token exchange. More...
 
template<class T >
bool IsSubAction (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes a subaction. More...
 
bool IsSubAction (const char *pzn)
 Checks whether the value describes a subaction. More...
 
bool IsSubAction (const std::string &str)
 Checks whether the value describes a subaction. More...
 
template<class T >
bool IsPropertyType (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes a property type. More...
 
bool IsPropertyType (const char *pzn)
 Checks whether the value describes a property type. More...
 
bool IsPropertyType (const std::string &str)
 Checks whether the value describes a property type. More...
 
template<class T >
bool IsPropertyId (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes a property identifier. More...
 
bool IsPropertyId (const char *pzn)
 Checks whether the value describes a property identifier. More...
 
bool IsPropertyId (const std::string &str)
 Checks whether the value describes a property identifier. More...
 
template<class T >
bool IsDivisibleAmount (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes a divisible amount. More...
 
bool IsDivisibleAmount (const char *pzn)
 Checks whether the value describes a divisible amount. More...
 
bool IsDivisibleAmount (const std::string &str)
 Checks whether the value describes a divisible amount. More...
 
template<class T >
bool IsIndivisibleAmount (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes an indivisible amount. More...
 
bool IsIndivisibleAmount (const char *pzn)
 Checks whether the value describes an indivisible amount. More...
 
bool IsIndivisibleAmount (const std::string &str)
 Checks whether the value describes an indivisible amount. More...
 
template<class T >
bool IsTokenAmount (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes either a divisible or indivisible amount. More...
 
bool IsTokenAmount (const char *pzn)
 Checks whether the value describes either a divisible or indivisible amount. More...
 
bool IsTokenAmount (const std::string &str)
 Checks whether the value describes either a divisible or indivisible amount. More...
 

Variables

std::map< string, CMPTallymp_tally_map
 
CMPTxListp_txlistdb
 
CMPTradeListt_tradelistdb
 
CMPSTOLists_stolistdb
 
OfferMap my_offers
 
AcceptMap my_accepts
 
md_PropertiesMap metadex
 
CMPSPInfo_my_sps
 
CrowdMap my_crowds
 
const uint8_t ECOSYSTEM_MAIN = 1
 Main ecosystem value. More...
 
const uint8_t ECOSYSTEM_TEST = 2
 Test ecosystem value. More...
 
const uint8_t BLOCK_INTERVAL_MIN = 1
 Minimum interval measured in blocks. More...
 
const uint8_t BLOCK_INTERVAL_MAX = 255
 Maximum interval measured in blocks. More...
 
const uint8_t DEX_ACTION_NEW = 1
 New offer action value. More...
 
const uint8_t DEX_ACTION_UPDATE = 2
 Update offer action value. More...
 
const uint8_t DEX_ACTION_CANCEL = 3
 Cancel offer action value. More...
 
const uint8_t MDEX_ACTION_ADD = 1
 Add offer action value. More...
 
const uint8_t MDEX_ACTION_CANCEL_AT_PRICE = 2
 Cancel offers at price action value. More...
 
const uint8_t MDEX_ACTION_CANCEL_ALL_FOR_PAIR = 3
 Cancel all offers of property pair action value. More...
 
const uint8_t MDEX_ACTION_CANCEL_CANCEL_EVERYTHING = 4
 Cancel every offer action value. More...
 
const uint16_t PROPERTY_TYPE_INDIVISIBLE = 1
 Indivisible property type. More...
 
const uint16_t PROPERTY_TYPE_DIVISIBLE = 2
 Divisible property type. More...
 
const uint16_t PROPERTY_TYPE_INDIVISIBLE_REPLACING = 65
 Indivisible property type when replacing a property. More...
 
const uint16_t PROPERTY_TYPE_DIVISIBLE_REPLACING = 66
 Divisible property type when replacing a property. More...
 
const uint16_t PROPERTY_TYPE_INDIVISIBLE_APPENDING = 129
 Indivisible property type when appending a property. More...
 
const uint16_t PROPERTY_TYPE_DIVISIBLE_APPENDING = 130
 Indivisible property type when appending a property. More...
 
const uint32_t PROPERTY_ID_MIN = 1
 Minimum property identifier value. More...
 
const uint32_t PROPERTY_ID_MAX = 4294967295
 Maximum property identifier value. More...
 
const uint64_t AMOUNT_INDIVISIBLE_MIN = 1
 Minimum indivisible amount. More...
 
const uint64_t AMOUNT_INDIVISIBLE_MAX = 9223372036854775807
 Maximum indivisible amount. More...
 
const long double AMOUNT_DIVISIBLE_MIN = 0.00000001L
 Minimum divisible amount. More...
 
const long double AMOUNT_DIVISIBLE_MAX = 92233720368.54775807L
 Maximum divisible amount. More...
 

Typedef Documentation

typedef std::map<string, CMPAccept> mastercore::AcceptMap

Definition at line 259 of file mastercore_dex.h.

typedef std::map<string, CMPCrowd> mastercore::CrowdMap

Definition at line 489 of file mastercore_sp.h.

typedef std::map< XDOUBLE , md_Set > mastercore::md_PricesMap

Definition at line 277 of file mastercore_dex.h.

typedef std::map< unsigned int, md_PricesMap > mastercore::md_PropertiesMap

Definition at line 278 of file mastercore_dex.h.

Definition at line 274 of file mastercore_dex.h.

typedef std::pair< uint64_t, uint64_t > mastercore::MetaDExTypePrice

Definition at line 264 of file mastercore_dex.h.

typedef std::map<string, CMPOffer> mastercore::OfferMap

Definition at line 258 of file mastercore_dex.h.

Definition at line 509 of file mastercore.h.

Function Documentation

char * mastercore::c_strMasterProtocolTXType ( int  i)
char * mastercore::c_strPropertyType ( int  i)

Definition at line 577 of file mastercore_sp.cpp.

References MSC_PROPERTY_TYPE_DIVISIBLE, and MSC_PROPERTY_TYPE_INDIVISIBLE.

Referenced by CMPTransaction::step2_SmartProperty().

+ Here is the caller graph for this function:

int mastercore::calculateFractional ( unsigned short int  propType,
unsigned char  bonusPerc,
uint64_t  fundraiserSecs,
uint64_t  numProps,
unsigned char  issuerPerc,
const std::map< std::string, std::vector< uint64_t > >  txFundraiserData,
const uint64_t  amountPremined 
)

Definition at line 323 of file mastercore_sp.cpp.

References MSC_PROPERTY_TYPE_DIVISIBLE.

Referenced by eraseExpiredCrowdsale(), and CMPTransaction::interpretPacket().

+ Here is the caller graph for this function:

bool mastercore::checkExpiredAlerts ( unsigned int  curBlock,
uint64_t  curTime 
)

Definition at line 535 of file mastercore.cpp.

References chainActive, GetBoolArg(), global_alert_message, CChain::Height(), isTransactionTypeAllowed(), OMNI_PROPERTY_MSC, OMNICORE_VERSION_BASE, and StartShutdown().

Referenced by mastercore_handler_block_end(), and CMPTxList::setLastAlert().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore::ClassB_send ( const string &  senderAddress,
const string &  receiverAddress,
const string &  redemptionAddress,
const vector< unsigned char > &  data,
uint256 txid,
int64_t  additional = 0 
)
int mastercore::DEx_acceptCreate ( const string &  buyer,
const string &  seller,
int  prop,
uint64_t  nValue,
int  block,
uint64_t  fee_paid,
uint64_t *  nAmended = NULL 
)

Definition at line 515 of file mastercore_dex.cpp.

References ACCEPT_RESERVE, DEX_ERROR_ACCEPT, DEx_getAccept(), CMPOffer::getBlockTimeLimit(), CMPOffer::getBTCDesiredOriginal(), CMPOffer::getHash(), base_uint< BITS >::GetHex(), CMPOffer::getMinFee(), getMPbalance(), CMPOffer::getOfferAmountOriginal(), CMPOffer::getProperty(), msc_debug_dex, my_accepts, my_offers, SELLOFFER_RESERVE, STR_ACCEPT_ADDR_PROP_ADDR_COMBO, STR_SELLOFFER_ADDR_PROP_COMBO, and update_tally_map().

Referenced by CMPTransaction::logicMath_AcceptOffer_BTC().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore::DEx_acceptDestroy ( const string &  buyer,
const string &  seller,
int  prop,
bool  bForceErase = false 
)

Definition at line 574 of file mastercore_dex.cpp.

References ACCEPT_RESERVE, BALANCE, DEX_ERROR_ACCEPT, DEx_getAccept(), DEx_getOffer(), CMPAccept::getAcceptAmountRemaining(), CMPOffer::getHash(), CMPAccept::getHash(), base_uint< BITS >::GetHex(), my_accepts, SELLOFFER_RESERVE, STR_ACCEPT_ADDR_PROP_ADDR_COMBO, and update_tally_map().

Referenced by DEx_payment(), and eraseExpiredAccepts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CMPAccept * mastercore::DEx_getAccept ( const string &  seller_addr,
unsigned int  prop,
const string &  buyer_addr 
)

Definition at line 412 of file mastercore_dex.cpp.

References msc_debug_dex, my_accepts, and STR_ACCEPT_ADDR_PROP_ADDR_COMBO.

Referenced by DEx_acceptCreate(), DEx_acceptDestroy(), and DEx_payment().

+ Here is the caller graph for this function:

CMPOffer * mastercore::DEx_getOffer ( const string &  seller_addr,
unsigned int  prop 
)

Definition at line 400 of file mastercore_dex.cpp.

References msc_debug_dex, my_offers, and STR_SELLOFFER_ADDR_PROP_COMBO.

Referenced by DEx_acceptDestroy(), and DEx_offerCreate().

+ Here is the caller graph for this function:

int mastercore::DEx_offerCreate ( string  seller_addr,
unsigned int  prop,
uint64_t  nValue,
int  block,
uint64_t  amount_desired,
uint64_t  fee,
unsigned char  btl,
const uint256 txid,
uint64_t *  nAmended = NULL 
)

Definition at line 424 of file mastercore_dex.cpp.

References BALANCE, DEX_ERROR_SELLOFFER, DEx_getOffer(), getMPbalance(), msc_debug_dex, my_offers, rounduint64(), SELLOFFER_RESERVE, STR_SELLOFFER_ADDR_PROP_COMBO, and update_tally_map().

Referenced by DEx_offerUpdate(), and CMPTransaction::logicMath_TradeOffer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore::DEx_offerDestroy ( const string &  seller_addr,
unsigned int  prop 
)

Definition at line 468 of file mastercore_dex.cpp.

References BALANCE, DEX_ERROR_SELLOFFER, DEx_offerExists(), getMPbalance(), msc_debug_dex, my_offers, SELLOFFER_RESERVE, STR_SELLOFFER_ADDR_PROP_COMBO, and update_tally_map().

Referenced by DEx_offerUpdate(), DEx_payment(), and CMPTransaction::logicMath_TradeOffer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool mastercore::DEx_offerExists ( const string &  seller_addr,
unsigned int  prop 
)

Definition at line 389 of file mastercore_dex.cpp.

References my_offers, and STR_SELLOFFER_ADDR_PROP_COMBO.

Referenced by DEx_offerDestroy(), DEx_offerUpdate(), and CMPTransaction::logicMath_TradeOffer().

+ Here is the caller graph for this function:

int mastercore::DEx_offerUpdate ( const string &  seller_addr,
unsigned int  prop,
uint64_t  nValue,
int  block,
uint64_t  desired,
uint64_t  fee,
unsigned char  btl,
const uint256 txid,
uint64_t *  nAmended = NULL 
)

Definition at line 496 of file mastercore_dex.cpp.

References DEX_ERROR_SELLOFFER, DEx_offerCreate(), DEx_offerDestroy(), and DEx_offerExists().

Referenced by CMPTransaction::logicMath_TradeOffer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore::DEx_payment ( uint256  txid,
unsigned int  vout,
string  seller,
string  buyer,
uint64_t  BTC_paid,
int  blockNow,
uint64_t *  nAmended = NULL 
)

Definition at line 639 of file mastercore_dex.cpp.

References ACCEPT_RESERVE, BALANCE, DEx_acceptDestroy(), DEX_ERROR_PAYMENT, DEx_getAccept(), DEx_offerDestroy(), CMPAccept::getAcceptAmountRemaining(), CMPAccept::getBTCDesiredOriginal(), getMPbalance(), CMPAccept::getOfferAmountOriginal(), msc_debug_dex, OMNI_PROPERTY_MSC, OMNI_PROPERTY_TMSC, p_txlistdb, CMPTxList::recordPaymentTX(), CMPAccept::reduceAcceptAmountRemaining_andIsZero(), rounduint64(), SELLOFFER_RESERVE, and update_tally_map().

Referenced by parseTransaction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mastercore::dumpCrowdsaleInfo ( const string &  address,
CMPCrowd crowd,
bool  bExpired = false 
)

Definition at line 297 of file mastercore_sp.cpp.

References DateTimeStrFormat(), GetDataDir(), GetTime(), INFO_FILENAME, and CMPCrowd::print().

Referenced by eraseExpiredCrowdsale(), eraseMaxedCrowdsale(), and CMPTransaction::interpretPacket().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned int mastercore::eraseExpiredCrowdsale ( CBlockIndex const *  pBlockIndex)

Definition at line 514 of file mastercore_sp.cpp.

References _my_sps, BALANCE, calculateFractional(), CMPSPInfo::Entry::deadline, dumpCrowdsaleInfo(), CMPSPInfo::Entry::early_bird, CBlockIndex::GetBlockHash(), CBlockIndex::GetBlockTime(), CMPCrowd::getDatabase(), CMPCrowd::getDeadline(), CMPCrowd::getIssuerCreated(), CMPCrowd::getPropertyId(), CMPSPInfo::getSP(), CMPSPInfo::Entry::historicalData, CMPSPInfo::Entry::issuer, CMPSPInfo::Entry::missedTokens, my_crowds, CMPSPInfo::Entry::num_tokens, CMPSPInfo::Entry::percentage, CMPSPInfo::Entry::prop_type, CMPSPInfo::Entry::update_block, update_tally_map(), and CMPSPInfo::updateSP().

Referenced by mastercore_handler_block_begin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mastercore::eraseMaxedCrowdsale ( const string &  address,
uint64_t  blockTime,
int  block 
)

Definition at line 482 of file mastercore_sp.cpp.

References _my_sps, chainActive, CMPSPInfo::Entry::close_early, dumpCrowdsaleInfo(), CMPCrowd::getDatabase(), CMPCrowd::getPropertyId(), CMPSPInfo::getSP(), CMPSPInfo::Entry::historicalData, CMPSPInfo::Entry::max_tokens, my_crowds, CMPSPInfo::Entry::timeclosed, CMPSPInfo::Entry::update_block, and CMPSPInfo::updateSP().

Referenced by CMPTransaction::logicMath_SimpleSend().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string mastercore::FormatIndivisibleMP ( int64_t  n)

Definition at line 343 of file mastercore.cpp.

References strprintf.

Referenced by BalanceToJSON(), MatrixModel::fillin(), FormatMP(), getinfo_MP(), CMPTradeList::getMatchingTrades(), CMPSTOList::getRecipients(), SendMPDialog::sendMPTransaction(), and SendMPDialog::updateBalances().

+ Here is the caller graph for this function:

md_Set * mastercore::get_Indexes ( md_PricesMap p,
XDOUBLE  price 
)

Definition at line 74 of file mastercore_dex.cpp.

Referenced by input_mp_offers_string(), and MetaDEx_ADD().

+ Here is the caller graph for this function:

md_PricesMap * mastercore::get_Prices ( unsigned int  prop)

Definition at line 65 of file mastercore_dex.cpp.

References metadex.

Referenced by input_mp_offers_string(), MetaDEx_ADD(), MetaDEx_CANCEL_ALL_FOR_PAIR(), MetaDEx_CANCEL_AT_PRICE(), and x_Trade().

+ Here is the caller graph for this function:

CMPCrowd * mastercore::getCrowd ( const string &  address)

Definition at line 259 of file mastercore_sp.cpp.

References my_crowds.

Referenced by CMPTransaction::interpretPacket(), isCrowdsalePurchase(), and CMPTransaction::logicMath_SimpleSend().

+ Here is the caller graph for this function:

int mastercore::GetHeight ( void  )

Definition at line 160 of file mastercore.cpp.

References chainActive, cs_main, CChain::Height(), LOCK, and nBlockTop.

Referenced by ConnectTip(), DisconnectTip(), isMPinBlockRange(), listblocktransactions_MP(), msc_initial_scan(), mscrpc(), populateRPCTransactionObject(), RegisterNodeSignals(), UnregisterNodeSignals(), and writePersistence().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32_t mastercore::GetLatestBlockTime ( void  )

Definition at line 168 of file mastercore.cpp.

References chainActive, cs_main, CChainParams::GenesisBlock(), CBlockIndex::GetBlockTime(), LOCK, CBlockHeader::nTime, Params(), and CChain::Tip().

Referenced by SendMPDialog::sendMPTransaction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string mastercore::getMasterCoreAlertString ( )

Definition at line 530 of file mastercore.cpp.

References global_alert_message.

Referenced by getinfo_MP(), and OverviewPage::updateAlerts().

+ Here is the caller graph for this function:

string mastercore::getPropertyName ( unsigned int  propertyId)

Definition at line 278 of file mastercore_sp.cpp.

References _my_sps, CMPSPInfo::getSP(), and CMPSPInfo::Entry::name.

Referenced by BalancesView::BalancesView(), MatrixModel::fillin(), SendMPDialog::SendMPDialog(), SendMPDialog::sendMPTransaction(), and OverviewPage::setBalance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CMPTally * mastercore::getTally ( const string &  address)

Definition at line 425 of file mastercore.cpp.

References LOCK, and mp_tally_map.

Referenced by getallbalancesforaddress_MP().

+ Here is the caller graph for this function:

int64_t mastercore::getTotalTokens ( unsigned int  propertyId,
int64_t *  n_owners_total = NULL 
)

Definition at line 646 of file mastercore.cpp.

References _my_sps, ACCEPT_RESERVE, BALANCE, CMPSPInfo::Entry::fixed, getMPbalance(), CMPSPInfo::getSP(), LOCK, METADEX_RESERVE, mp_tally_map, and SELLOFFER_RESERVE.

Referenced by getcrowdsale_MP(), getgrants_MP(), getproperty_MP(), CMPTransaction::logicMath_SendToOwners(), CMPTransaction::logicMath_SimpleSend(), and populateRPCTransactionObject().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool mastercore::getValidMPTX ( const uint256 txid,
int block = NULL,
unsigned int type = NULL,
uint64_t *  nAmended = NULL 
)

Definition at line 3913 of file mastercore.cpp.

References atoi(), CMPTxList::getTX(), p_txlistdb, and CMPTxList::printStats().

Referenced by populateRPCTransactionObject().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static bool mastercore::isBigEndian ( )
static

Definition at line 10 of file mastercore_convert.cpp.

Referenced by swapByteOrder16(), swapByteOrder32(), and swapByteOrder64().

+ Here is the caller graph for this function:

template<class T >
bool mastercore::IsBlockInterval ( value,
typename boost::enable_if< boost::is_arithmetic< T > >::type *  dummy = 0 
)
inline

Checks whether the value describes an interval measured in blocks.

Definition at line 63 of file mastercore_values.h.

Referenced by IsBlockInterval().

+ Here is the caller graph for this function:

bool mastercore::IsBlockInterval ( const char *  pzn)
inline

Checks whether the value describes an interval measured in blocks.

Definition at line 69 of file mastercore_values.h.

References atoi(), and IsBlockInterval().

+ Here is the call graph for this function:

bool mastercore::IsBlockInterval ( const std::string &  str)
inline

Checks whether the value describes an interval measured in blocks.

Definition at line 70 of file mastercore_values.h.

References IsBlockInterval().

+ Here is the call graph for this function:

bool mastercore::isCrowdsaleActive ( unsigned int  propertyId)

Definition at line 285 of file mastercore_sp.cpp.

References CMPCrowd::getPropertyId(), and my_crowds.

Referenced by getcrowdsale_MP().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool mastercore::isCrowdsalePurchase ( uint256  txid,
string  address,
int64_t *  propertyId = NULL,
int64_t *  userTokens = NULL,
int64_t *  issuerTokens = NULL 
)

Definition at line 391 of file mastercore_sp.cpp.

References _my_sps, getCrowd(), CMPCrowd::getDatabase(), base_uint< BITS >::GetHex(), CMPCrowd::getPropertyId(), CMPSPInfo::getSP(), CMPSPInfo::Entry::historicalData, CMPSPInfo::Entry::issuer, CMPSPInfo::peekNextSPID(), and TEST_ECO_PROPERTY_1.

Referenced by populateRPCTransactionObject().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class T >
bool mastercore::IsDexAction ( value,
typename boost::enable_if< boost::is_arithmetic< T > >::type *  dummy = 0 
)
inline

Checks whether the value describes an action of the distributed exchange.

Definition at line 78 of file mastercore_values.h.

Referenced by IsDexAction(), and IsSubAction().

+ Here is the caller graph for this function:

bool mastercore::IsDexAction ( const char *  pzn)
inline

Checks whether the value describes an action of the distributed exchange.

Definition at line 88 of file mastercore_values.h.

References atoi(), and IsDexAction().

+ Here is the call graph for this function:

bool mastercore::IsDexAction ( const std::string &  str)
inline

Checks whether the value describes an action of the distributed exchange.

Definition at line 89 of file mastercore_values.h.

References IsDexAction().

+ Here is the call graph for this function:

template<class T >
bool mastercore::IsDivisibleAmount ( value,
typename boost::enable_if< boost::is_arithmetic< T > >::type *  dummy = 0 
)
inline

Checks whether the value describes a divisible amount.

Definition at line 168 of file mastercore_values.h.

Referenced by IsDivisibleAmount(), and IsTokenAmount().

+ Here is the caller graph for this function:

bool mastercore::IsDivisibleAmount ( const char *  pzn)
inline

Checks whether the value describes a divisible amount.

Definition at line 174 of file mastercore_values.h.

References IsDivisibleAmount().

+ Here is the call graph for this function:

bool mastercore::IsDivisibleAmount ( const std::string &  str)
inline

Checks whether the value describes a divisible amount.

Definition at line 175 of file mastercore_values.h.

References IsDivisibleAmount().

+ Here is the call graph for this function:

template<class T >
bool mastercore::IsEcosystem ( value,
typename boost::enable_if< boost::is_arithmetic< T > >::type *  dummy = 0 
)
inline

Checks whether the value describes an ecosystem.

Definition at line 48 of file mastercore_values.h.

Referenced by IsEcosystem().

+ Here is the caller graph for this function:

bool mastercore::IsEcosystem ( const char *  pzn)
inline

Checks whether the value describes an ecosystem.

Definition at line 54 of file mastercore_values.h.

References atoi(), and IsEcosystem().

+ Here is the call graph for this function:

bool mastercore::IsEcosystem ( const std::string &  str)
inline

Checks whether the value describes an ecosystem.

Definition at line 55 of file mastercore_values.h.

References IsEcosystem().

+ Here is the call graph for this function:

template<class T >
bool mastercore::IsIndivisibleAmount ( value,
typename boost::enable_if< boost::is_arithmetic< T > >::type *  dummy = 0 
)
inline

Checks whether the value describes an indivisible amount.

Definition at line 183 of file mastercore_values.h.

Referenced by IsIndivisibleAmount(), and IsTokenAmount().

+ Here is the caller graph for this function:

bool mastercore::IsIndivisibleAmount ( const char *  pzn)
inline

Checks whether the value describes an indivisible amount.

Definition at line 189 of file mastercore_values.h.

References IsIndivisibleAmount().

+ Here is the call graph for this function:

bool mastercore::IsIndivisibleAmount ( const std::string &  str)
inline

Checks whether the value describes an indivisible amount.

Definition at line 190 of file mastercore_values.h.

References IsIndivisibleAmount().

+ Here is the call graph for this function:

bool mastercore::isMainEcosystemProperty ( unsigned int  property)

Definition at line 502 of file mastercore.cpp.

References isTestEcosystemProperty(), and OMNI_PROPERTY_BTC.

+ Here is the call graph for this function:

template<class T >
bool mastercore::IsMetaDexAction ( value,
typename boost::enable_if< boost::is_arithmetic< T > >::type *  dummy = 0 
)
inline

Checks whether the value describes an action of the distributed token exchange.

Definition at line 97 of file mastercore_values.h.

Referenced by IsMetaDexAction(), and IsSubAction().

+ Here is the caller graph for this function:

bool mastercore::IsMetaDexAction ( const char *  pzn)
inline

Checks whether the value describes an action of the distributed token exchange.

Definition at line 108 of file mastercore_values.h.

References atoi(), and IsMetaDexAction().

+ Here is the call graph for this function:

bool mastercore::IsMetaDexAction ( const std::string &  str)
inline

Checks whether the value describes an action of the distributed token exchange.

Definition at line 109 of file mastercore_values.h.

References IsMetaDexAction().

+ Here is the call graph for this function:

bool mastercore::isMetaDExOfferActive ( const uint256  txid,
unsigned int  propertyId 
)

Definition at line 509 of file mastercore.cpp.

References CMPMetaDEx::getHash(), base_uint< BITS >::GetHex(), and metadex.

Referenced by gettrade_MP().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool mastercore::isMPinBlockRange ( int  starting_block,
int  ending_block,
bool  bDeleteFound 
)

Definition at line 3897 of file mastercore.cpp.

References GetHeight(), CMPTxList::isMPinBlockRange(), and p_txlistdb.

Referenced by mscrpc().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool mastercore::isPropertyDivisible ( unsigned int  propertyId)

Definition at line 268 of file mastercore_sp.cpp.

References _my_sps, CMPSPInfo::getSP(), and CMPSPInfo::Entry::isDivisible().

Referenced by MatrixModel::fillin(), FormatMP(), getallbalancesforaddress_MP(), getallbalancesforid_MP(), getbalance_MP(), CMPTradeList::getMatchingTrades(), CMPSTOList::getRecipients(), CMPTransaction::logicMath_SimpleSend(), mscrpc(), populateRPCTransactionObject(), SendMPDialog::SendMPDialog(), SendMPDialog::sendMPTransaction(), OverviewPage::setBalance(), SendMPDialog::updateBalances(), and SendMPDialog::updateProperty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class T >
bool mastercore::IsPropertyId ( value,
typename boost::enable_if< boost::is_arithmetic< T > >::type *  dummy = 0 
)
inline

Checks whether the value describes a property identifier.

Definition at line 153 of file mastercore_values.h.

Referenced by IsPropertyId().

+ Here is the caller graph for this function:

bool mastercore::IsPropertyId ( const char *  pzn)
inline

Checks whether the value describes a property identifier.

Definition at line 159 of file mastercore_values.h.

References atoi(), and IsPropertyId().

+ Here is the call graph for this function:

bool mastercore::IsPropertyId ( const std::string &  str)
inline

Checks whether the value describes a property identifier.

Definition at line 160 of file mastercore_values.h.

References IsPropertyId().

+ Here is the call graph for this function:

template<class T >
bool mastercore::IsPropertyType ( value,
typename boost::enable_if< boost::is_arithmetic< T > >::type *  dummy = 0 
)
inline

Checks whether the value describes a property type.

Definition at line 131 of file mastercore_values.h.

Referenced by IsPropertyType().

+ Here is the caller graph for this function:

bool mastercore::IsPropertyType ( const char *  pzn)
inline

Checks whether the value describes a property type.

Definition at line 144 of file mastercore_values.h.

References atoi(), and IsPropertyType().

+ Here is the call graph for this function:

bool mastercore::IsPropertyType ( const std::string &  str)
inline

Checks whether the value describes a property type.

Definition at line 145 of file mastercore_values.h.

References IsPropertyType().

+ Here is the call graph for this function:

template<class T >
bool mastercore::IsSubAction ( value,
typename boost::enable_if< boost::is_arithmetic< T > >::type *  dummy = 0 
)
inline

Checks whether the value describes a subaction.

Definition at line 117 of file mastercore_values.h.

References IsDexAction(), and IsMetaDexAction().

Referenced by IsSubAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool mastercore::IsSubAction ( const char *  pzn)
inline

Checks whether the value describes a subaction.

Definition at line 122 of file mastercore_values.h.

References atoi(), and IsSubAction().

+ Here is the call graph for this function:

bool mastercore::IsSubAction ( const std::string &  str)
inline

Checks whether the value describes a subaction.

Definition at line 123 of file mastercore_values.h.

References IsSubAction().

+ Here is the call graph for this function:

bool mastercore::isTestEcosystemProperty ( unsigned int  property)

Definition at line 495 of file mastercore.cpp.

References OMNI_PROPERTY_TMSC, and TEST_ECO_PROPERTY_1.

Referenced by isMainEcosystemProperty(), isTransactionTypeAllowed(), CMPTransaction::logicMath_MetaDEx(), CMPTransaction::logicMath_SendToOwners(), and MetaDexObjectToJSON().

+ Here is the caller graph for this function:

template<class T >
bool mastercore::IsTokenAmount ( value,
typename boost::enable_if< boost::is_arithmetic< T > >::type *  dummy = 0 
)
inline

Checks whether the value describes either a divisible or indivisible amount.

Definition at line 198 of file mastercore_values.h.

References IsDivisibleAmount(), and IsIndivisibleAmount().

Referenced by IsTokenAmount().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool mastercore::IsTokenAmount ( const char *  pzn)
inline

Checks whether the value describes either a divisible or indivisible amount.

Definition at line 203 of file mastercore_values.h.

References IsTokenAmount().

+ Here is the call graph for this function:

bool mastercore::IsTokenAmount ( const std::string &  str)
inline

Checks whether the value describes either a divisible or indivisible amount.

Definition at line 204 of file mastercore_values.h.

References IsTokenAmount().

+ Here is the call graph for this function:

bool mastercore::isTransactionTypeAllowed ( int  txBlock,
unsigned int  txProperty,
unsigned int  txType,
unsigned short  version,
bool  bAllowNullProperty = false 
)

Definition at line 859 of file mastercore.cpp.

References isNonMainNet(), isTestEcosystemProperty(), OMNI_PROPERTY_BTC, and txRestrictionsRules.

Referenced by checkExpiredAlerts(), CMPTransaction::logicMath_ChangeIssuer(), CMPTransaction::logicMath_GrantTokens(), CMPTransaction::logicMath_MetaDEx(), CMPTransaction::logicMath_RevokeTokens(), CMPTransaction::logicMath_SendToOwners(), CMPTransaction::logicMath_SimpleSend(), CMPTransaction::logicMath_TradeOffer(), and CMPTransaction::step2_SmartProperty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore::MetaDEx_ADD ( const string &  sender_addr,
unsigned int  prop,
uint64_t  amount,
int  block,
unsigned int  property_desired,
uint64_t  amount_desired,
const uint256 txid,
unsigned int  idx 
)

Definition at line 749 of file mastercore_dex.cpp.

References CMPTransaction::ADD, BALANCE, DISPLAY_PRECISION_LEN, CMPMetaDEx::effectivePrice(), get_Indexes(), get_Prices(), CMPMetaDEx::getAmountForSale(), metadex, MetaDEx_debug_print(), METADEX_ERROR, METADEX_RESERVE, OMNI_PROPERTY_MSC, OMNI_PROPERTY_TMSC, PriceCheck(), CMPMetaDEx::ToString(), update_tally_map(), and x_Trade().

Referenced by CMPTransaction::logicMath_MetaDEx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore::MetaDEx_CANCEL_ALL_FOR_PAIR ( const uint256  txid,
unsigned int  block,
const string &  sender_addr,
unsigned int  prop,
unsigned int  property_desired 
)

Definition at line 902 of file mastercore_dex.cpp.

References BALANCE, get_Prices(), CMPMetaDEx::getAddr(), CMPMetaDEx::getAmountForSale(), CMPMetaDEx::getDesProperty(), CMPMetaDEx::getHash(), CMPMetaDEx::getProperty(), MetaDEx_debug_print(), METADEX_ERROR, METADEX_RESERVE, p_txlistdb, CMPTxList::recordMetaDExCancelTX(), CMPMetaDEx::ToString(), and update_tally_map().

Referenced by CMPTransaction::logicMath_MetaDEx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore::MetaDEx_CANCEL_AT_PRICE ( const uint256  txid,
unsigned int  block,
const string &  sender_addr,
unsigned int  prop,
uint64_t  amount,
unsigned int  property_desired,
uint64_t  amount_desired 
)

Definition at line 844 of file mastercore_dex.cpp.

References BALANCE, CMPTransaction::CANCEL_AT_PRICE, CMPMetaDEx::effectivePrice(), get_Prices(), CMPMetaDEx::getAddr(), CMPMetaDEx::getAmountForSale(), CMPMetaDEx::getDesProperty(), CMPMetaDEx::getHash(), CMPMetaDEx::getProperty(), MetaDEx_debug_print(), METADEX_ERROR, METADEX_RESERVE, p_txlistdb, CMPTxList::recordMetaDExCancelTX(), CMPMetaDEx::ToString(), and update_tally_map().

Referenced by CMPTransaction::logicMath_MetaDEx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore::MetaDEx_CANCEL_EVERYTHING ( const uint256  txid,
unsigned int  block,
const string &  sender_addr 
)

Definition at line 956 of file mastercore_dex.cpp.

References BALANCE, DISPLAY_PRECISION_LEN, metadex, MetaDEx_debug_print(), METADEX_ERROR, METADEX_RESERVE, p_txlistdb, CMPTxList::recordMetaDExCancelTX(), and update_tally_map().

Referenced by CMPTransaction::logicMath_MetaDEx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mastercore::MetaDEx_debug_print ( bool  bShowPriceLevel = false,
bool  bDisplay = false 
)

Definition at line 327 of file mastercore_dex.cpp.

References DISPLAY_PRECISION_LEN, metadex, and CMPMetaDEx::ToString().

Referenced by MetaDEx_ADD(), MetaDEx_CANCEL_ALL_FOR_PAIR(), MetaDEx_CANCEL_AT_PRICE(), MetaDEx_CANCEL_EVERYTHING(), and mscrpc().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint64_t mastercore::rounduint64 ( long  double)

Converts numbers to 64 bit wide unsigned integer whereby any signedness is ignored.

If absolute value of the number is greater or equal than .5, then the result is rounded up and down otherwise.

Definition at line 21 of file mastercore_convert.cpp.

Referenced by calculate_and_update_devmsc(), DEx_offerCreate(), DEx_payment(), and getactivedexsells_MP().

+ Here is the caller graph for this function:

uint256 mastercore::send_INTERNAL_1packet ( const string &  FromAddress,
const string &  ToAddress,
const string &  RedeemAddress,
unsigned int  PropertyID,
uint64_t  Amount,
unsigned int  PropertyID_2,
uint64_t  Amount_2,
unsigned int  TransactionType,
int64_t  additional,
int error_code = NULL 
)

Definition at line 2918 of file mastercore.cpp.

References BALANCE, CMPTransaction::CANCEL_ALL_FOR_PAIR, CMPTransaction::CANCEL_AT_PRICE, CMPTransaction::CANCEL_EVERYTHING, ClassB_send(), Checkpoints::data, getMPbalance(), getUserAvailableMPbalance(), isRangeOK(), LogPrintf, MP_INPUT_NOT_IN_RANGE, MP_INSUF_FUNDS_APENDI, MP_INSUF_FUNDS_BPENDI, MSC_TYPE_METADEX, pendingAdd(), PUSH_BACK_BYTES, swapByteOrder32(), and swapByteOrder64().

Referenced by send_MP(), SendMPDialog::sendMPTransaction(), and sendtoowners_MP().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore::set_wallet_totals ( )

Definition at line 943 of file mastercore.cpp.

References _my_sps, ACCEPT_RESERVE, getMPbalance(), getUserAvailableMPbalance(), global_balance_money_maineco, global_balance_money_testeco, global_balance_reserved_maineco, global_balance_reserved_testeco, IsMyAddress(), METADEX_RESERVE, mp_tally_map, CMPSPInfo::peekNextSPID(), SELLOFFER_RESERVE, and TEST_ECO_PROPERTY_1.

Referenced by BalancesView::BalancesView(), MatrixModel::fillin(), mastercore_handler_block_end(), SendMPDialog::sendMPTransaction(), OverviewPage::setBalance(), SendMPDialog::updateFrom(), and SendMPDialog::updateProperty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

string mastercore::strMPProperty ( unsigned int  i)

Definition at line 298 of file mastercore.cpp.

References OMNI_PROPERTY_BTC, OMNI_PROPERTY_MSC, OMNI_PROPERTY_TMSC, and strprintf.

Referenced by CMPTransaction::logicMath_MetaDEx(), CMPTransaction::logicMath_SendToOwners(), CMPTransaction::step2_SmartProperty(), CMPTransaction::step2_Value(), and CMPTransaction::step3_sp_variable().

+ Here is the caller graph for this function:

int64_t mastercore::StrToInt64 ( const std::string &  str,
bool  divisible 
)

Definition at line 11 of file mastercore_parse_string.cpp.

Referenced by send_MP(), SendMPDialog::sendMPTransaction(), sendrawtx_MP(), and sendtoowners_MP().

+ Here is the caller graph for this function:

void mastercore::swapByteOrder16 ( uint16_t &  )

Swaps byte order on little-endian systems and does nothing otherwise.

swapByteOrder cycles on LE systems.

Definition at line 26 of file mastercore_convert.cpp.

References isBigEndian().

Referenced by CMPTransaction::step1(), and CMPTransaction::step2_SmartProperty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mastercore::swapByteOrder32 ( uint32_t &  ui)

Definition at line 34 of file mastercore_convert.cpp.

References isBigEndian().

Referenced by CMPTransaction::interpretPacket(), CMPTransaction::logicMath_MetaDEx(), send_INTERNAL_1packet(), CMPTransaction::step1(), CMPTransaction::step2_SmartProperty(), CMPTransaction::step2_Value(), and CMPTransaction::step3_sp_variable().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mastercore::swapByteOrder64 ( uint64_t &  ull)

Definition at line 44 of file mastercore_convert.cpp.

References isBigEndian().

Referenced by CMPTransaction::logicMath_MetaDEx(), CMPTransaction::logicMath_TradeOffer(), send_INTERNAL_1packet(), CMPTransaction::step2_Value(), CMPTransaction::step3_sp_fixed(), and CMPTransaction::step3_sp_variable().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool mastercore::update_tally_map ( string  who,
unsigned int  which_currency,
int64_t  amount,
TallyType  ttype 
)

Variable Documentation

CMPSPInfo * mastercore::_my_sps
const long double mastercore::AMOUNT_DIVISIBLE_MAX = 92233720368.54775807L

Maximum divisible amount.

Definition at line 41 of file mastercore_values.h.

const long double mastercore::AMOUNT_DIVISIBLE_MIN = 0.00000001L

Minimum divisible amount.

Definition at line 40 of file mastercore_values.h.

const uint64_t mastercore::AMOUNT_INDIVISIBLE_MAX = 9223372036854775807

Maximum indivisible amount.

Definition at line 38 of file mastercore_values.h.

const uint64_t mastercore::AMOUNT_INDIVISIBLE_MIN = 1

Minimum indivisible amount.

Definition at line 37 of file mastercore_values.h.

const uint8_t mastercore::BLOCK_INTERVAL_MAX = 255

Maximum interval measured in blocks.

Definition at line 16 of file mastercore_values.h.

const uint8_t mastercore::BLOCK_INTERVAL_MIN = 1

Minimum interval measured in blocks.

Definition at line 15 of file mastercore_values.h.

const uint8_t mastercore::DEX_ACTION_CANCEL = 3

Cancel offer action value.

Definition at line 20 of file mastercore_values.h.

const uint8_t mastercore::DEX_ACTION_NEW = 1

New offer action value.

Definition at line 18 of file mastercore_values.h.

const uint8_t mastercore::DEX_ACTION_UPDATE = 2

Update offer action value.

Definition at line 19 of file mastercore_values.h.

const uint8_t mastercore::ECOSYSTEM_MAIN = 1

Main ecosystem value.

Definition at line 12 of file mastercore_values.h.

const uint8_t mastercore::ECOSYSTEM_TEST = 2

Test ecosystem value.

Definition at line 13 of file mastercore_values.h.

const uint8_t mastercore::MDEX_ACTION_ADD = 1

Add offer action value.

Definition at line 22 of file mastercore_values.h.

const uint8_t mastercore::MDEX_ACTION_CANCEL_ALL_FOR_PAIR = 3

Cancel all offers of property pair action value.

Definition at line 24 of file mastercore_values.h.

const uint8_t mastercore::MDEX_ACTION_CANCEL_AT_PRICE = 2

Cancel offers at price action value.

Definition at line 23 of file mastercore_values.h.

const uint8_t mastercore::MDEX_ACTION_CANCEL_CANCEL_EVERYTHING = 4

Cancel every offer action value.

Definition at line 25 of file mastercore_values.h.

md_PropertiesMap mastercore::metadex
std::map< string, CMPTally > mastercore::mp_tally_map
AcceptMap mastercore::my_accepts
CrowdMap mastercore::my_crowds
OfferMap mastercore::my_offers
CMPTxList * mastercore::p_txlistdb
const uint32_t mastercore::PROPERTY_ID_MAX = 4294967295

Maximum property identifier value.

Definition at line 35 of file mastercore_values.h.

const uint32_t mastercore::PROPERTY_ID_MIN = 1

Minimum property identifier value.

Definition at line 34 of file mastercore_values.h.

const uint16_t mastercore::PROPERTY_TYPE_DIVISIBLE = 2

Divisible property type.

Definition at line 28 of file mastercore_values.h.

const uint16_t mastercore::PROPERTY_TYPE_DIVISIBLE_APPENDING = 130

Indivisible property type when appending a property.

Definition at line 32 of file mastercore_values.h.

const uint16_t mastercore::PROPERTY_TYPE_DIVISIBLE_REPLACING = 66

Divisible property type when replacing a property.

Definition at line 30 of file mastercore_values.h.

const uint16_t mastercore::PROPERTY_TYPE_INDIVISIBLE = 1

Indivisible property type.

Definition at line 27 of file mastercore_values.h.

const uint16_t mastercore::PROPERTY_TYPE_INDIVISIBLE_APPENDING = 129

Indivisible property type when appending a property.

Definition at line 31 of file mastercore_values.h.

const uint16_t mastercore::PROPERTY_TYPE_INDIVISIBLE_REPLACING = 65

Indivisible property type when replacing a property.

Definition at line 29 of file mastercore_values.h.

CMPSTOList * mastercore::s_stolistdb
CMPTradeList * mastercore::t_tradelistdb