From c054a92d5ea498f65badef0d54117173a0c74ac7 Mon Sep 17 00:00:00 2001 From: Roman Olearski Date: Thu, 7 Sep 2017 13:50:08 +0200 Subject: [PATCH] added get_all_unmatched_bets_for_bettor to the wallet --- libraries/wallet/include/graphene/wallet/wallet.hpp | 3 +++ libraries/wallet/wallet.cpp | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/libraries/wallet/include/graphene/wallet/wallet.hpp b/libraries/wallet/include/graphene/wallet/wallet.hpp index 126cb47c..2585b439 100644 --- a/libraries/wallet/include/graphene/wallet/wallet.hpp +++ b/libraries/wallet/include/graphene/wallet/wallet.hpp @@ -1582,6 +1582,8 @@ class wallet_api std::vector get_matched_bets_for_bettor(account_id_type bettor_id) const; + std::vector get_all_matched_bets_for_bettor(account_id_type bettor_id, bet_id_type start = bet_id_type(), unsigned limit = 1000) const; + vector list_sports() const; vector list_event_groups(sport_id_type sport_id) const; vector 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) ) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index fdc11e0b..9be0bfce 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -5732,6 +5732,11 @@ std::vector wallet_api::get_matched_bets_for_bettor(account_ return( my->_remote_bookie->get_matched_bets_for_bettor(bettor_id) ); } +std::vector 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 )