-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
翻译knowledgebase/runtime/index.md和primitives.md #10
base: lbc
Are you sure you want to change the base?
Conversation
dajuguan
commented
Nov 9, 2020
- Are the audience and objective of the document clear? E.g. a document for developers that should teach them about transaction fees.
- Is the writing:
- Clear: No jargon.
- Precise: No ambiguous meanings.
- Concise: Free of superfluous detail.
- Does it follow our style guide?
- If this is a new page, does the PR include the appropriate infrastructure, e.g. adding the page to a sidebar?
- Build the page ($ cd website && yarn start). Does it render properly? E.g. no funny lists or formatting.
- Do links go to rustdocs or devhub articles rather than code?
- If this PR addresses an issue in the queue, have you referenced it in the description?
--- | ||
|
||
## Substrate Runtime | ||
Runtime包含区块链上的业务逻辑,也就是其状态转换函数。 Runtime定义可用户可以调度的存储项目和功能。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Runtime 用来定义用户存储项和可以调度的功能(函数)。
The runtime contains the business logic that will define your blockchain's behavior, a.k.a. its | ||
state transition function. The runtime will define the storage items and functions that users can | ||
dispatch. | ||
Substrate提供了一组可以自由组合和配置的模块,并称之为“托盘”(pallets),除此之外Substrate还提供了支持托盘和客户端交互的一些列库。 每个托盘包含特定专业领域相关的逻辑和存储,在runtime级别,可以使用标准托盘界面添加自己的托盘,并且能访问其他托盘的提供的公共方法和特性。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interfaces 翻译为接口 更好一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
traits 这里应该是的是 Rust 语言里的 traits, 可以不翻译。
|
||
- `Block`: Essentially just a combination of `Header` and a series of `Extrinsic`s, together with a | ||
specification of the hashing algorithm to be used. | ||
- `Block`: 其实是“区块头”和一系列“外部”的组合,以及要使用的哈希算法。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
前面 Extrinsic
Header
没有翻译,保留用原始单词更好
通常在 代码引用
都保留原文