15 , _guard(ctx.app.chain_database())
27 return _guard->with_read_lock([&] {
return _impl->get_game_returns(game_uuid); });
32 return _guard->with_read_lock([&] {
return _impl->get_game_winners(game_uuid); });
37 return _guard->with_read_lock([&] {
return _impl->get_games_by_status(filter); });
42 return _guard->with_read_lock([&] {
return _impl->get_games_by_uuids(uuids); });
47 return _guard->with_read_lock([&] {
return _impl->lookup_games_by_id(from, limit); });
52 return _guard->with_read_lock([&] {
return _impl->lookup_matched_bets(from, limit); });
57 return _guard->with_read_lock([&] {
return _impl->lookup_pending_bets(from, limit); });
62 return _guard->with_read_lock([&] {
return _impl->get_matched_bets(uuids); });
67 return _guard->with_read_lock([&] {
return _impl->get_pending_bets(uuids); });
72 return _guard->with_read_lock([&] {
return _impl->get_game_matched_bets(uuid); });
77 return _guard->with_read_lock([&] {
return _impl->get_game_pending_bets(uuid); });
82 return _guard->with_read_lock([&] {
return _impl->get_betting_properties(); });
betting_api(const api_context &ctx)
std::vector< pending_bet_api_object > lookup_pending_bets(chain::pending_bet_id_type from, uint32_t limit) const
Return pending bets.
std::vector< winner_api_object > get_game_winners(const uuid_type &game_uuid) const
Returns all winners for particular game.
std::vector< pending_bet_api_object > get_game_pending_bets(const uuid_type &uuid) const
Return pending bets for game.
std::vector< pending_bet_api_object > get_pending_bets(const std::vector< uuid_type > &uuids) const
Return pending bets.
std::vector< matched_bet_api_object > get_game_returns(const uuid_type &game_uuid) const
Returns bets with draw status.
std::vector< matched_bet_api_object > lookup_matched_bets(chain::matched_bet_id_type from, uint32_t limit) const
Returns matched bets.
betting_property_api_object get_betting_properties() const
Return betting properties.
std::vector< game_api_object > lookup_games_by_id(chain::game_id_type from, uint32_t limit) const
Returns games.
std::vector< game_api_object > get_games_by_uuids(const std::vector< uuid_type > &uuids) const
Returns games.
std::vector< matched_bet_api_object > get_game_matched_bets(const uuid_type &uuid) const
Returns matched bets for game.
std::vector< game_api_object > get_games_by_status(const fc::flat_set< chain::game_status > &filter) const
Returns games.
std::vector< matched_bet_api_object > get_matched_bets(const std::vector< uuid_type > &uuids) const
Returns matched bets.
boost::uuids::uuid uuid_type