You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module Dependencies are the modules that an application may depend on and which version of the Cosmos SDK they are compatible with.
82
81
83
-
> Note: The version table only goes back to 0.50.x, this is due to the reason that modules were not spun out into their own go.mods until 0.50.z. ❌ signals that the module was not spun out into its own go.mod file.
Documentation to migrate an application from v0.50.x to server/v2 is available elsewhere.
45
+
It is additional to the changes described here.
46
+
41
47
### SimApp
42
48
43
49
In this section we describe the changes made in Cosmos SDK' SimApp.
@@ -182,8 +188,7 @@ for more details.
182
188
### Depinject `app_config.go` / `app.yml`
183
189
184
190
With the introduction of [environment in modules](#core-api), depinject automatically creates the environment for all modules.
185
-
Learn more about environment [here](https://example.com)<!-- TODO -->. Given the fields of environment, this means runtime creates a kv store service for all modules by default.
186
-
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`:
191
+
Learn more about environment [here](https://example.com)<!-- TODO -->. 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`:
187
192
188
193
```diff
189
194
InitGenesis: []string{
@@ -203,7 +208,20 @@ There is no longer a need for the Cosmos SDK to host these protos for itself and
203
208
That package containing proto v2 generated code, but the SDK now uses [buf generated go SDK instead](https://buf.build/docs/bsr/generated-sdks/go).
204
209
If you were depending on `cosmossdk.io/api/tendermint`, please use the buf generated go SDK instead, or ask CometBFT host the generated proto v2 code.
205
210
206
-
The `codectypes.Any` has moved to `github.com/cosmos/gogoproto/types/any`. Module developers need to update the `buf.gen.gogo.yaml` configuration files by adjusting the corresponding `opt` option to `Mgoogle/protobuf/any.proto=github.com/cosmos/gogoproto/types/any` for directly mapping the`Any` type to its new location. This change is optional, but recommended, as `codectypes.Any` is aliased to `gogoproto.Any` in the SDK.
211
+
The `codectypes.Any` has moved to `github.com/cosmos/gogoproto/types/any`. Module developers need to update the `buf.gen.gogo.yaml` configuration files by adjusting the corresponding `opt` option to `Mgoogle/protobuf/any.proto=github.com/cosmos/gogoproto/types/any` for directly mapping the`Any` type to its new location:
Also, any usages of the interfaces `AnyUnpacker` and `UnpackInterfacesMessage` must be replaced with the interfaces of the same name in the `github.com/cosmos/gogoproto/types/any` package.
*[#19343](https://github.com/cosmos/cosmos-sdk/pull/19343) Simplify IndexedMap creation by allowing to infer indexes through reflection.
37
-
*[#18933](https://github.com/cosmos/cosmos-sdk/pull/18933)Add LookupMap implementation. It is basic wrapping of the standard Map methods but is not iterable.
38
-
*[#17656](https://github.com/cosmos/cosmos-sdk/pull/17656) Introduces `Vec`, a collection type that allows to represent a growable array on top of a KVStore.
36
+
*[#17656](https://github.com/cosmos/cosmos-sdk/pull/17656) Introduces `Vec`, a collection type that allows to represent a growable array on top of a KVStore.
37
+
*[#18933](https://github.com/cosmos/cosmos-sdk/pull/18933) Add LookupMap implementation. It is basic wrapping of the standard Map methods but is not iterable.
38
+
*[#19343](https://github.com/cosmos/cosmos-sdk/pull/19343) Simplify IndexedMap creation by allowing to infer indexes through reflection.
39
39
*[#19861](https://github.com/cosmos/cosmos-sdk/pull/19861) Add `NewJSONValueCodec` value codec as an alternative for `codec.CollValue` from the SDK for non protobuf types.
40
+
*[#21090](https://github.com/cosmos/cosmos-sdk/pull/21090) Introduces `Quad`, a composite key with four keys.
Copy file name to clipboardExpand all lines: tools/confix/README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,11 @@ An implementation example can be found in `simapp`.
39
39
40
40
The command will be available as `simd config`.
41
41
42
+
```tip
43
+
Using confix directly in the application can have less features than using it standalone.
44
+
This is because confix is versioned with the SDK, while `latest` is the standalone version.
45
+
```
46
+
42
47
### Using Confix Standalone
43
48
44
49
To use Confix standalone, without having to add it in your application, install it with the following command:
@@ -136,6 +141,15 @@ confix view ~/.simapp/config/client.toml # views the current app client conf
136
141
At each SDK modification of the default configuration, add the default SDK config under `data/v0.XX-app.toml`.
137
142
This allows users to use the tool standalone.
138
143
144
+
### Compatibility
145
+
146
+
The recommended standalone version is `latest`, which is using the latest development version of the Confix.
147
+
148
+
| SDK Version | Confix Version |
149
+
| ----------- | -------------- |
150
+
| v0.50 | v0.1.x |
151
+
| v0.52 | v0.2.x |
152
+
139
153
## Credits
140
154
141
155
This project is based on the [CometBFT RFC 019](https://github.com/cometbft/cometbft/blob/5013bc3f4a6d64dcc2bf02ccc002ebc9881c62e4/docs/rfc/rfc-019-config-version.md) and their own implementation of [confix](https://github.com/cometbft/cometbft/blob/v0.36.x/scripts/confix/confix.go).
0 commit comments