Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
dadf5aa0
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,发现更多精彩内容 >>
提交
dadf5aa0
编写于
9月 08, 2017
作者:
M
Matias Romeo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Progress on #197
上级
5d11304e
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
306 addition
and
131 deletion
+306
-131
CMakeModules/wasm.cmake
CMakeModules/wasm.cmake
+1
-2
contracts/currency/currency.abi
contracts/currency/currency.abi
+3
-3
contracts/currency/currency.hpp
contracts/currency/currency.hpp
+5
-1
contracts/exchange/exchange.hpp
contracts/exchange/exchange.hpp
+1
-1
libraries/abi_generator/abi_generator.cpp
libraries/abi_generator/abi_generator.cpp
+296
-124
未找到文件。
CMakeModules/wasm.cmake
浏览文件 @
dadf5aa0
...
...
@@ -124,13 +124,12 @@ macro(add_wast_target target INCLUDE_FOLDERS DESTINATION_FOLDER)
add_custom_command
(
OUTPUT
${
DESTINATION_FOLDER
}
/
${
target
}
.abi
DEPENDS
${
target
}
.s abi_generator
COMMAND rm -f
${
DESTINATION_FOLDER
}
/
${
target
}
.abi
COMMAND rm -f
"
${
DESTINATION_FOLDER
}
/
${
target
}
.abi.*"
COMMAND
${
WASM_CLANG
}
-c --std=c++14 --target=wasm32 -I
${
INCLUDE_FOLDERS
}
-fparse-all-comments
-Xclang -load -Xclang $<TARGET_FILE:abi_generator>
-Xclang -plugin -Xclang generate-abi
${
SOURCE_FILES
}
-Xclang -plugin-arg-generate-abi -Xclang -destination-file=
${
DESTINATION_FOLDER
}
/
${
target
}
.abi
-Xclang -plugin-arg-generate-abi -Xclang -context=
${
target
}
COMMAND
COMMENT
"Generating ABI
${
target
}
.abi"
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
VERBATIM
...
...
contracts/currency/currency.abi
浏览文件 @
dadf5aa0
...
...
@@ -5,7 +5,7 @@
}
],
"structs": [{
"name": "
t
ransfer",
"name": "
T
ransfer",
"base": "",
"fields": {
"from": "account_name",
...
...
@@ -13,7 +13,7 @@
"amount": "uint64"
}
},{
"name": "
a
ccount",
"name": "
A
ccount",
"base": "",
"fields": {
"key": "uint64",
...
...
@@ -34,4 +34,4 @@
"key_types" : ["name"]
}
]
}
}
\ No newline at end of file
contracts/currency/currency.hpp
浏览文件 @
dadf5aa0
...
...
@@ -37,6 +37,11 @@ namespace TOKEN_NAME {
*/
typedef
eosio
::
token
<
uint64_t
,
N
(
currency
)
>
currency_tokens
;
// union pepe {
// unsigned long long a;
// char b;
// };
/**
* transfer requires that the sender and receiver be the first two
* accounts notified and that the sender has provided authorization.
...
...
@@ -58,7 +63,6 @@ namespace TOKEN_NAME {
};
/**
<<<<<<< a12c91560b4de7d041857a3e3101258aea48c2ae
* @brief row in Account table stored within each scope
* @abi currency table
*/
...
...
contracts/exchange/exchange.hpp
浏览文件 @
dadf5aa0
...
...
@@ -43,7 +43,7 @@ namespace exchange {
};
static_assert
(
sizeof
(
ask
)
==
32
+
12
,
"unexpected padding"
);
//@abi exchange table
//@abi exchange table
i64
struct
PACKED
(
account
)
{
account
(
account_name
o
=
account_name
()
)
:
owner
(
o
){}
...
...
libraries/abi_generator/abi_generator.cpp
浏览文件 @
dadf5aa0
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录