mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-13 12:33:20 +02:00
34 lines
588 B
C++
34 lines
588 B
C++
#ifndef BOSS_MOD_SWAPMANAGER_HPP
|
|
#define BOSS_MOD_SWAPMANAGER_HPP
|
|
|
|
#include<memory>
|
|
|
|
namespace S { class Bus; }
|
|
|
|
namespace Boss { namespace Mod {
|
|
|
|
/** class Boss::Mod::SwapManager
|
|
*
|
|
* @brief Handles offchain-to-onchain swaps,
|
|
* keeping information needed to track them
|
|
* in persistent storage.
|
|
*/
|
|
class SwapManager {
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> pimpl;
|
|
|
|
public:
|
|
SwapManager() =delete;
|
|
|
|
SwapManager(SwapManager&&);
|
|
SwapManager& operator=(SwapManager&&);
|
|
~SwapManager();
|
|
|
|
explicit
|
|
SwapManager(S::Bus& bus);
|
|
};
|
|
|
|
}}
|
|
|
|
#endif /* !defined(BOSS_MOD_SWAPMANAGER_HPP) */
|