Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
523243cb
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,发现更多精彩内容 >>
提交
523243cb
编写于
11月 22, 2017
作者:
B
Brian Johnson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
STAT-182 (GH-725) Fixed missed eos namespaces and comments
上级
edf0b26b
变更
25
显示空白变更内容
内联
并排
Showing
25 changed file
with
31 addition
and
30 deletion
+31
-30
contracts/currency/currency.hpp
contracts/currency/currency.hpp
+1
-1
contracts/dice/dice.hpp
contracts/dice/dice.hpp
+3
-3
contracts/eoslib/account.hpp
contracts/eoslib/account.hpp
+1
-1
contracts/eoslib/db.hpp
contracts/eoslib/db.hpp
+3
-1
contracts/eoslib/fixedpoint.hpp
contracts/eoslib/fixedpoint.hpp
+1
-1
contracts/eoslib/real.hpp
contracts/eoslib/real.hpp
+1
-1
contracts/exchange/exchange.hpp
contracts/exchange/exchange.hpp
+1
-1
contracts/infinite/infinite.hpp
contracts/infinite/infinite.hpp
+1
-1
contracts/proxy/proxy.hpp
contracts/proxy/proxy.hpp
+1
-1
contracts/storage/storage.hpp
contracts/storage/storage.hpp
+1
-1
contracts/test_api/test_db.cpp
contracts/test_api/test_db.cpp
+3
-3
contracts/test_api/test_fixedpoint.cpp
contracts/test_api/test_fixedpoint.cpp
+1
-1
contracts/test_api/test_real.cpp
contracts/test_api/test_real.cpp
+1
-1
contracts/tic_tac_toe/tic_tac_toe.hpp
contracts/tic_tac_toe/tic_tac_toe.hpp
+1
-1
libraries/chain/include/eos/chain/producer_objects.hpp
libraries/chain/include/eos/chain/producer_objects.hpp
+1
-1
libraries/native_contract/eos_contract.cpp
libraries/native_contract/eos_contract.cpp
+1
-1
libraries/native_contract/include/eos/native_contract/eos_contract.hpp
...ive_contract/include/eos/native_contract/eos_contract.hpp
+1
-1
plugins/account_history_plugin/account_history_plugin.cpp
plugins/account_history_plugin/account_history_plugin.cpp
+1
-1
plugins/chain_plugin/chain_plugin.cpp
plugins/chain_plugin/chain_plugin.cpp
+1
-2
plugins/db_plugin/db_plugin.cpp
plugins/db_plugin/db_plugin.cpp
+1
-1
plugins/wallet_plugin/include/eos/wallet_plugin/wallet_manager.hpp
...allet_plugin/include/eos/wallet_plugin/wallet_manager.hpp
+1
-1
plugins/wallet_plugin/wallet_manager.cpp
plugins/wallet_plugin/wallet_manager.cpp
+1
-1
plugins/wallet_plugin/wallet_plugin.cpp
plugins/wallet_plugin/wallet_plugin.cpp
+1
-1
tests/tests/database_tests.cpp
tests/tests/database_tests.cpp
+1
-1
tests/tests/misc_tests.cpp
tests/tests/misc_tests.cpp
+1
-1
未找到文件。
contracts/currency/currency.hpp
浏览文件 @
523243cb
...
...
@@ -92,7 +92,7 @@ namespace TOKEN_NAME {
/**
Defines the database table for account information
**/
using
accounts
=
table
<
N
(
defaultscope
),
N
(
currency
),
N
(
account
),
account
,
uint64_t
>
;
using
accounts
=
eosio
::
table
<
N
(
defaultscope
),
N
(
currency
),
N
(
account
),
account
,
uint64_t
>
;
/**
* accounts information for owner is stored:
...
...
contracts/dice/dice.hpp
浏览文件 @
523243cb
...
...
@@ -81,9 +81,9 @@ namespace dice {
bool
is_empty
()
const
{
return
!
(
bool
(
eos_balance
)
|
open_offers
);
}
};
using
accounts
=
table
<
N
(
dice
),
N
(
dice
),
N
(
account
),
account
,
uint64_t
>
;
using
global_dices
=
table
<
N
(
dice
),
N
(
dice
),
N
(
global
),
global_dice
,
uint64_t
>
;
using
offers
=
table
<
N
(
dice
),
N
(
dice
),
N
(
global
),
global_dice
,
offer_primary_key
,
uint128_t
>
;
using
accounts
=
eosio
::
table
<
N
(
dice
),
N
(
dice
),
N
(
account
),
account
,
uint64_t
>
;
using
global_dices
=
eosio
::
table
<
N
(
dice
),
N
(
dice
),
N
(
global
),
global_dice
,
uint64_t
>
;
using
offers
=
eosio
::
table
<
N
(
dice
),
N
(
dice
),
N
(
global
),
global_dice
,
offer_primary_key
,
uint128_t
>
;
inline
account
get_account
(
account_name
owner
)
{
account
owned_account
(
owner
);
...
...
contracts/eoslib/account.hpp
浏览文件 @
523243cb
...
...
@@ -30,7 +30,7 @@ namespace eosio { namespace account {
* test1_balance.account = N(test1);
* if (account_api::get(test1_balance))
* {
* eos::print("test1 balance=", test1_balance.eos_balance, "\n");
* eos
io
::print("test1 balance=", test1_balance.eos_balance, "\n");
* }
* @endcode
* @{
...
...
contracts/eoslib/db.hpp
浏览文件 @
523243cb
...
...
@@ -7,6 +7,7 @@
#include <eoslib/db.h>
namespace
eosio
{
/**
* @ingroup databaseCpp
...
...
@@ -1009,8 +1010,9 @@ struct table<scope,code,table_n,Record,PrimaryType,void> {
}
};
/// @}
}
// namespace eosio
#define TABLE2(NAME, SCOPE, CODE, TABLE, TYPE, PRIMARY_NAME, PRIMARY_TYPE, SECONDARY_NAME, SECONDARY_TYPE) \
using NAME = table<N(SCOPE),N(CODE),N(TABLE),TYPE,PRIMARY_TYPE,SECONDARY_TYPE>; \
using NAME =
eosio::
table<N(SCOPE),N(CODE),N(TABLE),TYPE,PRIMARY_TYPE,SECONDARY_TYPE>; \
typedef NAME::primary_index PRIMARY_NAME; \
typedef NAME::secondary_index SECONDARY_NAME;
contracts/eoslib/fixedpoint.hpp
浏览文件 @
523243cb
#pragma once
#include <eoslib/types.h>
namespace
eos
namespace
eos
io
{
/**
* @defgroup fixed_point Template classes for Fixed Point representaton
...
...
contracts/eoslib/real.hpp
浏览文件 @
523243cb
...
...
@@ -2,7 +2,7 @@
#include <eoslib/math.hpp>
#include <eoslib/print.hpp>
namespace
eos
{
namespace
eos
io
{
/**
* @defgroup real data type representation for eos
* @brief real data type with basic operators. Contract developers need not use the math APIs
...
...
contracts/exchange/exchange.hpp
浏览文件 @
523243cb
...
...
@@ -55,7 +55,7 @@ namespace exchange {
bool
is_empty
()
const
{
return
!
(
bool
(
eos_balance
)
|
bool
(
currency_balance
)
|
open_orders
);
}
};
using
accounts
=
table
<
N
(
exchange
),
N
(
exchange
),
N
(
account
),
account
,
uint64_t
>
;
using
accounts
=
eosio
::
table
<
N
(
exchange
),
N
(
exchange
),
N
(
account
),
account
,
uint64_t
>
;
TABLE2
(
bids
,
exchange
,
exchange
,
bids
,
bid
,
bids_by_id
,
order_id
,
bids_by_price
,
price
);
TABLE2
(
asks
,
exchange
,
exchange
,
asks
,
ask
,
asks_by_id
,
order_id
,
asks_by_price
,
price
);
...
...
contracts/infinite/infinite.hpp
浏览文件 @
523243cb
...
...
@@ -36,7 +36,7 @@ namespace infinite {
};
static_assert
(
sizeof
(
account
)
==
sizeof
(
uint64_t
)
+
sizeof
(
currency_tokens
),
"unexpected packing"
);
using
accounts
=
table
<
N
(
currency
),
N
(
currency
),
N
(
account
),
account
,
uint64_t
>
;
using
accounts
=
eosio
::
table
<
N
(
currency
),
N
(
currency
),
N
(
account
),
account
,
uint64_t
>
;
/**
* accounts information for owner is stored:
...
...
contracts/proxy/proxy.hpp
浏览文件 @
523243cb
...
...
@@ -19,6 +19,6 @@ namespace proxy {
account_name
owner
;
};
using
configs
=
table
<
N
(
proxy
),
N
(
proxy
),
N
(
configs
),
config
,
uint64_t
>
;
using
configs
=
eosio
::
table
<
N
(
proxy
),
N
(
proxy
),
N
(
configs
),
config
,
uint64_t
>
;
}
/// namespace proxy
contracts/storage/storage.hpp
浏览文件 @
523243cb
...
...
@@ -95,7 +95,7 @@ namespace TOKEN_NAME {
/**
Defines the database table for account information
**/
using
accounts
=
table
<
N
(
storage
),
N
(
storage
),
N
(
account
),
account
,
uint64_t
>
;
using
accounts
=
eosio
::
table
<
N
(
storage
),
N
(
storage
),
N
(
account
),
account
,
uint64_t
>
;
/**
* accounts information for owner is stored:
...
...
contracts/test_api/test_db.cpp
浏览文件 @
523243cb
...
...
@@ -76,9 +76,9 @@ unsigned int test_db::key_str_table() {
const
char
*
atr
[]
=
{
"atr"
,
"atr"
,
"atr"
,
"atr"
};
const
char
*
ztr
[]
=
{
"ztr"
,
"ztr"
,
"ztr"
,
"ztr"
};
var_table
<
N
(
tester
),
N
(
tester
),
N
(
atr
),
char
*>
StringTableAtr
;
var_table
<
N
(
tester
),
N
(
tester
),
N
(
ztr
),
char
*>
StringTableZtr
;
var_table
<
N
(
tester
),
N
(
tester
),
N
(
str
),
char
*>
StringTableStr
;
eosio
::
var_table
<
N
(
tester
),
N
(
tester
),
N
(
atr
),
char
*>
StringTableAtr
;
eosio
::
var_table
<
N
(
tester
),
N
(
tester
),
N
(
ztr
),
char
*>
StringTableZtr
;
eosio
::
var_table
<
N
(
tester
),
N
(
tester
),
N
(
str
),
char
*>
StringTableStr
;
uint32_t
res
=
0
;
...
...
contracts/test_api/test_fixedpoint.cpp
浏览文件 @
523243cb
...
...
@@ -2,7 +2,7 @@
#include <eoslib/eos.hpp>
#include "test_api.hpp"
using
namespace
eos
;
using
namespace
eos
io
;
unsigned
int
test_fixedpoint
::
create_instances
()
{
{
...
...
contracts/test_api/test_real.cpp
浏览文件 @
523243cb
...
...
@@ -2,7 +2,7 @@
#include <eoslib/eos.hpp>
#include "test_api.hpp"
using
namespace
eos
;
using
namespace
eos
io
;
unsigned
int
test_real
::
create_instances
()
{
real
lhs1
(
5
);
WASM_ASSERT
(
lhs1
.
value
()
==
5
,
"real instance value is wrong"
);
...
...
contracts/tic_tac_toe/tic_tac_toe.hpp
浏览文件 @
523243cb
...
...
@@ -123,6 +123,6 @@ namespace tic_tac_toe {
/**
* @brief table to store list of games
*/
using
Games
=
table
<
N
(
tic
.
tac
.
toe
),
N
(
tic
.
tac
.
toe
),
N
(
games
),
game
,
uint64_t
>
;
using
Games
=
eosio
::
table
<
N
(
tic
.
tac
.
toe
),
N
(
tic
.
tac
.
toe
),
N
(
games
),
game
,
uint64_t
>
;
}
/// @}
libraries/chain/include/eos/chain/producer_objects.hpp
浏览文件 @
523243cb
...
...
@@ -237,7 +237,7 @@ using producer_schedule_multi_index = chainbase::shared_multi_index_container<
>
>
;
}
}
// namespace
native::eos
}
}
// namespace
eosio::chain
CHAINBASE_SET_INDEX_TYPE
(
eosio
::
chain
::
producer_votes_object
,
eosio
::
chain
::
producer_votes_multi_index
)
CHAINBASE_SET_INDEX_TYPE
(
eosio
::
chain
::
proxy_vote_object
,
eosio
::
chain
::
proxy_vote_multi_index
)
...
...
libraries/native_contract/eos_contract.cpp
浏览文件 @
523243cb
...
...
@@ -494,5 +494,5 @@ void apply_eos_unlinkauth(apply_context& context) {
db
.
remove
(
*
link
);
}
}
// namespace eos
}
// namespace eos
io
}
// namespace native
libraries/native_contract/include/eos/native_contract/eos_contract.hpp
浏览文件 @
523243cb
...
...
@@ -27,5 +27,5 @@ void apply_eos_deleteauth(chain::apply_context&);
void
apply_eos_linkauth
(
chain
::
apply_context
&
);
void
apply_eos_unlinkauth
(
chain
::
apply_context
&
);
}
// namespace eos
}
// namespace eos
io
}
// namespace native
plugins/account_history_plugin/account_history_plugin.cpp
浏览文件 @
523243cb
...
...
@@ -459,4 +459,4 @@ read_only::get_controlled_accounts_results read_only::get_controlled_accounts(co
}
}
// namespace account_history_apis
}
// namespace eos
}
// namespace eos
io
plugins/chain_plugin/chain_plugin.cpp
浏览文件 @
523243cb
...
...
@@ -27,7 +27,6 @@
namespace
eosio
{
using
namespace
eosio
;
using
fc
::
flat_map
;
using
chain
::
block_id_type
;
using
chain
::
fork_database
;
...
...
@@ -481,4 +480,4 @@ read_only::get_required_keys_result read_only::get_required_keys( const get_requ
}
// namespace chain_apis
}
// namespace eos
}
// namespace eos
io
plugins/db_plugin/db_plugin.cpp
浏览文件 @
523243cb
...
...
@@ -746,4 +746,4 @@ void db_plugin::plugin_shutdown()
my
.
reset
();
}
}
// namespace eos
}
// namespace eos
io
plugins/wallet_plugin/include/eos/wallet_plugin/wallet_manager.hpp
浏览文件 @
523243cb
...
...
@@ -111,6 +111,6 @@ private:
};
}
// namespace wallet
}
// namespace eos
}
// namespace eos
io
plugins/wallet_plugin/wallet_manager.cpp
浏览文件 @
523243cb
...
...
@@ -194,4 +194,4 @@ wallet_manager::sign_transaction(const chain::signed_transaction& txn, const fla
}
}
// namespace wallet
}
// namespace eos
}
// namespace eos
io
plugins/wallet_plugin/wallet_plugin.cpp
浏览文件 @
523243cb
...
...
@@ -46,4 +46,4 @@ void wallet_plugin::plugin_initialize(const variables_map& options) {
wallet_manager_ptr
->
set_timeout
(
t
);
}
}
}
// namespace eos
}
// namespace eos
io
tests/tests/database_tests.cpp
浏览文件 @
523243cb
...
...
@@ -68,4 +68,4 @@ BOOST_FIXTURE_TEST_CASE(get_blocks, testing_fixture)
// Check that block 21 can now be found
BOOST_CHECK_EQUAL
(
chain
.
get_block_id_for_num
(
21
),
chain
.
head_block_id
());
}
FC_LOG_AND_RETHROW
()
}
}
// namespace eos
}
// namespace eos
io
tests/tests/misc_tests.cpp
浏览文件 @
523243cb
...
...
@@ -321,4 +321,4 @@ BOOST_AUTO_TEST_CASE(alphabetic_sort)
BOOST_AUTO_TEST_SUITE_END
()
}
// namespace eos
}
// namespace eos
io
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录