Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
7e172632
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7e172632
编写于
11月 21, 2017
作者:
B
Brian Johnson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Peer review fixes.
上级
e1a0cad1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
18 deletion
+13
-18
contracts/eoslib/account.h
contracts/eoslib/account.h
+1
-1
contracts/eoslib/account.hpp
contracts/eoslib/account.hpp
+5
-10
contracts/test_api/test_account.cpp
contracts/test_api/test_account.cpp
+6
-1
libraries/chain/wasm_interface.cpp
libraries/chain/wasm_interface.cpp
+0
-5
libraries/types/include/eos/types/asset.hpp
libraries/types/include/eos/types/asset.hpp
+1
-1
未找到文件。
contracts/eoslib/account.h
浏览文件 @
7e172632
...
...
@@ -27,7 +27,7 @@ extern "C" {
* Example:
* @code
* balance b;
* b.account =
n
(myaccount);
* b.account =
N
(myaccount);
* balance(b, sizeof(balance));
* @endcode
*/
...
...
contracts/eoslib/account.hpp
浏览文件 @
7e172632
/**
* @file
token
.hpp
* @file
account
.hpp
* @copyright defined in eos/LICENSE.txt
* @brief Defines types and ABI for
standard token messages and database table
s
* @brief Defines types and ABI for
account API interaction
s
*
*/
#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 tabl
es.
* @defgroup
account Account
API
* @brief Defines the ABI for interfacing with
account balanc
es.
* @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
;
};
...
...
contracts/test_api/test_account.cpp
浏览文件 @
7e172632
/**
* @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
()
...
...
libraries/chain/wasm_interface.cpp
浏览文件 @
7e172632
...
...
@@ -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
;
})
...
...
libraries/types/include/eos/types/asset.hpp
浏览文件 @
7e172632
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录