Skip to content

Commit

Permalink
formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandtH22 committed Jul 24, 2024
1 parent 17b8c00 commit eb7baa2
Show file tree
Hide file tree
Showing 65 changed files with 1,647 additions and 1,646 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ Chia学院的课程页面经过精心设计,以增强学生的学习体验。

所有适用的课程都提供了Chialisp和clvm的可运行插件。 花些时间熟悉这些工具,并学习如何在整个课程中最好地利用它们。 每个插件都有一系列组件:

**语言:** 插件的语言(Chialisp或clvm)位于右上角。
**解决方案(Solution):** 顶部部分是输入或解决方案。
**谜题(Puzzle):** 底部部分是谜题。
**运行:** 每个插件在语言标识符右侧都有一个播放/运行按钮。
**语言:** 插件的语言(Chialisp或clvm)位于右上角。
**解决方案(Solution):** 顶部部分是输入或解决方案。
**谜题(Puzzle):** 底部部分是谜题。
**运行:** 每个插件在语言标识符右侧都有一个播放/运行按钮。
**结果:** 单击运行后,谜题的结果将出现在谜题下方。

:::info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ So let's get started, the first thing you'll want to do is make sure you have th
## 常见问题

- **run vs brun:** `run` 用于序列化并运行 Chialisp 谜题,而 `brun` 用于运行 clvm 序列化的谜题,通常用于传递参数。
- **括号(Parentheses):**Chialisp 是完全括号前缀表示法编程语言家族的一部分,可以[追溯](https://en.wikipedia.org/wiki/Lisp_(programming_language))到上世纪 50 年代的 LISP 1。 这些语言的一个显而易见的特点是它们使用括号来表示列表(lists)。 建议在编写这些语言时使用具有适当语法高亮功能的集成开发环境,以确保所有括号都处于正确的位置。 为了帮助解决这个问题,这里有一个适用于 Visual Studio 的 [Chialisp 语言服务器扩展](https://marketplace.visualstudio.com/items?itemName=ChiaNetwork.chialisp)
- **括号(Parentheses):**Chialisp 是完全括号前缀表示法编程语言家族的一部分,可以[追溯](<https://en.wikipedia.org/wiki/Lisp_(programming_language)>)到上世纪 50 年代的 LISP 1。 这些语言的一个显而易见的特点是它们使用括号来表示列表(lists)。 建议在编写这些语言时使用具有适当语法高亮功能的集成开发环境,以确保所有括号都处于正确的位置。 为了帮助解决这个问题,这里有一个适用于 Visual Studio 的 [Chialisp 语言服务器扩展](https://marketplace.visualstudio.com/items?itemName=ChiaNetwork.chialisp)
- **前缀表示法:**Chialisp 作为 LISP 家族的一部分,使用前缀表示法。 这意味着函数或运算符首先出现,其参数紧随其后。

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ The second coin, with 7/8 of the value, is called the _pool coin_. This coin can
As detailed in the [Business white paper](https://www.chia.net/whitepaper), the network's emissions schedule is as follows:

| Years | Final<br/>Block | Final Month<br/>(Approx.) | Block Reward<br/>(total) | Pool<br/>Reward | Farmer<br/>Reward |
| -------:| ---------------------:| -------------------------------:| ------------------------------:| ---------------------:| -----------------------:|
| 1 - 3 | `5 045 760` | March 2024 | 2 XCH | 1.75 XCH | 0.25 XCH |
| 4 - 6 | `10 091 520` | March 2027 | 1 XCH | 0.785 XCH | 0.125 XCH |
| 7 - 9 | `15 137 280` | March 2030 | 0.5 XCH | 0.4375 XCH | 0.0625 XCH |
| 10 - 12 | `20 183 040` | March 2033 | 0.25 XCH | 0.21875 XCH | 0.03125 XCH |
| 13 - ∞ | | | 0.125 XCH | 0.109375 XCH | 0.015625 XCH |
| ------: | --------------: | ------------------------: | -----------------------: | --------------: | ----------------: |
| 1 - 3 | `5 045 760` | March 2024 | 2 XCH | 1.75 XCH | 0.25 XCH |
| 4 - 6 | `10 091 520` | March 2027 | 1 XCH | 0.785 XCH | 0.125 XCH |
| 7 - 9 | `15 137 280` | March 2030 | 0.5 XCH | 0.4375 XCH | 0.0625 XCH |
| 10 - 12 | `20 183 040` | March 2033 | 0.25 XCH | 0.21875 XCH | 0.03125 XCH |
| 13 - ∞ ||| 0.125 XCH | 0.109375 XCH | 0.015625 XCH |

Note that the rewards are adjusted according to a block height, not a timestamp. Note that the rewards are adjusted according to a block height, not a timestamp. The `Final Block` column is therefore accurate as the last block before the rewards are modified. The months and years are only estimates based on when the block heights are likely to be reached. The months and years are only estimates based on when the block heights are likely to be reached.
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ Usage: hw_vdf_client [OPTIONS] PORT [N_VDFS]

Options:

| Long Command | Type | Required | Description |
| :----------------- | :------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------- |
| --freq | INTEGER | False | set ASIC frequency [%d, 200 - 2200] |
| --voltage | INTEGER | False | set board voltage [.88, 0.7 - 1.0] |
| --ip | TEXT | False | timelord IP address [localhost] |
| --vdfs-mask | TEXT | False | mask for enabling VDF engines [7, 1 - 7] |
| --vdf-threads | TEXT | False | number of software threads per VDF engine [4, 2 - 64] |
| --proof-threads | TEXT | False | number of proof threads per VDF engine [3, 1 - 63] |
| --auto-freq-period | TEXT | False | auto-adjust frequency every N seconds [0, 10 - inf] |
| --list | TEXT | False | list available devices and exit |
| --help | None | False | Show a help message and exit |
| Long Command | Type | Required | Description |
| :----------------- | :------ | :------- | :---------------------------------------------------- |
| --freq | INTEGER | False | set ASIC frequency [%d, 200 - 2200] |
| --voltage | INTEGER | False | set board voltage [.88, 0.7 - 1.0] |
| --ip | TEXT | False | timelord IP address [localhost] |
| --vdfs-mask | TEXT | False | mask for enabling VDF engines [7, 1 - 7] |
| --vdf-threads | TEXT | False | number of software threads per VDF engine [4, 2 - 64] |
| --proof-threads | TEXT | False | number of proof threads per VDF engine [3, 1 - 63] |
| --auto-freq-period | TEXT | False | auto-adjust frequency every N seconds [0, 10 - inf] |
| --list | TEXT | False | list available devices and exit |
| --help | None | False | Show a help message and exit |

<details>
<summary>Example 1 - Run the ASIC software with defaults</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Usage: cats [OPTIONS]
Options:

| Short Command | Long Command | Type | Required | Description |
|:------------- |:--------------------- |:------- |:-------- |:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| :------------ | :-------------------- | :------ | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| -l | --tail | TEXT | True | The TAIL program to launch this CAT with |
| -c | --curry | TEXT | False | An argument to curry into the TAIL |
| -s | --solution | TEXT | False | The solution to the TAIL program [default: ()] |
Expand Down Expand Up @@ -186,7 +186,7 @@ Usage: secure_the_bag [OPTIONS]
Options:

| Short Command | Long Command | Type | Required | Description |
|:------------- |:----------------------------- |:------- |:-------- |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| :------------ | :---------------------------- | :------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| -c | --curry | TEXT | False | An argument to curry into the TAIL |
| -a | --amount | INTEGER | True | The amount to issue in mojos (regular XCH will be used to fund this) |
| -stbtp | --secure-the-bag-targets-path | TEXT | True | Path to CSV file containing targets of secure the bag (inner puzzle hash + amount). The total value of the coins in this file must match the value of the `amount` flag. If they don't match, an error will be thrown. |
Expand Down Expand Up @@ -222,7 +222,7 @@ Usage: secure_the_bag [OPTIONS]
Options:

| Short Command | Long Command | Type | Required | Description |
|:------------- |:----------------------------- |:------- |:-------- |:----------------------------------------------------------------------------------------------------- |
| :------------ | :---------------------------- | :------ | :------- | :---------------------------------------------------------------------------------------------------- |
| -ecid | --eve-coin-id | TEXT | True | ID of coin that was spent to create secured bag |
| -th | --tail-hash | TEXT | True | TAIL hash / Asset ID of CAT to unwind from secured bag of CATs |
| -stbtp | --secure-the-bag-targets-path | TEXT | True | Path to CSV file containing targets of secure the bag (inner puzzle hash + amount) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ Usage: `clawback [OPTIONS] COMMAND [ARGS]`
Options:

| Short Command | Long Command | Type | Required | Description |
|:------------- |:------------ |:---- |:-------- |:---------------------------- |
| :------------ | :----------- | :--- | :------- | :--------------------------- |
| | --version | None | False | Show the version and exit |
| -h | --help | None | False | Show a help message and exit |

Commands:

| Name | Description |
|:------ |:--------------------------------------------------- |
| :----- | :-------------------------------------------------- |
| claim | Claim a clawback coin after the timelock has passed |
| claw | Clawback an unclaimed coin |
| create | Send xch to a clawback coin |
Expand All @@ -60,7 +60,7 @@ Usage: `clawback claim [OPTIONS]`
Options:

| Short Command | Long Command | Type | Required | Description |
|:------------- |:----------------- |:------- |:-------- |:-------------------------------------------------------------------------------------------------------- |
| :------------ | :---------------- | :------ | :------- | :------------------------------------------------------------------------------------------------------- |
| -c | --coin-id | TEXT | True | The coin ID you want to claim |
| -m | --fee | FLOAT | False | The fee in XCH for this transaction |
| -w | --wallet-id | INTEGER | False | The wallet id for fees. If no target address given the clawback will go to this wallet id |
Expand Down Expand Up @@ -245,7 +245,7 @@ Usage: `clawback claw [OPTIONS]`
Options: Clawback an unclaimed coin
| Short Command | Long Command | Type | Required | Description |
|:------------- |:----------------- |:------- |:-------- |:-------------------------------------------------------------------------------------------------------- |
| :------------ | :---------------- | :------ | :------- | :------------------------------------------------------------------------------------------------------- |
| -c | --coin-id | TEXT | True | The coin ID for the clawback coin to inspect |
| -m | --fee | FLOAT | False | The fee in XCH for this transaction |
| -w | --wallet-id | INTEGER | False | The wallet id for fees. If no target address given the clawback will go to this wallet id |
Expand Down Expand Up @@ -317,7 +317,7 @@ Usage: `clawback create [OPTIONS]`
Options:
| Short Command | Long Command | Type | Required | Description |
|:------------- |:----------------- |:------- |:-------- |:-------------------------------------------------------------------------------------------------------- |
| :------------ | :---------------- | :------ | :------- | :------------------------------------------------------------------------------------------------------- |
| -t | --to | TEXT | True | The recipient's address |
| -l | --timelock | INTEGER | False | The timelock to use for the clawback coin you're creating, in seconds. Default is two weeks |
| -a | --amount | INTEGER | True | The amount to fund (in XCH) |
Expand Down Expand Up @@ -410,7 +410,7 @@ Usage: `clawback show [OPTIONS]`
Options:
| Short Command | Long Command | Type | Required | Description |
|:------------- |:----------------- |:------- |:-------- |:-------------------------------------------------------------------------------------------------------- |
| :------------ | :---------------- | :------ | :------- | :------------------------------------------------------------------------------------------------------- |
| -c | --coin-id | TEXT | False | The coin ID for the clawback coin to inspect |
| -np | --node-rpc-port | INTEGER | False | Set the port where the Node is hosting the RPC interface |
| -f | --fingerprint | INTEGER | False | Set the fingerprint to specify which wallet to use |
Expand Down
Loading

0 comments on commit eb7baa2

Please sign in to comment.