Updates across core modules, app wiring, IBC config, governance execution tests, tokenfactory keeper/module, Makefile build targets, release CI, and dependency updates. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
24 lines
517 B
Go
24 lines
517 B
Go
package keeper
|
|
|
|
import (
|
|
"context"
|
|
|
|
"clawchain/x/messaging/types"
|
|
|
|
"google.golang.org/grpc/codes"
|
|
"google.golang.org/grpc/status"
|
|
)
|
|
|
|
func (q queryServer) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
|
|
if req == nil {
|
|
return nil, status.Error(codes.InvalidArgument, "invalid request")
|
|
}
|
|
|
|
p, err := q.k.Params.Get(ctx)
|
|
if err != nil {
|
|
return nil, status.Error(codes.Internal, "failed to get params")
|
|
}
|
|
|
|
return &types.QueryParamsResponse{Params: p}, nil
|
|
}
|