// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/app/runtime/v1alpha1/module.proto (package cosmos.app.runtime.v1alpha1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * Module is the config object for the runtime module. * * @generated from message cosmos.app.runtime.v1alpha1.Module */ export class Module extends Message { /** * app_name is the name of the app. * * @generated from field: string app_name = 1; */ appName = ""; /** * begin_blockers specifies the module names of begin blockers * to call in the order in which they should be called. If this is left empty * no begin blocker will be registered. * * @generated from field: repeated string begin_blockers = 2; */ beginBlockers: string[] = []; /** * end_blockers specifies the module names of the end blockers * to call in the order in which they should be called. If this is left empty * no end blocker will be registered. * * @generated from field: repeated string end_blockers = 3; */ endBlockers: string[] = []; /** * init_genesis specifies the module names of init genesis functions * to call in the order in which they should be called. If this is left empty * no init genesis function will be registered. * * @generated from field: repeated string init_genesis = 4; */ initGenesis: string[] = []; /** * export_genesis specifies the order in which to export module genesis data. * If this is left empty, the init_genesis order will be used for export genesis * if it is specified. * * @generated from field: repeated string export_genesis = 5; */ exportGenesis: string[] = []; /** * override_store_keys is an optional list of overrides for the module store keys * to be used in keeper construction. * * @generated from field: repeated cosmos.app.runtime.v1alpha1.StoreKeyConfig override_store_keys = 6; */ overrideStoreKeys: StoreKeyConfig[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.app.runtime.v1alpha1.Module"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "app_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "begin_blockers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 3, name: "end_blockers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 4, name: "init_genesis", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 5, name: "export_genesis", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 6, name: "override_store_keys", kind: "message", T: StoreKeyConfig, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Module { return new Module().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Module { return new Module().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Module { return new Module().fromJsonString(jsonString, options); } static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { return proto3.util.equals(Module, a, b); } } /** * StoreKeyConfig may be supplied to override the default module store key, which * is the module name. * * @generated from message cosmos.app.runtime.v1alpha1.StoreKeyConfig */ export class StoreKeyConfig extends Message { /** * name of the module to override the store key of * * @generated from field: string module_name = 1; */ moduleName = ""; /** * the kv store key to use instead of the module name. * * @generated from field: string kv_store_key = 2; */ kvStoreKey = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.app.runtime.v1alpha1.StoreKeyConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "module_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "kv_store_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StoreKeyConfig { return new StoreKeyConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): StoreKeyConfig { return new StoreKeyConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): StoreKeyConfig { return new StoreKeyConfig().fromJsonString(jsonString, options); } static equals(a: StoreKeyConfig | PlainMessage | undefined, b: StoreKeyConfig | PlainMessage | undefined): boolean { return proto3.util.equals(StoreKeyConfig, a, b); } }