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

     1  syntax = "proto3";
     2  
     3  package ibc.core.client.v1;
     4  
     5  option go_package = "github.com/cosmos/ibc-go/v2/modules/core/02-client/types";
     6  
     7  import "gogoproto/gogo.proto";
     8  import "google/protobuf/any.proto";
     9  
    10  // Msg defines the ibc/client Msg service.
    11  service Msg {
    12    // CreateClient defines a rpc handler method for MsgCreateClient.
    13    rpc CreateClient(MsgCreateClient) returns (MsgCreateClientResponse);
    14  
    15    // UpdateClient defines a rpc handler method for MsgUpdateClient.
    16    rpc UpdateClient(MsgUpdateClient) returns (MsgUpdateClientResponse);
    17  
    18    // UpgradeClient defines a rpc handler method for MsgUpgradeClient.
    19    rpc UpgradeClient(MsgUpgradeClient) returns (MsgUpgradeClientResponse);
    20  
    21    // SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
    22    rpc SubmitMisbehaviour(MsgSubmitMisbehaviour) returns (MsgSubmitMisbehaviourResponse);
    23  }
    24  
    25  // MsgCreateClient defines a message to create an IBC client
    26  message MsgCreateClient {
    27    option (gogoproto.equal)           = false;
    28    option (gogoproto.goproto_getters) = false;
    29  
    30    // light client state
    31    google.protobuf.Any client_state = 1 [(gogoproto.moretags) = "yaml:\"client_state\""];
    32    // consensus state associated with the client that corresponds to a given
    33    // height.
    34    google.protobuf.Any consensus_state = 2 [(gogoproto.moretags) = "yaml:\"consensus_state\""];
    35    // signer address
    36    string signer = 3;
    37  }
    38  
    39  // MsgCreateClientResponse defines the Msg/CreateClient response type.
    40  message MsgCreateClientResponse {}
    41  
    42  // MsgUpdateClient defines an sdk.Msg to update a IBC client state using
    43  // the given header.
    44  message MsgUpdateClient {
    45    option (gogoproto.equal)           = false;
    46    option (gogoproto.goproto_getters) = false;
    47  
    48    // client unique identifier
    49    string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
    50    // header to update the light client
    51    google.protobuf.Any header = 2;
    52    // signer address
    53    string signer = 3;
    54  }
    55  
    56  // MsgUpdateClientResponse defines the Msg/UpdateClient response type.
    57  message MsgUpdateClientResponse {}
    58  
    59  // MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client
    60  // state
    61  message MsgUpgradeClient {
    62    option (gogoproto.equal)           = false;
    63    option (gogoproto.goproto_getters) = false;
    64  
    65    // client unique identifier
    66    string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
    67    // upgraded client state
    68    google.protobuf.Any client_state = 2 [(gogoproto.moretags) = "yaml:\"client_state\""];
    69    // upgraded consensus state, only contains enough information to serve as a
    70    // basis of trust in update logic
    71    google.protobuf.Any consensus_state = 3 [(gogoproto.moretags) = "yaml:\"consensus_state\""];
    72    // proof that old chain committed to new client
    73    bytes proof_upgrade_client = 4 [(gogoproto.moretags) = "yaml:\"proof_upgrade_client\""];
    74    // proof that old chain committed to new consensus state
    75    bytes proof_upgrade_consensus_state = 5 [(gogoproto.moretags) = "yaml:\"proof_upgrade_consensus_state\""];
    76    // signer address
    77    string signer = 6;
    78  }
    79  
    80  // MsgUpgradeClientResponse defines the Msg/UpgradeClient response type.
    81  message MsgUpgradeClientResponse {}
    82  
    83  // MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for
    84  // light client misbehaviour.
    85  message MsgSubmitMisbehaviour {
    86    option (gogoproto.equal)           = false;
    87    option (gogoproto.goproto_getters) = false;
    88  
    89    // client unique identifier
    90    string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
    91    // misbehaviour used for freezing the light client
    92    google.protobuf.Any misbehaviour = 2;
    93    // signer address
    94    string signer = 3;
    95  }
    96  
    97  // MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response
    98  // type.
    99  message MsgSubmitMisbehaviourResponse {}