10 #include <scorum/utils/collect_range_adaptor.hpp>
18 , _account_service(services.account_service())
19 , _dprops_service(services.dynamic_global_property_service())
21 , _game_svc(services.game_service())
22 , _uuid_hist_dba(uuid_hist_dba)
29 FC_ASSERT(!_uuid_hist_dba.is_exists_by<by_uuid>(op.
uuid),
"Game with uuid '${g}' already exists", (
"g", op.
uuid));
37 fc::flat_set<market_type> markets(op.
markets.begin(), op.
markets.end());
create_game_evaluator(data_service_factory_i &, betting_service_i &, dba::db_accessor< game_uuid_history_object > &)
void do_apply(const operation_type &op)
virtual void check_account_existence(const account_name_type &, const optional< const char * > &context_type_name=optional< const char * >()) const =0
virtual bool is_betting_moderator(const account_name_type &account_name) const =0
virtual fc::time_point_sec head_block_time() const =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
This operation creates game object.
game_type game
game type (soccer, hockey, etc ...)
std::vector< market_type > markets
list of markets
uuid_type uuid
Universal Unique Identifier which is unique for each game.
account_name_type moderator
moderator account name
time_point_sec start_time
game start time
std::string json_metadata
JSON metadata.
uint32_t auto_resolve_delay_sec
delay starting from start after which all bets are automatically resolved if game results weren't pro...