提交 7e172632 编写于 作者: B Brian Johnson

Peer review fixes.

上级 e1a0cad1
......@@ -27,7 +27,7 @@ extern "C" {
* Example:
* @code
* balance b;
* b.account = n(myaccount);
* b.account = N(myaccount);
* balance(b, sizeof(balance));
* @endcode
*/
......
/**
* @file token.hpp
* @file account.hpp
* @copyright defined in eos/LICENSE.txt
* @brief Defines types and ABI for standard token messages and database tables
* @brief Defines types and ABI for account API interactions
*
*/
#pragma once
......@@ -11,8 +11,8 @@
namespace eosio { namespace account {
/**
* @defgroup tokens Token API
* @brief Defines the ABI for interfacing with standard-compatible token messages and database tables.
* @defgroup account Account API
* @brief Defines the ABI for interfacing with account balances.
* @ingroup contractdev
*
* @{
......@@ -21,7 +21,7 @@ namespace eosio { namespace account {
/**
* @struct eosio::account_balance (must match account_balance defined in wasm_interface.cpp)
* @brief The binary structure expected and populated by native balance function.
* @ingroup tokens
* @ingroup account
*
* @details
* Example:
......@@ -38,31 +38,26 @@ namespace eosio { namespace account {
struct PACKED (account_balance) {
/**
* Name of the account who's balance this is
* @brief Name of the account who's balance this is
*/
account_name account;
/**
* Balance for this account
* @brief Balance for this account
*/
asset eos_balance;
/**
* Staked balance for this account
* @brief Staked balance for this account
*/
asset staked_balance;
/**
* Unstaking balance for this account
* @brief Unstaking balance for this account
*/
asset unstaking_balance;
/**
* Time at which last unstaking occurred for this account
* @brief Time at which last unstaking occurred for this account
*/
time last_unstaking_time;
};
......
/**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#include <eoslib/account.hpp>
#include <eoslib/eos.hpp>
#include <eoslib/system.h>
#include "test_api.hpp"
/// eos with 8 digits of precision
/// must match #define in eos/types/asset.hpp
#define EOS_SYMBOL (int64_t(4) | (uint64_t('E') << 8) | (uint64_t('O') << 16) | (uint64_t('S') << 24))
unsigned int test_account::test_balance_acc1()
......
......@@ -55,31 +55,26 @@ namespace eosio { namespace chain {
{
/**
* Name of the account who's balance this is
* @brief Name of the account who's balance this is
*/
account_name account;
/**
* Balance for this account
* @brief Balance for this account
*/
asset eos_balance;
/**
* Staked balance for this account
* @brief Staked balance for this account
*/
asset staked_balance;
/**
* Unstaking balance for this account
* @brief Unstaking balance for this account
*/
asset unstaking_balance;
/**
* Time at which last unstaking occurred for this account
* @brief Time at which last unstaking occurred for this account
*/
time last_unstaking_time;
})
......
......@@ -6,7 +6,7 @@
#include <fc/exception/exception.hpp>
#include <eos/types/native.hpp>
/// eos with 8 digits of precision
/// eos with 4 digits of precision
#define EOS_SYMBOL (int64_t(4) | (uint64_t('E') << 8) | (uint64_t('O') << 16) | (uint64_t('S') << 24))
/// Defined to be largest power of 10 that fits in 53 bits of precision
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册