github.com/okex/exchain@v1.8.0/libs/ibc-go/proto/ibc/core/connection/v1/tx.proto (about) 1 syntax = "proto3"; 2 3 package ibc.core.connection.v1; 4 5 option go_package = "github.com/cosmos/ibc-go/v2/modules/core/03-connection/types"; 6 7 import "gogoproto/gogo.proto"; 8 import "google/protobuf/any.proto"; 9 import "ibc/core/client/v1/client.proto"; 10 import "ibc/core/connection/v1/connection.proto"; 11 12 // Msg defines the ibc/connection Msg service. 13 service Msg { 14 // ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. 15 rpc ConnectionOpenInit(MsgConnectionOpenInit) returns (MsgConnectionOpenInitResponse); 16 17 // ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. 18 rpc ConnectionOpenTry(MsgConnectionOpenTry) returns (MsgConnectionOpenTryResponse); 19 20 // ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. 21 rpc ConnectionOpenAck(MsgConnectionOpenAck) returns (MsgConnectionOpenAckResponse); 22 23 // ConnectionOpenConfirm defines a rpc handler method for 24 // MsgConnectionOpenConfirm. 25 rpc ConnectionOpenConfirm(MsgConnectionOpenConfirm) returns (MsgConnectionOpenConfirmResponse); 26 } 27 28 // MsgConnectionOpenInit defines the msg sent by an account on Chain A to 29 // initialize a connection with Chain B. 30 message MsgConnectionOpenInit { 31 option (gogoproto.equal) = false; 32 option (gogoproto.goproto_getters) = false; 33 34 string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; 35 Counterparty counterparty = 2 [(gogoproto.nullable) = false]; 36 Version version = 3; 37 uint64 delay_period = 4 [(gogoproto.moretags) = "yaml:\"delay_period\""]; 38 string signer = 5; 39 } 40 41 // MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response 42 // type. 43 message MsgConnectionOpenInitResponse {} 44 45 // MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a 46 // connection on Chain B. 47 message MsgConnectionOpenTry { 48 option (gogoproto.equal) = false; 49 option (gogoproto.goproto_getters) = false; 50 51 string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""]; 52 // in the case of crossing hello's, when both chains call OpenInit, we need 53 // the connection identifier of the previous connection in state INIT 54 string previous_connection_id = 2 [(gogoproto.moretags) = "yaml:\"previous_connection_id\""]; 55 google.protobuf.Any client_state = 3 [(gogoproto.moretags) = "yaml:\"client_state\""]; 56 Counterparty counterparty = 4 [(gogoproto.nullable) = false]; 57 uint64 delay_period = 5 [(gogoproto.moretags) = "yaml:\"delay_period\""]; 58 repeated Version counterparty_versions = 6 [(gogoproto.moretags) = "yaml:\"counterparty_versions\""]; 59 ibc.core.client.v1.Height proof_height = 7 60 [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; 61 // proof of the initialization the connection on Chain A: `UNITIALIZED -> 62 // INIT` 63 bytes proof_init = 8 [(gogoproto.moretags) = "yaml:\"proof_init\""]; 64 // proof of client state included in message 65 bytes proof_client = 9 [(gogoproto.moretags) = "yaml:\"proof_client\""]; 66 // proof of client consensus state 67 bytes proof_consensus = 10 [(gogoproto.moretags) = "yaml:\"proof_consensus\""]; 68 ibc.core.client.v1.Height consensus_height = 11 69 [(gogoproto.moretags) = "yaml:\"consensus_height\"", (gogoproto.nullable) = false]; 70 string signer = 12; 71 } 72 73 // MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. 74 message MsgConnectionOpenTryResponse {} 75 76 // MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to 77 // acknowledge the change of connection state to TRYOPEN on Chain B. 78 message MsgConnectionOpenAck { 79 option (gogoproto.equal) = false; 80 option (gogoproto.goproto_getters) = false; 81 82 string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""]; 83 string counterparty_connection_id = 2 [(gogoproto.moretags) = "yaml:\"counterparty_connection_id\""]; 84 Version version = 3; 85 google.protobuf.Any client_state = 4 [(gogoproto.moretags) = "yaml:\"client_state\""]; 86 ibc.core.client.v1.Height proof_height = 5 87 [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; 88 // proof of the initialization the connection on Chain B: `UNITIALIZED -> 89 // TRYOPEN` 90 bytes proof_try = 6 [(gogoproto.moretags) = "yaml:\"proof_try\""]; 91 // proof of client state included in message 92 bytes proof_client = 7 [(gogoproto.moretags) = "yaml:\"proof_client\""]; 93 // proof of client consensus state 94 bytes proof_consensus = 8 [(gogoproto.moretags) = "yaml:\"proof_consensus\""]; 95 ibc.core.client.v1.Height consensus_height = 9 96 [(gogoproto.moretags) = "yaml:\"consensus_height\"", (gogoproto.nullable) = false]; 97 string signer = 10; 98 } 99 100 // MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. 101 message MsgConnectionOpenAckResponse {} 102 103 // MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to 104 // acknowledge the change of connection state to OPEN on Chain A. 105 message MsgConnectionOpenConfirm { 106 option (gogoproto.equal) = false; 107 option (gogoproto.goproto_getters) = false; 108 109 string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""]; 110 // proof for the change of the connection state on Chain A: `INIT -> OPEN` 111 bytes proof_ack = 2 [(gogoproto.moretags) = "yaml:\"proof_ack\""]; 112 ibc.core.client.v1.Height proof_height = 3 113 [(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false]; 114 string signer = 4; 115 } 116 117 // MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm 118 // response type. 119 message MsgConnectionOpenConfirmResponse {}