Scorum
invariants_validation.hpp
Go to the documentation of this file.
1 #pragma once
5 
6 namespace scorum {
7 namespace protocol {
8 void validate_game(const game_type& game, const fc::flat_set<market_type>& markets);
9 void validate_wincases(const fc::flat_set<wincase_type>& wincases);
10 void validate_wincase(const wincase_type& wincase);
11 void validate_if_wincase_in_game(const game_type& game, const wincase_type& wincase);
12 void validate_bet_ids(const fc::flat_set<int64_t>& bet_ids);
13 void validate_markets(const fc::flat_set<market_type>& markets);
14 
15 void validate_market(const market_type& market);
16 }
17 }
void validate_market(const market_type &market)
void validate_wincases(const fc::flat_set< wincase_type > &wincases)
void validate_game(const game_type &game, const fc::flat_set< market_type > &markets)
fc::static_variant< result_home::yes, result_home::no, result_draw::yes, result_draw::no, result_away::yes, result_away::no, round_home::yes, round_home::no, handicap::over, handicap::under, correct_score_home::yes, correct_score_home::no, correct_score_draw::yes, correct_score_draw::no, correct_score_away::yes, correct_score_away::no, correct_score::yes, correct_score::no, goal_home::yes, goal_home::no, goal_both::yes, goal_both::no, goal_away::yes, goal_away::no, total::over, total::under, total_goals_home::over, total_goals_home::under, total_goals_away::over, total_goals_away::under > wincase_type
Definition: market.hpp:128
void validate_bet_ids(const fc::flat_set< int64_t > &bet_ids)
void validate_if_wincase_in_game(const game_type &game, const wincase_type &wincase)
fc::static_variant< soccer_game, hockey_game > game_type
Definition: game.hpp:14
fc::static_variant< result_home, result_draw, result_away, round_home, handicap, correct_score_home, correct_score_draw, correct_score_away, correct_score, goal_home, goal_both, goal_away, total, total_goals_home, total_goals_away > market_type
Definition: market.hpp:97
void validate_markets(const fc::flat_set< market_type > &markets)
void validate_wincase(const wincase_type &wincase)
Definition: asset.cpp:15