Skip to content

Commit

Permalink
changed get_assets_count to get_asset_count
Browse files Browse the repository at this point in the history
  • Loading branch information
nanomobile committed Jul 21, 2018
1 parent 7f291da commit 3aa7477
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions libraries/app/database_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class database_api_impl : public std::enable_shared_from_this<database_api_impl>
vector<optional<asset_object>> get_assets(const vector<asset_id_type>& asset_ids)const;
vector<asset_object> list_assets(const string& lower_bound_symbol, uint32_t limit)const;
vector<optional<asset_object>> lookup_asset_symbols(const vector<string>& symbols_or_ids)const;
uint64_t get_assets_count()const;
uint64_t get_asset_count()const;

// Markets / feeds
vector<limit_order_object> get_limit_orders(asset_id_type a, asset_id_type b, uint32_t limit)const;
Expand Down Expand Up @@ -997,12 +997,12 @@ vector<asset_object> 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<asset_index>().indices().size();
}
Expand Down
4 changes: 2 additions & 2 deletions libraries/app/include/graphene/app/database_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions libraries/wallet/include/graphene/wallet/wallet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions libraries/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2936,9 +2936,9 @@ vector<asset_object> 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<operation_detail> wallet_api::get_account_history(string name, int limit)const
Expand Down

0 comments on commit 3aa7477

Please sign in to comment.