Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
c048b9ff
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,发现更多精彩内容 >>
提交
c048b9ff
编写于
4月 23, 2018
作者:
A
Anton Perkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
compile entire system contract as single file, native actions fix #2227
上级
a34a6e01
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
26 addition
and
30 deletion
+26
-30
contracts/eosio.system/CMakeLists.txt
contracts/eosio.system/CMakeLists.txt
+1
-1
contracts/eosio.system/apply.cpp
contracts/eosio.system/apply.cpp
+5
-2
contracts/eosio.system/eosio.system.hpp
contracts/eosio.system/eosio.system.hpp
+1
-11
contracts/eosio.system/native.hpp
contracts/eosio.system/native.hpp
+19
-15
contracts/eosiolib/singleton.hpp
contracts/eosiolib/singleton.hpp
+0
-1
未找到文件。
contracts/eosio.system/CMakeLists.txt
浏览文件 @
c048b9ff
...
...
@@ -2,7 +2,7 @@ file(GLOB ABI_FILES "*.abi")
configure_file
(
"
${
ABI_FILES
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
COPYONLY
)
add_wast_executable
(
TARGET eosio.system
SOURCE_FILES apply.cpp
delegate_bandwidth.cpp producer_pay.cpp voting.cpp
SOURCE_FILES apply.cpp
INCLUDE_FOLDERS
${
STANDARD_INCLUDE_FOLDERS
}
LIBRARIES libc++ libc eosiolib eosio.token
DESTINATION_FOLDER
${
CMAKE_CURRENT_BINARY_DIR
}
...
...
contracts/eosio.system/apply.cpp
浏览文件 @
c048b9ff
#include "eosio.system.hpp"
#include <eosiolib/dispatcher.hpp>
#include "delegate_bandwidth.cpp"
#include "producer_pay.cpp"
#include "voting.cpp"
EOSIO_ABI
(
eosiosystem
::
system_contract
,
// delegate_bandwith.cpp
(
delegatebw
)(
undelegatebw
)(
refund
)
...
...
@@ -12,7 +15,7 @@ EOSIO_ABI( eosiosystem::system_contract,
(
claimrewards
)
// native.hpp
//XXX
//
(newaccount)(updateauth)(deleteauth)(linkauth)(unlinkauth)(postrecovery)(passrecovery)(vetorecovery)(onerror)(canceldelay)
(
newaccount
)(
updateauth
)(
deleteauth
)(
linkauth
)(
unlinkauth
)(
postrecovery
)(
passrecovery
)(
vetorecovery
)(
onerror
)(
canceldelay
)
// defined in eosio.system.hpp
(
nonce
)
)
contracts/eosio.system/eosio.system.hpp
浏览文件 @
c048b9ff
...
...
@@ -124,7 +124,7 @@ namespace eosiosystem {
void
unregproxy
(
const
account_name
proxy
);
void
nonce
(
const
std
::
string
&
value
)
{}
void
nonce
(
const
std
::
string
&
/*value*/
)
{}
// functions defined in producer_pay.cpp
...
...
@@ -133,16 +133,6 @@ namespace eosiosystem {
void
onblock
(
const
block_header
&
header
);
void
claimrewards
(
const
account_name
&
owner
);
};
}
/// eosiosystem
//hack to prevent linker from removing apply function
extern
"C"
{
void
apply
(
uint64_t
receiver
,
uint64_t
code
,
uint64_t
action
);
}
void
call_apply
()
{
apply
(
0
,
0
,
0
);
}
contracts/eosio.system/native.hpp
浏览文件 @
c048b9ff
...
...
@@ -36,42 +36,46 @@ namespace eosiosystem {
EOSLIB_SERIALIZE
(
authority
,
(
threshold
)(
keys
)(
accounts
)
)
};
/*
* Empty handlers for native messages.
* Method parameters commented out to prevent generation of code that parses input data.
*/
class
native
{
public:
static
void
newaccount
(
account_name
creator
,
void
newaccount
(
/*
account_name creator,
account_name name,
const authority& owner,
const authority& active,
const
authority
&
recovery
)
{}
const authority& recovery
*/
)
{}
static
void
updateauth
(
account_name
account
,
void
updateauth
(
/*
account_name account,
permission_name permission,
permission_name parent,
const
authority
&
data
)
{}
const authority& data
*/
)
{}
static
void
deleteauth
(
account_name
account
,
permission_name
permission
)
{}
void
deleteauth
(
/*account_name account, permission_name permission*/
)
{}
static
void
linkauth
(
account_name
account
,
void
linkauth
(
/*
account_name account,
account_name code,
action_name type,
permission_name
requirement
)
{}
permission_name requirement
*/
)
{}
static
void
unlinkauth
(
account_name
account
,
void
unlinkauth
(
/*
account_name account,
account_name code,
action_name
type
)
{}
action_name type
*/
)
{}
static
void
postrecovery
(
account_name
account
,
void
postrecovery
(
/*
account_name account,
const authority& data,
const
std
::
string
&
memo
)
{}
const std::string& memo
*/
)
{}
static
void
passrecovery
(
account_name
account
)
{}
void
passrecovery
(
/*account_name account*/
)
{}
static
void
vetorecovery
(
account_name
account
)
{}
void
vetorecovery
(
/*account_name account*/
)
{}
static
void
onerror
(
const
bytes
&
)
{}
void
onerror
(
/*const bytes&*/
)
{}
static
void
canceldelay
(
permission_level
canceling_auth
,
transaction_id_type
trx_id
)
{}
void
canceldelay
(
/*permission_level canceling_auth, transaction_id_type trx_id*/
)
{}
};
}
contracts/eosiolib/singleton.hpp
浏览文件 @
c048b9ff
...
...
@@ -7,7 +7,6 @@ namespace eosio {
/**
* This wrapper uses a single table to store named objects various types.
*
* @tparam Code - the name of the code which has write permission
* @tparam SingletonName - the name of this singlton variable
* @tparam T - the type of the singleton
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录