#ifndef __OFFERCREATETRANSACTOR__ #define __OFFERCREATETRANSACTOR__ #include "Transactor.h" class OfferCreateTransactor : public Transactor { protected: bool bValidOffer( SLE::ref sleOfferDir, const uint256& uOffer, const uint160& uOfferOwnerID, const STAmount& saOfferPays, const STAmount& saOfferGets, const uint160& uTakerAccountID, boost::unordered_set& usOfferUnfundedFound, boost::unordered_set& usOfferUnfundedBecame, boost::unordered_set& usAccountTouched, STAmount& saOfferFunds); TER takeOffers( const bool bOpenLedger, const bool bPassive, const bool bSell, const uint256& uBookBase, const uint160& uTakerAccountID, SLE::ref sleTakerAccount, const STAmount& saTakerPays, const STAmount& saTakerGets, STAmount& saTakerPaid, STAmount& saTakerGot, bool& bUnfunded); boost::unordered_set usOfferUnfundedFound; // Offers found unfunded. public: OfferCreateTransactor(const SerializedTransaction& txn,TransactionEngineParams params, TransactionEngine* engine) : Transactor(txn,params,engine) {} TER doApply(); }; #endif // vim:ts=4