diff --git a/docs/ibc/proto-docs.md b/docs/ibc/proto-docs.md
index c9e6f7c47e0..4b5904eae5a 100644
--- a/docs/ibc/proto-docs.md
+++ b/docs/ibc/proto-docs.md
@@ -98,8 +98,8 @@
- [Type](#ibc.applications.interchain_accounts.v1.Type)
- [ibc/applications/interchain_accounts/controller/v1/tx.proto](#ibc/applications/interchain_accounts/controller/v1/tx.proto)
- - [MsgRegisterAccount](#ibc.applications.interchain_accounts.controller.v1.MsgRegisterAccount)
- - [MsgRegisterAccountResponse](#ibc.applications.interchain_accounts.controller.v1.MsgRegisterAccountResponse)
+ - [MsgRegisterInterchainAccount](#ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount)
+ - [MsgRegisterInterchainAccountResponse](#ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse)
- [MsgSubmitTx](#ibc.applications.interchain_accounts.controller.v1.MsgSubmitTx)
- [MsgSubmitTxResponse](#ibc.applications.interchain_accounts.controller.v1.MsgSubmitTxResponse)
@@ -1621,16 +1621,16 @@ host
-
+
-### MsgRegisterAccount
-MsgRegisterAccount defines the payload for Msg/RegisterAccount
+### MsgRegisterInterchainAccount
+MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| `connection_id` | [string](#string) | | |
| `owner` | [string](#string) | | |
+| `connection_id` | [string](#string) | | |
| `version` | [string](#string) | | |
@@ -1638,10 +1638,10 @@ MsgRegisterAccount defines the payload for Msg/RegisterAccount
-
+
-### MsgRegisterAccountResponse
-MsgRegisterAccountResponse defines the response for Msg/RegisterAccount
+### MsgRegisterInterchainAccountResponse
+MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount
| Field | Type | Label | Description |
@@ -1700,7 +1700,7 @@ Msg defines the 27-interchain-accounts/controller Msg service.
| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
-| `RegisterAccount` | [MsgRegisterAccount](#ibc.applications.interchain_accounts.controller.v1.MsgRegisterAccount) | [MsgRegisterAccountResponse](#ibc.applications.interchain_accounts.controller.v1.MsgRegisterAccountResponse) | RegisterAccount defines a rpc handler for MsgRegisterAccount. | |
+| `RegisterInterchainAccount` | [MsgRegisterInterchainAccount](#ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount) | [MsgRegisterInterchainAccountResponse](#ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse) | RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount. | |
| `SubmitTx` | [MsgSubmitTx](#ibc.applications.interchain_accounts.controller.v1.MsgSubmitTx) | [MsgSubmitTxResponse](#ibc.applications.interchain_accounts.controller.v1.MsgSubmitTxResponse) | SubmitTx defines a rpc handler for MsgSubmitTx. | |
@@ -1750,8 +1750,8 @@ The following parameters may be used to disable the host submodule.
### ActiveChannel
-ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as boolean flag to indicate
-if the channel is middleware enabled
+ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as a boolean flag to
+indicate if the channel is middleware enabled
| Field | Type | Label | Description |
diff --git a/modules/apps/27-interchain-accounts/controller/client/cli/cli.go b/modules/apps/27-interchain-accounts/controller/client/cli/cli.go
index 9587acde937..fae763c6f0c 100644
--- a/modules/apps/27-interchain-accounts/controller/client/cli/cli.go
+++ b/modules/apps/27-interchain-accounts/controller/client/cli/cli.go
@@ -34,7 +34,7 @@ func NewTxCmd() *cobra.Command {
}
cmd.AddCommand(
- newRegisterAccountCmd(),
+ newRegisterInterchainAccountCmd(),
newSubmitTxCmd(),
)
diff --git a/modules/apps/27-interchain-accounts/controller/client/cli/tx.go b/modules/apps/27-interchain-accounts/controller/client/cli/tx.go
index bc6dc47dc7c..2944ca0ffe8 100644
--- a/modules/apps/27-interchain-accounts/controller/client/cli/tx.go
+++ b/modules/apps/27-interchain-accounts/controller/client/cli/tx.go
@@ -23,7 +23,7 @@ const (
flagPacketTimeoutTimestamp = "packet-timeout-timestamp"
)
-func newRegisterAccountCmd() *cobra.Command {
+func newRegisterInterchainAccountCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "register [connection-id]",
Short: "Register an interchain account on the provided connection.",
@@ -47,7 +47,7 @@ the associated capability.`),
return err
}
- msg := types.NewMsgRegisterAccount(connectionID, owner, version)
+ msg := types.NewMsgRegisterInterchainAccount(connectionID, owner, version)
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
diff --git a/modules/apps/27-interchain-accounts/controller/keeper/msg_server.go b/modules/apps/27-interchain-accounts/controller/keeper/msg_server.go
index ba0c564bdd4..ce745468642 100644
--- a/modules/apps/27-interchain-accounts/controller/keeper/msg_server.go
+++ b/modules/apps/27-interchain-accounts/controller/keeper/msg_server.go
@@ -24,8 +24,8 @@ func NewMsgServerImpl(keeper *Keeper) types.MsgServer {
return &msgServer{Keeper: keeper}
}
-// RegisterAccount defines a rpc handler for MsgRegisterAccount
-func (k msgServer) RegisterAccount(goCtx context.Context, msg *types.MsgRegisterAccount) (*types.MsgRegisterAccountResponse, error) {
+// RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount
+func (k msgServer) RegisterInterchainAccount(goCtx context.Context, msg *types.MsgRegisterInterchainAccount) (*types.MsgRegisterInterchainAccountResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
portID, err := icatypes.NewControllerPortID(msg.Owner)
@@ -38,7 +38,7 @@ func (k msgServer) RegisterAccount(goCtx context.Context, msg *types.MsgRegister
return nil, err
}
- return &types.MsgRegisterAccountResponse{
+ return &types.MsgRegisterInterchainAccountResponse{
ChannelId: channelID,
}, nil
}
diff --git a/modules/apps/27-interchain-accounts/controller/keeper/msg_server_test.go b/modules/apps/27-interchain-accounts/controller/keeper/msg_server_test.go
index fc608377b32..9af9c0c947b 100644
--- a/modules/apps/27-interchain-accounts/controller/keeper/msg_server_test.go
+++ b/modules/apps/27-interchain-accounts/controller/keeper/msg_server_test.go
@@ -15,9 +15,9 @@ import (
ibctesting "github.com/cosmos/ibc-go/v5/testing"
)
-func (suite *KeeperTestSuite) TestRegisterAccount() {
+func (suite *KeeperTestSuite) TestRegisterInterchainAccount_MsgServer() {
var (
- msg *types.MsgRegisterAccount
+ msg *types.MsgRegisterInterchainAccount
expectedChannelID = "channel-0"
)
@@ -69,13 +69,13 @@ func (suite *KeeperTestSuite) TestRegisterAccount() {
path := NewICAPath(suite.chainA, suite.chainB)
suite.coordinator.SetupConnections(path)
- msg = types.NewMsgRegisterAccount(ibctesting.FirstConnectionID, ibctesting.TestAccAddress, "")
+ msg = types.NewMsgRegisterInterchainAccount(ibctesting.FirstConnectionID, ibctesting.TestAccAddress, "")
tc.malleate()
ctx := suite.chainA.GetContext()
msgServer := keeper.NewMsgServerImpl(&suite.chainA.GetSimApp().ICAControllerKeeper)
- res, err := msgServer.RegisterAccount(ctx, msg)
+ res, err := msgServer.RegisterInterchainAccount(ctx, msg)
if tc.expPass {
suite.Require().NoError(err)
diff --git a/modules/apps/27-interchain-accounts/controller/types/codec.go b/modules/apps/27-interchain-accounts/controller/types/codec.go
index a1b5d7fd56a..acf3f344228 100644
--- a/modules/apps/27-interchain-accounts/controller/types/codec.go
+++ b/modules/apps/27-interchain-accounts/controller/types/codec.go
@@ -9,7 +9,7 @@ import (
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
registry.RegisterImplementations(
(*sdk.Msg)(nil),
- &MsgRegisterAccount{},
+ &MsgRegisterInterchainAccount{},
&MsgSubmitTx{},
)
}
diff --git a/modules/apps/27-interchain-accounts/controller/types/msgs.go b/modules/apps/27-interchain-accounts/controller/types/msgs.go
index c959d08eb36..c98713486c8 100644
--- a/modules/apps/27-interchain-accounts/controller/types/msgs.go
+++ b/modules/apps/27-interchain-accounts/controller/types/msgs.go
@@ -12,11 +12,11 @@ import (
host "github.com/cosmos/ibc-go/v5/modules/core/24-host"
)
-var _ sdk.Msg = &MsgRegisterAccount{}
+var _ sdk.Msg = &MsgRegisterInterchainAccount{}
-// NewMsgRegisterAccount creates a new instance of MsgRegisterAccount
-func NewMsgRegisterAccount(connectionID, owner, version string) *MsgRegisterAccount {
- return &MsgRegisterAccount{
+// NewMsgRegisterInterchainAccount creates a new instance of MsgRegisterInterchainAccount
+func NewMsgRegisterInterchainAccount(connectionID, owner, version string) *MsgRegisterInterchainAccount {
+ return &MsgRegisterInterchainAccount{
ConnectionId: connectionID,
Owner: owner,
Version: version,
@@ -24,7 +24,7 @@ func NewMsgRegisterAccount(connectionID, owner, version string) *MsgRegisterAcco
}
// ValidateBasic implements sdk.Msg
-func (msg MsgRegisterAccount) ValidateBasic() error {
+func (msg MsgRegisterInterchainAccount) ValidateBasic() error {
if err := host.ConnectionIdentifierValidator(msg.ConnectionId); err != nil {
return sdkerrors.Wrap(err, "invalid connection ID")
}
@@ -41,7 +41,7 @@ func (msg MsgRegisterAccount) ValidateBasic() error {
}
// GetSigners implements sdk.Msg
-func (msg MsgRegisterAccount) GetSigners() []sdk.AccAddress {
+func (msg MsgRegisterInterchainAccount) GetSigners() []sdk.AccAddress {
accAddr, err := sdk.AccAddressFromBech32(msg.Owner)
if err != nil {
panic(err)
diff --git a/modules/apps/27-interchain-accounts/controller/types/msgs_test.go b/modules/apps/27-interchain-accounts/controller/types/msgs_test.go
index 6610a58a9f8..9676bd4e40a 100644
--- a/modules/apps/27-interchain-accounts/controller/types/msgs_test.go
+++ b/modules/apps/27-interchain-accounts/controller/types/msgs_test.go
@@ -15,8 +15,8 @@ import (
"github.com/cosmos/ibc-go/v5/testing/simapp"
)
-func TestMsgRegisterAccountValidateBasic(t *testing.T) {
- var msg *types.MsgRegisterAccount
+func TestMsgRegisterInterchainAccountValidateBasic(t *testing.T) {
+ var msg *types.MsgRegisterInterchainAccount
testCases := []struct {
name string
@@ -73,7 +73,7 @@ func TestMsgRegisterAccountValidateBasic(t *testing.T) {
for i, tc := range testCases {
- msg = types.NewMsgRegisterAccount(
+ msg = types.NewMsgRegisterInterchainAccount(
ibctesting.FirstConnectionID,
ibctesting.TestAccAddress,
icatypes.NewDefaultMetadataString(ibctesting.FirstConnectionID, ibctesting.FirstConnectionID),
@@ -90,11 +90,11 @@ func TestMsgRegisterAccountValidateBasic(t *testing.T) {
}
}
-func TestMsgRegisterAccountGetSigners(t *testing.T) {
+func TestMsgRegisterInterchainAccountGetSigners(t *testing.T) {
expSigner, err := sdk.AccAddressFromBech32(ibctesting.TestAccAddress)
require.NoError(t, err)
- msg := types.NewMsgRegisterAccount(ibctesting.FirstConnectionID, ibctesting.TestAccAddress, "")
+ msg := types.NewMsgRegisterInterchainAccount(ibctesting.FirstConnectionID, ibctesting.TestAccAddress, "")
require.Equal(t, []sdk.AccAddress{expSigner}, msg.GetSigners())
}
diff --git a/modules/apps/27-interchain-accounts/controller/types/tx.pb.go b/modules/apps/27-interchain-accounts/controller/types/tx.pb.go
index cae572e1533..a29fc9d54c7 100644
--- a/modules/apps/27-interchain-accounts/controller/types/tx.pb.go
+++ b/modules/apps/27-interchain-accounts/controller/types/tx.pb.go
@@ -30,25 +30,25 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
-// MsgRegisterAccount defines the payload for Msg/RegisterAccount
-type MsgRegisterAccount struct {
- ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"`
- Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
+// MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount
+type MsgRegisterInterchainAccount struct {
+ Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
+ ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
}
-func (m *MsgRegisterAccount) Reset() { *m = MsgRegisterAccount{} }
-func (m *MsgRegisterAccount) String() string { return proto.CompactTextString(m) }
-func (*MsgRegisterAccount) ProtoMessage() {}
-func (*MsgRegisterAccount) Descriptor() ([]byte, []int) {
+func (m *MsgRegisterInterchainAccount) Reset() { *m = MsgRegisterInterchainAccount{} }
+func (m *MsgRegisterInterchainAccount) String() string { return proto.CompactTextString(m) }
+func (*MsgRegisterInterchainAccount) ProtoMessage() {}
+func (*MsgRegisterInterchainAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_7def041328c84a30, []int{0}
}
-func (m *MsgRegisterAccount) XXX_Unmarshal(b []byte) error {
+func (m *MsgRegisterInterchainAccount) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *MsgRegisterAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *MsgRegisterInterchainAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_MsgRegisterAccount.Marshal(b, m, deterministic)
+ return xxx_messageInfo_MsgRegisterInterchainAccount.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -58,35 +58,35 @@ func (m *MsgRegisterAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte,
return b[:n], nil
}
}
-func (m *MsgRegisterAccount) XXX_Merge(src proto.Message) {
- xxx_messageInfo_MsgRegisterAccount.Merge(m, src)
+func (m *MsgRegisterInterchainAccount) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgRegisterInterchainAccount.Merge(m, src)
}
-func (m *MsgRegisterAccount) XXX_Size() int {
+func (m *MsgRegisterInterchainAccount) XXX_Size() int {
return m.Size()
}
-func (m *MsgRegisterAccount) XXX_DiscardUnknown() {
- xxx_messageInfo_MsgRegisterAccount.DiscardUnknown(m)
+func (m *MsgRegisterInterchainAccount) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgRegisterInterchainAccount.DiscardUnknown(m)
}
-var xxx_messageInfo_MsgRegisterAccount proto.InternalMessageInfo
+var xxx_messageInfo_MsgRegisterInterchainAccount proto.InternalMessageInfo
-// MsgRegisterAccountResponse defines the response for Msg/RegisterAccount
-type MsgRegisterAccountResponse struct {
+// MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount
+type MsgRegisterInterchainAccountResponse struct {
ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
}
-func (m *MsgRegisterAccountResponse) Reset() { *m = MsgRegisterAccountResponse{} }
-func (m *MsgRegisterAccountResponse) String() string { return proto.CompactTextString(m) }
-func (*MsgRegisterAccountResponse) ProtoMessage() {}
-func (*MsgRegisterAccountResponse) Descriptor() ([]byte, []int) {
+func (m *MsgRegisterInterchainAccountResponse) Reset() { *m = MsgRegisterInterchainAccountResponse{} }
+func (m *MsgRegisterInterchainAccountResponse) String() string { return proto.CompactTextString(m) }
+func (*MsgRegisterInterchainAccountResponse) ProtoMessage() {}
+func (*MsgRegisterInterchainAccountResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7def041328c84a30, []int{1}
}
-func (m *MsgRegisterAccountResponse) XXX_Unmarshal(b []byte) error {
+func (m *MsgRegisterInterchainAccountResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *MsgRegisterAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *MsgRegisterInterchainAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_MsgRegisterAccountResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_MsgRegisterInterchainAccountResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -96,19 +96,19 @@ func (m *MsgRegisterAccountResponse) XXX_Marshal(b []byte, deterministic bool) (
return b[:n], nil
}
}
-func (m *MsgRegisterAccountResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_MsgRegisterAccountResponse.Merge(m, src)
+func (m *MsgRegisterInterchainAccountResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgRegisterInterchainAccountResponse.Merge(m, src)
}
-func (m *MsgRegisterAccountResponse) XXX_Size() int {
+func (m *MsgRegisterInterchainAccountResponse) XXX_Size() int {
return m.Size()
}
-func (m *MsgRegisterAccountResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_MsgRegisterAccountResponse.DiscardUnknown(m)
+func (m *MsgRegisterInterchainAccountResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgRegisterInterchainAccountResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_MsgRegisterAccountResponse proto.InternalMessageInfo
+var xxx_messageInfo_MsgRegisterInterchainAccountResponse proto.InternalMessageInfo
-func (m *MsgRegisterAccountResponse) GetChannelId() string {
+func (m *MsgRegisterInterchainAccountResponse) GetChannelId() string {
if m != nil {
return m.ChannelId
}
@@ -207,8 +207,8 @@ func (m *MsgSubmitTxResponse) GetSequence() uint64 {
}
func init() {
- proto.RegisterType((*MsgRegisterAccount)(nil), "ibc.applications.interchain_accounts.controller.v1.MsgRegisterAccount")
- proto.RegisterType((*MsgRegisterAccountResponse)(nil), "ibc.applications.interchain_accounts.controller.v1.MsgRegisterAccountResponse")
+ proto.RegisterType((*MsgRegisterInterchainAccount)(nil), "ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount")
+ proto.RegisterType((*MsgRegisterInterchainAccountResponse)(nil), "ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse")
proto.RegisterType((*MsgSubmitTx)(nil), "ibc.applications.interchain_accounts.controller.v1.MsgSubmitTx")
proto.RegisterType((*MsgSubmitTxResponse)(nil), "ibc.applications.interchain_accounts.controller.v1.MsgSubmitTxResponse")
}
@@ -218,45 +218,45 @@ func init() {
}
var fileDescriptor_7def041328c84a30 = []byte{
- // 605 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xbf, 0x6f, 0xd3, 0x40,
- 0x18, 0xb5, 0xfb, 0x03, 0xda, 0x2b, 0x05, 0x6a, 0x5a, 0xc9, 0xb2, 0xc0, 0xae, 0x3c, 0x75, 0xe9,
- 0x9d, 0x1c, 0x8a, 0x90, 0x8a, 0x10, 0x22, 0xaa, 0x80, 0x0c, 0x45, 0x95, 0xe9, 0xc4, 0x12, 0xce,
- 0x97, 0x93, 0x73, 0x60, 0xdf, 0x19, 0xdf, 0xd9, 0xb4, 0x23, 0x1b, 0x0b, 0x12, 0x03, 0x2b, 0x52,
- 0x57, 0xfe, 0x93, 0x8e, 0x1d, 0x99, 0x22, 0xd4, 0x2e, 0xcc, 0xf9, 0x0b, 0x90, 0x7f, 0xc4, 0x49,
- 0x49, 0x87, 0x16, 0x98, 0xe2, 0xef, 0xbb, 0xf7, 0xde, 0xbd, 0x4f, 0xef, 0xcb, 0x81, 0x47, 0x2c,
- 0x20, 0x08, 0x27, 0x49, 0xc4, 0x08, 0x56, 0x4c, 0x70, 0x89, 0x18, 0x57, 0x34, 0x25, 0x7d, 0xcc,
- 0x78, 0x17, 0x13, 0x22, 0x32, 0xae, 0x24, 0x22, 0x82, 0xab, 0x54, 0x44, 0x11, 0x4d, 0x51, 0xee,
- 0x21, 0x75, 0x00, 0x93, 0x54, 0x28, 0x61, 0xb4, 0x58, 0x40, 0xe0, 0x24, 0x19, 0x5e, 0x40, 0x86,
- 0x63, 0x32, 0xcc, 0x3d, 0x6b, 0x35, 0x14, 0xa1, 0x28, 0xe9, 0xa8, 0xf8, 0xaa, 0x94, 0x2c, 0xa7,
- 0xb0, 0x41, 0x44, 0x4a, 0x11, 0x89, 0x18, 0xe5, 0xaa, 0xb8, 0xa6, 0xfa, 0xaa, 0x01, 0x5b, 0x97,
- 0xf2, 0x99, 0x7b, 0x28, 0xc1, 0xe4, 0x1d, 0xad, 0x59, 0xee, 0x67, 0x1d, 0x18, 0x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x9f,
+ 0x35, 0x70, 0xe3, 0xd7, 0xf3, 0xbc, 0x0d, 0x7f, 0xff, 0x97, 0x84, 0xe7, 0x0d, 0xa2, 0xf9, 0xf4,
+ 0x5f, 0x33, 0x36, 0xdd, 0x7e, 0xd0, 0xc0, 0x4c, 0x33, 0xa1, 0x0f, 0xfe, 0xb0, 0xcc, 0x88, 0xc0,
+ 0x7c, 0xf4, 0x97, 0x04, 0x23, 0x59, 0xde, 0xcb, 0x83, 0x23, 0x4b, 0x3b, 0x3c, 0xb2, 0xb4, 0xaf,
+ 0x47, 0x96, 0xf6, 0xfe, 0xd8, 0x6a, 0x1d, 0x1e, 0x5b, 0xad, 0x2f, 0xc7, 0x56, 0xeb, 0xd9, 0x76,
+ 0xc8, 0x54, 0x3f, 0x0b, 0x20, 0x11, 0x31, 0x22, 0x42, 0xc6, 0x42, 0x22, 0x16, 0x90, 0xb5, 0x50,
+ 0xa0, 0xfc, 0x0e, 0x8a, 0x45, 0x2f, 0x8b, 0xa8, 0x2c, 0x76, 0x94, 0x44, 0xed, 0xbb, 0x6b, 0x27,
+ 0xc5, 0xd7, 0xce, 0x5a, 0xa3, 0x6a, 0x2f, 0xa1, 0x32, 0xb8, 0x54, 0xae, 0xa9, 0xdb, 0x3f, 0x02,
+ 0x00, 0x00, 0xff, 0xff, 0xdb, 0xb2, 0xd6, 0x41, 0x86, 0x05, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -271,8 +271,8 @@ const _ = grpc.SupportPackageIsVersion4
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
- // RegisterAccount defines a rpc handler for MsgRegisterAccount.
- RegisterAccount(ctx context.Context, in *MsgRegisterAccount, opts ...grpc.CallOption) (*MsgRegisterAccountResponse, error)
+ // RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount.
+ RegisterInterchainAccount(ctx context.Context, in *MsgRegisterInterchainAccount, opts ...grpc.CallOption) (*MsgRegisterInterchainAccountResponse, error)
// SubmitTx defines a rpc handler for MsgSubmitTx.
SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc.CallOption) (*MsgSubmitTxResponse, error)
}
@@ -285,9 +285,9 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
-func (c *msgClient) RegisterAccount(ctx context.Context, in *MsgRegisterAccount, opts ...grpc.CallOption) (*MsgRegisterAccountResponse, error) {
- out := new(MsgRegisterAccountResponse)
- err := c.cc.Invoke(ctx, "/ibc.applications.interchain_accounts.controller.v1.Msg/RegisterAccount", in, out, opts...)
+func (c *msgClient) RegisterInterchainAccount(ctx context.Context, in *MsgRegisterInterchainAccount, opts ...grpc.CallOption) (*MsgRegisterInterchainAccountResponse, error) {
+ out := new(MsgRegisterInterchainAccountResponse)
+ err := c.cc.Invoke(ctx, "/ibc.applications.interchain_accounts.controller.v1.Msg/RegisterInterchainAccount", in, out, opts...)
if err != nil {
return nil, err
}
@@ -305,8 +305,8 @@ func (c *msgClient) SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc.
// MsgServer is the server API for Msg service.
type MsgServer interface {
- // RegisterAccount defines a rpc handler for MsgRegisterAccount.
- RegisterAccount(context.Context, *MsgRegisterAccount) (*MsgRegisterAccountResponse, error)
+ // RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount.
+ RegisterInterchainAccount(context.Context, *MsgRegisterInterchainAccount) (*MsgRegisterInterchainAccountResponse, error)
// SubmitTx defines a rpc handler for MsgSubmitTx.
SubmitTx(context.Context, *MsgSubmitTx) (*MsgSubmitTxResponse, error)
}
@@ -315,8 +315,8 @@ type MsgServer interface {
type UnimplementedMsgServer struct {
}
-func (*UnimplementedMsgServer) RegisterAccount(ctx context.Context, req *MsgRegisterAccount) (*MsgRegisterAccountResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RegisterAccount not implemented")
+func (*UnimplementedMsgServer) RegisterInterchainAccount(ctx context.Context, req *MsgRegisterInterchainAccount) (*MsgRegisterInterchainAccountResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method RegisterInterchainAccount not implemented")
}
func (*UnimplementedMsgServer) SubmitTx(ctx context.Context, req *MsgSubmitTx) (*MsgSubmitTxResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SubmitTx not implemented")
@@ -326,20 +326,20 @@ func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
-func _Msg_RegisterAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(MsgRegisterAccount)
+func _Msg_RegisterInterchainAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgRegisterInterchainAccount)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
- return srv.(MsgServer).RegisterAccount(ctx, in)
+ return srv.(MsgServer).RegisterInterchainAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/ibc.applications.interchain_accounts.controller.v1.Msg/RegisterAccount",
+ FullMethod: "/ibc.applications.interchain_accounts.controller.v1.Msg/RegisterInterchainAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MsgServer).RegisterAccount(ctx, req.(*MsgRegisterAccount))
+ return srv.(MsgServer).RegisterInterchainAccount(ctx, req.(*MsgRegisterInterchainAccount))
}
return interceptor(ctx, in, info, handler)
}
@@ -367,8 +367,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
- MethodName: "RegisterAccount",
- Handler: _Msg_RegisterAccount_Handler,
+ MethodName: "RegisterInterchainAccount",
+ Handler: _Msg_RegisterInterchainAccount_Handler,
},
{
MethodName: "SubmitTx",
@@ -379,7 +379,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
Metadata: "ibc/applications/interchain_accounts/controller/v1/tx.proto",
}
-func (m *MsgRegisterAccount) Marshal() (dAtA []byte, err error) {
+func (m *MsgRegisterInterchainAccount) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -389,12 +389,12 @@ func (m *MsgRegisterAccount) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *MsgRegisterAccount) MarshalTo(dAtA []byte) (int, error) {
+func (m *MsgRegisterInterchainAccount) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *MsgRegisterAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *MsgRegisterInterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -406,24 +406,24 @@ func (m *MsgRegisterAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i--
dAtA[i] = 0x1a
}
- if len(m.Owner) > 0 {
- i -= len(m.Owner)
- copy(dAtA[i:], m.Owner)
- i = encodeVarintTx(dAtA, i, uint64(len(m.Owner)))
- i--
- dAtA[i] = 0x12
- }
if len(m.ConnectionId) > 0 {
i -= len(m.ConnectionId)
copy(dAtA[i:], m.ConnectionId)
i = encodeVarintTx(dAtA, i, uint64(len(m.ConnectionId)))
i--
+ dAtA[i] = 0x12
+ }
+ if len(m.Owner) > 0 {
+ i -= len(m.Owner)
+ copy(dAtA[i:], m.Owner)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.Owner)))
+ i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
-func (m *MsgRegisterAccountResponse) Marshal() (dAtA []byte, err error) {
+func (m *MsgRegisterInterchainAccountResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -433,12 +433,12 @@ func (m *MsgRegisterAccountResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *MsgRegisterAccountResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *MsgRegisterInterchainAccountResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *MsgRegisterAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *MsgRegisterInterchainAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -554,17 +554,17 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
dAtA[offset] = uint8(v)
return base
}
-func (m *MsgRegisterAccount) Size() (n int) {
+func (m *MsgRegisterInterchainAccount) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
- l = len(m.ConnectionId)
+ l = len(m.Owner)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
- l = len(m.Owner)
+ l = len(m.ConnectionId)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
@@ -575,7 +575,7 @@ func (m *MsgRegisterAccount) Size() (n int) {
return n
}
-func (m *MsgRegisterAccountResponse) Size() (n int) {
+func (m *MsgRegisterInterchainAccountResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -630,7 +630,7 @@ func sovTx(x uint64) (n int) {
func sozTx(x uint64) (n int) {
return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
-func (m *MsgRegisterAccount) Unmarshal(dAtA []byte) error {
+func (m *MsgRegisterInterchainAccount) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -653,15 +653,15 @@ func (m *MsgRegisterAccount) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgRegisterAccount: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgRegisterInterchainAccount: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgRegisterAccount: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgRegisterInterchainAccount: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -689,11 +689,11 @@ func (m *MsgRegisterAccount) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.ConnectionId = string(dAtA[iNdEx:postIndex])
+ m.Owner = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -721,7 +721,7 @@ func (m *MsgRegisterAccount) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.Owner = string(dAtA[iNdEx:postIndex])
+ m.ConnectionId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
@@ -776,7 +776,7 @@ func (m *MsgRegisterAccount) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *MsgRegisterAccountResponse) Unmarshal(dAtA []byte) error {
+func (m *MsgRegisterInterchainAccountResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -799,10 +799,10 @@ func (m *MsgRegisterAccountResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgRegisterAccountResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgRegisterInterchainAccountResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgRegisterAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgRegisterInterchainAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
diff --git a/modules/apps/27-interchain-accounts/genesis/types/genesis.pb.go b/modules/apps/27-interchain-accounts/genesis/types/genesis.pb.go
index 8f2625cd749..247f8a45902 100644
--- a/modules/apps/27-interchain-accounts/genesis/types/genesis.pb.go
+++ b/modules/apps/27-interchain-accounts/genesis/types/genesis.pb.go
@@ -216,8 +216,8 @@ func (m *HostGenesisState) GetParams() types1.Params {
return types1.Params{}
}
-// ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as boolean flag to indicate
-// if the channel is middleware enabled
+// ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as a boolean flag to
+// indicate if the channel is middleware enabled
type ActiveChannel struct {
ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"`
PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
diff --git a/proto/ibc/applications/interchain_accounts/controller/v1/tx.proto b/proto/ibc/applications/interchain_accounts/controller/v1/tx.proto
index 51c30fa0c0e..e73fa2d8e12 100644
--- a/proto/ibc/applications/interchain_accounts/controller/v1/tx.proto
+++ b/proto/ibc/applications/interchain_accounts/controller/v1/tx.proto
@@ -10,24 +10,24 @@ import "ibc/applications/interchain_accounts/v1/packet.proto";
// Msg defines the 27-interchain-accounts/controller Msg service.
service Msg {
- // RegisterAccount defines a rpc handler for MsgRegisterAccount.
- rpc RegisterAccount(MsgRegisterAccount) returns (MsgRegisterAccountResponse);
+ // RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount.
+ rpc RegisterInterchainAccount(MsgRegisterInterchainAccount) returns (MsgRegisterInterchainAccountResponse);
// SubmitTx defines a rpc handler for MsgSubmitTx.
rpc SubmitTx(MsgSubmitTx) returns (MsgSubmitTxResponse);
}
-// MsgRegisterAccount defines the payload for Msg/RegisterAccount
-message MsgRegisterAccount {
+// MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount
+message MsgRegisterInterchainAccount {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
- string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""];
- string owner = 2;
+ string owner = 1;
+ string connection_id = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""];
string version = 3;
}
-// MsgRegisterAccountResponse defines the response for Msg/RegisterAccount
-message MsgRegisterAccountResponse {
+// MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount
+message MsgRegisterInterchainAccountResponse {
string channel_id = 1 [(gogoproto.moretags) = "yaml:\"channel_id\""];
}
diff --git a/proto/ibc/applications/interchain_accounts/genesis/v1/genesis.proto b/proto/ibc/applications/interchain_accounts/genesis/v1/genesis.proto
index 092a2081d5d..e394e04bb88 100644
--- a/proto/ibc/applications/interchain_accounts/genesis/v1/genesis.proto
+++ b/proto/ibc/applications/interchain_accounts/genesis/v1/genesis.proto
@@ -36,8 +36,8 @@ message HostGenesisState {
ibc.applications.interchain_accounts.host.v1.Params params = 4 [(gogoproto.nullable) = false];
}
-// ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as a boolean flag to indicate
-// if the channel is middleware enabled
+// ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as a boolean flag to
+// indicate if the channel is middleware enabled
message ActiveChannel {
string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""];
string port_id = 2 [(gogoproto.moretags) = "yaml:\"port_id\""];