feat: add core module with app config support (#11914)

This commit is contained in:
Aaron Craelius
2022-05-10 14:41:52 -04:00
committed by GitHub
parent 40b59537eb
commit 90272e3b46
22 changed files with 3295 additions and 24 deletions
+2 -4
View File
@@ -1617,10 +1617,8 @@ type ModuleDescriptor struct {
unknownFields protoimpl.UnknownFields
// go_import names the package that should be imported by an app to load the
// module in the runtime module registry. Either go_import must be defined here
// or the go_package option must be defined at the file level to indicate
// to users where to location the module implementation. go_import takes
// precedence over go_package when both are defined.
// module in the runtime module registry. It is required to make debugging
// of configuration errors easier for users.
GoImport string `protobuf:"bytes,1,opt,name=go_import,json=goImport,proto3" json:"go_import,omitempty"`
// use_package refers to a protobuf package that this module
// uses and exposes to the world. In an app, only one module should "use"
+18 -6
View File
@@ -6282,7 +6282,9 @@ func (x *QueryModuleAccountsResponse) GetAccounts() []*anypb.Any {
return nil
}
// Bech32PrefixRequest is the request type for Bech32Prefix rpc method
// Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
//
// Since: cosmos-sdk 0.46
type Bech32PrefixRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -6309,7 +6311,9 @@ func (*Bech32PrefixRequest) Descriptor() ([]byte, []int) {
return file_cosmos_auth_v1beta1_query_proto_rawDescGZIP(), []int{8}
}
// Bech32PrefixResponse is the response type for Bech32Prefix rpc method
// Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
//
// Since: cosmos-sdk 0.46
type Bech32PrefixResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -6345,7 +6349,9 @@ func (x *Bech32PrefixResponse) GetBech32Prefix() string {
return ""
}
// AddressBytesToStringRequest is the request type for AddressString rpc method
// AddressBytesToStringRequest is the request type for AddressString rpc method.
//
// Since: cosmos-sdk 0.46
type AddressBytesToStringRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -6381,7 +6387,9 @@ func (x *AddressBytesToStringRequest) GetAddressBytes() []byte {
return nil
}
// AddressBytesToStringResponse is the response type for AddressString rpc method
// AddressBytesToStringResponse is the response type for AddressString rpc method.
//
// Since: cosmos-sdk 0.46
type AddressBytesToStringResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -6417,7 +6425,9 @@ func (x *AddressBytesToStringResponse) GetAddressString() string {
return ""
}
// AddressStringToBytesRequest is the request type for AccountBytes rpc method
// AddressStringToBytesRequest is the request type for AccountBytes rpc method.
//
// Since: cosmos-sdk 0.46
type AddressStringToBytesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -6453,7 +6463,9 @@ func (x *AddressStringToBytesRequest) GetAddressString() string {
return ""
}
// AddressStringToBytesResponse is the response type for AddressBytes rpc method
// AddressStringToBytesResponse is the response type for AddressBytes rpc method.
//
// Since: cosmos-sdk 0.46
type AddressStringToBytesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+14 -2
View File
@@ -32,11 +32,17 @@ type QueryClient interface {
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// ModuleAccounts returns all the existing module accounts.
ModuleAccounts(ctx context.Context, in *QueryModuleAccountsRequest, opts ...grpc.CallOption) (*QueryModuleAccountsResponse, error)
// Bech32 queries bech32Prefix
// Bech32Prefix queries bech32Prefix
//
// Since: cosmos-sdk 0.46
Bech32Prefix(ctx context.Context, in *Bech32PrefixRequest, opts ...grpc.CallOption) (*Bech32PrefixResponse, error)
// AddressBytesToString converts Account Address bytes to string
//
// Since: cosmos-sdk 0.46
AddressBytesToString(ctx context.Context, in *AddressBytesToStringRequest, opts ...grpc.CallOption) (*AddressBytesToStringResponse, error)
// AddressStringToBytes converts Address string to bytes
//
// Since: cosmos-sdk 0.46
AddressStringToBytes(ctx context.Context, in *AddressStringToBytesRequest, opts ...grpc.CallOption) (*AddressStringToBytesResponse, error)
}
@@ -125,11 +131,17 @@ type QueryServer interface {
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// ModuleAccounts returns all the existing module accounts.
ModuleAccounts(context.Context, *QueryModuleAccountsRequest) (*QueryModuleAccountsResponse, error)
// Bech32 queries bech32Prefix
// Bech32Prefix queries bech32Prefix
//
// Since: cosmos-sdk 0.46
Bech32Prefix(context.Context, *Bech32PrefixRequest) (*Bech32PrefixResponse, error)
// AddressBytesToString converts Account Address bytes to string
//
// Since: cosmos-sdk 0.46
AddressBytesToString(context.Context, *AddressBytesToStringRequest) (*AddressBytesToStringResponse, error)
// AddressStringToBytes converts Address string to bytes
//
// Since: cosmos-sdk 0.46
AddressStringToBytes(context.Context, *AddressStringToBytesRequest) (*AddressStringToBytesResponse, error)
mustEmbedUnimplementedQueryServer()
}
@@ -39,6 +39,8 @@ type QueryClient interface {
// Since: cosmos-sdk 0.43
ModuleVersions(ctx context.Context, in *QueryModuleVersionsRequest, opts ...grpc.CallOption) (*QueryModuleVersionsResponse, error)
// Returns the account with authority to conduct upgrades
//
// Since: cosmos-sdk 0.46
Authority(ctx context.Context, in *QueryAuthorityRequest, opts ...grpc.CallOption) (*QueryAuthorityResponse, error)
}
@@ -117,6 +119,8 @@ type QueryServer interface {
// Since: cosmos-sdk 0.43
ModuleVersions(context.Context, *QueryModuleVersionsRequest) (*QueryModuleVersionsResponse, error)
// Returns the account with authority to conduct upgrades
//
// Since: cosmos-sdk 0.46
Authority(context.Context, *QueryAuthorityRequest) (*QueryAuthorityResponse, error)
mustEmbedUnimplementedQueryServer()
}