ModuleConfig is a module configuration for an app.

from message cosmos.app.v1alpha1.ModuleConfig

Hierarchy

Constructors

Properties

config?: Any

config is the config object for the module. Module config messages should define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension.

from field: google.protobuf.Any config = 2;

golangBindings: GolangBinding[] = []

golang_bindings specifies explicit interface to implementation type bindings which depinject uses to resolve interface inputs to provider functions. The scope of this field's configuration is module specific.

from field: repeated cosmos.app.v1alpha1.GolangBinding golang_bindings = 3;

name: string = ""

name is the unique name of the module within the app. It should be a name that persists between different versions of a module so that modules can be smoothly upgraded to new versions.

For example, for the module cosmos.bank.module.v1.Module, we may chose to simply name the module "bank" in the app. When we upgrade to cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same and the framework knows that the v2 module should receive all the same state that the v1 module had. Note: modules should provide info on which versions they can migrate from in the ModuleDescriptor.can_migration_from field.

from field: string name = 1;

fields: FieldList = ...
runtime: ProtoRuntime = proto3
typeName: "cosmos.app.v1alpha1.ModuleConfig" = "cosmos.app.v1alpha1.ModuleConfig"

Methods