12 struct dynamic_global_property_service_i;
13 struct betting_property_service_i;
20 const std::string& json_metadata,
21 fc::time_point_sec start,
22 uint32_t auto_resolve_delay_sec,
24 const fc::flat_set<market_type>& markets)
27 virtual void finish(
const game_object& game,
const fc::flat_set<wincase_type>& wincases) = 0;
36 virtual std::vector<object_cref_type>
get_games(fc::time_point_sec start)
const = 0;
50 const std::string& json_metadata,
51 fc::time_point_sec start,
52 uint32_t auto_resolve_delay_sec,
54 const fc::flat_set<market_type>& markets)
override;
55 virtual void finish(
const game_object& game,
const fc::flat_set<wincase_type>& wincases)
override;
58 virtual bool is_exists(int64_t game_id)
const override;
63 virtual std::vector<object_cref_type>
get_games(fc::time_point_sec start)
const override;
tracks the blockchain state in an extensible manner
virtual void finish(const game_object &game, const fc::flat_set< wincase_type > &wincases) override
virtual const game_object & create_game(const uuid_type &uuid, const std::string &json_metadata, fc::time_point_sec start, uint32_t auto_resolve_delay_sec, const game_type &game, const fc::flat_set< market_type > &markets) override
virtual std::vector< object_cref_type > get_games(fc::time_point_sec start) const override
virtual const game_object & get_game(int64_t game_id) const override
virtual void update_markets(const game_object &game, const fc::flat_set< market_type > &markets) override
virtual bool is_exists() const override
fc::static_variant< soccer_game, hockey_game > game_type
boost::uuids::uuid uuid_type
virtual const game_object & get_game(int64_t game_id) const =0
virtual const game_object & get_game(const uuid_type &uuid) const =0
virtual bool is_exists(const uuid_type &uuid) const =0
virtual std::vector< object_cref_type > get_games(fc::time_point_sec start) const =0
virtual void update_markets(const game_object &game, const fc::flat_set< market_type > &markets)=0
virtual const game_object & create_game(const uuid_type &uuid, const std::string &json_metadata, fc::time_point_sec start, uint32_t auto_resolve_delay_sec, const game_type &game, const fc::flat_set< market_type > &markets)=0
virtual void finish(const game_object &game, const fc::flat_set< wincase_type > &wincases)=0
virtual bool is_exists(int64_t game_id) const =0