133 #ifndef OPENTXS_SERVER_TRANSACTOR_HPP
134 #define OPENTXS_SERVER_TRANSACTOR_HPP
148 class OTAssetContract;
162 bool storeNumber =
true);
173 return transactionNumber_;
178 transactionNumber_ = value;
233 typedef std::multimap<std::string, Mint*> MintsMap;
234 typedef std::map<std::string, OTAssetContract*> ContractsMap;
235 typedef std::map<std::string, std::string> BasketsMap;
239 int64_t transactionNumber_;
241 ContractsMap contractsMap_;
243 BasketsMap idToBasketMap_;
247 BasketsMap contractIdToBasketAccountId_;
258 #endif // OPENTXS_SERVER_TRANSACTOR_HPP
bool lookupBasketContractIDByAccountID(const OTIdentifier &basketAccountId, OTIdentifier &basketContractId)
bool lookupBasketAccountIDByContractID(const OTIdentifier &basketContractId, OTIdentifier &basketAccountId)
bool issueNextTransactionNumber(OTPseudonym &nym, int64_t &txNumber, bool storeNumber=true)
void transactionNumber(int64_t value)
bool verifyTransactionNumber(OTPseudonym &nym, const int64_t &transactionNumber)
int64_t transactionNumber() const
Transactor(OTServer *server)
bool lookupBasketAccountID(const OTIdentifier &basketId, OTIdentifier &basketAccountId)
std::shared_ptr< OTAccount > getVoucherAccount(const OTIdentifier &assetTypeId)
bool removeTransactionNumber(OTPseudonym &nym, const int64_t &transactionNumber, bool save=false)
Mint * getMint(const OTIdentifier &assetTypeId, int32_t seriesCount)
Lookup the current mint for any given asset type ID and series.
bool removeIssuedNumber(OTPseudonym &nym, const int64_t &transactionNumber, bool save=false)
bool addAssetContract(OTAssetContract &contract)
OTAssetContract * getAssetContract(const OTIdentifier &id)
bool addBasketAccountID(const OTIdentifier &basketId, const OTIdentifier &basketAccountId, const OTIdentifier &basketContractId)