Scorum
betting_resolver.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <fc/shared_containers.hpp>
5 
6 namespace chainbase {
7 template <typename TObject> class oid;
8 }
9 namespace scorum {
10 namespace protocol {
11 struct asset;
12 enum class bet_resolve_kind : uint8_t;
13 }
14 namespace chain {
15 
16 namespace dba {
17 template <typename> class db_accessor;
18 }
19 struct data_service_factory_i;
20 struct account_service_i;
21 struct database_virtual_operations_emmiter_i;
22 
23 class dynamic_global_property_object;
24 class game_object;
25 class matched_bet_object;
26 struct bet_data;
27 
29 {
30  virtual void resolve_matched_bets(uuid_type game_uuid,
31  const fc::flat_set<protocol::wincase_type>& results) const = 0;
32 };
33 
35 {
36 public:
42 
43  void resolve_matched_bets(uuid_type game_uuid, const fc::flat_set<protocol::wincase_type>& results) const override;
44 
45 private:
46  account_service_i& _account_svc;
47  database_virtual_operations_emmiter_i& _virt_op_emitter;
48  dba::db_accessor<matched_bet_object>& _matched_bet_dba;
51 };
52 }
53 }
Definition: asset.cpp:15
boost::uuids::uuid uuid_type
Definition: types.hpp:53
virtual void resolve_matched_bets(uuid_type game_uuid, const fc::flat_set< protocol::wincase_type > &results) const =0