From e3cf531dc788d6c539d62cf523f809ad0d66b8f2 Mon Sep 17 00:00:00 2001 From: nambrot Date: Wed, 14 Jul 2021 13:55:29 -0400 Subject: [PATCH 1/2] Update devchain docs --- .../walkthroughs/development-chain.md | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/packages/docs/developer-resources/walkthroughs/development-chain.md b/packages/docs/developer-resources/walkthroughs/development-chain.md index 87bba3d2bca..3c31e9c515a 100644 --- a/packages/docs/developer-resources/walkthroughs/development-chain.md +++ b/packages/docs/developer-resources/walkthroughs/development-chain.md @@ -6,9 +6,25 @@ At the end of this tutorial, you will have a local Celo development blockchain r Running the development Celo blockchain is helpful because it greatly speeds up development time. You will start with 10 accounts pre-funded with cGLD and cUSD and all transactions on the network are virtually instant. -### **Download the Celo monorepo** +You can run the development Celo blockchain in two ways: -To start, download the Celo monorepo [here](https://github.com/celo-org/celo-monorepo) or with the following command. +### 1. Use the celo-devchain NPM package + +The easiest is to use a "pre-generated" devchain from the celo-devchain NPM package. For that all you have to do is: + +```sh +> npm install --save-dev celo-devchain +> npx celo-devchain --port 7545 + +or + +> yarn add --dev celo-devchain +> yarn run celo-devchain --port 7545 +``` + +### 2. Initialize your own devchain from the monorepo + +If you prefer, you can initialize your own devchain and build it from scratch. To start, download the Celo monorepo [here](https://github.com/celo-org/celo-monorepo) or with the following command. ```text git clone https://github.com/celo-org/celo-monorepo.git @@ -32,6 +48,8 @@ This will start the development Celo blockchain. It will take at least a few min The process will finish and print `Ganache started`. Leave this terminal window open to leave the development chain running. +## Interacting with the chain + ### **Inspecting the chain** Now that we have a Celo development chain running, we probably want to know what accounts we have access to, how much cGLD and cUSD they have as well as the addresses of the deployed protocol contracts. From 025b6442aeed10adcf02daee8a7000125a7362b4 Mon Sep 17 00:00:00 2001 From: nambrot Date: Wed, 14 Jul 2021 16:08:41 -0400 Subject: [PATCH 2/2] Link to Github Repo --- .../docs/developer-resources/walkthroughs/development-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/developer-resources/walkthroughs/development-chain.md b/packages/docs/developer-resources/walkthroughs/development-chain.md index 3c31e9c515a..895f39a62e8 100644 --- a/packages/docs/developer-resources/walkthroughs/development-chain.md +++ b/packages/docs/developer-resources/walkthroughs/development-chain.md @@ -10,7 +10,7 @@ You can run the development Celo blockchain in two ways: ### 1. Use the celo-devchain NPM package -The easiest is to use a "pre-generated" devchain from the celo-devchain NPM package. For that all you have to do is: +The easiest is to use a "pre-generated" devchain from the [celo-devchain](https://github.com/zviadm/celo-devchain) NPM package. For that all you have to do is: ```sh > npm install --save-dev celo-devchain