diff --git a/docs/ibc/proto-docs.md b/docs/ibc/proto-docs.md index 13a51eb0804..f31bde1f3ae 100644 --- a/docs/ibc/proto-docs.md +++ b/docs/ibc/proto-docs.md @@ -89,6 +89,12 @@ - [Query](#ibc.applications.interchain_accounts.controller.v1.Query) +- [ibc/applications/interchain_accounts/v1/packet.proto](#ibc/applications/interchain_accounts/v1/packet.proto) + - [CosmosTx](#ibc.applications.interchain_accounts.v1.CosmosTx) + - [InterchainAccountPacketData](#ibc.applications.interchain_accounts.v1.InterchainAccountPacketData) + + - [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) @@ -119,12 +125,6 @@ - [ibc/applications/interchain_accounts/v1/metadata.proto](#ibc/applications/interchain_accounts/v1/metadata.proto) - [Metadata](#ibc.applications.interchain_accounts.v1.Metadata) -- [ibc/applications/interchain_accounts/v1/packet.proto](#ibc/applications/interchain_accounts/v1/packet.proto) - - [CosmosTx](#ibc.applications.interchain_accounts.v1.CosmosTx) - - [InterchainAccountPacketData](#ibc.applications.interchain_accounts.v1.InterchainAccountPacketData) - - - [Type](#ibc.applications.interchain_accounts.v1.Type) - - [ibc/applications/transfer/v1/transfer.proto](#ibc/applications/transfer/v1/transfer.proto) - [DenomTrace](#ibc.applications.transfer.v1.DenomTrace) - [Params](#ibc.applications.transfer.v1.Params) @@ -1519,6 +1519,67 @@ Query provides defines the gRPC querier service. + +

Top

+ +## ibc/applications/interchain_accounts/v1/packet.proto + + + + + +### CosmosTx +CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `messages` | [google.protobuf.Any](#google.protobuf.Any) | repeated | | + + + + + + + + +### InterchainAccountPacketData +InterchainAccountPacketData is comprised of a raw transaction, type of transaction and optional memo field. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `type` | [Type](#ibc.applications.interchain_accounts.v1.Type) | | | +| `data` | [bytes](#bytes) | | | +| `memo` | [string](#string) | | | + + + + + + + + + + +### Type +Type defines a classification of message issued from a controller chain to its associated interchain accounts +host + +| Name | Number | Description | +| ---- | ------ | ----------- | +| TYPE_UNSPECIFIED | 0 | Default zero value enumeration | +| TYPE_EXECUTE_TX | 1 | Execute a transaction on an interchain accounts host chain | + + + + + + + + + +

Top

@@ -1570,7 +1631,7 @@ MsgSubmitTx defines the payload for MsgSubmitTx | `connection_id` | [string](#string) | | | | `timeout_height` | [ibc.core.client.v1.Height](#ibc.core.client.v1.Height) | | Timeout height relative to the current block height. The timeout is disabled when set to 0. | | `timeout_timestamp` | [uint64](#uint64) | | Timeout timestamp in absolute nanoseconds since unix epoch. The timeout is disabled when set to 0. | -| `msg` | [google.protobuf.Any](#google.protobuf.Any) | repeated | | +| `msgs` | [ibc.applications.interchain_accounts.v1.InterchainAccountPacketData](#ibc.applications.interchain_accounts.v1.InterchainAccountPacketData) | repeated | | @@ -1862,67 +1923,6 @@ See ICS004: https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel- - -

Top

- -## ibc/applications/interchain_accounts/v1/packet.proto - - - - - -### CosmosTx -CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain. - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| `messages` | [google.protobuf.Any](#google.protobuf.Any) | repeated | | - - - - - - - - -### InterchainAccountPacketData -InterchainAccountPacketData is comprised of a raw transaction, type of transaction and optional memo field. - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| `type` | [Type](#ibc.applications.interchain_accounts.v1.Type) | | | -| `data` | [bytes](#bytes) | | | -| `memo` | [string](#string) | | | - - - - - - - - - - -### Type -Type defines a classification of message issued from a controller chain to its associated interchain accounts -host - -| Name | Number | Description | -| ---- | ------ | ----------- | -| TYPE_UNSPECIFIED | 0 | Default zero value enumeration | -| TYPE_EXECUTE_TX | 1 | Execute a transaction on an interchain accounts host chain | - - - - - - - - - -

Top

diff --git a/modules/apps/27-interchain-accounts/controller/types/msgs.go b/modules/apps/27-interchain-accounts/controller/types/msgs.go index e2b212394e5..c1fbbbb6573 100644 --- a/modules/apps/27-interchain-accounts/controller/types/msgs.go +++ b/modules/apps/27-interchain-accounts/controller/types/msgs.go @@ -3,10 +3,10 @@ package types import ( "strings" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" clienttypes "github.com/cosmos/ibc-go/v5/modules/core/02-client/types" host "github.com/cosmos/ibc-go/v5/modules/core/24-host" ) @@ -50,13 +50,13 @@ func (msg MsgRegisterAccount) GetSigners() []sdk.AccAddress { } // NewMsgSubmitTx creates a new instance of MsgSubmitTx -func NewMsgSubmitTx(connectionID, owner string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, msgs []*codectypes.Any) *MsgSubmitTx { +func NewMsgSubmitTx(connectionID, owner string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, msgs []*icatypes.InterchainAccountPacketData) *MsgSubmitTx { return &MsgSubmitTx{ ConnectionId: connectionID, Owner: owner, TimeoutHeight: timeoutHeight, TimeoutTimestamp: timeoutTimestamp, - Msg: msgs, + Msgs: msgs, } } 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 9fc3fa896f4..e3305950f2f 100644 --- a/modules/apps/27-interchain-accounts/controller/types/tx.pb.go +++ b/modules/apps/27-interchain-accounts/controller/types/tx.pb.go @@ -6,7 +6,7 @@ package types import ( context "context" fmt "fmt" - types1 "github.com/cosmos/cosmos-sdk/codec/types" + types1 "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" types "github.com/cosmos/ibc-go/v5/modules/core/02-client/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" @@ -124,8 +124,8 @@ type MsgSubmitTx struct { TimeoutHeight types.Height `protobuf:"bytes,3,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height" yaml:"timeout_height"` // Timeout timestamp in absolute nanoseconds since unix epoch. // The timeout is disabled when set to 0. - TimeoutTimestamp uint64 `protobuf:"varint,4,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty" yaml:"timeout_timestamp"` - Msg []*types1.Any `protobuf:"bytes,5,rep,name=msg,proto3" json:"msg,omitempty"` + TimeoutTimestamp uint64 `protobuf:"varint,4,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty" yaml:"timeout_timestamp"` + Msgs []*types1.InterchainAccountPacketData `protobuf:"bytes,5,rep,name=msgs,proto3" json:"msgs,omitempty"` } func (m *MsgSubmitTx) Reset() { *m = MsgSubmitTx{} } @@ -210,43 +210,44 @@ func init() { } var fileDescriptor_7def041328c84a30 = []byte{ - // 576 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0xd3, 0x4e, - 0x18, 0xb6, 0x93, 0xf6, 0xf7, 0x6b, 0xaf, 0x14, 0xa8, 0x49, 0x25, 0x63, 0x81, 0x5d, 0x79, 0x40, - 0x5d, 0x7a, 0xa7, 0x06, 0x10, 0x52, 0x11, 0x42, 0xcd, 0x00, 0x74, 0x08, 0x42, 0xa6, 0x13, 0x4b, - 0xb0, 0x2f, 0xc7, 0xe5, 0x90, 0x7d, 0x67, 0xf9, 0xce, 0xa1, 0xf9, 0x06, 0x2c, 0x48, 0x0c, 0x7c, - 0x80, 0xae, 0x7c, 0x0c, 0xb6, 0x8c, 0x1d, 0x99, 0x22, 0x94, 0x2c, 0xcc, 0xf9, 0x04, 0xc8, 0xff, - 0xf2, 0x87, 0x74, 0x29, 0x30, 0xd9, 0xef, 0x7b, 0xef, 0xf3, 0xdc, 0x73, 0xf7, 0x3c, 0x3a, 0xf0, - 0x98, 0x05, 0x18, 0xf9, 0x71, 0x1c, 0x32, 0xec, 0x2b, 0x26, 0xb8, 0x44, 0x8c, 0x2b, 0x92, 0xe0, - 0x9e, 0xcf, 0x78, 0xc7, 0xc7, 0x58, 0xa4, 0x5c, 0x49, 0x84, 0x05, 0x57, 0x89, 0x08, 0x43, 0x92, - 0xa0, 0xfe, 0x21, 0x52, 0x67, 0x30, 0x4e, 0x84, 0x12, 0x46, 0x93, 0x05, 0x18, 0x2e, 0x82, 0xe1, - 0x25, 0x60, 0x38, 0x07, 0xc3, 0xfe, 0xa1, 0xd5, 0xa0, 0x82, 0x8a, 0x1c, 0x8e, 0xb2, 0xbf, 0x82, - 0xc9, 0xba, 0x4d, 0x85, 0xa0, 0x21, 0x41, 0x79, 0x15, 0xa4, 0xef, 0x90, 0xcf, 0x07, 0xe5, 0x92, - 0x93, 0x29, 0xc4, 0x22, 0x21, 0x08, 0x87, 0x8c, 0x70, 0x95, 0x29, 0x28, 0xfe, 0x8a, 0x01, 0xf7, - 0x93, 0x0e, 0x8c, 0xb6, 0xa4, 0x1e, 0xa1, 0x4c, 0x2a, 0x92, 0x1c, 0x17, 0xfb, 0x1a, 0x4f, 0xc0, - 0x36, 0x16, 0x9c, 0x13, 0x9c, 0x29, 0xeb, 0xb0, 0xae, 0xa9, 0xef, 0xe9, 0xfb, 0x9b, 0x2d, 0x73, - 0x3a, 0x72, 0x1a, 0x03, 0x3f, 0x0a, 0x8f, 0xdc, 0xa5, 0x65, 0xd7, 0xbb, 0x36, 0xaf, 0x4f, 0xba, - 0x46, 0x03, 0xac, 0x8b, 0x0f, 0x9c, 0x24, 0x66, 0x2d, 0x83, 0x79, 0x45, 0x61, 0x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9, 0xc0, 0xcb, 0x06, 0x16, 0x7c, 0xd9, 0x05, 0xb7, 0x16, 0xae, 0xb0, 0x32, 0xa4, 0x39, - 0xac, 0x81, 0x7a, 0x5b, 0x52, 0xe3, 0xab, 0x0e, 0x6e, 0xfc, 0x9e, 0xa1, 0x67, 0xf0, 0xea, 0x09, - 0x87, 0xab, 0xe6, 0x5b, 0x2f, 0xff, 0x0d, 0xcf, 0x2c, 0x44, 0x5f, 0x74, 0xb0, 0x31, 0xcb, 0xc2, - 0xd3, 0x3f, 0x24, 0xaf, 0x08, 0xac, 0xe7, 0x7f, 0x49, 0x50, 0xc9, 0x6a, 0xbd, 0x1f, 0x8e, 0x6d, - 0xfd, 0x62, 0x6c, 0xeb, 0x3f, 0xc6, 0xb6, 0xfe, 0x79, 0x62, 0x6b, 0x17, 0x13, 0x5b, 0xfb, 0x3e, - 0xb1, 0xb5, 0x37, 0xaf, 0x28, 0x53, 0xbd, 0x34, 0x80, 0x58, 0x44, 0x08, 0x0b, 0x19, 0x09, 0x89, - 0x58, 0x80, 0x0f, 0xa8, 0x40, 0xfd, 0x87, 0x28, 0x12, 0xdd, 0x34, 0x24, 0x32, 0x7b, 0x86, 0x24, - 0x6a, 0x3e, 0x3a, 0x98, 0x6f, 0x7e, 0x70, 0xd9, 0x0b, 0xa4, 0x06, 0x31, 0x91, 0xc1, 0x7f, 0xb9, - 0xd5, 0xf7, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x26, 0x0b, 0x59, 0xe2, 0xc1, 0x04, 0x00, 0x00, + // 583 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0xb5, 0xd3, 0xf6, 0xfb, 0xda, 0x29, 0x05, 0x6a, 0x5a, 0xc9, 0xb2, 0xc0, 0x8e, 0xbc, 0xca, + 0x26, 0x33, 0x4a, 0x28, 0x42, 0x2a, 0x42, 0x88, 0xa8, 0x02, 0xb2, 0x08, 0xaa, 0x4c, 0x17, 0x88, + 0x4d, 0xb0, 0x27, 0x23, 0x67, 0xc0, 0x9e, 0xb1, 0x3c, 0x13, 0xd3, 0xbe, 0x01, 0x1b, 0x24, 0x16, + 0x3c, 0x40, 0xb7, 0xbc, 0x49, 0x96, 0x5d, 0xb2, 0x8a, 0x50, 0xb2, 0x61, 0x1d, 0x5e, 0x00, 0xf9, + 0x2f, 0x3f, 0xa4, 0x8b, 0x16, 0x58, 0x65, 0xee, 0x9d, 0x73, 0xce, 0x9c, 0xc9, 0x3d, 0x1e, 0xf0, + 0x88, 0x7a, 0x18, 0xb9, 0x51, 0x14, 0x50, 0xec, 0x4a, 0xca, 0x99, 0x40, 0x94, 0x49, 0x12, 0xe3, + 0xbe, 0x4b, 0x59, 0xd7, 0xc5, 0x98, 0x0f, 0x98, 0x14, 0x08, 0x73, 0x26, 0x63, 0x1e, 0x04, 0x24, + 0x46, 0x49, 0x03, 0xc9, 0x53, 0x18, 0xc5, 0x5c, 0x72, 0xad, 0x49, 0x3d, 0x0c, 0x17, 0xc9, 0xf0, + 0x12, 0x32, 0x9c, 0x93, 0x61, 0xd2, 0x30, 0xf6, 0x7c, 0xee, 0xf3, 0x8c, 0x8e, 0xd2, 0x55, 0xae, + 0x64, 0x58, 0xa9, 0x0d, 0xcc, 0x63, 0x82, 0x70, 0x40, 0x09, 0x93, 0xe9, 0x31, 0xf9, 0xaa, 0x00, + 0x1c, 0x5c, 0xc9, 0x67, 0xd2, 0x40, 0x91, 0x8b, 0xdf, 0x93, 0x82, 0x65, 0x7f, 0x52, 0x81, 0xd6, + 0x11, 0xbe, 0x43, 0x7c, 0x2a, 0x24, 0x89, 0x9f, 0xe6, 0x38, 0xed, 0x31, 0xd8, 0xc1, 0x9c, 0x31, + 0x82, 0x53, 0xa5, 0x2e, 0xed, 0xe9, 0x6a, 0x55, 0xad, 0x6d, 0xb5, 0xf4, 0xe9, 0xc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0xed, 0xa2, 0x77, 0x52, 0xb6, 0xb4, 0xd7, 0x60, 0x3d, 0x14, 0xbe, 0xd0, + 0x37, 0xaa, 0x6b, 0xb5, 0xed, 0xe6, 0x11, 0xbc, 0x52, 0x4a, 0x93, 0x06, 0x6c, 0xcf, 0xda, 0xc5, + 0x64, 0x8e, 0xb3, 0x2c, 0x1d, 0xb9, 0xd2, 0x75, 0x32, 0xc5, 0x85, 0x49, 0xee, 0x83, 0x3b, 0x0b, + 0x7f, 0x7a, 0x39, 0xc2, 0xe6, 0xb0, 0x02, 0xd6, 0x3a, 0xc2, 0xd7, 0xbe, 0xaa, 0xe0, 0xd6, 0xef, + 0xa9, 0x7b, 0x06, 0xaf, 0xff, 0xb9, 0xc0, 0xd5, 0xb8, 0x18, 0x2f, 0xff, 0x8d, 0xce, 0x2c, 0x76, + 0x5f, 0x54, 0xb0, 0x39, 0x4b, 0xcf, 0x93, 0x3f, 0x14, 0x2f, 0x05, 0x8c, 0xe7, 0x7f, 0x29, 0x50, + 0xda, 0x6a, 0xbd, 0x1b, 0x8e, 0x4d, 0xf5, 0x62, 0x6c, 0xaa, 0xdf, 0xc7, 0xa6, 0xfa, 0x79, 0x62, + 0x2a, 0x17, 0x13, 0x53, 0xf9, 0x36, 0x31, 0x95, 0x37, 0xc7, 0x3e, 0x95, 0xfd, 0x81, 0x07, 0x31, + 0x0f, 0x11, 0xe6, 0x22, 0xe4, 0x02, 0x51, 0x0f, 0xd7, 0x7d, 0x8e, 0x92, 0x07, 0x28, 0xe4, 0xbd, + 0x41, 0x40, 0x44, 0xfa, 0x56, 0x08, 0xd4, 0x7c, 0x58, 0x9f, 0x1f, 0x5e, 0xbf, 0xec, 0x39, 0x93, + 0x67, 0x11, 0x11, 0xde, 0x7f, 0xd9, 0x73, 0x71, 0xff, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x16, + 0xec, 0x03, 0x36, 0x0e, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -463,10 +464,10 @@ func (m *MsgSubmitTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Msg) > 0 { - for iNdEx := len(m.Msg) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Msgs) > 0 { + for iNdEx := len(m.Msgs) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Msg[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Msgs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -596,8 +597,8 @@ func (m *MsgSubmitTx) Size() (n int) { if m.TimeoutTimestamp != 0 { n += 1 + sovTx(uint64(m.TimeoutTimestamp)) } - if len(m.Msg) > 0 { - for _, e := range m.Msg { + if len(m.Msgs) > 0 { + for _, e := range m.Msgs { l = e.Size() n += 1 + l + sovTx(uint64(l)) } @@ -995,7 +996,7 @@ func (m *MsgSubmitTx) Unmarshal(dAtA []byte) error { } case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Msgs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1022,8 +1023,8 @@ func (m *MsgSubmitTx) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Msg = append(m.Msg, &types1.Any{}) - if err := m.Msg[len(m.Msg)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Msgs = append(m.Msgs, &types1.InterchainAccountPacketData{}) + if err := m.Msgs[len(m.Msgs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/proto/ibc/applications/interchain_accounts/controller/v1/tx.proto b/proto/ibc/applications/interchain_accounts/controller/v1/tx.proto index 4897423167f..b84e3282ad3 100644 --- a/proto/ibc/applications/interchain_accounts/controller/v1/tx.proto +++ b/proto/ibc/applications/interchain_accounts/controller/v1/tx.proto @@ -5,8 +5,8 @@ package ibc.applications.interchain_accounts.controller.v1; option go_package = "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/controller/types"; import "gogoproto/gogo.proto"; -import "google/protobuf/any.proto"; import "ibc/core/client/v1/client.proto"; +import "ibc/applications/interchain_accounts/v1/packet.proto"; // Msg defines the 27-interchain-accounts/controller Msg service. service Msg { @@ -44,8 +44,8 @@ message MsgSubmitTx { [(gogoproto.moretags) = "yaml:\"timeout_height\"", (gogoproto.nullable) = false]; // Timeout timestamp in absolute nanoseconds since unix epoch. // The timeout is disabled when set to 0. - uint64 timeout_timestamp = 4 [(gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; - repeated google.protobuf.Any msg = 5; + uint64 timeout_timestamp = 4 [(gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; + repeated ibc.applications.interchain_accounts.v1.InterchainAccountPacketData msgs = 5; } // MsgSubmitTxResponse defines the response for MsgSubmitTx