feat(x/auth): app wiring setup (#12019)

This commit is contained in:
Aaron Craelius
2022-05-27 16:54:49 -04:00
committed by GitHub
parent 81ee241a6a
commit dfe29ee2bf
11 changed files with 2227 additions and 74 deletions
@@ -33,4 +33,18 @@ message Module {
// If this is left empty, the init_genesis order will be used for export genesis
// if it is specified.
repeated string export_genesis = 5;
// override_store_keys is an optional list of overrides for the module store keys
// to be used in keeper construction.
repeated StoreKeyConfig override_store_keys = 6;
}
// StoreKeyConfig may be supplied to override the default module store key, which
// is the module name.
message StoreKeyConfig {
// name of the module to override the store key of
string module_name = 1;
// the kv store key to use instead of the module name.
string kv_store_key = 2;
}
+28
View File
@@ -0,0 +1,28 @@
syntax = "proto3";
package cosmos.auth.module.v1;
import "cosmos/app/v1alpha1/module.proto";
// Module is the config object for the auth module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/auth"
};
// bech32_prefix is the bech32 account prefix for the app.
string bech32_prefix = 1;
// module_account_permissions are module account permissions.
repeated ModuleAccountPermission module_account_permissions = 2;
}
// ModuleAccountPermission represents permissions for a module account.
message ModuleAccountPermission {
// account is the name of the module.
string account = 1;
// permissions are the permissions this module has. Currently recognized
// values are minter, burner and staking.
repeated string permissions = 2;
}