Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions core/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}