133 #ifndef OPENTXS_CORE_SCRIPT_OTSMARTCONTRACT_HPP
134 #define OPENTXS_CORE_SCRIPT_OTSMARTCONTRACT_HPP
136 #include "../AccountList.hpp"
137 #include "../cron/OTCronItem.hpp"
207 bool MoveFunds(
const mapOfNyms& map_NymsAlreadyLoaded,
208 const int64_t& lAmount,
const OTIdentifier& SOURCE_ACCT_ID,
217 const int64_t& lNewTransactionNumber,
230 m_tNextProcessDate = tNEXT_DATE;
234 return m_tNextProcessDate;
251 return m_strLastSenderUser;
255 return m_strLastSenderAcct;
259 return m_strLastRecipientUser;
263 return m_strLastRecipientAcct;
304 std::set<OTParty*>* pFailedParties =
334 bool bBurnTransNo =
false);
375 const int64_t& lClosingTransNo,
410 std::string str_Amount);
412 bool StashAcctFunds(std::string from_acct_name, std::string to_stash_name,
413 std::string str_Amount);
414 bool UnstashAcctFunds(std::string to_acct_name, std::string from_stash_name,
415 std::string str_Amount);
419 std::string asset_type_id);
463 const int64_t& lAmount,
496 #endif // OPENTXS_CORE_SCRIPT_OTSMARTCONTRACT_HPP
bool SendANoticeToAllParties()
virtual void GetAllTransactionNumbers(OTNumList &numlistOutput) const
const OTString & GetLastRecipientUserID() const
virtual void onActivate()
int32_t GetCountStashAccts() const
const OTString & GetLastSenderAcctID() const
std::string GetRemainingTimer() const
EXPORT bool StashFunds(const mapOfNyms &map_NymsAlreadyLoaded, const int64_t &lAmount, const OTIdentifier &PARTY_ACCT_ID, const OTIdentifier &PARTY_USER_ID, OTStash &theStash)
OTStash * GetStash(std::string str_stash_name)
std::string GetAssetTypeIDofAcct(std::string from_acct_name)
EXPORT bool VerifySmartContract(OTPseudonym &theNym, OTAccount &theAcct, OTPseudonym &theServerNym, bool bBurnTransNo=false)
virtual int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
virtual void onFinalReceipt(OTCronItem &theOrigCronItem, const int64_t &lNewTransactionNumber, OTPseudonym &theOriginator, OTPseudonym *pRemover)
virtual void RegisterOTNativeCallsWithScript(OTScript &theScript)
const OTString & GetLastRecipientAcctID() const
virtual void HarvestOpeningNumber(OTPseudonym &theNym)
bool CanCancelContract(std::string str_party_name)
virtual void onRemovalFromCron()
std::map< std::string, OTPseudonym * > mapOfNyms
std::string GetStashBalance(std::string stash_name, std::string asset_type_id)
std::map< std::string, OTClause * > mapOfClauses
virtual void SetDisplayLabel(const std::string *pstrLabel=nullptr)
void CloseoutOpeningNumbers(OTPseudonym *pSignerNym=nullptr)
const time64_t & GetNextProcessDate() const
virtual bool CanRemoveItemFromCron(OTPseudonym &theNym)
virtual bool ProcessCron()
void SetNextProcessDate(const time64_t &tNEXT_DATE)
EXPORT void PrepareToActivate(const int64_t &lOpeningTransNo, const int64_t &lClosingTransNo, const OTIdentifier &theUserID, const OTIdentifier &theAcctID)
virtual bool IsValidOpeningNumber(const int64_t &lOpeningNum) const
const OTString & GetLastSenderUserID() const
static void CleanupAccts(mapOfAccounts &theMap)
std::map< std::string, OTStash * > mapOfStashes
static void CleanupNyms(mapOfNyms &theMap)
std::map< std::string, OTAccount * > mapOfAccounts
int32_t GetCountStashes() const
virtual bool HasTransactionNum(const int64_t &lInput) const
virtual bool AddParty(OTParty &theParty)
virtual bool ConfirmParty(OTParty &theParty)
virtual void HarvestClosingNumbers(OTPseudonym &theNym)
void ReleaseLastSenderRecipientIDs()
void Release_SmartContract()
virtual bool Compare(OTScriptable &rhs) const
EXPORT void ExecuteClauses(mapOfClauses &theClauses, OTString *pParam=nullptr)
virtual bool SaveContractWallet(std::ofstream &ofs) const
void DeactivateSmartContract()
virtual int64_t GetOpeningNumber(const OTIdentifier &theNymID) const
virtual void UpdateContents()
void SetRemainingTimer(std::string str_seconds_from_now)
bool SendNoticeToParty(std::string party_name)
std::string GetAcctBalance(std::string from_acct_name)
bool UnstashAcctFunds(std::string to_acct_name, std::string from_stash_name, std::string str_Amount)
virtual EXPORT ~OTSmartContract()
virtual int64_t GetClosingNumber(const OTIdentifier &theAcctID) const
bool StashAcctFunds(std::string from_acct_name, std::string to_stash_name, std::string str_Amount)
bool MoveAcctFundsStr(std::string from_acct_name, std::string to_acct_name, std::string str_Amount)
EXPORT bool SetServerIDIfEmpty(const OTIdentifier &theID)