From a4cd78c267040b1f7f71496fce05370f1b5c30a5 Mon Sep 17 00:00:00 2001 From: Quantaf1re <37821211+quantaf1re@users.noreply.github.com> Date: Sat, 2 Nov 2019 19:11:36 -0700 Subject: [PATCH 1/3] Fixin yo shit --- hellochain/tutorial/00-intro.md | 3 ++- hellochain/tutorial/01-simple-app.md | 2 +- hellochain/tutorial/02-simple-start.md | 2 +- hellochain/tutorial/{05-types.md => 03-types.md} | 0 hellochain/tutorial/{06-module.md => 04-module.md} | 2 +- hellochain/tutorial/{07-msgs.md => 05-msgs.md} | 0 hellochain/tutorial/{08-handler.md => 06-handler.md} | 0 hellochain/tutorial/{09-keeper.md => 07-keeper.md} | 0 hellochain/tutorial/{10-querier.md => 08-querier.md} | 0 hellochain/tutorial/{11-alias.md => 09-alias.md} | 0 hellochain/tutorial/{12-client.md => 10-client.md} | 4 ++-- hellochain/tutorial/{13-cli.md => 11-cli.md} | 0 hellochain/tutorial/{03-make.md => 12-make.md} | 0 hellochain/tutorial/{04-try-it-out.md => 13-try-it-out.md} | 2 +- hellochain/tutorial/15-full-app.md | 2 +- 15 files changed, 9 insertions(+), 8 deletions(-) rename hellochain/tutorial/{05-types.md => 03-types.md} (100%) rename hellochain/tutorial/{06-module.md => 04-module.md} (93%) rename hellochain/tutorial/{07-msgs.md => 05-msgs.md} (100%) rename hellochain/tutorial/{08-handler.md => 06-handler.md} (100%) rename hellochain/tutorial/{09-keeper.md => 07-keeper.md} (100%) rename hellochain/tutorial/{10-querier.md => 08-querier.md} (100%) rename hellochain/tutorial/{11-alias.md => 09-alias.md} (100%) rename hellochain/tutorial/{12-client.md => 10-client.md} (95%) rename hellochain/tutorial/{13-cli.md => 11-cli.md} (100%) rename hellochain/tutorial/{03-make.md => 12-make.md} (100%) rename hellochain/tutorial/{04-try-it-out.md => 13-try-it-out.md} (97%) diff --git a/hellochain/tutorial/00-intro.md b/hellochain/tutorial/00-intro.md index 35f0809d02..6f131edbdc 100644 --- a/hellochain/tutorial/00-intro.md +++ b/hellochain/tutorial/00-intro.md @@ -10,7 +10,8 @@ module. For this tutorial we are going to first build a "blank" application capable of only bank-like interactions and then add some arbitrary "hello world" -functionality in the form of our `greeter` module. +functionality in the form of our `greeter` module. Nothing needs to be downloaded +or cloned, we will create every file from scratch. ### Starter diff --git a/hellochain/tutorial/01-simple-app.md b/hellochain/tutorial/01-simple-app.md index 16c0fe09ed..2a9d858300 100644 --- a/hellochain/tutorial/01-simple-app.md +++ b/hellochain/tutorial/01-simple-app.md @@ -47,7 +47,7 @@ func NewHelloChainApp(logger log.Logger, db dbm.DB) abci.Application { // compose our app with starter var app = &helloChainApp{ - appStarter + appStarter, } // do some final configuration... diff --git a/hellochain/tutorial/02-simple-start.md b/hellochain/tutorial/02-simple-start.md index 66878c2fd1..3cf870f9f5 100644 --- a/hellochain/tutorial/02-simple-start.md +++ b/hellochain/tutorial/02-simple-start.md @@ -6,7 +6,7 @@ order: 2 ### hcd -Let's start with our "daemon". Open the file `cmd/hcd/main.go`. This will be +Let's start with our "daemon". Create the file `cmd/hcd/main.go`. This will be your `hellochain daemon` command. For now we will rely on `starter` to bundle things up, but we will come back later to add our own `greeter` functionality when it's ready. diff --git a/hellochain/tutorial/05-types.md b/hellochain/tutorial/03-types.md similarity index 100% rename from hellochain/tutorial/05-types.md rename to hellochain/tutorial/03-types.md diff --git a/hellochain/tutorial/06-module.md b/hellochain/tutorial/04-module.md similarity index 93% rename from hellochain/tutorial/06-module.md rename to hellochain/tutorial/04-module.md index 88dce6f5d9..29bed5abd0 100644 --- a/hellochain/tutorial/06-module.md +++ b/hellochain/tutorial/04-module.md @@ -11,7 +11,7 @@ handler and querier functions for receiving messages and retrieving chain state. For this tutorial we are going to build a `greeter` module that adds the "hello -world" fucntionality we want while relying upon several other modules from the +world" functionality we want while relying upon several other modules from the SDK to provide the rest of the blockchain functionality. Every module must implement the [AppModule diff --git a/hellochain/tutorial/07-msgs.md b/hellochain/tutorial/05-msgs.md similarity index 100% rename from hellochain/tutorial/07-msgs.md rename to hellochain/tutorial/05-msgs.md diff --git a/hellochain/tutorial/08-handler.md b/hellochain/tutorial/06-handler.md similarity index 100% rename from hellochain/tutorial/08-handler.md rename to hellochain/tutorial/06-handler.md diff --git a/hellochain/tutorial/09-keeper.md b/hellochain/tutorial/07-keeper.md similarity index 100% rename from hellochain/tutorial/09-keeper.md rename to hellochain/tutorial/07-keeper.md diff --git a/hellochain/tutorial/10-querier.md b/hellochain/tutorial/08-querier.md similarity index 100% rename from hellochain/tutorial/10-querier.md rename to hellochain/tutorial/08-querier.md diff --git a/hellochain/tutorial/11-alias.md b/hellochain/tutorial/09-alias.md similarity index 100% rename from hellochain/tutorial/11-alias.md rename to hellochain/tutorial/09-alias.md diff --git a/hellochain/tutorial/12-client.md b/hellochain/tutorial/10-client.md similarity index 95% rename from hellochain/tutorial/12-client.md rename to hellochain/tutorial/10-client.md index 2c317fc781..67f2539279 100644 --- a/hellochain/tutorial/12-client.md +++ b/hellochain/tutorial/10-client.md @@ -14,7 +14,7 @@ module's client package. These will then later be used to incorporate ## TxCmd -For `greeter`'s `TxCmd` we will implement `say`, the command for creating snd +For `greeter`'s `TxCmd` we will implement `say`, the command for creating and sending a greeting to an account address. Add this to `x/greeter/client/cli/tx.go` @@ -26,7 +26,7 @@ Add this to `x/greeter/client/cli/tx.go` And for `greeter`'s `QueryCmd` we will implement `list`, the command for querying our blockchain for all greetings from a given address. -And add this to `x/greeter/client/query.go` +And add this to `x/greeter/client/cli/query.go` <<< @/hellochain/x/greeter/client/cli/query.go diff --git a/hellochain/tutorial/13-cli.md b/hellochain/tutorial/11-cli.md similarity index 100% rename from hellochain/tutorial/13-cli.md rename to hellochain/tutorial/11-cli.md diff --git a/hellochain/tutorial/03-make.md b/hellochain/tutorial/12-make.md similarity index 100% rename from hellochain/tutorial/03-make.md rename to hellochain/tutorial/12-make.md diff --git a/hellochain/tutorial/04-try-it-out.md b/hellochain/tutorial/13-try-it-out.md similarity index 97% rename from hellochain/tutorial/04-try-it-out.md rename to hellochain/tutorial/13-try-it-out.md index a781acf8d9..03ed7f54da 100644 --- a/hellochain/tutorial/04-try-it-out.md +++ b/hellochain/tutorial/13-try-it-out.md @@ -4,7 +4,7 @@ order: 4 # Try It Out -We are far from finished but lets take a quick moment to try out the parts +We are almost finished but lets take a quick moment to try out the parts we've built to see how they work. Run these commands and take a looks at the help text for the subsommands they diff --git a/hellochain/tutorial/15-full-app.md b/hellochain/tutorial/15-full-app.md index 8badc72079..08f70d7d55 100644 --- a/hellochain/tutorial/15-full-app.md +++ b/hellochain/tutorial/15-full-app.md @@ -11,4 +11,4 @@ and add greeter's AppModuleBasic and AppModule alongside the other modules. Update your `app.go` to look like the following -<<< @/hellochain/app.go{12,1326,27,34,37,40,45,46,50,51,54} +<<< @/hellochain/app.go{12,13,26,27,34,37,40,45,46,50,51,54} From d1afa25a2d672bab674ee8e1821776178d66af6d Mon Sep 17 00:00:00 2001 From: Quantaf1re <37821211+quantaf1re@users.noreply.github.com> Date: Sat, 2 Nov 2019 20:55:04 -0700 Subject: [PATCH 2/3] Fixin yo shit without restructuring --- hellochain/tutorial/{12-make.md => 03-make.md} | 1 - hellochain/tutorial/{13-try-it-out.md => 04-try-it-out.md} | 0 hellochain/tutorial/{03-types.md => 05-types.md} | 0 hellochain/tutorial/{04-module.md => 06-module.md} | 0 hellochain/tutorial/{05-msgs.md => 07-msgs.md} | 0 hellochain/tutorial/{06-handler.md => 08-handler.md} | 0 hellochain/tutorial/{07-keeper.md => 09-keeper.md} | 0 hellochain/tutorial/{08-querier.md => 10-querier.md} | 0 hellochain/tutorial/{09-alias.md => 11-alias.md} | 0 hellochain/tutorial/{10-client.md => 12-client.md} | 0 hellochain/tutorial/{11-cli.md => 13-cli.md} | 0 11 files changed, 1 deletion(-) rename hellochain/tutorial/{12-make.md => 03-make.md} (96%) rename hellochain/tutorial/{13-try-it-out.md => 04-try-it-out.md} (100%) rename hellochain/tutorial/{03-types.md => 05-types.md} (100%) rename hellochain/tutorial/{04-module.md => 06-module.md} (100%) rename hellochain/tutorial/{05-msgs.md => 07-msgs.md} (100%) rename hellochain/tutorial/{06-handler.md => 08-handler.md} (100%) rename hellochain/tutorial/{07-keeper.md => 09-keeper.md} (100%) rename hellochain/tutorial/{08-querier.md => 10-querier.md} (100%) rename hellochain/tutorial/{09-alias.md => 11-alias.md} (100%) rename hellochain/tutorial/{10-client.md => 12-client.md} (100%) rename hellochain/tutorial/{11-cli.md => 13-cli.md} (100%) diff --git a/hellochain/tutorial/12-make.md b/hellochain/tutorial/03-make.md similarity index 96% rename from hellochain/tutorial/12-make.md rename to hellochain/tutorial/03-make.md index ac6cc17637..bdfe08ac2e 100644 --- a/hellochain/tutorial/12-make.md +++ b/hellochain/tutorial/03-make.md @@ -24,7 +24,6 @@ all: install install: go.sum go install $(BUILD_FLAGS) ./cmd/hcd - go install $(BUILD_FLAGS) ./cmd/hccli go.sum: go.mod @echo "--> Ensure dependencies have not been modified" diff --git a/hellochain/tutorial/13-try-it-out.md b/hellochain/tutorial/04-try-it-out.md similarity index 100% rename from hellochain/tutorial/13-try-it-out.md rename to hellochain/tutorial/04-try-it-out.md diff --git a/hellochain/tutorial/03-types.md b/hellochain/tutorial/05-types.md similarity index 100% rename from hellochain/tutorial/03-types.md rename to hellochain/tutorial/05-types.md diff --git a/hellochain/tutorial/04-module.md b/hellochain/tutorial/06-module.md similarity index 100% rename from hellochain/tutorial/04-module.md rename to hellochain/tutorial/06-module.md diff --git a/hellochain/tutorial/05-msgs.md b/hellochain/tutorial/07-msgs.md similarity index 100% rename from hellochain/tutorial/05-msgs.md rename to hellochain/tutorial/07-msgs.md diff --git a/hellochain/tutorial/06-handler.md b/hellochain/tutorial/08-handler.md similarity index 100% rename from hellochain/tutorial/06-handler.md rename to hellochain/tutorial/08-handler.md diff --git a/hellochain/tutorial/07-keeper.md b/hellochain/tutorial/09-keeper.md similarity index 100% rename from hellochain/tutorial/07-keeper.md rename to hellochain/tutorial/09-keeper.md diff --git a/hellochain/tutorial/08-querier.md b/hellochain/tutorial/10-querier.md similarity index 100% rename from hellochain/tutorial/08-querier.md rename to hellochain/tutorial/10-querier.md diff --git a/hellochain/tutorial/09-alias.md b/hellochain/tutorial/11-alias.md similarity index 100% rename from hellochain/tutorial/09-alias.md rename to hellochain/tutorial/11-alias.md diff --git a/hellochain/tutorial/10-client.md b/hellochain/tutorial/12-client.md similarity index 100% rename from hellochain/tutorial/10-client.md rename to hellochain/tutorial/12-client.md diff --git a/hellochain/tutorial/11-cli.md b/hellochain/tutorial/13-cli.md similarity index 100% rename from hellochain/tutorial/11-cli.md rename to hellochain/tutorial/13-cli.md From 909c0ac8ea61a9351a0fecb3aac45ebe88e0ea0e Mon Sep 17 00:00:00 2001 From: quantaf1re <37821211+quantaf1re@users.noreply.github.com> Date: Sat, 2 Nov 2019 20:57:42 -0700 Subject: [PATCH 3/3] Updating wording --- hellochain/tutorial/04-try-it-out.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hellochain/tutorial/04-try-it-out.md b/hellochain/tutorial/04-try-it-out.md index 03ed7f54da..a781acf8d9 100644 --- a/hellochain/tutorial/04-try-it-out.md +++ b/hellochain/tutorial/04-try-it-out.md @@ -4,7 +4,7 @@ order: 4 # Try It Out -We are almost finished but lets take a quick moment to try out the parts +We are far from finished but lets take a quick moment to try out the parts we've built to see how they work. Run these commands and take a looks at the help text for the subsommands they