diff --git a/e2e/tests/core/03-connection/connection_test.go b/e2e/tests/core/03-connection/connection_test.go index 89081ce15d8b..a771b8008ee4 100644 --- a/e2e/tests/core/03-connection/connection_test.go +++ b/e2e/tests/core/03-connection/connection_test.go @@ -69,7 +69,7 @@ func (s *ConnectionTestSuite) TestMaxExpectedTimePerBlockParam() { s.Require().NoError(err) s.Require().NotNil(authority) - msg := connectiontypes.NewMsgUpdateConnectionParams(authority.String(), connectiontypes.NewParams(delay)) + msg := connectiontypes.NewMsgUpdateParams(authority.String(), connectiontypes.NewParams(delay)) s.ExecuteGovProposalV1(ctx, msg, chainA, chainAWallet, 1) } else { changes := []paramsproposaltypes.ParamChange{ diff --git a/modules/core/03-connection/keeper/keeper.go b/modules/core/03-connection/keeper/keeper.go index 7469a7b26c2f..923554ca0ffb 100644 --- a/modules/core/03-connection/keeper/keeper.go +++ b/modules/core/03-connection/keeper/keeper.go @@ -226,8 +226,8 @@ func (k Keeper) addConnectionToClient(ctx sdk.Context, clientID, connectionID st func (k Keeper) GetParams(ctx sdk.Context) types.Params { store := ctx.KVStore(k.storeKey) bz := store.Get([]byte(types.ParamsKey)) - if len(bz) == 0 { - return types.Params{} + if bz == nil { // only panic on unset params and not on empty params + panic("controller params are not set in store") } var params types.Params diff --git a/modules/core/03-connection/keeper/keeper_test.go b/modules/core/03-connection/keeper/keeper_test.go index 2961c2ad4745..254d8e82365f 100644 --- a/modules/core/03-connection/keeper/keeper_test.go +++ b/modules/core/03-connection/keeper/keeper_test.go @@ -224,5 +224,7 @@ func (suite *KeeperTestSuite) TestUnsetParams() { store := ctx.KVStore(suite.chainA.GetSimApp().GetKey(exported.StoreKey)) store.Delete([]byte(types.ParamsKey)) - suite.Require().Equal(suite.chainA.GetSimApp().IBCKeeper.ConnectionKeeper.GetParams(ctx), types.Params{}) + suite.Require().Panics(func() { + suite.chainA.GetSimApp().IBCKeeper.ConnectionKeeper.GetParams(ctx) + }) } diff --git a/modules/core/03-connection/types/codec.go b/modules/core/03-connection/types/codec.go index 70b326ab1f8b..d6c1c1b26935 100644 --- a/modules/core/03-connection/types/codec.go +++ b/modules/core/03-connection/types/codec.go @@ -33,7 +33,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { &MsgConnectionOpenTry{}, &MsgConnectionOpenAck{}, &MsgConnectionOpenConfirm{}, - &MsgUpdateConnectionParams{}, + &MsgUpdateParams{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) diff --git a/modules/core/03-connection/types/msgs.go b/modules/core/03-connection/types/msgs.go index 2fea697f6ee7..bacfe83c9e91 100644 --- a/modules/core/03-connection/types/msgs.go +++ b/modules/core/03-connection/types/msgs.go @@ -17,7 +17,7 @@ var ( _ sdk.Msg = (*MsgConnectionOpenConfirm)(nil) _ sdk.Msg = (*MsgConnectionOpenAck)(nil) _ sdk.Msg = (*MsgConnectionOpenTry)(nil) - _ sdk.Msg = (*MsgUpdateConnectionParams)(nil) + _ sdk.Msg = (*MsgUpdateParams)(nil) _ codectypes.UnpackInterfacesMessage = (*MsgConnectionOpenTry)(nil) _ codectypes.UnpackInterfacesMessage = (*MsgConnectionOpenAck)(nil) @@ -291,16 +291,16 @@ func (msg MsgConnectionOpenConfirm) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{accAddr} } -// NewMsgUpdateConnectionParams creates a new MsgUpdateConnectionParams instance -func NewMsgUpdateConnectionParams(authority string, params Params) *MsgUpdateConnectionParams { - return &MsgUpdateConnectionParams{ +// NewMsgUpdateParams creates a new MsgUpdateParams instance +func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams { + return &MsgUpdateParams{ Authority: authority, Params: params, } } -// GetSigners returns the expected signers for a MsgUpdateConnectionParams message. -func (msg *MsgUpdateConnectionParams) GetSigners() []sdk.AccAddress { +// GetSigners returns the expected signers for a MsgUpdateParams message. +func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress { accAddr, err := sdk.AccAddressFromBech32(msg.Authority) if err != nil { panic(err) @@ -308,8 +308,8 @@ func (msg *MsgUpdateConnectionParams) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{accAddr} } -// ValidateBasic performs basic checks on a MsgUpdateConnectionParams. -func (msg *MsgUpdateConnectionParams) ValidateBasic() error { +// ValidateBasic performs basic checks on a MsgUpdateParams. +func (msg *MsgUpdateParams) ValidateBasic() error { if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { return errorsmod.Wrapf(ibcerrors.ErrInvalidAddress, "string could not be parsed as address: %v", err) } diff --git a/modules/core/03-connection/types/msgs_test.go b/modules/core/03-connection/types/msgs_test.go index e1f2f85204ad..df19129a6c9e 100644 --- a/modules/core/03-connection/types/msgs_test.go +++ b/modules/core/03-connection/types/msgs_test.go @@ -232,27 +232,27 @@ func (suite *MsgTestSuite) TestNewMsgConnectionOpenConfirm() { } } -// TestMsgUpdateConnectionParams_ValidateBasic tests ValidateBasic for MsgUpdateConnectionParams -func (suite *MsgTestSuite) TestMsgUpdateConnectionParams_ValidateBasic() { +// TestMsgUpdateParams_ValidateBasic tests ValidateBasic for MsgUpdateParams +func (suite *MsgTestSuite) TestMsgUpdateParams_ValidateBasic() { authority := suite.chainA.App.GetIBCKeeper().GetAuthority() testCases := []struct { name string - msg *types.MsgUpdateConnectionParams + msg *types.MsgUpdateParams expPass bool }{ { "success: valid authority and params", - types.NewMsgUpdateConnectionParams(authority, types.DefaultParams()), + types.NewMsgUpdateParams(authority, types.DefaultParams()), true, }, { "failure: invalid authority address", - types.NewMsgUpdateConnectionParams("invalid", types.DefaultParams()), + types.NewMsgUpdateParams("invalid", types.DefaultParams()), false, }, { "failure: invalid time per block", - types.NewMsgUpdateConnectionParams(authority, types.NewParams(0)), + types.NewMsgUpdateParams(authority, types.NewParams(0)), false, }, } diff --git a/modules/core/03-connection/types/tx.pb.go b/modules/core/03-connection/types/tx.pb.go index e7f141e1b7eb..41e31addeab7 100644 --- a/modules/core/03-connection/types/tx.pb.go +++ b/modules/core/03-connection/types/tx.pb.go @@ -378,8 +378,8 @@ func (m *MsgConnectionOpenConfirmResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgConnectionOpenConfirmResponse proto.InternalMessageInfo -// MsgUpdateConnectionParams defines the sdk.Msg type to update the connection parameters. -type MsgUpdateConnectionParams struct { +// MsgUpdateParams defines the sdk.Msg type to update the connection parameters. +type MsgUpdateParams struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the connection parameters to update. @@ -388,18 +388,18 @@ type MsgUpdateConnectionParams struct { Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` } -func (m *MsgUpdateConnectionParams) Reset() { *m = MsgUpdateConnectionParams{} } -func (m *MsgUpdateConnectionParams) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateConnectionParams) ProtoMessage() {} -func (*MsgUpdateConnectionParams) Descriptor() ([]byte, []int) { +func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } +func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParams) ProtoMessage() {} +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { return fileDescriptor_5d00fde5fc97399e, []int{8} } -func (m *MsgUpdateConnectionParams) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateConnectionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateConnectionParams.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -409,48 +409,48 @@ func (m *MsgUpdateConnectionParams) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *MsgUpdateConnectionParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateConnectionParams.Merge(m, src) +func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParams.Merge(m, src) } -func (m *MsgUpdateConnectionParams) XXX_Size() int { +func (m *MsgUpdateParams) XXX_Size() int { return m.Size() } -func (m *MsgUpdateConnectionParams) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateConnectionParams.DiscardUnknown(m) +func (m *MsgUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateConnectionParams proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo -func (m *MsgUpdateConnectionParams) GetAuthority() string { +func (m *MsgUpdateParams) GetAuthority() string { if m != nil { return m.Authority } return "" } -func (m *MsgUpdateConnectionParams) GetParams() Params { +func (m *MsgUpdateParams) GetParams() Params { if m != nil { return m.Params } return Params{} } -// MsgUpdateConnectionParamsResponse defines the MsgUpdateConnectionParams response type. -type MsgUpdateConnectionParamsResponse struct { +// MsgUpdateParamsResponse defines the MsgUpdateParams response type. +type MsgUpdateParamsResponse struct { } -func (m *MsgUpdateConnectionParamsResponse) Reset() { *m = MsgUpdateConnectionParamsResponse{} } -func (m *MsgUpdateConnectionParamsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateConnectionParamsResponse) ProtoMessage() {} -func (*MsgUpdateConnectionParamsResponse) Descriptor() ([]byte, []int) { +func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } +func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParamsResponse) ProtoMessage() {} +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_5d00fde5fc97399e, []int{9} } -func (m *MsgUpdateConnectionParamsResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgUpdateConnectionParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgUpdateConnectionParamsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -460,17 +460,17 @@ func (m *MsgUpdateConnectionParamsResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *MsgUpdateConnectionParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateConnectionParamsResponse.Merge(m, src) +func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) } -func (m *MsgUpdateConnectionParamsResponse) XXX_Size() int { +func (m *MsgUpdateParamsResponse) XXX_Size() int { return m.Size() } -func (m *MsgUpdateConnectionParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateConnectionParamsResponse.DiscardUnknown(m) +func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgUpdateConnectionParamsResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo func init() { proto.RegisterType((*MsgConnectionOpenInit)(nil), "ibc.core.connection.v1.MsgConnectionOpenInit") @@ -481,73 +481,73 @@ func init() { proto.RegisterType((*MsgConnectionOpenAckResponse)(nil), "ibc.core.connection.v1.MsgConnectionOpenAckResponse") proto.RegisterType((*MsgConnectionOpenConfirm)(nil), "ibc.core.connection.v1.MsgConnectionOpenConfirm") proto.RegisterType((*MsgConnectionOpenConfirmResponse)(nil), "ibc.core.connection.v1.MsgConnectionOpenConfirmResponse") - proto.RegisterType((*MsgUpdateConnectionParams)(nil), "ibc.core.connection.v1.MsgUpdateConnectionParams") - proto.RegisterType((*MsgUpdateConnectionParamsResponse)(nil), "ibc.core.connection.v1.MsgUpdateConnectionParamsResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "ibc.core.connection.v1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "ibc.core.connection.v1.MsgUpdateParamsResponse") } func init() { proto.RegisterFile("ibc/core/connection/v1/tx.proto", fileDescriptor_5d00fde5fc97399e) } var fileDescriptor_5d00fde5fc97399e = []byte{ - // 934 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xcd, 0x6e, 0xdb, 0x46, - 0x10, 0xc7, 0x45, 0x5b, 0x92, 0xa5, 0x91, 0x92, 0xb4, 0x0b, 0xd9, 0x61, 0x98, 0x44, 0x92, 0x95, - 0x02, 0x31, 0x8a, 0x9a, 0x8c, 0x93, 0x16, 0xf9, 0xa8, 0x2f, 0xb6, 0x2e, 0x35, 0x0a, 0xb7, 0x06, - 0xeb, 0xe6, 0xd0, 0x8b, 0x40, 0x51, 0x6b, 0x8a, 0xb0, 0xc5, 0x25, 0xb8, 0x2b, 0xb5, 0xec, 0x31, - 0x2d, 0xda, 0x1e, 0xfb, 0x08, 0x79, 0x84, 0xbe, 0x43, 0x0f, 0x0d, 0xd0, 0x4b, 0x8e, 0x3d, 0x15, - 0x85, 0x7d, 0x68, 0x1f, 0xa3, 0xe0, 0x2e, 0xbf, 0x2c, 0x91, 0x01, 0x65, 0xdf, 0xa8, 0xd1, 0x7f, - 0x86, 0xff, 0x99, 0xfd, 0x2d, 0x77, 0xa1, 0x63, 0x0f, 0x4d, 0xcd, 0x24, 0x1e, 0xd6, 0x4c, 0xe2, - 0x38, 0xd8, 0x64, 0x36, 0x71, 0xb4, 0xd9, 0x8e, 0xc6, 0xbe, 0x53, 0x5d, 0x8f, 0x30, 0x82, 0x36, - 0xec, 0xa1, 0xa9, 0x06, 0x02, 0x35, 0x11, 0x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, 0x11, 0xfe, 0x7a, - 0x51, 0xfb, 0xe5, 0x75, 0xa7, 0xf4, 0xdf, 0xeb, 0x4e, 0xa9, 0xd7, 0x81, 0xfb, 0x99, 0x53, 0xd0, - 0x31, 0x75, 0x89, 0x43, 0x71, 0xef, 0xcf, 0x0a, 0xb4, 0x16, 0x14, 0xc7, 0x9e, 0xff, 0xee, 0x31, - 0x3d, 0x83, 0x0d, 0xd7, 0xc3, 0x33, 0x9b, 0x4c, 0xe9, 0x20, 0x69, 0x23, 0x50, 0x06, 0x03, 0xab, - 0xef, 0xaf, 0xc8, 0x92, 0xde, 0x8a, 0x14, 0x49, 0xed, 0x83, 0x11, 0x7a, 0x0a, 0xcd, 0xb0, 0x2c, - 0x65, 0x06, 0xc3, 0xe1, 0x54, 0x5a, 0xaa, 0x60, 0x42, 0x8d, 0x98, 0x50, 0xf7, 0x1c, 0x5f, 0x6f, - 0x08, 0xe5, 0x57, 0x81, 0x70, 0x61, 0x65, 0xca, 0xd7, 0x5c, 0x99, 0xf9, 0xf1, 0x56, 0x16, 0xc7, - 0x7b, 0x0c, 0xeb, 0xe9, 0x94, 0x41, 0xb8, 0x32, 0x54, 0xae, 0x76, 0x57, 0x8b, 0x2c, 0x65, 0x2b, - 0x9d, 0x1d, 0x06, 0x29, 0xea, 0x43, 0xd3, 0xf5, 0x08, 0x39, 0x19, 0x8c, 0xb1, 0x6d, 0x8d, 0x99, - 0xbc, 0xc6, 0x1b, 0x51, 0x52, 0xc5, 0x04, 0xf0, 0xb3, 0x1d, 0xf5, 0x33, 0xae, 0x08, 0xed, 0x37, - 0x78, 0x96, 0x08, 0xa1, 0xfb, 0x00, 0xa2, 0x88, 0xed, 0xd8, 0x4c, 0xae, 0x75, 0xa5, 0xad, 0xa6, - 0x5e, 0xe7, 0x11, 0xce, 0xf8, 0x66, 0xf4, 0x0e, 0x51, 0x4b, 0xae, 0x73, 0x81, 0xa8, 0xd0, 0xe7, - 0x21, 0xf4, 0x10, 0x6e, 0x85, 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x5e, 0xb4, 0x4b, 0x6f, 0x2f, 0xda, 0xa5, 0xbf, 0x2e, 0xda, 0xa5, 0x6f, 0x76, 0x2d, 0x9b, - 0x8d, 0xa7, 0x43, 0xd5, 0x24, 0x13, 0x2d, 0xbc, 0x56, 0xdb, 0x43, 0x73, 0xdb, 0x22, 0xda, 0xec, - 0xa9, 0x36, 0x21, 0xa3, 0xe9, 0x19, 0xa6, 0xe2, 0x02, 0xfc, 0xe8, 0xc9, 0x76, 0xea, 0x0e, 0xcc, - 0x7c, 0x17, 0xd3, 0x61, 0x95, 0x1f, 0x05, 0x4f, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xaf, 0xe7, - 0xeb, 0x71, 0xcb, 0x0b, 0x00, 0x00, + // 935 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0x4f, 0x6f, 0x1b, 0xc5, + 0x1b, 0xc7, 0xbd, 0x89, 0xe3, 0xd8, 0x8f, 0xdd, 0xe6, 0xf7, 0x1b, 0x39, 0xc9, 0x76, 0xdb, 0xda, + 0xae, 0x41, 0x4a, 0x84, 0xc8, 0x6e, 0xd3, 0x82, 0x5a, 0x4a, 0x2e, 0x89, 0x2f, 0x44, 0x28, 0x50, + 0x2d, 0xa1, 0x07, 0x2e, 0x96, 0xbd, 0x9e, 0xac, 0x47, 0x89, 0x77, 0x56, 0x3b, 0x63, 0xc3, 0x22, + 0x71, 0x01, 0x0e, 0x1c, 0x79, 0x09, 0x7d, 0x09, 0xbc, 0x07, 0x0e, 0x54, 0xe2, 0xd2, 0x23, 0x27, + 0x84, 0x92, 0x03, 0x5c, 0x78, 0x0f, 0x68, 0x67, 0x66, 0xff, 0xc4, 0x7f, 0xaa, 0x75, 0x73, 0x5b, + 0x3f, 0xfe, 0x3e, 0xdf, 0xf9, 0xce, 0x33, 0x9f, 0xfd, 0x03, 0x4d, 0xd2, 0x77, 0x2c,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0x64, 0x22, 0x95, 0x29, 0x38, 0x77, 0xde, 0xe0, 0x99, 0xc5, 0xc8, 0xb0, 0x72, + 0x0a, 0xe3, 0x35, 0x8f, 0x5e, 0xbc, 0xba, 0x6c, 0x68, 0xaf, 0x2f, 0x1b, 0xda, 0x5f, 0x97, 0x0d, + 0xed, 0xe7, 0xab, 0x46, 0xe1, 0xf5, 0x55, 0xa3, 0xf0, 0xc7, 0x55, 0xa3, 0xf0, 0xd5, 0x81, 0x4b, + 0xf8, 0x70, 0xdc, 0x37, 0x1d, 0x3a, 0xb2, 0xd4, 0xc7, 0x32, 0xe9, 0x3b, 0x7b, 0x2e, 0xb5, 0x26, + 0x4f, 0xac, 0x11, 0x1d, 0x8c, 0x2f, 0x30, 0x93, 0x9f, 0xb5, 0x0f, 0x1f, 0xef, 0x65, 0xbe, 0x6c, + 0x79, 0xe8, 0x63, 0xd6, 0x2f, 0x89, 0x07, 0xfc, 0xe3, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x08, + 0x4a, 0x3a, 0x23, 0xa1, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -572,8 +572,8 @@ type MsgClient interface { // MsgConnectionOpenConfirm. ConnectionOpenConfirm(ctx context.Context, in *MsgConnectionOpenConfirm, opts ...grpc.CallOption) (*MsgConnectionOpenConfirmResponse, error) // UpdateConnectionParams defines a rpc handler method for - // MsgUpdateConnectionParams. - UpdateConnectionParams(ctx context.Context, in *MsgUpdateConnectionParams, opts ...grpc.CallOption) (*MsgUpdateConnectionParamsResponse, error) + // MsgUpdateParams. + UpdateConnectionParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } type msgClient struct { @@ -620,8 +620,8 @@ func (c *msgClient) ConnectionOpenConfirm(ctx context.Context, in *MsgConnection return out, nil } -func (c *msgClient) UpdateConnectionParams(ctx context.Context, in *MsgUpdateConnectionParams, opts ...grpc.CallOption) (*MsgUpdateConnectionParamsResponse, error) { - out := new(MsgUpdateConnectionParamsResponse) +func (c *msgClient) UpdateConnectionParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) err := c.cc.Invoke(ctx, "/ibc.core.connection.v1.Msg/UpdateConnectionParams", in, out, opts...) if err != nil { return nil, err @@ -641,8 +641,8 @@ type MsgServer interface { // MsgConnectionOpenConfirm. ConnectionOpenConfirm(context.Context, *MsgConnectionOpenConfirm) (*MsgConnectionOpenConfirmResponse, error) // UpdateConnectionParams defines a rpc handler method for - // MsgUpdateConnectionParams. - UpdateConnectionParams(context.Context, *MsgUpdateConnectionParams) (*MsgUpdateConnectionParamsResponse, error) + // MsgUpdateParams. + UpdateConnectionParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -661,7 +661,7 @@ func (*UnimplementedMsgServer) ConnectionOpenAck(ctx context.Context, req *MsgCo func (*UnimplementedMsgServer) ConnectionOpenConfirm(ctx context.Context, req *MsgConnectionOpenConfirm) (*MsgConnectionOpenConfirmResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ConnectionOpenConfirm not implemented") } -func (*UnimplementedMsgServer) UpdateConnectionParams(ctx context.Context, req *MsgUpdateConnectionParams) (*MsgUpdateConnectionParamsResponse, error) { +func (*UnimplementedMsgServer) UpdateConnectionParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateConnectionParams not implemented") } @@ -742,7 +742,7 @@ func _Msg_ConnectionOpenConfirm_Handler(srv interface{}, ctx context.Context, de } func _Msg_UpdateConnectionParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateConnectionParams) + in := new(MsgUpdateParams) if err := dec(in); err != nil { return nil, err } @@ -754,7 +754,7 @@ func _Msg_UpdateConnectionParams_Handler(srv interface{}, ctx context.Context, d FullMethod: "/ibc.core.connection.v1.Msg/UpdateConnectionParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateConnectionParams(ctx, req.(*MsgUpdateConnectionParams)) + return srv.(MsgServer).UpdateConnectionParams(ctx, req.(*MsgUpdateParams)) } return interceptor(ctx, in, info, handler) } @@ -1247,7 +1247,7 @@ func (m *MsgConnectionOpenConfirmResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *MsgUpdateConnectionParams) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1257,12 +1257,12 @@ func (m *MsgUpdateConnectionParams) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateConnectionParams) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateConnectionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1287,7 +1287,7 @@ func (m *MsgUpdateConnectionParams) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *MsgUpdateConnectionParamsResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1297,12 +1297,12 @@ func (m *MsgUpdateConnectionParamsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgUpdateConnectionParamsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgUpdateConnectionParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1511,7 +1511,7 @@ func (m *MsgConnectionOpenConfirmResponse) Size() (n int) { return n } -func (m *MsgUpdateConnectionParams) Size() (n int) { +func (m *MsgUpdateParams) Size() (n int) { if m == nil { return 0 } @@ -1526,7 +1526,7 @@ func (m *MsgUpdateConnectionParams) Size() (n int) { return n } -func (m *MsgUpdateConnectionParamsResponse) Size() (n int) { +func (m *MsgUpdateParamsResponse) Size() (n int) { if m == nil { return 0 } @@ -3014,7 +3014,7 @@ func (m *MsgConnectionOpenConfirmResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateConnectionParams) Unmarshal(dAtA []byte) error { +func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3037,10 +3037,10 @@ func (m *MsgUpdateConnectionParams) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateConnectionParams: wiretype end group for non-group") + return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateConnectionParams: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3129,7 +3129,7 @@ func (m *MsgUpdateConnectionParams) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateConnectionParamsResponse) Unmarshal(dAtA []byte) error { +func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3152,10 +3152,10 @@ func (m *MsgUpdateConnectionParamsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateConnectionParamsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateConnectionParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: diff --git a/modules/core/keeper/msg_server.go b/modules/core/keeper/msg_server.go index cf881a03b92e..40eea3217b2a 100644 --- a/modules/core/keeper/msg_server.go +++ b/modules/core/keeper/msg_server.go @@ -707,8 +707,8 @@ func (k Keeper) UpdateClientParams(goCtx context.Context, msg *clienttypes.MsgUp return &clienttypes.MsgUpdateClientParamsResponse{}, nil } -// UpdateConnectionParams defines a rpc handler method for MsgUpdateConnectionParams. -func (k Keeper) UpdateConnectionParams(goCtx context.Context, msg *connectiontypes.MsgUpdateConnectionParams) (*connectiontypes.MsgUpdateConnectionParamsResponse, error) { +// UpdateConnectionParams defines a rpc handler method for MsgUpdateParams. +func (k Keeper) UpdateConnectionParams(goCtx context.Context, msg *connectiontypes.MsgUpdateParams) (*connectiontypes.MsgUpdateParamsResponse, error) { if k.GetAuthority() != msg.Authority { return nil, errorsmod.Wrapf(ibcerrors.ErrUnauthorized, "expected %s, got %s", k.GetAuthority(), msg.Authority) } @@ -716,5 +716,5 @@ func (k Keeper) UpdateConnectionParams(goCtx context.Context, msg *connectiontyp ctx := sdk.UnwrapSDKContext(goCtx) k.ConnectionKeeper.SetParams(ctx, msg.Params) - return &connectiontypes.MsgUpdateConnectionParamsResponse{}, nil + return &connectiontypes.MsgUpdateParamsResponse{}, nil } diff --git a/modules/core/keeper/msg_server_test.go b/modules/core/keeper/msg_server_test.go index 48dc0d18cc5b..655c04866e9f 100644 --- a/modules/core/keeper/msg_server_test.go +++ b/modules/core/keeper/msg_server_test.go @@ -832,32 +832,32 @@ func (suite *KeeperTestSuite) TestUpdateConnectionParams() { validAuthority := suite.chainA.App.GetIBCKeeper().GetAuthority() testCases := []struct { name string - msg *connectiontypes.MsgUpdateConnectionParams + msg *connectiontypes.MsgUpdateParams expPass bool }{ { "success: valid authority and default params", - connectiontypes.NewMsgUpdateConnectionParams(validAuthority, connectiontypes.DefaultParams()), + connectiontypes.NewMsgUpdateParams(validAuthority, connectiontypes.DefaultParams()), true, }, { "failure: malformed authority address", - connectiontypes.NewMsgUpdateConnectionParams(ibctesting.InvalidID, connectiontypes.DefaultParams()), + connectiontypes.NewMsgUpdateParams(ibctesting.InvalidID, connectiontypes.DefaultParams()), false, }, { "failure: empty authority address", - connectiontypes.NewMsgUpdateConnectionParams("", connectiontypes.DefaultParams()), + connectiontypes.NewMsgUpdateParams("", connectiontypes.DefaultParams()), false, }, { "failure: whitespace authority address", - connectiontypes.NewMsgUpdateConnectionParams(" ", connectiontypes.DefaultParams()), + connectiontypes.NewMsgUpdateParams(" ", connectiontypes.DefaultParams()), false, }, { "failure: unauthorized authority address", - connectiontypes.NewMsgUpdateConnectionParams(ibctesting.TestAccAddress, connectiontypes.DefaultParams()), + connectiontypes.NewMsgUpdateParams(ibctesting.TestAccAddress, connectiontypes.DefaultParams()), false, }, } diff --git a/proto/ibc/core/connection/v1/tx.proto b/proto/ibc/core/connection/v1/tx.proto index 6137f8d82bf8..d56c9a3a1605 100644 --- a/proto/ibc/core/connection/v1/tx.proto +++ b/proto/ibc/core/connection/v1/tx.proto @@ -26,8 +26,8 @@ service Msg { rpc ConnectionOpenConfirm(MsgConnectionOpenConfirm) returns (MsgConnectionOpenConfirmResponse); // UpdateConnectionParams defines a rpc handler method for - // MsgUpdateConnectionParams. - rpc UpdateConnectionParams(MsgUpdateConnectionParams) returns (MsgUpdateConnectionParamsResponse); + // MsgUpdateParams. + rpc UpdateConnectionParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } // MsgConnectionOpenInit defines the msg sent by an account on Chain A to @@ -121,8 +121,8 @@ message MsgConnectionOpenConfirm { // response type. message MsgConnectionOpenConfirmResponse {} -// MsgUpdateConnectionParams defines the sdk.Msg type to update the connection parameters. -message MsgUpdateConnectionParams { +// MsgUpdateParams defines the sdk.Msg type to update the connection parameters. +message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; // authority is the address of the governance account. @@ -134,5 +134,5 @@ message MsgUpdateConnectionParams { Params params = 2 [(gogoproto.nullable) = false]; } -// MsgUpdateConnectionParamsResponse defines the MsgUpdateConnectionParams response type. -message MsgUpdateConnectionParamsResponse {} \ No newline at end of file +// MsgUpdateParamsResponse defines the MsgUpdateParams response type. +message MsgUpdateParamsResponse {} \ No newline at end of file