github.com/okex/exchain@v1.8.0/libs/ibc-go/proto/ibc/core/channel/v1/tx.proto (about)

     1  syntax = "proto3";
     2  
     3  package ibc.core.channel.v1;
     4  
     5  option go_package = "github.com/cosmos/ibc-go/v2/modules/core/04-channel/types";
     6  
     7  import "gogoproto/gogo.proto";
     8  import "ibc/core/client/v1/client.proto";
     9  import "ibc/core/channel/v1/channel.proto";
    10  
    11  // Msg defines the ibc/channel Msg service.
    12  service Msg {
    13    // ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.
    14    rpc ChannelOpenInit(MsgChannelOpenInit) returns (MsgChannelOpenInitResponse);
    15  
    16    // ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.
    17    rpc ChannelOpenTry(MsgChannelOpenTry) returns (MsgChannelOpenTryResponse);
    18  
    19    // ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.
    20    rpc ChannelOpenAck(MsgChannelOpenAck) returns (MsgChannelOpenAckResponse);
    21  
    22    // ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm.
    23    rpc ChannelOpenConfirm(MsgChannelOpenConfirm) returns (MsgChannelOpenConfirmResponse);
    24  
    25    // ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.
    26    rpc ChannelCloseInit(MsgChannelCloseInit) returns (MsgChannelCloseInitResponse);
    27  
    28    // ChannelCloseConfirm defines a rpc handler method for
    29    // MsgChannelCloseConfirm.
    30    rpc ChannelCloseConfirm(MsgChannelCloseConfirm) returns (MsgChannelCloseConfirmResponse);
    31  
    32    // RecvPacket defines a rpc handler method for MsgRecvPacket.
    33    rpc RecvPacket(MsgRecvPacket) returns (MsgRecvPacketResponse);
    34  
    35    // Timeout defines a rpc handler method for MsgTimeout.
    36    rpc Timeout(MsgTimeout) returns (MsgTimeoutResponse);
    37  
    38    // TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.
    39    rpc TimeoutOnClose(MsgTimeoutOnClose) returns (MsgTimeoutOnCloseResponse);
    40  
    41    // Acknowledgement defines a rpc handler method for MsgAcknowledgement.
    42    rpc Acknowledgement(MsgAcknowledgement) returns (MsgAcknowledgementResponse);
    43  }
    44  
    45  // MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It
    46  // is called by a relayer on Chain A.
    47  message MsgChannelOpenInit {
    48    option (gogoproto.equal)           = false;
    49    option (gogoproto.goproto_getters) = false;
    50  
    51    string  port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""];
    52    Channel channel = 2 [(gogoproto.nullable) = false];
    53    string  signer  = 3;
    54  }
    55  
    56  // MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type.
    57  message MsgChannelOpenInitResponse {}
    58  
    59  // MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel
    60  // on Chain B.
    61  message MsgChannelOpenTry {
    62    option (gogoproto.equal)           = false;
    63    option (gogoproto.goproto_getters) = false;
    64  
    65    string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""];
    66    // in the case of crossing hello's, when both chains call OpenInit, we need
    67    // the channel identifier of the previous channel in state INIT
    68    string                    previous_channel_id  = 2 [(gogoproto.moretags) = "yaml:\"previous_channel_id\""];
    69    Channel                   channel              = 3 [(gogoproto.nullable) = false];
    70    string                    counterparty_version = 4 [(gogoproto.moretags) = "yaml:\"counterparty_version\""];
    71    bytes                     proof_init           = 5 [(gogoproto.moretags) = "yaml:\"proof_init\""];
    72    ibc.core.client.v1.Height proof_height         = 6
    73        [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
    74    string signer = 7;
    75  }
    76  
    77  // MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type.
    78  message MsgChannelOpenTryResponse {}
    79  
    80  // MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge
    81  // the change of channel state to TRYOPEN on Chain B.
    82  message MsgChannelOpenAck {
    83    option (gogoproto.equal)           = false;
    84    option (gogoproto.goproto_getters) = false;
    85  
    86    string                    port_id                 = 1 [(gogoproto.moretags) = "yaml:\"port_id\""];
    87    string                    channel_id              = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""];
    88    string                    counterparty_channel_id = 3 [(gogoproto.moretags) = "yaml:\"counterparty_channel_id\""];
    89    string                    counterparty_version    = 4 [(gogoproto.moretags) = "yaml:\"counterparty_version\""];
    90    bytes                     proof_try               = 5 [(gogoproto.moretags) = "yaml:\"proof_try\""];
    91    ibc.core.client.v1.Height proof_height            = 6
    92        [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
    93    string signer = 7;
    94  }
    95  
    96  // MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type.
    97  message MsgChannelOpenAckResponse {}
    98  
    99  // MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to
   100  // acknowledge the change of channel state to OPEN on Chain A.
   101  message MsgChannelOpenConfirm {
   102    option (gogoproto.equal)           = false;
   103    option (gogoproto.goproto_getters) = false;
   104  
   105    string                    port_id      = 1 [(gogoproto.moretags) = "yaml:\"port_id\""];
   106    string                    channel_id   = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""];
   107    bytes                     proof_ack    = 3 [(gogoproto.moretags) = "yaml:\"proof_ack\""];
   108    ibc.core.client.v1.Height proof_height = 4
   109        [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
   110    string signer = 5;
   111  }
   112  
   113  // MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response
   114  // type.
   115  message MsgChannelOpenConfirmResponse {}
   116  
   117  // MsgChannelCloseInit defines a msg sent by a Relayer to Chain A
   118  // to close a channel with Chain B.
   119  message MsgChannelCloseInit {
   120    option (gogoproto.equal)           = false;
   121    option (gogoproto.goproto_getters) = false;
   122  
   123    string port_id    = 1 [(gogoproto.moretags) = "yaml:\"port_id\""];
   124    string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""];
   125    string signer     = 3;
   126  }
   127  
   128  // MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type.
   129  message MsgChannelCloseInitResponse {}
   130  
   131  // MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B
   132  // to acknowledge the change of channel state to CLOSED on Chain A.
   133  message MsgChannelCloseConfirm {
   134    option (gogoproto.equal)           = false;
   135    option (gogoproto.goproto_getters) = false;
   136  
   137    string                    port_id      = 1 [(gogoproto.moretags) = "yaml:\"port_id\""];
   138    string                    channel_id   = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""];
   139    bytes                     proof_init   = 3 [(gogoproto.moretags) = "yaml:\"proof_init\""];
   140    ibc.core.client.v1.Height proof_height = 4
   141        [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
   142    string signer = 5;
   143  }
   144  
   145  // MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response
   146  // type.
   147  message MsgChannelCloseConfirmResponse {}
   148  
   149  // MsgRecvPacket receives incoming IBC packet
   150  message MsgRecvPacket {
   151    option (gogoproto.equal)           = false;
   152    option (gogoproto.goproto_getters) = false;
   153  
   154    Packet                    packet           = 1 [(gogoproto.nullable) = false];
   155    bytes                     proof_commitment = 2 [(gogoproto.moretags) = "yaml:\"proof_commitment\""];
   156    ibc.core.client.v1.Height proof_height     = 3
   157        [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
   158    string signer = 4;
   159  }
   160  
   161  // MsgRecvPacketResponse defines the Msg/RecvPacket response type.
   162  message MsgRecvPacketResponse {}
   163  
   164  // MsgTimeout receives timed-out packet
   165  message MsgTimeout {
   166    option (gogoproto.equal)           = false;
   167    option (gogoproto.goproto_getters) = false;
   168  
   169    Packet                    packet           = 1 [(gogoproto.nullable) = false];
   170    bytes                     proof_unreceived = 2 [(gogoproto.moretags) = "yaml:\"proof_unreceived\""];
   171    ibc.core.client.v1.Height proof_height     = 3
   172        [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
   173    uint64 next_sequence_recv = 4 [(gogoproto.moretags) = "yaml:\"next_sequence_recv\""];
   174    string signer             = 5;
   175  }
   176  
   177  // MsgTimeoutResponse defines the Msg/Timeout response type.
   178  message MsgTimeoutResponse {}
   179  
   180  // MsgTimeoutOnClose timed-out packet upon counterparty channel closure.
   181  message MsgTimeoutOnClose {
   182    option (gogoproto.equal)           = false;
   183    option (gogoproto.goproto_getters) = false;
   184  
   185    Packet                    packet           = 1 [(gogoproto.nullable) = false];
   186    bytes                     proof_unreceived = 2 [(gogoproto.moretags) = "yaml:\"proof_unreceived\""];
   187    bytes                     proof_close      = 3 [(gogoproto.moretags) = "yaml:\"proof_close\""];
   188    ibc.core.client.v1.Height proof_height     = 4
   189        [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
   190    uint64 next_sequence_recv = 5 [(gogoproto.moretags) = "yaml:\"next_sequence_recv\""];
   191    string signer             = 6;
   192  }
   193  
   194  // MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type.
   195  message MsgTimeoutOnCloseResponse {}
   196  
   197  // MsgAcknowledgement receives incoming IBC acknowledgement
   198  message MsgAcknowledgement {
   199    option (gogoproto.equal)           = false;
   200    option (gogoproto.goproto_getters) = false;
   201  
   202    Packet                    packet          = 1 [(gogoproto.nullable) = false];
   203    bytes                     acknowledgement = 2;
   204    bytes                     proof_acked     = 3 [(gogoproto.moretags) = "yaml:\"proof_acked\""];
   205    ibc.core.client.v1.Height proof_height    = 4
   206        [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
   207    string signer = 5;
   208  }
   209  
   210  // MsgAcknowledgementResponse defines the Msg/Acknowledgement response type.
   211  message MsgAcknowledgementResponse {}