From 3aa7477843363a54244f93deb51ff33f239529a3 Mon Sep 17 00:00:00 2001 From: Valera Cogut Date: Sat, 21 Jul 2018 21:33:11 +0300 Subject: [PATCH] changed get_assets_count to get_asset_count --- libraries/app/database_api.cpp | 8 ++++---- libraries/app/include/graphene/app/database_api.hpp | 4 ++-- libraries/wallet/include/graphene/wallet/wallet.hpp | 4 ++-- libraries/wallet/wallet.cpp | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libraries/app/database_api.cpp b/libraries/app/database_api.cpp index e8155ecece..905529788c 100644 --- a/libraries/app/database_api.cpp +++ b/libraries/app/database_api.cpp @@ -101,7 +101,7 @@ class database_api_impl : public std::enable_shared_from_this vector> get_assets(const vector& asset_ids)const; vector list_assets(const string& lower_bound_symbol, uint32_t limit)const; vector> lookup_asset_symbols(const vector& symbols_or_ids)const; - uint64_t get_assets_count()const; + uint64_t get_asset_count()const; // Markets / feeds vector get_limit_orders(asset_id_type a, asset_id_type b, uint32_t limit)const; @@ -997,12 +997,12 @@ vector database_api_impl::list_assets(const string& lower_bound_sy return result; } -uint64_t database_api::get_assets_count()const +uint64_t database_api::get_asset_count()const { - return my->get_assets_count(); + return my->get_asset_count(); } -uint64_t database_api_impl::get_assets_count()const +uint64_t database_api_impl::get_asset_count()const { return _db.get_index_type().indices().size(); } diff --git a/libraries/app/include/graphene/app/database_api.hpp b/libraries/app/include/graphene/app/database_api.hpp index 5ade42bbc2..12f3a01010 100644 --- a/libraries/app/include/graphene/app/database_api.hpp +++ b/libraries/app/include/graphene/app/database_api.hpp @@ -374,7 +374,7 @@ class database_api * @brief Get assets count * @return The assets count */ - uint64_t get_assets_count()const; + uint64_t get_asset_count()const; ///////////////////// // Markets / feeds // @@ -751,7 +751,7 @@ FC_API(graphene::app::database_api, (get_assets) (list_assets) (lookup_asset_symbols) - (get_assets_count) + (get_asset_count) // Markets / feeds (get_order_book) diff --git a/libraries/wallet/include/graphene/wallet/wallet.hpp b/libraries/wallet/include/graphene/wallet/wallet.hpp index 8bc9cdfa4d..99144e4c78 100644 --- a/libraries/wallet/include/graphene/wallet/wallet.hpp +++ b/libraries/wallet/include/graphene/wallet/wallet.hpp @@ -369,7 +369,7 @@ class wallet_api * * @returns assets count */ - uint64_t get_assets_count()const; + uint64_t get_asset_count()const; /** Returns the most recent operations on the named account. * @@ -1722,7 +1722,7 @@ FC_API( graphene::wallet::wallet_api, (list_accounts) (list_account_balances) (list_assets) - (get_assets_count) + (get_asset_count) (import_key) (import_accounts) (import_account_keys) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index a47f087847..2e0e0dc684 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -2936,9 +2936,9 @@ vector wallet_api::list_assets(const string& lowerbound, uint32_t return my->_remote_db->list_assets( lowerbound, limit ); } -uint64_t wallet_api::get_assets_count()const +uint64_t wallet_api::get_asset_count()const { - return my->_remote_db->get_assets_count(); + return my->_remote_db->get_asset_count(); } vector wallet_api::get_account_history(string name, int limit)const