added get_all_unmatched_bets_for_bettor to the wallet

This commit is contained in:
Roman Olearski 2017-09-07 13:50:08 +02:00
parent d333dd3812
commit c054a92d5e
2 changed files with 8 additions and 0 deletions

View file

@ -1582,6 +1582,8 @@ class wallet_api
std::vector<matched_bet_object> get_matched_bets_for_bettor(account_id_type bettor_id) const;
std::vector<matched_bet_object> get_all_matched_bets_for_bettor(account_id_type bettor_id, bet_id_type start = bet_id_type(), unsigned limit = 1000) const;
vector<sport_object> list_sports() const;
vector<event_group_object> list_event_groups(sport_id_type sport_id) const;
vector<betting_market_group_object> list_betting_market_groups(event_id_type event_id) const;
@ -2023,4 +2025,5 @@ FC_API( graphene::wallet::wallet_api,
(get_events_containing_sub_string)
(get_binned_order_book)
(get_matched_bets_for_bettor)
(get_all_matched_bets_for_bettor)
)

View file

@ -5732,6 +5732,11 @@ std::vector<matched_bet_object> wallet_api::get_matched_bets_for_bettor(account_
return( my->_remote_bookie->get_matched_bets_for_bettor(bettor_id) );
}
std::vector<matched_bet_object> wallet_api::get_all_matched_bets_for_bettor(account_id_type bettor_id, bet_id_type start, unsigned limit) const
{
return( my->_remote_bookie->get_all_matched_bets_for_bettor(bettor_id, start, limit) );
}
// default ctor necessary for FC_REFLECT
signed_block_with_info::signed_block_with_info( const signed_block& block )
: signed_block( block )