From 5b187cd625b4342cf3e0c713ce58a051758d9392 Mon Sep 17 00:00:00 2001 From: ClydeWallace22 <48610606+BrandtH22@users.noreply.github.com> Date: Wed, 6 Dec 2023 12:46:00 -0700 Subject: [PATCH] tab fixes related to version bumps The new versions of mdx and docusaurus no longer require mdx-code-blocks and having them in the md files can cause issues with tabs being present. This pr updates all of the tabs across the docs site to align with the updated method of adding tabs --- docs/cli-reference/cat-admin.md | 2 - docs/cli-reference/cli.md | 2 - docs/cli-reference/datalayer.md | 2 - docs/cli-reference/dids.md | 2 - docs/cli-reference/nfts.md | 2 - docs/cli-reference/offers.md | 2 - docs/cli-reference/plotters.md | 2 - docs/cli-reference/simulator.md | 2 - docs/cli-reference/vcs.md | 2 - docs/cli-reference/wallet.md | 2 - docs/farming/dual-farming-testnet-mainnet.md | 2 - docs/farming/farming-compressed-plots.md | 2 - docs/getting-started/farming-guide.md | 2 - docs/getting-started/installation.md | 100 ++-- docs/guides/cat/cat-creation-tutorial.md | 26 +- docs/guides/cat/cat2-upgrade/cat2-intro.md | 2 - docs/guides/cat/cat2-upgrade/cat2-issuance.md | 470 +++++++----------- docs/guides/cat/cat2-upgrade/cat2-snapshot.md | 280 ++++------- docs/guides/cat/cr-cat-tutorial.md | 26 +- .../clawback/clawback-primitive-guide.md | 40 +- docs/guides/clawback/clawback-user-guide.md | 2 - docs/guides/crash-course/cats-offers-nfts.md | 27 +- docs/guides/crash-course/chialisp.md | 16 +- docs/guides/crash-course/intro-to-chialisp.md | 20 +- docs/guides/crash-course/introduction.md | 14 - .../guides/custody/custody-tool-user-guide.md | 40 +- .../guides/datalayer/datalayer-permissions.md | 2 - docs/guides/datalayer/datalayer-user-guide.md | 24 +- docs/guides/nft/nft-bulk-mint.md | 40 +- docs/guides/nft/nft-intro.md | 8 - docs/guides/nft/nft-rpc.md | 8 - docs/guides/simulator-user-guide.md | 12 +- docs/guides/verifiable-credentials-guide.md | 2 - .../walletconnect-developer-guide.md | 2 - .../walletconnect/walletconnect-user-guide.md | 2 - docs/plotting/plotting-basics.md | 2 - docs/plotting/plotting-compression.md | 2 - docs/plotting/plotting-hardware.md | 2 - docs/plotting/plotting-how-to.md | 2 - docs/plotting/plotting-setup.md | 2 - docs/plotting/plotting-software.md | 2 - docs/resources/faq.md | 24 +- docs/rpc-reference/daemon.md | 32 +- docs/rpc-reference/datalayer.md | 2 - docs/rpc-reference/dids.md | 2 - docs/rpc-reference/farmer.md | 2 - docs/rpc-reference/full-node.md | 2 - docs/rpc-reference/harvester.md | 2 - docs/rpc-reference/nfts.md | 2 - docs/rpc-reference/offers.md | 2 - docs/rpc-reference/simulator.md | 2 - docs/rpc-reference/vcs.md | 2 - docs/rpc-reference/wallet.md | 2 - 53 files changed, 433 insertions(+), 844 deletions(-) diff --git a/docs/cli-reference/cat-admin.md b/docs/cli-reference/cat-admin.md index 761eab9bbf..306704c613 100644 --- a/docs/cli-reference/cat-admin.md +++ b/docs/cli-reference/cat-admin.md @@ -4,10 +4,8 @@ title: CAT Admin CLI slug: /cat-admin-cli --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Intro diff --git a/docs/cli-reference/cli.md b/docs/cli-reference/cli.md index 5546467507..2587e4a9b6 100644 --- a/docs/cli-reference/cli.md +++ b/docs/cli-reference/cli.md @@ -4,10 +4,8 @@ title: CLI Overview slug: /cli --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` # CLI Commands Reference diff --git a/docs/cli-reference/datalayer.md b/docs/cli-reference/datalayer.md index 2e65057c14..b0158e6408 100644 --- a/docs/cli-reference/datalayer.md +++ b/docs/cli-reference/datalayer.md @@ -4,10 +4,8 @@ title: DataLayer CLI slug: /datalayer-cli --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This page includes a comprehensive list of Chia's Command Line Interface commands for interacting with the DataLayer. diff --git a/docs/cli-reference/dids.md b/docs/cli-reference/dids.md index a217163755..352b5c260c 100644 --- a/docs/cli-reference/dids.md +++ b/docs/cli-reference/dids.md @@ -4,10 +4,8 @@ title: DID CLI slug: /did-cli --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document is a comprehensive listing of CLI commands for interacting with Chia DIDs. diff --git a/docs/cli-reference/nfts.md b/docs/cli-reference/nfts.md index 078ccec748..916a0966f6 100644 --- a/docs/cli-reference/nfts.md +++ b/docs/cli-reference/nfts.md @@ -4,10 +4,8 @@ title: NFT CLI slug: /nft-cli --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Reference diff --git a/docs/cli-reference/offers.md b/docs/cli-reference/offers.md index 964cede35f..de8b2cde06 100644 --- a/docs/cli-reference/offers.md +++ b/docs/cli-reference/offers.md @@ -4,10 +4,8 @@ title: Offer CLI slug: /offer-cli --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -```
Note about Windows command escaping diff --git a/docs/cli-reference/plotters.md b/docs/cli-reference/plotters.md index 7249d70e38..92bf2499dc 100644 --- a/docs/cli-reference/plotters.md +++ b/docs/cli-reference/plotters.md @@ -4,10 +4,8 @@ title: Plotters slug: /plotters-cli --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document is a comprehensive listing of CLI commands for creating plots from within Chia. diff --git a/docs/cli-reference/simulator.md b/docs/cli-reference/simulator.md index 6e0b1e7a0a..8b39a73842 100644 --- a/docs/cli-reference/simulator.md +++ b/docs/cli-reference/simulator.md @@ -4,10 +4,8 @@ title: Simulator CLI Reference slug: /simulator-cli --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Intro diff --git a/docs/cli-reference/vcs.md b/docs/cli-reference/vcs.md index ade43bf881..814a0e1789 100644 --- a/docs/cli-reference/vcs.md +++ b/docs/cli-reference/vcs.md @@ -4,10 +4,8 @@ title: Verifiable Credentials slug: /vc-cli --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document is a comprehensive listing of CLI commands for interacting with Chia VCs. diff --git a/docs/cli-reference/wallet.md b/docs/cli-reference/wallet.md index 82eaa07078..88fa205cfd 100644 --- a/docs/cli-reference/wallet.md +++ b/docs/cli-reference/wallet.md @@ -4,10 +4,8 @@ title: Wallet CLI slug: /wallet-cli --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document is a reference for Chia's `wallet` CLI commands. The following `wallet` commands are documented on their own dedicated pages: diff --git a/docs/farming/dual-farming-testnet-mainnet.md b/docs/farming/dual-farming-testnet-mainnet.md index 24158e0cbd..18f140434c 100644 --- a/docs/farming/dual-farming-testnet-mainnet.md +++ b/docs/farming/dual-farming-testnet-mainnet.md @@ -3,10 +3,8 @@ title: Dual Farming slug: dual-farming-testnet-mainnet --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` :::info diff --git a/docs/farming/farming-compressed-plots.md b/docs/farming/farming-compressed-plots.md index e6f5a39569..00c28d1970 100644 --- a/docs/farming/farming-compressed-plots.md +++ b/docs/farming/farming-compressed-plots.md @@ -4,10 +4,8 @@ title: Compressed Plot Farming slug: /farming-compressed-plots --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` As detailed in the [plotting](/plotting-basics) section, compressed plots are supported for both plotting and harvesting as of Chia version 2.0. Before you can harvest compressed plots, you need to inform your harvesters of the fact that they exist. diff --git a/docs/getting-started/farming-guide.md b/docs/getting-started/farming-guide.md index 746a827120..0236d5d52a 100644 --- a/docs/getting-started/farming-guide.md +++ b/docs/getting-started/farming-guide.md @@ -4,10 +4,8 @@ title: Beginner's Guide to Farming slug: /farming-guide --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` So you want to be a Chia farmer? You've come to the right place! diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index cbabc9eb82..c6d3763750 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -3,10 +3,8 @@ title: Installation Details slug: /installation --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` :::info @@ -49,7 +47,6 @@ If the computer or hard drives go to sleep during the plotting process, it will ### Using the CLI _This method is intended for linux environments_ -```mdx-code-block - -``` + ]}> + ```bash # Install packages @@ -80,10 +76,8 @@ sudo apt-get install chia-blockchain # Use chia-blockchain-cli instead for CLI only ``` -```mdx-code-block - - -``` + + ```bash # Install packages @@ -96,10 +90,8 @@ sudo yum install chia-blockchain # Use chia-blockchain-cli for CLI only ``` -```mdx-code-block - - -``` + + ```bash # Install packages @@ -112,10 +104,8 @@ sudo dnf install chia-blockchain # Use chia-blockchain-cli for CLI only ``` -```mdx-code-block - - -``` + + :::note Make sure you have [Python 3.10](https://www.python.org/downloads/release/python-3109) and [Git](https://git-scm.com/downloads) installed. @@ -138,14 +128,11 @@ pip install --extra-index-url https://pypi.chia.net/simple chia-blockchain miniu Chia strives to provide [binary wheels](https://pythonwheels.com) for modern systems. If your system does not have binary wheels, you may need to install development tools to build some Python extensions from source. If you're attempting to install from source, setting the environment variable `BUILD_VDF_CLIENT` to `N` will skip trying to build Timelord components that aren't very cross platform, e.g. `export BUILD_VDF_CLIENT=N`. -```mdx-code-block - + -``` ### From Source _This method is primarily intended for contributing to the Chia codebase_ -```mdx-code-block -``` :::note Make sure you have [Python 3.10](https://www.python.org/downloads/release/python-3109) and [Git](https://git-scm.com/downloads) installed. @@ -213,10 +199,8 @@ sh install.sh chia init ``` -```mdx-code-block - - -``` + + :::note Make sure you have [Python 3.10](https://www.python.org/downloads/release/python-3109) and [Git](https://git-scm.com/downloads) installed. @@ -275,15 +259,8 @@ git status chia init ``` -```mdx-code-block - - -``` - -```mdx-code-block - + -``` ### Raspberry Pi 4 {#raspberry-pi} @@ -297,7 +274,6 @@ It is highly recommended you put the Chia blockchain and wallet database on an S It is suggested that you set up 1024 MiB of swap: -```mdx-code-block -``` Run the following commands to set up the swap: @@ -323,17 +298,13 @@ Add this line to `/etc/fstab` so that swap available on reboot: /swap swap swap defaults 0 0 ``` -```mdx-code-block - - -``` + + Here is an excellent [walk-through of increasing swap space](https://pimylifeup.com/raspberry-pi-swap-file/) on Raspbian 64. -```mdx-code-block - + -``` #### Setup {#raspberry-pi-setup} @@ -372,15 +343,14 @@ export BUILD_VDF_CLIENT=N ### Other environments -````mdx-code-block Installation instructions for docker are found on the container repo: [Docker](https://github.com/orgs/Chia-Network/packages/container/package/chia) - - + + You can run chia-blockchain in Ubuntu 20.04 LTS via WSL2 on Windows. @@ -435,8 +405,8 @@ For maximum speed, `-t` and `-2` should be inside the WSL2 filesystem. Something `-d` can point to any other drive for the final destination. - - + + #### Install from source - Amazon Linux 2 See [install from source](/installation#from-source) for detailed instruction. @@ -452,8 +422,8 @@ pip install --upgrade pip pip install --extra-index-url https://pypi.chia.net/simple chia-blockchain miniupnpc ``` - - + + _**These instructions were tested with Chia 1.1.4 on FreeBSD 11.3- and 11.4-RELEASE, newer versions may exist**_ @@ -708,8 +678,8 @@ That's it! Provided the instructions were followed to the T, and the build is a More details can be found in the [Chia Introduction](https://docs.chia.net/introduction). - - + + _**These instructions were tested with Chia 1.1.4 on OpenBSD/amd64 6.8, newer versions may exist**_ @@ -823,7 +793,7 @@ cd chia-blockchain cd chia-blockchain-gui npm run electron ``` - + - - - - - @@ -857,7 +827,6 @@ It is possible to configure the `CHIA_ROOT` environment variable to another loca Using the CLI gives greater and more precise control over the various Chia services such as the full node. As of 1.8.2, when installing from an installer or package CLI commands will be automatically added to your path for Windows and Linux. For more details on the commands, read the [CLI Reference](/cli). -````mdx-code-block @@ -877,8 +846,8 @@ export PATH=/Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon:$ To load this on startup, add it to the `.bashrc`, `.bash_profile`, or `.zshrc` file depending on which is used by the shell. - - + + The CLI commands are stored in the following location: If installed for the user it can be found at @@ -890,8 +859,8 @@ If installed for all users it can be found at ```bash C:\Program Files\Chia\resources\app.asar.unpacked\daemon\chia.exe ``` - - + + :::note If you installed Chia from source, the CLI will not require any further setup. @@ -904,15 +873,13 @@ If you installed Chia with the Linux installer files, the CLI commands are store /lib/chia-blockchain/resources/app.asar.unpacked/daemon/chia ``` - + -```` ### GUI -The GUI is the most user friendly method of interacting with Chia for non-developer uses, and it can be installed manually from the CLI if you installed from source. +The GUI is the most user-friendly method of interacting with Chia for non-developer uses, and it can be installed manually from the CLI if you installed from source. -````mdx-code-block @@ -946,8 +913,8 @@ chmod +x ./install-gui.sh bash start-gui.sh ``` - - + + ```bash # Install the GUI @@ -982,9 +949,8 @@ cd chia-blockchain-gui Start-Process -NoNewWindow npm run electron ``` - + -```` ### Initial Startup diff --git a/docs/guides/cat/cat-creation-tutorial.md b/docs/guides/cat/cat-creation-tutorial.md index 1e5d811fc4..a5b58df7e1 100644 --- a/docs/guides/cat/cat-creation-tutorial.md +++ b/docs/guides/cat/cat-creation-tutorial.md @@ -3,10 +3,8 @@ slug: '/guides/cat-creation-tutorial' title: CAT Creation Tutorial --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` The CAT standard allows you to create fungible tokens on the Chia blockchain. This step-by-step guide will go through creating your own CATs. For info on how CATs are built at the Chialisp level, see our [CAT primitive page](https://chialisp.com/cats). @@ -88,10 +86,14 @@ Once you have a synced wallet and some TXCH, you are ready to run the CAT admin Now we will set up the CAT admin tool, which will help you to issue your CATs: -```mdx-code-block - - -``` + + Your Linux installation may not come with Python's development tools installed by default. To be sure that these tools are installed, run: @@ -145,11 +147,8 @@ Install pytest: pip install pytest ``` -```mdx-code-block - - - -``` + + Next, clone the tool's GitHub repository: @@ -201,11 +200,8 @@ pip install pytest You might receive an error such as ERROR: Failed building wheel for CAT-admin-tool. This is likely safe to ignore. As long as you can run cats --help without errors, the tool has been installed properly. ::: -```mdx-code-block - - + -``` ---
diff --git a/docs/guides/cat/cat2-upgrade/cat2-intro.md b/docs/guides/cat/cat2-upgrade/cat2-intro.md index ea461dcf7f..c484a17ee2 100644 --- a/docs/guides/cat/cat2-upgrade/cat2-intro.md +++ b/docs/guides/cat/cat2-upgrade/cat2-intro.md @@ -4,10 +4,8 @@ sidebar_label: 1. Intro and FAQ slug: /guides/cat2-intro --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` CAT1 reached its end of life at block 2,311,760, which occurred on July 26, 2022 at around 17:00 UTC. This was the final block where CAT1 was valid. At this block height, a snapshot was taken of all CAT1 tokens, along with the addresses of where they were being held. CAT1 issuers are now able to issue new CAT2 tokens and airdrop them to the same addresses where the CAT1 tokens were held. diff --git a/docs/guides/cat/cat2-upgrade/cat2-issuance.md b/docs/guides/cat/cat2-upgrade/cat2-issuance.md index 44db7fe356..cf6741fbee 100644 --- a/docs/guides/cat/cat2-upgrade/cat2-issuance.md +++ b/docs/guides/cat/cat2-upgrade/cat2-issuance.md @@ -4,10 +4,8 @@ sidebar_label: 3. Token Reissuance slug: /guides/cat2-issuance --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` :::info CAT1 will reach its end of life at block 2,311,760, which will occur on July 26, 2022 at around 17:00 UTC. @@ -45,88 +43,72 @@ Now that you have a CSV file containing the necessary information, you can run t 3. Create a new virtual environment and then activate it: - ```mdx-code-block - - - ``` + + ```powershell python -m venv venv .\venv\Scripts\Activate.ps1 ``` - ```mdx-code-block - - - ``` + + ```bash python3 -m venv venv . ./venv/bin/activate ``` - ```mdx-code-block - - - ``` + + ```bash python3 -m venv venv . ./venv/bin/activate ``` - ```mdx-code-block - - - ``` + + 4. Install the latest versions of `pip`, `setuptools` and `wheel`: - ```mdx-code-block - - - ``` + + ```powershell python -m pip install --upgrade pip setuptools wheel ``` - ```mdx-code-block - - - ``` + + ```bash python3 -m pip install --upgrade pip setuptools wheel ``` - ```mdx-code-block - - - ``` + + ```bash python3 -m pip install --upgrade pip setuptools wheel ``` - ```mdx-code-block - - - ``` + + 5. Install the CAT Admin Tool: @@ -204,44 +186,36 @@ If you are unsure whether your CAT used a single- or multi-issuance TAIL, step 1 Here's an example of the command to reissue Spacebucks: - ```mdx-code-block - - - ``` + + ```powershell cats --tail .\reference_tails\genesis_by_coin_id.clsp.hex --send-to xch1rh6punh4fy70y80ef4g89c9hqvm54dtl0fvyc4ejdccp3y6p04fqn5x8x8 --amount 1000000000000 --as-bytes --select-coin ``` - ```mdx-code-block - - - ``` + + ```bash cats --tail ./reference_tails/genesis_by_coin_id.clsp.hex --send-to xch1rh6punh4fy70y80ef4g89c9hqvm54dtl0fvyc4ejdccp3y6p04fqn5x8x8 --amount 1000000000000 --as-bytes --select-coin ``` - ```mdx-code-block - - - ``` + + ```bash cats --tail ./reference_tails/genesis_by_coin_id.clsp.hex --send-to xch1rh6punh4fy70y80ef4g89c9hqvm54dtl0fvyc4ejdccp3y6p04fqn5x8x8 --amount 1000000000000 --as-bytes --select-coin ``` - ```mdx-code-block - - - ``` + + The last line of the output will be something like: @@ -266,44 +240,36 @@ If you are unsure whether your CAT used a single- or multi-issuance TAIL, step 1 Here's an example of the command to secure the bag for Spacebucks: - ```mdx-code-block - - - ``` + + ```powershell secure_the_bag --tail .\reference_tails\genesis_by_coin_id.clsp.hex --amount 1000000000000 --secure-the-bag-targets-path C:\Users\Username\Downloads\spacebucks.csv --prefix xch --curry 0x8f4dbff8df3f6aa9303eb47625cf8f09d885f1ad6a2d440582cb6bd45f53d2e8 ``` - ```mdx-code-block - - - ``` + + ```bash secure_the_bag --tail ./reference_tails/genesis_by_coin_id.clsp.hex --amount 1000000000000 --secure-the-bag-targets-path /home/Username/Downloads/spacebucks.csv --prefix xch --curry 0x8f4dbff8df3f6aa9303eb47625cf8f09d885f1ad6a2d440582cb6bd45f53d2e8 ``` - ```mdx-code-block - - - ``` + + ```bash secure_the_bag --tail ./reference_tails/genesis_by_coin_id.clsp.hex --amount 1000000000000 --secure-the-bag-targets-path /Users/Username/Download/spacebucks.csv --prefix xch --curry 0x8f4dbff8df3f6aa9303eb47625cf8f09d885f1ad6a2d440582cb6bd45f53d2e8 ``` - ```mdx-code-block - - - ``` + + The command will create a tree of coins. This could take a long time, depending on how many coins need to be created. While it's in progress, it will output the percent complete. After it is finished, it will output the puzzle hash and address of the new coin to be created. @@ -328,44 +294,36 @@ If you are unsure whether your CAT used a single- or multi-issuance TAIL, step 1 For this example, the command looks like this: - ```mdx-code-block - - - ``` + + ```powershell cats --tail .\reference_tails\genesis_by_coin_id.clsp.hex --send-to xch19k6cl5syzvxgkgulr7m49v2r57yh0aanm23hrffgd89j4nj3ywhqxadyqr --amount 1000000000000 --as-bytes --curry 0x8f4dbff8df3f6aa9303eb47625cf8f09d885f1ad6a2d440582cb6bd45f53d2e8 ``` - ```mdx-code-block - - - ``` + + ```bash cats --tail ./reference_tails/genesis_by_coin_id.clsp.hex --send-to xch19k6cl5syzvxgkgulr7m49v2r57yh0aanm23hrffgd89j4nj3ywhqxadyqr --amount 1000000000000 --as-bytes --curry 0x8f4dbff8df3f6aa9303eb47625cf8f09d885f1ad6a2d440582cb6bd45f53d2e8 ``` - ```mdx-code-block - - - ``` + + ```bash cats --tail ./reference_tails/genesis_by_coin_id.clsp.hex --send-to xch19k6cl5syzvxgkgulr7m49v2r57yh0aanm23hrffgd89j4nj3ywhqxadyqr --amount 1000000000000 --as-bytes --curry 0x8f4dbff8df3f6aa9303eb47625cf8f09d885f1ad6a2d440582cb6bd45f53d2e8 ``` - ```mdx-code-block - - - ``` + + You will need to confirm that you want to push the transaction, then you will receive the `Asset ID` and `Eve Coin ID`. For this example, the following was the result: @@ -427,44 +385,36 @@ You need to use the same public/private key pair to sign the CAT2 issuance as yo Here's an example of the command: - ```mdx-code-block - - - ``` + + ```powershell cats --tail .\reference_tails\delegated_tail.clsp.hex --send-to xch1rh6punh4fy70y80ef4g89c9hqvm54dtl0fvyc4ejdccp3y6p04fqn5x8x8 --amount 6000000000 --as-bytes --select-coin ``` - ```mdx-code-block - - - ``` + + ```bash cats --tail ./reference_tails/delegated_tail.clsp.hex --send-to xch1rh6punh4fy70y80ef4g89c9hqvm54dtl0fvyc4ejdccp3y6p04fqn5x8x8 --amount 6000000000 --as-bytes --select-coin ``` - ```mdx-code-block - - - ``` + + ```bash cats --tail ./reference_tails/delegated_tail.clsp.hex --send-to xch1rh6punh4fy70y80ef4g89c9hqvm54dtl0fvyc4ejdccp3y6p04fqn5x8x8 --amount 6000000000 --as-bytes --select-coin ``` - ```mdx-code-block - - - ``` + + The last line of the output will be something like: @@ -489,44 +439,36 @@ You need to use the same public/private key pair to sign the CAT2 issuance as yo Here's an example of the command to secure the bag: - ```mdx-code-block - - - ``` + + ```powershell secure_the_bag --tail .\reference_tails\delegated_tail.clsp.hex --amount 6000000000 --secure-the-bag-targets-path C:\Users\Username\Downloads\multi.csv --prefix xch --curry 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6 ``` - ```mdx-code-block - - - ``` + + ```bash secure_the_bag --tail ./reference_tails/delegated_tail.clsp.hex --amount 6000000000 --secure-the-bag-targets-path /home/Username/Downloads/multi.csv --prefix xch --curry 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6 ``` - ```mdx-code-block - - - ``` + + ```bash secure_the_bag --tail ./reference_tails/delegated_tail.clsp.hex --amount 6000000000 --secure-the-bag-targets-path /Users/Username/Download/multi.csv --prefix xch --curry 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6 ``` - ```mdx-code-block - - - ``` + + The command will create a tree of coins. This could take a long time, depending on how many coins need to be created. While it's in progress, it will output the percent complete. After it is finished, it will output the puzzle hash and address of the new coin to be created. @@ -549,44 +491,36 @@ You need to use the same public/private key pair to sign the CAT2 issuance as yo In this example, the command will be: - ```mdx-code-block - - - ``` + + ```powershell cdv clsp curry .\reference_tails\genesis_by_coin_id.clsp.hex -a 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6 ``` - ```mdx-code-block - - - ``` + + ```bash cdv clsp curry ./reference_tails/genesis_by_coin_id.clsp.hex -a 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6 ``` - ```mdx-code-block - - - ``` + + ```bash cdv clsp curry ./reference_tails/genesis_by_coin_id.clsp.hex -a 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6 ``` - ```mdx-code-block - - - ``` + + The output will be a new CLVM puzzle: @@ -598,44 +532,36 @@ You need to use the same public/private key pair to sign the CAT2 issuance as yo 6. Run the same `curry` command from the previous step, but add the `--treehash` flag at the end: - ```mdx-code-block - - - ``` + + ```powershell cdv clsp curry .\reference_tails\genesis_by_coin_id.clsp.hex -a 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6 --treehash ``` - ```mdx-code-block - - - ``` + + ```bash cdv clsp curry ./reference_tails/genesis_by_coin_id.clsp.hex -a 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6 --treehash ``` - ```mdx-code-block - - - ``` + + ```bash cdv clsp curry ./reference_tails/genesis_by_coin_id.clsp.hex -a 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6 --treehash ``` - ```mdx-code-block - - - ``` + + The output will be the treehash of the puzzle you calculated in the previous step: @@ -686,44 +612,36 @@ You need to use the same public/private key pair to sign the CAT2 issuance as yo For this example, the command to execute is: - ```mdx-code-block - - - ``` + + ```powershell cats --tail .\reference_tails\delegated_tail.clsp.hex --curry 0x8a7afe10d00899b94cf0d407b85e1b9fca21868bcf158563fe9432b60e36db7136055186221fbd27ecc7fc0d5b99ef1b --send-to xch1rd7hejemt57amqtxq8azqg90hgxyhd9shwyjuppq5ez2jn4rlznscn4efy --amount 6000000000 --as-bytes --solution "(a (q 2 (i 47 (q 8) (q 2 (i (= 45 2) () (q 8)) 1)) 1) (c (q . 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6) 1))" --signature b75390ee21b001b7a721f719ff045e3dc2a1072ab0824a8e75c881398db0fbed8fde5c62bbdfe629dce5da3d77834559016acd6d403f9b90d3102da2e9452461457514088af0cabe0b8a8493fc9c09d1785f1322abc8958ecf7907eba0e0abcc ``` - ```mdx-code-block - - - ``` + + ```bash cats --tail ./reference_tails/delegated_tail.clsp.hex --curry 0x8a7afe10d00899b94cf0d407b85e1b9fca21868bcf158563fe9432b60e36db7136055186221fbd27ecc7fc0d5b99ef1b --send-to xch1rd7hejemt57amqtxq8azqg90hgxyhd9shwyjuppq5ez2jn4rlznscn4efy --amount 6000000000 --as-bytes --solution "(a (q 2 (i 47 (q 8) (q 2 (i (= 45 2) () (q 8)) 1)) 1) (c (q . 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6) 1))" --signature b75390ee21b001b7a721f719ff045e3dc2a1072ab0824a8e75c881398db0fbed8fde5c62bbdfe629dce5da3d77834559016acd6d403f9b90d3102da2e9452461457514088af0cabe0b8a8493fc9c09d1785f1322abc8958ecf7907eba0e0abcc ``` - ```mdx-code-block - - - ``` + + ```bash cats --tail ./reference_tails/delegated_tail.clsp.hex --curry 0x8a7afe10d00899b94cf0d407b85e1b9fca21868bcf158563fe9432b60e36db7136055186221fbd27ecc7fc0d5b99ef1b --send-to xch1rd7hejemt57amqtxq8azqg90hgxyhd9shwyjuppq5ez2jn4rlznscn4efy --amount 6000000000 --as-bytes --solution "(a (q 2 (i 47 (q 8) (q 2 (i (= 45 2) () (q 8)) 1)) 1) (c (q . 0x11038a7e107cb7e17a503ba201d94166018deecd777314e4697c5269d9f37fb6) 1))" --signature b75390ee21b001b7a721f719ff045e3dc2a1072ab0824a8e75c881398db0fbed8fde5c62bbdfe629dce5da3d77834559016acd6d403f9b90d3102da2e9452461457514088af0cabe0b8a8493fc9c09d1785f1322abc8958ecf7907eba0e0abcc ``` - ```mdx-code-block - - - ``` + + The output of this command will contain the Asset ID and Eve Coin ID for your issuance: @@ -764,7 +682,6 @@ unwind_the_bag --eve-coin-id --tail-hash --secure-the-b For this example, the command to unwind the entire bag is: -```mdx-code-block -``` ```powershell unwind_the_bag --eve-coin-id 9fe3e95308949cb9c49333f829922dc7118cd3e2fdf365cde669b47852ce3a7b --tail-hash 9c39398afb1d7ffa03a589f60e5e39f2ae4572ff7048e689fe3128c339581b2d --secure-the-bag-targets-path C:\Users\Username\Downloads\spacebucks.csv --unwind-fee 500000 --wallet-id 1 ``` -```mdx-code-block - - -``` + + ```bash unwind_the_bag --eve-coin-id 9fe3e95308949cb9c49333f829922dc7118cd3e2fdf365cde669b47852ce3a7b --tail-hash 9c39398afb1d7ffa03a589f60e5e39f2ae4572ff7048e689fe3128c339581b2d --secure-the-bag-targets-path /home/Username/Downloads/spacebucks.csv --unwind-fee 500000 --wallet-id 1 ``` -```mdx-code-block -``` ```bash unwind_the_bag --eve-coin-id 9fe3e95308949cb9c49333f829922dc7118cd3e2fdf365cde669b47852ce3a7b --tail-hash 9c39398afb1d7ffa03a589f60e5e39f2ae4572ff7048e689fe3128c339581b2d --secure-the-bag-targets-path /Users/Username/Downloads/spacebucks.csv --unwind-fee 500000 --wallet-id 1 ``` -```mdx-code-block -``` This command could take a long time to finish running. Afterward, you will have an exact copy of your CAT1 issuance, but in CAT2 form. @@ -862,44 +772,36 @@ At this point, you can navigate to [taildatabase.com](https://www.taildatabase.c In this example, the command to unwind the bag is: - ```mdx-code-block - - - ``` + + ```powershell unwind_the_bag --eve-coin-id 9fe3e95308949cb9c49333f829922dc7118cd3e2fdf365cde669b47852ce3a7b --tail-hash 9c39398afb1d7ffa03a589f60e5e39f2ae4572ff7048e689fe3128c339581b2d --secure-the-bag-targets-path C:\Users\Username\Downloads\spacebucks.csv --unwind-fee 500000 --wallet-id 1 --unwind-target-puzzle-hash 0085430dafa68a74aa6a5aea0dd1efb121a0d5de286fe828c3ff79168d3c47e2 ``` - ```mdx-code-block - - - ``` + + ```bash unwind_the_bag --eve-coin-id 9fe3e95308949cb9c49333f829922dc7118cd3e2fdf365cde669b47852ce3a7b --tail-hash 9c39398afb1d7ffa03a589f60e5e39f2ae4572ff7048e689fe3128c339581b2d --secure-the-bag-targets-path /home/Username/Downloads/spacebucks.csv --unwind-fee 500000 --wallet-id 1 --unwind-target-puzzle-hash 0085430dafa68a74aa6a5aea0dd1efb121a0d5de286fe828c3ff79168d3c47e2 ``` - ```mdx-code-block - - - ``` + + ```bash unwind_the_bag --eve-coin-id 9fe3e95308949cb9c49333f829922dc7118cd3e2fdf365cde669b47852ce3a7b --tail-hash 9c39398afb1d7ffa03a589f60e5e39f2ae4572ff7048e689fe3128c339581b2d --secure-the-bag-targets-path /Users/Username/Downloads/spacebucks.csv --unwind-fee 500000 --wallet-id 1 --unwind-target-puzzle-hash 0085430dafa68a74aa6a5aea0dd1efb121a0d5de286fe828c3ff79168d3c47e2 ``` - ```mdx-code-block - - - ``` + + This command could take a long time, depending on the total number of coins to unwind. You will need to verify the spend of each individual coin to unwind, and the command will monitor the blockchain for the coin(s) to be spent. @@ -912,44 +814,36 @@ At this point, you can navigate to [taildatabase.com](https://www.taildatabase.c 5. The puzzle hashes from the CSV file are actually _inner_ puzzle hashes, so searching for them on chain using `cdv rpc coinrecords` is more complex than it normally would be. However, you can still verify that the bag was successfully unwound for that puzzle hash by searching for the hint: - ```mdx-code-block - - - ``` + + ```powershell chia rpc full_node get_coin_records_by_hint '{\"hint\": \"\"}' ``` - ```mdx-code-block - - - ``` + + ```bash chia rpc full_node get_coin_records_by_hint '{"hint": ""}' ``` - ```mdx-code-block - - - ``` + + ```bash chia rpc full_node get_coin_records_by_hint '{"hint": ""}' ``` - ```mdx-code-block - - - ``` + + You should see matching coin_records for each entry in the CSV file, along with its corresponding value. diff --git a/docs/guides/cat/cat2-upgrade/cat2-snapshot.md b/docs/guides/cat/cat2-upgrade/cat2-snapshot.md index f2f4165d08..57d867f4b4 100644 --- a/docs/guides/cat/cat2-upgrade/cat2-snapshot.md +++ b/docs/guides/cat/cat2-upgrade/cat2-snapshot.md @@ -4,10 +4,8 @@ sidebar_label: 2. Snapshot Generation slug: /guides/cat2-snapshot --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` :::info CAT1 will reach its end of life at block 2,311,760, which will occur on July 26, 2022 at around 17:00 UTC. @@ -36,17 +34,15 @@ In order to use this tool, you are required to run a fully synced Chia node. Thi 1. Open a terminal window and ensure you have direct access to the `chia` command by doing one of the following: - ```mdx-code-block - - - ``` + + 1. If you previously installed Chia from a **binary build**, then set up an alias to the `chia` command: @@ -64,10 +60,8 @@ In order to use this tool, you are required to run a fully synced Chia node. Thi .\venv\Scripts\Activate.ps1 ``` - ```mdx-code-block - - - ``` + + 1. If you previously installed Chia from a **binary build**, then ensure that the `chia` binary's directory is included in your `PATH`. @@ -77,10 +71,8 @@ In order to use this tool, you are required to run a fully synced Chia node. Thi . ./activate ``` - ```mdx-code-block - - - ``` + + 1. If you previously installed Chia from a **binary build**, then set up an alias to the `chia` command: @@ -94,10 +86,8 @@ In order to use this tool, you are required to run a fully synced Chia node. Thi . ./activate ``` - ```mdx-code-block - - - ``` + + 2. Run the following command: @@ -126,17 +116,15 @@ In order to use this tool, you are required to run a fully synced Chia node. Thi In order to set these variables, you are recommended to put them into a file called `.env` at the root of the `CAT-addresses` project. The tool will automatically read the variables in this file. For example: - ```mdx-code-block - - - ``` + + ```bash title=".env" FULL_NODE_HOSTNAME=localhost @@ -145,10 +133,8 @@ In order to use this tool, you are required to run a fully synced Chia node. Thi TARGET_HEIGHT=2311760 ``` - ```mdx-code-block - - - ``` + + ```bash title=".env" FULL_NODE_HOSTNAME=localhost @@ -157,10 +143,8 @@ In order to use this tool, you are required to run a fully synced Chia node. Thi TARGET_HEIGHT=2311760 ``` - ```mdx-code-block - - - ``` + + ```bash title=".env" FULL_NODE_HOSTNAME=localhost @@ -169,51 +153,41 @@ In order to use this tool, you are required to run a fully synced Chia node. Thi TARGET_HEIGHT=2311760 ``` - ```mdx-code-block - - - ``` + + 5. Install dependencies: - ```mdx-code-block - - - ``` + + ```powershell python setup.py install ``` - ```mdx-code-block - - - ``` + + ```bash python3 setup.py install ``` - ```mdx-code-block - - - ``` + + ```bash python3 setup.py install ``` - ```mdx-code-block - - - ``` + + :::note The result may contain several warnings such as `WARNING: The wheel package is not available.` These can be safely ignored. @@ -234,44 +208,36 @@ In order to use this tool, you are required to run a fully synced Chia node. Thi 7. Set up the database: - ```mdx-code-block - - - ``` + + ```powershell python setup_database.py ``` - ```mdx-code-block - - - ``` + + ```bash python3 setup_database.py ``` - ```mdx-code-block - - - ``` + + ```bash python3 setup_database.py ``` - ```mdx-code-block - - - ``` + + :::tip If you receive an error message such as `ModuleNotFoundError: No module named 'chia'`, then make sure you can run the `chia` command from this directory and try again. @@ -286,44 +252,36 @@ In order to use this tool, you are required to run a fully synced Chia node. Thi 8. Start the snapshot generator: - ```mdx-code-block - - - ``` + + ```powershell python start.py ``` - ```mdx-code-block - - - ``` + + ```bash python3 start.py ``` - ```mdx-code-block - - - ``` + + ```bash python3 start.py ``` - ```mdx-code-block - - - ``` + + This command will show its progress according to the block height. If you used the recommended range for `START_HEIGHT` and `TARGET_HEIGHT` in your `.env` file, then this command could take over 40 hours to complete. The reason it takes so long is it needs to process each block, one at a time. If multiple blocks were done in parallel, then there would be a chance that the results would not be accurate. By processing one block at a time, the tool will return the correct results for the range provided. @@ -351,74 +309,60 @@ Once you have populated the database with a snapshot, you can run a data export. 3. Generate a CSV file containing all inner puzzle hashes and amounts for your CAT: - ```mdx-code-block - - - ``` + + ```powershell python export.py --output-dir \ --tail-hash --coins ``` - ```mdx-code-block -
- Example command - ``` +
+ Example command ```powershell python export.py --output-dir C:\Users\Username\Chia\CAT-addresses\results\CKC_ --tail-hash 1121996b75cce3c746369aced2c8887b02b84e95592c3dc006d82a145adf349a ``` - ```mdx-code-block -
- - - ``` +
+
+ ```bash python3 export.py --output-dir / --tail-hash --coins ``` - ```mdx-code-block -
- Example command - ``` +
+ Example command ```bash python3 export.py --output-dir /home/Username/CAT-addresses/results/CKC_ --tail-hash 1121996b75cce3c746369aced2c8887b02b84e95592c3dc006d82a145adf349a ``` - ```mdx-code-block -
- - - ``` +
+
+ ```bash python3 export.py --output-dir / --tail-hash --coins ``` - ```mdx-code-block -
- Example command - ``` +
+ Example command ```bash python3 export.py --output-dir /Users/Username/CAT-addresses/results/CKC_ --tail-hash 1121996b75cce3c746369aced2c8887b02b84e95592c3dc006d82a145adf349a ``` - ```mdx-code-block -
- - - ``` +
+
+
:::info @@ -469,7 +413,6 @@ dos2unix: converting file to Unix format... **Optional:** If the application exits partway through a run, it will only have imported some blocks at a particular height. You can delete the records from the database at and above a provided height by running the following command: -```mdx-code-block to Unix format... {label: 'macOS', value: 'macos'}, ]}> -``` ```powershell python clean.py --height ``` -```mdx-code-block - - -``` + + ```bash python3 clean.py --height ``` -```mdx-code-block -``` ```bash python3 clean.py --height ``` -```mdx-code-block - -``` +
## Export Data for all CATs {#export-all} **Optional:** If you wish to obtain the balance of all CATs on the Chia blockchain, you can run `export-py` with various different options: -```mdx-code-block {label: 'macOS', value: 'macos'}, ]}> -``` The `--tail-hash` flag can be dropped, resulting in an output of a single CSV file containing every puzzle hash amount for every CAT on the Chia blockchain: @@ -544,10 +478,8 @@ python export.py --output-dir \ --explode You can also use the `--explode` and `--coins` flags together, which will generate individual CSV files that also contain coin info. -```mdx-code-block - - -``` + + The `--tail-hash` flag can be dropped, resulting in an output of a single CSV file containing every puzzle hash amount for every CAT on the Chia blockchain: @@ -569,10 +501,8 @@ python3 export.py --output-dir / --explode You can also use the `--explode` and `--coins` flags together, which will generate individual CSV files that also contain coin info. -```mdx-code-block -``` The `--tail-hash` flag can be dropped, resulting in an output of a single CSV file containing every puzzle hash amount for every CAT on the Chia blockchain: @@ -594,7 +524,5 @@ python3 export.py --output-dir / --explode You can also use the `--explode` and `--coins` flags together, which will generate individual CSV files that also contain coin info. -```mdx-code-block -``` diff --git a/docs/guides/cat/cr-cat-tutorial.md b/docs/guides/cat/cr-cat-tutorial.md index 41af476926..530e12eac4 100644 --- a/docs/guides/cat/cr-cat-tutorial.md +++ b/docs/guides/cat/cr-cat-tutorial.md @@ -3,10 +3,8 @@ slug: /guides/cr-CAT-tutorial title: CR-CAT Creation Tutorial --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Intro @@ -205,10 +203,14 @@ We will use three separate Chia wallets, which have been created beforehand usin CR-CATS are issued from the CAT-admin-tool repository. Follow the instructions below to install it for your specific OS: -```mdx-code-block - - -``` + + Clone the repository: ```bash @@ -245,11 +247,8 @@ Install the CAT admin tool: pip install . ``` -```mdx-code-block - - - -``` + + Clone the repository: ```bash @@ -286,11 +285,8 @@ Install the CAT admin tool: pip install . ``` -```mdx-code-block - - + -``` Your environment should be all set, but let's make sure: diff --git a/docs/guides/clawback/clawback-primitive-guide.md b/docs/guides/clawback/clawback-primitive-guide.md index 50bcfb4dc8..f96d5f202d 100644 --- a/docs/guides/clawback/clawback-primitive-guide.md +++ b/docs/guides/clawback/clawback-primitive-guide.md @@ -3,10 +3,8 @@ slug: /guides/clawback-primitive-guide title: Clawback Primitive Guide --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Intro @@ -86,47 +84,39 @@ The clawback primitive is included in the `Chia-Network` organization's `chia-cl 3. Create and activate a virtual environment: - ```mdx-code-block - - - ``` + + ```powershell python -m venv venv .\venv\Scripts\Activate.ps1 ``` - ```mdx-code-block - - - ``` + + ```bash python3 -m venv venv . ./venv/bin/activate ``` - ```mdx-code-block - - - ``` + + ```bash python3 -m venv venv . ./venv/bin/activate ``` - ```mdx-code-block - - - ``` + + 4. Install the clawback primitive: diff --git a/docs/guides/clawback/clawback-user-guide.md b/docs/guides/clawback/clawback-user-guide.md index 87b02755ef..4248f7993f 100644 --- a/docs/guides/clawback/clawback-user-guide.md +++ b/docs/guides/clawback/clawback-user-guide.md @@ -3,10 +3,8 @@ slug: /guides/clawback-user-guide title: Clawback User Guide --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Intro diff --git a/docs/guides/crash-course/cats-offers-nfts.md b/docs/guides/crash-course/cats-offers-nfts.md index 97e78d55f1..32cdd1eba4 100644 --- a/docs/guides/crash-course/cats-offers-nfts.md +++ b/docs/guides/crash-course/cats-offers-nfts.md @@ -3,10 +3,8 @@ slug: /guides/crash-course/cats-offers-nfts title: CATs, Offers and NFTs --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` For this lesson you will want Chia installed and synced on testnet. @@ -22,15 +20,14 @@ For example, the TAIL may limit the creation to **single-issuance**. Any tokens Up next we will clone the CAT creation tool which will simplify creating a cat by providing all of the necessary TAIL Chialisp files. -```mdx-code-block - + -``` ```bash git clone https://github.com/Chia-Network/CAT-admin-tool.git @@ -41,10 +38,8 @@ py -m pip install --upgrade pip setuptools wheel pip install . ``` -```mdx-code-block - - -``` + + ```bash git clone https://github.com/Chia-Network/CAT-admin-tool.git @@ -55,10 +50,8 @@ python -m pip install --upgrade pip setuptools wheel pip install . ``` -```mdx-code-block - + -``` At this point you should be able to execute `cats --help`. diff --git a/docs/guides/crash-course/chialisp.md b/docs/guides/crash-course/chialisp.md index d16b858e2d..65b2852bac 100644 --- a/docs/guides/crash-course/chialisp.md +++ b/docs/guides/crash-course/chialisp.md @@ -3,10 +3,8 @@ slug: /guides/crash-course/chialisp title: Chialisp --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` For this section of the course, you will learn how to set up your development environment, write Chialisp code, and execute it on the command-line. @@ -16,15 +14,13 @@ To get started with Chialisp, you will first want to [install Chia Dev Tools](ht Here is a summary of the instructions: -```mdx-code-block - -``` + ]}> + ```bash mkdir learning @@ -35,10 +31,8 @@ pip install chia-dev-tools cdv --version ``` -```mdx-code-block - - -``` + + ```bash mkdir learning @@ -49,10 +43,8 @@ pip install chia-dev-tools cdv --version ``` -```mdx-code-block -``` This will install the Chia Dev Tools within your activated virtual environment. You'll want to make sure this virtual environment is activated before working on Chialisp. You'll see a `(venv)` on the left of your terminal prompt. diff --git a/docs/guides/crash-course/intro-to-chialisp.md b/docs/guides/crash-course/intro-to-chialisp.md index 5c618acde2..edf7c904b0 100644 --- a/docs/guides/crash-course/intro-to-chialisp.md +++ b/docs/guides/crash-course/intro-to-chialisp.md @@ -3,10 +3,8 @@ slug: /guides/crash-course/intro-to-chialisp title: Chialisp --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` For this section of the course, you will learn how to set up your development environment, write Chialisp code, and execute it on the command-line. @@ -26,15 +24,13 @@ To get started with Chialisp, you will first want to [install Chia Dev Tools](ht Here is a summary of the instructions: -```mdx-code-block - -``` + defaultValue="windows" + values={[ + {label: 'Windows', value: 'windows'}, + {label: 'Linux/MacOS', value: 'linux-macos'}, + ]}> + ```bash mkdir learning @@ -45,10 +41,8 @@ pip install chia-dev-tools cdv --version ``` -```mdx-code-block -``` ```bash mkdir learning @@ -59,10 +53,8 @@ pip install chia-dev-tools cdv --version ``` -```mdx-code-block -``` This will install the Chia Dev Tools within your activated virtual environment. You'll want to make sure this virtual environment is activated before working on Chialisp. You'll see a `(venv)` on the left of your terminal prompt. diff --git a/docs/guides/crash-course/introduction.md b/docs/guides/crash-course/introduction.md index 8f5d7a7710..ec26fd9fb9 100644 --- a/docs/guides/crash-course/introduction.md +++ b/docs/guides/crash-course/introduction.md @@ -3,10 +3,8 @@ slug: /guides/crash-course/introduction title: Introduction --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This course is designed to give you an end-to-end introduction to Chia. We'll start off with a foundational understanding of the Chia blockchain. This includes what blockchains are for and what makes Chia different from other options. Once you understand the basics, we'll learn about plotting and farming. Finally, we'll cover many of the DeFi possibilities including fungible tokens (CATs), non-fungible tokens (NFTs), and writing custom coins in Chialisp. @@ -58,7 +56,6 @@ Before we get started using the CLI, we need to be able to issue the `chia` comm Use this line in Git Bash / terminal: -```mdx-code-block -``` ```bash ~/AppData/Local/chia-blockchain/app-1.5.1/resources/app.asar.unpacked/daemon/chia.exe ``` -```mdx-code-block -``` ```bash /Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon/chia ``` -```mdx-code-block -``` Response: @@ -135,7 +127,6 @@ Commands: Using this path each time can get old, so you have the option of creating an alias or environment variable. -```mdx-code-block -``` ```bash alias chia=~/AppData/Local/Programs/Chia/resources/app.asar.unpacked/daemon/chia.exe ``` -```mdx-code-block -``` ```bash alias chia=/Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon/chia ``` -```mdx-code-block -``` Now, you can just say: diff --git a/docs/guides/custody/custody-tool-user-guide.md b/docs/guides/custody/custody-tool-user-guide.md index 2dc38f061e..c01cf01fa1 100644 --- a/docs/guides/custody/custody-tool-user-guide.md +++ b/docs/guides/custody/custody-tool-user-guide.md @@ -3,10 +3,8 @@ slug: /guides/custody-tool-user-guide title: Custody Tool User Guide --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Intro @@ -61,47 +59,39 @@ cd internal-custody 3. Create a new virtual environment and then activate it: - ```mdx-code-block - - - ``` + + ```powershell python -m venv venv .\venv\Scripts\Activate.ps1 ``` - ```mdx-code-block - - - ``` + + ```bash python3 -m venv venv . ./venv/bin/activate ``` - ```mdx-code-block - - - ``` + + ```bash python3 -m venv venv . ./venv/bin/activate ``` - ```mdx-code-block - - - ``` + + 4. Install the custody tool: diff --git a/docs/guides/datalayer/datalayer-permissions.md b/docs/guides/datalayer/datalayer-permissions.md index 430172ddae..ce21bcdbd1 100644 --- a/docs/guides/datalayer/datalayer-permissions.md +++ b/docs/guides/datalayer/datalayer-permissions.md @@ -3,10 +3,8 @@ slug: /guides/datalayer-permissions title: DataLayer Permissions --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Intro diff --git a/docs/guides/datalayer/datalayer-user-guide.md b/docs/guides/datalayer/datalayer-user-guide.md index c6d95d7382..4da4f05970 100644 --- a/docs/guides/datalayer/datalayer-user-guide.md +++ b/docs/guides/datalayer/datalayer-user-guide.md @@ -3,10 +3,8 @@ slug: /guides/datalayer-user-guide title: DataLayer User Guide --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document will guide you through the process of setting up Chia's DataLayerâ„¢ and running a few basic functions. @@ -141,16 +139,14 @@ You are recommended to complete steps 1 and 2 (port forwarding and firewall conf :::info Firewall setup -```mdx-code-block - -``` + defaultValue="windows" + values={[ + {label: 'Windows', value: 'windows'}, + {label: 'Linux', value: 'linux'}, + {label: 'MacOS', value: 'macos'} + ]}> + From a PowerShell prompt, run: @@ -167,10 +163,8 @@ netsh advfirewall firewall add rule name="allowDataServerOut" dir=out action=all Each of these commands should give a response of `Ok.` Once you have successfully run the commands, exit the Administrator PowerShell window. -```mdx-code-block -``` Assuming you use iptables, which is installed on most distributions by default, run: @@ -191,10 +185,8 @@ For CentOS, Red Hat, and Fedora, run: /sbin/service iptables save ``` -```mdx-code-block -``` Open /etc/pf.conf in a text editor. You will need administrative privileges. For example: @@ -223,10 +215,8 @@ To verify that the changes are active, run: sudo pfctl -sr | grep 8575 ``` -```mdx-code-block -``` ::: diff --git a/docs/guides/nft/nft-bulk-mint.md b/docs/guides/nft/nft-bulk-mint.md index 46299848ff..0cb9b54be9 100644 --- a/docs/guides/nft/nft-bulk-mint.md +++ b/docs/guides/nft/nft-bulk-mint.md @@ -3,10 +3,8 @@ slug: /guides/nft-bulk-mint title: NFT Bulk Minting Tool --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document will show you how to use Chia's NFT bulk minting tool. @@ -86,47 +84,39 @@ cd chia-nft-minting-tool 3. Create a new virtual environment and then activate it: - ```mdx-code-block - - - ``` + + ```powershell python -m venv venv .\venv\Scripts\Activate.ps1 ``` - ```mdx-code-block - - - ``` + + ```bash python3 -m venv venv . ./venv/bin/activate ``` - ```mdx-code-block - - - ``` + + ```bash python3 -m venv venv . ./venv/bin/activate ``` - ```mdx-code-block - - - ``` + + 4. Install the bulk minting tool. This will install a copy of Chia in your virtual environment, as well as all other dependencies for the tool: diff --git a/docs/guides/nft/nft-intro.md b/docs/guides/nft/nft-intro.md index d83872c186..698479f9dc 100644 --- a/docs/guides/nft/nft-intro.md +++ b/docs/guides/nft/nft-intro.md @@ -3,10 +3,8 @@ slug: /guides/nft-intro title: NFT Introduction --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## About This Document @@ -118,7 +116,6 @@ After the installer has downloaded, execute it and Chia will install automatical :::info If the `chia` command isn't already in your system's path, you can create an alias: -```mdx-code-block -``` Be sure to replace `` and `` with the actual folder names. @@ -134,19 +130,15 @@ Be sure to replace `` and `` with the actual folder names. Set-Alias -Name chia "C:\Users\\AppData\Local\chia-blockchain\app-\resources\app.asar.unpacked\daemon\chia.exe" ``` -```mdx-code-block -``` ```bash alias chia="/Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon/chia" ``` -```mdx-code-block -``` ::: diff --git a/docs/guides/nft/nft-rpc.md b/docs/guides/nft/nft-rpc.md index b341399759..a1a0d475ce 100644 --- a/docs/guides/nft/nft-rpc.md +++ b/docs/guides/nft/nft-rpc.md @@ -3,10 +3,8 @@ slug: /guides/nft-rpc title: Minting NFTs With RPC --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` The next section of this tutorial will demonstrate how to create and use DIDs and NFTs using RPCs. If you wish to use the CLI instead, head to the [CLI section](/guides/nft-cli). @@ -35,7 +33,6 @@ When running RPC commands with JSON inputs on **Windows**, you will need to esca Here is an example of the difference between the syntax: -```mdx-code-block -``` ```powershell chia rpc wallet create_new_wallet '{\"wallet_type\": \"nft_wallet\"}' ``` -```mdx-code-block -``` ```bash chia rpc wallet create_new_wallet '{"wallet_type": "nft_wallet"}' ``` -```mdx-code-block -``` ::: diff --git a/docs/guides/simulator-user-guide.md b/docs/guides/simulator-user-guide.md index 02dc6c57bb..6bd1e6ab79 100644 --- a/docs/guides/simulator-user-guide.md +++ b/docs/guides/simulator-user-guide.md @@ -3,10 +3,8 @@ slug: /guides/simulator-user-guide title: Simulator User Guide --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document will guide you through the process of setting up Chia's Simulator. For additional technical resources, see the following: @@ -93,7 +91,6 @@ Make sure your CHIA_ROOT Environment Variable is set to: C:\Users\\.chia\s Now that you have created the simulator, you can set the `CHIA_ROOT` environment variable to point to the simulator's installation directory. This will enable you to run the simulator from outside of `chia-blockchain`: -```mdx-code-block -``` ```powershell $env:CHIA_ROOT='~/.chia/simulator/main' ``` -```mdx-code-block - - -``` + + ```bash export CHIA_ROOT='~/.chia/simulator/main' ``` -```mdx-code-block -``` :::note By setting the `CHIA_ROOT` path to the simulator in the current shell window (rather than globally), this enables you to run the simulator in tandem with a full node running on either the testnet or on mainnet. This is because the simulator uses different ports than a normal full node. diff --git a/docs/guides/verifiable-credentials-guide.md b/docs/guides/verifiable-credentials-guide.md index 5ecbc70926..2bbd3a8354 100644 --- a/docs/guides/verifiable-credentials-guide.md +++ b/docs/guides/verifiable-credentials-guide.md @@ -3,10 +3,8 @@ slug: /guides/verifiable-credentials-guide title: Verifiable Credentials Guide --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Intro diff --git a/docs/guides/walletconnect/walletconnect-developer-guide.md b/docs/guides/walletconnect/walletconnect-developer-guide.md index 71169a0be5..402da279e7 100644 --- a/docs/guides/walletconnect/walletconnect-developer-guide.md +++ b/docs/guides/walletconnect/walletconnect-developer-guide.md @@ -3,10 +3,8 @@ slug: /walletconnect-developer-guide title: WalletConnect Developer Guide --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Intro diff --git a/docs/guides/walletconnect/walletconnect-user-guide.md b/docs/guides/walletconnect/walletconnect-user-guide.md index 65e013f1e6..3444d40b78 100644 --- a/docs/guides/walletconnect/walletconnect-user-guide.md +++ b/docs/guides/walletconnect/walletconnect-user-guide.md @@ -3,10 +3,8 @@ slug: /walletconnect-user-guide title: WalletConnect User Guide --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Intro diff --git a/docs/plotting/plotting-basics.md b/docs/plotting/plotting-basics.md index e0abc3cc5d..510aa5fee8 100644 --- a/docs/plotting/plotting-basics.md +++ b/docs/plotting/plotting-basics.md @@ -4,10 +4,8 @@ title: Plotting Basics slug: /plotting-basics --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` :::note diff --git a/docs/plotting/plotting-compression.md b/docs/plotting/plotting-compression.md index 67bd4ddd27..fd32a4ff5b 100644 --- a/docs/plotting/plotting-compression.md +++ b/docs/plotting/plotting-compression.md @@ -4,10 +4,8 @@ title: Choosing a compression level slug: /plotting-compression --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` If you opt to create compressed plots, you will need to decide on the level of compression. diff --git a/docs/plotting/plotting-hardware.md b/docs/plotting/plotting-hardware.md index 1d4c5c342a..6b57f03aba 100644 --- a/docs/plotting/plotting-hardware.md +++ b/docs/plotting/plotting-hardware.md @@ -4,10 +4,8 @@ title: Plotting Hardware slug: /plotting-hardware --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## Cost/time tradeoffs diff --git a/docs/plotting/plotting-how-to.md b/docs/plotting/plotting-how-to.md index 840aebd6fd..cd64895218 100644 --- a/docs/plotting/plotting-how-to.md +++ b/docs/plotting/plotting-how-to.md @@ -4,10 +4,8 @@ title: How To Plot slug: /plotting-how-to --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` To create plots, you must have: diff --git a/docs/plotting/plotting-setup.md b/docs/plotting/plotting-setup.md index 51bb8f6fd9..410704918a 100644 --- a/docs/plotting/plotting-setup.md +++ b/docs/plotting/plotting-setup.md @@ -4,10 +4,8 @@ title: Plotting Setup slug: /plotting-setup --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` When it comes to plotting and farming in Chia, there is no one-size-fits-all solution. Hopefully after reading this section, you will have the information to help you make an informed decision about how to set up your farm. diff --git a/docs/plotting/plotting-software.md b/docs/plotting/plotting-software.md index 847f0dc515..d7cd3ffeb7 100644 --- a/docs/plotting/plotting-software.md +++ b/docs/plotting/plotting-software.md @@ -4,10 +4,8 @@ title: Plotting Software slug: /plotting-software --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` Several Chia plotters are now available. The output (a plot) will be nearly identical for a given k-value and compression level. However, the hardware requirements are different for each plotter. diff --git a/docs/resources/faq.md b/docs/resources/faq.md index 65bc610998..e88f2734a1 100644 --- a/docs/resources/faq.md +++ b/docs/resources/faq.md @@ -3,10 +3,8 @@ title: FAQ slug: /faq --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` ## General @@ -1411,16 +1409,14 @@ After installing with the packaged installer, you can run Chia from the command :::info Chia setup -```mdx-code-block - -``` + defaultValue="windows" + values={[ + {label: 'Windows', value: 'windows'}, + {label: 'Linux', value: 'linux'}, + {label: 'MacOS', value: 'macos'} + ]}> + (Be sure to use powershell and update <username> to match the name of the user that installed Chia.) @@ -1436,10 +1432,8 @@ If installed for all users: Set-Alias -Name chia "C:\Program Files\Chia\resources\app.asar.unpacked\daemon\chia.exe" ``` -```mdx-code-block -``` Alias command is not needed, but you should still run the following: @@ -1447,20 +1441,16 @@ Alias command is not needed, but you should still run the following: chia init --fix-ssl-permissions ``` -```mdx-code-block -``` ```bash alias chia='/Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon/chia' chia init --fix-ssl-permissions ``` -```mdx-code-block -``` ::: diff --git a/docs/rpc-reference/daemon.md b/docs/rpc-reference/daemon.md index 4708e28203..8d4da62fbb 100644 --- a/docs/rpc-reference/daemon.md +++ b/docs/rpc-reference/daemon.md @@ -4,10 +4,8 @@ title: Daemon RPC slug: /daemon-rpc --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document provides a comprehensive reference to Chia's Daemon RPC API. @@ -41,17 +39,15 @@ npm install -g wscat Once wscat is installed, you can open a connection to the daemon. The command to run depends on your OS: -```mdx-code-block - - -``` + + Be sure to replace `username` with your actual username for both the `.crt` and `.key` file. @@ -59,28 +55,22 @@ Be sure to replace `username` with your actual username for both the `.crt` and wscat -n --cert C:\Users\\.chia\mainnet\config\ssl\daemon\private_daemon.crt --key C:\Users\\.chia\mainnet\config\ssl\daemon\private_daemon.key -c wss://0.0.0.0:55400 ``` -```mdx-code-block - - -``` + + ```bash wscat -n --cert ~/.chia/mainnet/config/ssl/daemon/private_daemon.crt --key ~/.chia/mainnet/config/ssl/daemon/private_daemon.key -c wss://0.0.0.0:55400 ``` -```mdx-code-block -``` ```bash wscat -n --cert ~/.chia/mainnet/config/ssl/daemon/private_daemon.crt --key ~/.chia/mainnet/config/ssl/daemon/private_daemon.key -c wss://0.0.0.0:55400 ``` -```mdx-code-block -``` --- diff --git a/docs/rpc-reference/datalayer.md b/docs/rpc-reference/datalayer.md index 2f4724dcb9..e003876830 100644 --- a/docs/rpc-reference/datalayer.md +++ b/docs/rpc-reference/datalayer.md @@ -4,10 +4,8 @@ title: DataLayer RPC slug: /datalayer-rpc --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -```
Note about Windows command escaping diff --git a/docs/rpc-reference/dids.md b/docs/rpc-reference/dids.md index f188902d85..2a2470976c 100644 --- a/docs/rpc-reference/dids.md +++ b/docs/rpc-reference/dids.md @@ -4,10 +4,8 @@ title: DID RPC slug: /did-rpc --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -```
Note about Windows command escaping diff --git a/docs/rpc-reference/farmer.md b/docs/rpc-reference/farmer.md index 021ced1b3d..2304c52676 100644 --- a/docs/rpc-reference/farmer.md +++ b/docs/rpc-reference/farmer.md @@ -4,10 +4,8 @@ title: Farmer RPC slug: /farmer-rpc --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document provides a comprehensive reference to Chia's Farmer RPC API. diff --git a/docs/rpc-reference/full-node.md b/docs/rpc-reference/full-node.md index cf108bfc20..4833a987c9 100644 --- a/docs/rpc-reference/full-node.md +++ b/docs/rpc-reference/full-node.md @@ -4,10 +4,8 @@ title: Full Node RPC slug: /full-node-rpc --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` The full node RPC API is exposed by the full node, by default on port 8555. This port must not be exposed publicly for security concerns. diff --git a/docs/rpc-reference/harvester.md b/docs/rpc-reference/harvester.md index 6093230e3e..38fd05a332 100644 --- a/docs/rpc-reference/harvester.md +++ b/docs/rpc-reference/harvester.md @@ -4,10 +4,8 @@ title: Harvester RPC slug: /harvester-rpc --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document provides a comprehensive reference to Chia's Harvester RPC API. diff --git a/docs/rpc-reference/nfts.md b/docs/rpc-reference/nfts.md index 9ec162c9cc..ec15c29a96 100644 --- a/docs/rpc-reference/nfts.md +++ b/docs/rpc-reference/nfts.md @@ -4,10 +4,8 @@ title: NFT RPC slug: /nft-rpc --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -```
Note about Windows command escaping diff --git a/docs/rpc-reference/offers.md b/docs/rpc-reference/offers.md index 2ae5be5135..fa5f0c2437 100644 --- a/docs/rpc-reference/offers.md +++ b/docs/rpc-reference/offers.md @@ -4,10 +4,8 @@ title: Offer RPC slug: /offer-rpc --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -```
Note about Windows command escaping diff --git a/docs/rpc-reference/simulator.md b/docs/rpc-reference/simulator.md index d250932e3f..3d25f20ad5 100644 --- a/docs/rpc-reference/simulator.md +++ b/docs/rpc-reference/simulator.md @@ -17,10 +17,8 @@ For more info, see the following: --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -```
Note about Windows command escaping diff --git a/docs/rpc-reference/vcs.md b/docs/rpc-reference/vcs.md index 650c8781fa..3e6333f7cd 100644 --- a/docs/rpc-reference/vcs.md +++ b/docs/rpc-reference/vcs.md @@ -4,10 +4,8 @@ title: Verifiable Credentials RPCs slug: /vc-rpc --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -```
Note about Windows command escaping diff --git a/docs/rpc-reference/wallet.md b/docs/rpc-reference/wallet.md index 7e4ec3ab2e..e017bd5131 100644 --- a/docs/rpc-reference/wallet.md +++ b/docs/rpc-reference/wallet.md @@ -4,10 +4,8 @@ title: Wallet RPC slug: /wallet-rpc --- -```mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -``` This document provides a comprehensive reference to Chia's Wallet RPC API (minus the DID and NFT RPCs, which are documented on their own dedicated pages).