From 1b5b338eebe41c9e2c8d2de8bdb3411af1f0a64f Mon Sep 17 00:00:00 2001 From: GarmashAlex Date: Mon, 13 Jan 2025 11:57:17 +0300 Subject: [PATCH] docs: Add environment documentation link and description (#23330) Co-authored-by: Julien Robert --- UPGRADING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UPGRADING.md b/UPGRADING.md index 2c3e6c858e7..ae7eae68d94 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -336,7 +336,7 @@ For the same instructions than for legacy app wiring to enable sign mode textual ### Depinject `app_config.go` / `app.yml` With the introduction of [environment in modules](#core-api), depinject automatically creates the environment for all modules. -Learn more about environment [here](https://example.com) . Given the fields of environment, this means runtime creates a kv store service for all modules by default. It can happen that some modules do not have a store necessary (such as `x/auth/tx` for instance). In this case, the store creation should be skipped in `app_config.go`: +The 'Environment struct provides essential services](https://docs.cosmos.network/main/learn/advanced/core#environment) to modules including logging, event handling, gas metering, header access, routing, and both KV and memory store services. Given the fields of environment, this means runtime creates a kv store service for all modules by default. It can happen that some modules do not have a store necessary (such as `x/auth/tx` for instance). In this case, the store creation should be skipped in `app_config.go`: ```diff InitGenesis: []string{