Skip to content

Commit

Permalink
Merge branch 'release-2' into release-2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieNgWu committed Aug 26, 2021
2 parents 591befb + 57e8930 commit 561b63d
Show file tree
Hide file tree
Showing 18 changed files with 99 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function setState(uint value) public onlyAdmin{

在这里,用户可以看到交易执行状态(status)、交易执行人(from)、交易输入输出(decoded input, decoded output)、交易开销(execution cost)以及交易日志(logs)。在logs中,我们看到SetState事件被抛出,里面的参数也记录了事件传入的值4。如果我们换一个账户来执行,那么调用会失败,因为onlyAdmin修饰符会阻止用户调用。

![](../../../../images/articles/solidity_basic_features/IMG_5448.PNG)
![](../../../../images/articles/solidity_basic_features/IMG_5448.JPG)

### getState

Expand Down Expand Up @@ -383,4 +383,4 @@ struct Person{

## 结语

本文以一个简单的示例合约作为引入,介绍了运用Solidity开发智能合约的基本知识。读者可以尝试运行该合约,感受智能合约的开发。若想更深入学习智能合约示例,推荐[官方网站](https://solidity.readthedocs.io/en/v0.6.2/solidity-by-example.html)示例供读者学习,也可关注本专题后续系列文章。在官网的示例中,提供了投票、竞拍、微支付通道等多个案例,这些案例贴近实际生活,是很好的学习资料。
本文以一个简单的示例合约作为引入,介绍了运用Solidity开发智能合约的基本知识。读者可以尝试运行该合约,感受智能合约的开发。若想更深入学习智能合约示例,推荐[官方网站](https://solidity.readthedocs.io/en/v0.6.2/solidity-by-example.html)示例供读者学习,也可关注本专题后续系列文章。在官网的示例中,提供了投票、竞拍、微支付通道等多个案例,这些案例贴近实际生活,是很好的学习资料。
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@

# “数字贡牌”西湖龙井茶 5G+ 区块链溯源体系

作者:易飞|天演维真 CTO

## <center> ***01 项目背景***
#### 1.1 业务需求

西湖龙井是十大名茶之首,也是杭州独具特色名片之一。位于龙井村狮峰山脚下之龙井路上的杭州西湖龙井茶叶有限公司,是一家实力雄厚,颇具规模的西湖龙井茶生产企业。公司打造的“贡”牌西湖龙井,作为国家的礼茶,在国内外享有盛誉。希望通过数字化转型利用前沿技术,打破传统茶叶产业链格局,逐步朝着数字化、智慧化发展 。

<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5647.PNG" width="310" height="225" />
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5648.PNG" width="310" height="225" />
</div>

#### 1.2 解决方案
- 建立以打造“数字贡牌”为目标,围绕品种保护、生态茶园、生产管理、茶文旅等方面,构建“数字贡牌”产业数字化基础,运用物联网、区块链、5G等技术作为“数字贡牌”建设的技术支撑。用数字赋能产业,提升产业价值。

- 建立“数字茶园”、“数字生产”、“数字展示”等三大数字化体系,可为生产经营、监管服务、决策分析提供多维度、多场景的品牌建设服务,实现“用数据说话、用数据决策、用数据管理、用数据创新”,用数据赋能“数字贡牌”品牌建设。

## <center> ***02 技术方案***
<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5649.PNG"/>
</div>

#### 2.1 数字茶园
- 气象环境监测
- 土壤墒情监测
- 可视化视频监控
- 病虫害监测预警

<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5650.PNG" width="350" height="310" />
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5651.PNG" width="350" height="310" />
</div>

#### 2.2 数字生产-生产计划管理
生产计划管理系统是对企业计划的管理,具体包括制定计划、执行计划、完成计划等三方面的工作。企业生产计划主要分为田间管理计划、灌溉计划、植保计划、施肥计划、采收计划等方面。只有制定生产计划,企业才能合理安排产品生产过程的操作与管理。
<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5652.PNG"/>
</div>

#### 2.3 数字生产-种植管理
系统实现对种植产品种植过程提供专业和标准的生产档案信息表格,生产档案按照茶树特点和生产标准及企业标准进行定制,按照企业生产批次采集生产档案,实现生产档案数据的完整性,确保企业的每一个生产批次都有据可查。

<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5653.PNG"/>
</div>

#### 2.4 数字展示-大数据平台
<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5654.PNG"/>
</div>

#### 2.5 数字展示-溯源
<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5655.PNG"/>
</div>

## <center> ***03 区块链 + 溯源***
#### 3.1 什么是溯源
<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5656.PNG"/>
</div>

#### 3.2 如何溯源
消费者买到产品后,只需扫一扫产品上的二维码身份证,即可了解产品源产地、生产者、种养殖信息、农药施肥信息各类检测和流通信息、生产企业、产品品牌故事等。
<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5657.PNG"/>
</div>

#### 3.3 业务痛点
有了追溯体系,每件地方特色产品从哪来到哪去,中间经过哪些流通环节,皆可全程跟踪溯源
<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5658.PNG"/>
</div>

#### 3.4 区块链 + 溯源
<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5659.PNG"/>
</div>
利用区块链的去中心化和防篡改的特性。将农产品溯源的过程数据上链。当溯源过程数据上链后,数据将被痕迹化且不可篡改,这样可以有效的证明溯源数据的真实有效。

## <center> ***04 技术探讨***
#### 4.1 区块链+IoT
通过IoT设备自动化采集农情数据,对比传统的人工填报方式,从源头上保障了过程数据来源真实性,基于BSN联盟链,我们通过智能合约机制进行数据上链,保障了上链过程的透明化,同时基于拜占庭容错的共识机制实现数据防篡改。在面向消费者的溯源码中,“兴农码”基于一品一码模式,为每一份茶叶商品提供了具有全球唯一标识的区块链认证证书,电子证书中详细记录了茶叶种植过程各个环节的上链数据hash,上链时间戳等信息, 证书中的全过程溯源数据都存储于BSN联盟链的城市节点上,通过“物链网”解决方案区块链+溯源应用的落地性得到了很大提升。
<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5660.PNG"/>
</div>

#### 4.2 5G、AI技术融合
<div align=center>
<img src="../../../images/articles/application_westlake_longjingtea_yifei/IMG_5661.PNG"/>
</div>

4 changes: 2 additions & 2 deletions en/docs/blockchain_dev/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Build Blockchain Network
+ Send messages between SDKs


.. admonition:: Write samrt contracts
.. admonition:: Write smart contracts

- `Smart contract development <../manual/smart_contract.html>`_
+ Solidity smart contract and precompiled contract
Expand Down Expand Up @@ -86,4 +86,4 @@ Build Blockchain Network
../manual/consensus_recover.md
../manual/cdn.md
../tutorial/stress_testing.md
../manual/log_description.md
../manual/log_description.md
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 561b63d

Please sign in to comment.