风险提示:请理性看待区块链,树立正确的货币观念和投资理念,不要盲目跟风投资,本站内容不构成投资建议,请谨慎对待。 免责声明:本站所发布文章仅代表个人观点,与CoinVoice官方立场无关

Substrate Runtime 概述|Substrate 文档

PolkaWorld
2020年06月04日

加入 PolkaWorld 社区,共建 Web 3.0!

Substrate Runtime 概述|Substrate 文档

Substrate Runtime

Runtime 包含定义你的区块链行为的业务逻辑,也就是它的状态转换函数。Runtime 将定义用户可以分派的存储项和函数。

Substrate 提供一组模块,称为 pallets,可以组合和配置。Substrate 还提供必要的支持库,让这些模块与客户端交互。每个模块包含特定场景的逻辑和存储项。在 runtime 层面,你还可以使用标准模块接口添加自己的模块,并访问其他模块的公共方法和特性。

整个模块和支持库称为 FRAME 框架。FRAME 通过实现原语中的特征与客户端交互。

Substrate Runtime 概述|Substrate 文档

例如,如果要将智能合约功能添加到区块链,只需添加合约模块。添加此模块将公开智能合约界面,所以用户才可以部署在 Wasm 中执行智能合约。

因为 Substrate 可以在本地和 Wasm 中执行 runtime,所以你在 FRAME 中编写的任何内容都可以升级,而无需硬分叉。

了解更多

原文:

https://substrate.dev/docs/en/conceptual/runtime/

翻译:PolkaWorld 社区

  • 欢迎学习 Substrate:

https://substrate.dev/

  • 关注 Substrate 进展 :

https://github.com/paritytech/substrate

  • 关注 Polkadot 进展 :

https://github.com/paritytech/polkadot

Substrate Runtime 概述|Substrate 文档

扫码关注公众号,回复 “1” 加入波卡群

Substrate Runtime 概述|Substrate 文档

关注 PolkaWorld

发现 Web 3.0 时代新机遇

点个 “在看” 再走吧!


声明:本内容为作者独立观点,不代表 CoinVoice 立场,且不构成投资建议,请谨慎对待,如需报道或加入交流群,请联系微信:VOICE-V。

评论0条