add get_global_betting_statistics api call
This commit is contained in:
parent
a267741fd1
commit
c0776eb1dc
3 changed files with 13 additions and 1 deletions
|
|
@ -70,6 +70,7 @@ class database_api_impl : public std::enable_shared_from_this<database_api_impl>
|
|||
fc::variant_object get_config()const;
|
||||
chain_id_type get_chain_id()const;
|
||||
dynamic_global_property_object get_dynamic_global_properties()const;
|
||||
global_betting_statistics_object get_global_betting_statistics() const;
|
||||
|
||||
// Keys
|
||||
vector<vector<account_id_type>> get_key_references( vector<public_key_type> key )const;
|
||||
|
|
@ -423,6 +424,11 @@ dynamic_global_property_object database_api_impl::get_dynamic_global_properties(
|
|||
return _db.get(dynamic_global_property_id_type());
|
||||
}
|
||||
|
||||
global_betting_statistics_object database_api_impl::get_global_betting_statistics() const
|
||||
{
|
||||
return _db.get(global_betting_statistics_id_type());
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
// Keys //
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
#include <graphene/chain/sport_object.hpp>
|
||||
#include <graphene/chain/event_group_object.hpp>
|
||||
#include <graphene/chain/betting_market_object.hpp>
|
||||
#include <graphene/chain/global_betting_statistics_object.hpp>
|
||||
|
||||
#include <graphene/chain/worker_object.hpp>
|
||||
#include <graphene/chain/witness_object.hpp>
|
||||
|
|
@ -320,6 +321,11 @@ class database_api
|
|||
// Peerplays //
|
||||
/////////////////////
|
||||
|
||||
/**
|
||||
* @brief Get global betting statistics
|
||||
*/
|
||||
global_betting_statistics_object get_global_betting_statistics() const;
|
||||
|
||||
/**
|
||||
* @brief Get a list of all sports
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ const chain_property_object& database::get_chain_properties()const
|
|||
return get( chain_property_id_type() );
|
||||
}
|
||||
|
||||
const dynamic_global_property_object&database::get_dynamic_global_properties() const
|
||||
const dynamic_global_property_object& database::get_dynamic_global_properties() const
|
||||
{
|
||||
return get( dynamic_global_property_id_type() );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue