From d169c17429a408a14c110e9b4ff47366a6d95046 Mon Sep 17 00:00:00 2001 From: Kyle Lawlor-Bagcal Date: Tue, 22 Aug 2023 09:47:06 -0400 Subject: [PATCH 1/4] docs: add note about credit type to credit class tutorial --- docs/tutorials/user/credit-class-project-batch-management.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorials/user/credit-class-project-batch-management.md b/docs/tutorials/user/credit-class-project-batch-management.md index 64b865f8c8..e72a4bfd0b 100644 --- a/docs/tutorials/user/credit-class-project-batch-management.md +++ b/docs/tutorials/user/credit-class-project-batch-management.md @@ -349,6 +349,8 @@ To create a credit class, run the following command: regen tx ecocredit create-class [issuers] [credit-type-abbrev] [metadata] ``` +The `credit-type-abbrev` must be one of the allowed credit types for your chain. +By default, the only allowed credit type is `C`, so unless you've manually configured other credit types in your chains genesis file, you will need to use `C` here. For more information about the command, add `--help` or check out [the docs](../../commands/regen_tx_ecocredit_create-class.md). Now that you created a credit class, you can look up the credit class by id: From a62719e9979e5c6833b12055638a0a5218851d7e Mon Sep 17 00:00:00 2001 From: ryanchristo <12519942+ryanchristo@users.noreply.github.com> Date: Mon, 28 Aug 2023 11:21:00 -0700 Subject: [PATCH 2/4] docs: add note about credit type to credit class tutorial --- .../user/credit-class-project-batch-management.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/tutorials/user/credit-class-project-batch-management.md b/docs/tutorials/user/credit-class-project-batch-management.md index e72a4bfd0b..1f858ff6ce 100644 --- a/docs/tutorials/user/credit-class-project-batch-management.md +++ b/docs/tutorials/user/credit-class-project-batch-management.md @@ -315,9 +315,9 @@ A credit class represents a collection of projects and issuers whereby the proje For more information about credit classes, see [Ecocredit Concepts](../../modules/ecocredit/01_concepts.md). -### Allowlist and Fee +### Allowlist, Type, and Fee -Before we create a credit class, we need to check the [credit class creator allowlist](../../modules/ecocredit/01_concepts.md#credit-class-creator-allowlist) and that we have enough tokens for the credit class creation fee. +Before we create a credit class, we need to check the [credit class creator allowlist](../../modules/ecocredit/01_concepts.md#credit-class-creator-allowlist), the available [credit types](../../modules/ecocredit/01_concepts.md#credit-type), and that we have enough tokens for the credit class creation fee. To check whether the credit class creator allowlist is enabled, run the following command: @@ -331,13 +331,19 @@ To check allowed credit class creators (only if allowlist enabled), run the foll regen q ecocredit allowed-class-creators ``` +To check available credit types, run the following command: + +```sh +regen q ecocredit credit-types +``` + To check the credit class creation fee, run the following command: ```sh regen q ecocredit class-fee ``` -You should see that the allowlist is disabled and therefore any account can create a credit class. You should also see the token amount and denomination needed to create a credit class, which we add to the next command using the `--class-fee` flag. +If you are connected to Regen Redwood, you should see that the allowlist is disabled and therefore any account can create a credit class. You should also see the list of available credit types, including the `credit-type-abbrev` for each credit type, and the token amount and denomination for the credit class creation fee, which we add to the next command using the `--class-fee` flag. ### Create Credit Class @@ -349,8 +355,6 @@ To create a credit class, run the following command: regen tx ecocredit create-class [issuers] [credit-type-abbrev] [metadata] ``` -The `credit-type-abbrev` must be one of the allowed credit types for your chain. -By default, the only allowed credit type is `C`, so unless you've manually configured other credit types in your chains genesis file, you will need to use `C` here. For more information about the command, add `--help` or check out [the docs](../../commands/regen_tx_ecocredit_create-class.md). Now that you created a credit class, you can look up the credit class by id: From 833c77298bb87563ef912e862d01d1e565f55494 Mon Sep 17 00:00:00 2001 From: ryanchristo <12519942+ryanchristo@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:28:29 -0700 Subject: [PATCH 3/4] add note about updating gov params --- docs/tutorials/user/credit-class-project-batch-management.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorials/user/credit-class-project-batch-management.md b/docs/tutorials/user/credit-class-project-batch-management.md index 1f858ff6ce..d8bb96d901 100644 --- a/docs/tutorials/user/credit-class-project-batch-management.md +++ b/docs/tutorials/user/credit-class-project-batch-management.md @@ -345,6 +345,8 @@ regen q ecocredit class-fee If you are connected to Regen Redwood, you should see that the allowlist is disabled and therefore any account can create a credit class. You should also see the list of available credit types, including the `credit-type-abbrev` for each credit type, and the token amount and denomination for the credit class creation fee, which we add to the next command using the `--class-fee` flag. +The values queried above are all managed through an on-chain governance process, meaning these values can be updated via governance proposals. For more information about submitting governance proposals to update these values, check out [Message-Based Governance Proposals](./message-based-governance-proposals.md). + ### Create Credit Class We are now ready to create a credit class and to use the IRI we generated earlier in this tutorial. The IRI for the credit class can be used in the next command as the value of `[metadata]`. From 822d99584e110b3b84c2509656d908ae5a757860 Mon Sep 17 00:00:00 2001 From: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:31:01 -0700 Subject: [PATCH 4/4] Update docs/tutorials/user/credit-class-project-batch-management.md --- docs/tutorials/user/credit-class-project-batch-management.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/user/credit-class-project-batch-management.md b/docs/tutorials/user/credit-class-project-batch-management.md index d8bb96d901..32c53fc878 100644 --- a/docs/tutorials/user/credit-class-project-batch-management.md +++ b/docs/tutorials/user/credit-class-project-batch-management.md @@ -343,7 +343,7 @@ To check the credit class creation fee, run the following command: regen q ecocredit class-fee ``` -If you are connected to Regen Redwood, you should see that the allowlist is disabled and therefore any account can create a credit class. You should also see the list of available credit types, including the `credit-type-abbrev` for each credit type, and the token amount and denomination for the credit class creation fee, which we add to the next command using the `--class-fee` flag. +If you are connected to Redwood Testnet, you should see that the allowlist is disabled and therefore any account can create a credit class. You should also see the list of available credit types, including the `credit-type-abbrev` for each credit type, and the token amount and denomination for the credit class creation fee, which we add to the next command using the `--class-fee` flag. The values queried above are all managed through an on-chain governance process, meaning these values can be updated via governance proposals. For more information about submitting governance proposals to update these values, check out [Message-Based Governance Proposals](./message-based-governance-proposals.md).