get_matched_bets_for_bettor: added to the wallet, fixed missing reflection

This commit is contained in:
Roman Olearski 2017-09-04 08:44:29 +02:00
parent eedd775405
commit d63a89febf
4 changed files with 11 additions and 1 deletions

View file

@ -76,7 +76,7 @@ propose_create_sport nathan "2017-05-16-T07:47:01" [["en","spce balls"], ["pl
#approve_proposal nathan 1.10.0 { "active_approvals_to_add" : [ "init0", "init1","init2", "init3", "init4", "init5", "init6", "init7", "init8", "init9", "init10"] } 1
approve_proposal nathan 1.10.0 { "active_approvals_to_add" : [ "init0", "init1"] } 1
approve_proposal nathan 1.10.1 { "active_approvals_to_add" : [ "init0", "init1"] } 1
approve_proposal nathan 1.10.12 { "active_approvals_to_add" : [ "init0", "init1"] } 1
#get_object 1.16.0
#get_object 1.16.1
@ -148,6 +148,7 @@ place_bet alice "1.21.0" 1 "123" "PPY" 200 true
place_bet carol "1.21.1" 0 "123" "PPY" 200 true
cancel_bet carol 1.22.2 1
get_unmatched_bets_for_bettor 1.21.1 1.2.22
# RESOLVE

View file

@ -82,5 +82,6 @@ FC_API(graphene::bookie::bookie_api,
(get_total_matched_bet_amount_for_betting_market_group)
(get_events_containing_sub_string)
(get_objects)
(get_matched_bets_for_bettor)
)

View file

@ -1580,6 +1580,8 @@ class wallet_api
*/
binned_order_book get_binned_order_book(graphene::chain::betting_market_id_type betting_market_id, int32_t precision);
std::vector<matched_bet_object> get_matched_bets_for_bettor(account_id_type bettor_id) 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;
@ -2020,4 +2022,5 @@ FC_API( graphene::wallet::wallet_api,
(get_total_matched_bet_amount_for_betting_market_group)
(get_events_containing_sub_string)
(get_binned_order_book)
(get_matched_bets_for_bettor)
)

View file

@ -5727,6 +5727,11 @@ binned_order_book wallet_api::get_binned_order_book(graphene::chain::betting_mar
return( my->_remote_bookie->get_binned_order_book(betting_market_id, precision) );
}
std::vector<matched_bet_object> wallet_api::get_matched_bets_for_bettor(account_id_type bettor_id) const
{
return( my->_remote_bookie->get_matched_bets_for_bettor(bettor_id) );
}
// default ctor necessary for FC_REFLECT
signed_block_with_info::signed_block_with_info( const signed_block& block )
: signed_block( block )