feat(core): add ConfigMap type (#22361)

This commit is contained in:
Matt Kocubinski 2024-10-25 06:38:52 -05:00 committed by GitHub
parent aa4614e480
commit 49e1bc2073
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View File

@ -36,6 +36,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
## [Unreleased]
### Features
* [*22267](https://github.com/cosmos/cosmos-sdk/pull/22267) Add `server.ConfigMap` and `server.ModuleConfigMap` to replace `server.DynamicConfig` in module configuration.
## [v1.0.0-alpha.3](https://github.com/cosmos/cosmos-sdk/releases/tag/core%2Fv1.0.0-alpha.3)
### Features

View File

@ -6,3 +6,16 @@ type DynamicConfig interface {
Get(string) any
GetString(string) string
}
// ConfigMap is a recursive map of configuration values.
type ConfigMap map[string]any
// ModuleConfigMap is used to specify module configuration.
// Keys (and there default values and types) should be set in Config
// and returned by module specific provider function.
type ModuleConfigMap struct {
Module string
Config ConfigMap
}
func (ModuleConfigMap) IsManyPerContainerType() {}