mirror of
https://gitee.com/BDWare/bdcontract-doc
synced 2025-04-27 14:32:19 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
271e7f7847 | ||
|
213e351560 | ||
|
7f6897bee2 | ||
|
fd6293b9df |
25
README.md
25
README.md
@ -2,11 +2,11 @@
|
|||||||
## 环境依赖安装
|
## 环境依赖安装
|
||||||
```bash
|
```bash
|
||||||
#视情况使用pip/pip3
|
#视情况使用pip/pip3
|
||||||
pip install sphinx
|
pip3 install sphinx
|
||||||
pip install recommonmark
|
pip3 install recommonmark
|
||||||
pip install sphinx_rtd_theme
|
pip3 install sphinx_rtd_theme
|
||||||
pip install sphinx_markdown_tables
|
pip3 install sphinx_markdown_tables
|
||||||
pip install sphinx-multiversion
|
pip3 install sphinx-multiversion
|
||||||
```
|
```
|
||||||
|
|
||||||
# 更新版本
|
# 更新版本
|
||||||
@ -45,15 +45,16 @@ make latexPdf
|
|||||||
```
|
```
|
||||||
# MarkDownTips
|
# MarkDownTips
|
||||||
|
|
||||||
1)学习markdown:https://www.runoob.com/markdown/md-tutorial.html
|
1. 学习markdown:https://www.runoob.com/markdown/md-tutorial.html
|
||||||
2)可参考现有.md文件作为模板。
|
2. 可参考现有.md文件作为模板。
|
||||||
3)表格示例:
|
3. 表格示例:
|
||||||
|
|
||||||
| 字段 | 值 |
|
| 字段 | 值 |
|
||||||
| ------ | --------------------------------- |
|
| ------ | --------------------------------- |
|
||||||
| action | startContract |
|
| action | startContract |
|
||||||
| script | 合约脚本内容, 需进行进行URIEncode |
|
| script | 合约脚本内容, 需进行进行URIEncode |
|
||||||
|
|
||||||
4)代码示例:
|
4. 代码示例:
|
||||||
特别地,json代码的格式化可以使用:http://www.bejson.com/t2ck.htm
|
特别地,json代码的格式化可以使用:http://www.bejson.com/t2ck.htm
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -63,9 +64,11 @@ make latexPdf
|
|||||||
"executeTime": 1187
|
"executeTime": 1187
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
5)插入图片示例:
|
5. 插入图片示例:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
方括号内为小标题,小括号内为“图片的相对路径”,一定不要写成绝对路径。
|
方括号内为小标题,小括号内为“图片的相对路径”,一定不要写成绝对路径。
|
||||||
|
|
||||||
6)超链接:
|
6. 超链接:
|
||||||
[百度](http://baidu.com)
|
[百度](http://baidu.com)
|
||||||
|
@ -361,10 +361,22 @@ export function count(args){
|
|||||||
```
|
```
|
||||||
@Cost({"countGas":true})
|
@Cost({"countGas":true})
|
||||||
export function ....
|
export function ....
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### @ArgSchema
|
||||||
|
该注解可以检查输入参数格式,仅支持JSON格式。
|
||||||
|
```
|
||||||
|
@ArgSchema({
|
||||||
|
"!field1":"string",
|
||||||
|
"field2":"number",
|
||||||
|
"array":[{"abc":"number"}]
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
### @Mask
|
||||||
|
该注解可对结果进行一定转换,支持差分隐私、MD5等转换函数。
|
||||||
|
|
||||||
|
|
||||||
## IO工具类
|
## IO工具类
|
||||||
|
|
||||||
### 概览
|
### 概览
|
||||||
|
@ -21,6 +21,23 @@ BDContract是一个可信计算框架,计算逻辑以智能合约的方式表
|
|||||||
- - -
|
- - -
|
||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
|
||||||
|
* **v1.7.5** 2022年4月29日
|
||||||
|
- 更新了NodePortal.html的部分功能
|
||||||
|
- 支持ypk deploy tool
|
||||||
|
- 优化了view 关键字
|
||||||
|
- 优化startContract日志输出
|
||||||
|
- docker镜像脚本支持
|
||||||
|
|
||||||
|
* **v1.7.0** 2022年3月7日
|
||||||
|
- 提交算法插件化
|
||||||
|
- cp从镜象中剥离
|
||||||
|
- 支持ArgSchema注解。
|
||||||
|
|
||||||
|
* **v1.6.7** 2022年1月6日
|
||||||
|
- cp中支持了MultiTagTimeIndexUtil
|
||||||
|
|
||||||
|
|
||||||
* **v1.6.6** 2022年1月4日
|
* **v1.6.6** 2022年1月4日
|
||||||
- 更新DOIP-SDK
|
- 更新DOIP-SDK
|
||||||
|
|
||||||
|
@ -94,15 +94,15 @@ html_static_path = ['_static']
|
|||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
|
|
||||||
##latex_elements = {
|
latex_elements = {
|
||||||
## 'papersize': 'a4paper',
|
'papersize': 'a4paper',
|
||||||
# Additional stuff for the LaTeX preamble.
|
# Additional stuff for the LaTeX preamble.
|
||||||
## 'preamble': '''
|
'preamble': '''
|
||||||
##\usepackage{xeCJK}
|
\usepackage{xeCJK}
|
||||||
##\usepackage{indentfirst}
|
\usepackage{indentfirst}
|
||||||
##\setlength{\parindent}{2em}
|
\setlength{\parindent}{2em}
|
||||||
##\setCJKmainfont[BoldFont=STFangsong, ItalicFont=STKaiti]{STSong}
|
\setCJKmainfont[BoldFont=STFangsong, ItalicFont=STKaiti]{STSong}
|
||||||
##\setCJKsansfont[BoldFont=STHeiti]{STXihei}
|
\setCJKsansfont[BoldFont=STHeiti]{STXihei}
|
||||||
##\setCJKmonofont{STFangsong}
|
\setCJKmonofont{STFangsong}
|
||||||
##''',
|
''',
|
||||||
##}
|
}
|
@ -25,6 +25,24 @@ BDContract是一个可信计算框架,计算逻辑以智能合约的方式表
|
|||||||
更新日志
|
更新日志
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
- **v1.7.5** 2022年4月29日
|
||||||
|
|
||||||
|
- 更新了NodePortal.html的部分功能
|
||||||
|
- 支持ypk deploy tool
|
||||||
|
- 优化了view 关键字
|
||||||
|
- 优化startContract日志输出
|
||||||
|
- docker镜像脚本支持
|
||||||
|
|
||||||
|
- **v1.7.0** 2022年3月7日
|
||||||
|
|
||||||
|
- 提交算法插件化
|
||||||
|
- cp从镜象中剥离
|
||||||
|
- 支持ArgSchema注解。
|
||||||
|
|
||||||
|
- **v1.6.7** 2022年1月6日
|
||||||
|
|
||||||
|
- cp中支持了MultiTagTimeIndexUtil
|
||||||
|
|
||||||
- **v1.6.6** 2022年1月4日
|
- **v1.6.6** 2022年1月4日
|
||||||
|
|
||||||
- 更新DOIP-SDK
|
- 更新DOIP-SDK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user