2020-10-27 07:14:07 -07:00
|
|
|
syntax = "proto3";
|
|
|
|
package ibc.core.connection.v1;
|
|
|
|
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/types";
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
import "ibc/core/client/v1/client.proto";
|
|
|
|
import "ibc/core/connection/v1/connection.proto";
|
|
|
|
|
|
|
|
// Msg defines the ibc/connection Msg service.
|
|
|
|
service Msg {
|
|
|
|
// ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.
|
|
|
|
rpc ConnectionOpenInit(MsgConnectionOpenInit) returns (MsgConnectionOpenInitResponse);
|
|
|
|
|
|
|
|
// ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
|
|
|
|
rpc ConnectionOpenTry(MsgConnectionOpenTry) returns (MsgConnectionOpenTryResponse);
|
|
|
|
|
|
|
|
// ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
|
|
|
|
rpc ConnectionOpenAck(MsgConnectionOpenAck) returns (MsgConnectionOpenAckResponse);
|
2020-11-13 08:36:58 -08:00
|
|
|
|
2020-10-27 07:14:07 -07:00
|
|
|
// ConnectionOpenConfirm defines a rpc handler method for MsgConnectionOpenConfirm.
|
|
|
|
rpc ConnectionOpenConfirm(MsgConnectionOpenConfirm) returns (MsgConnectionOpenConfirmResponse);
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgConnectionOpenInit defines the msg sent by an account on Chain A to
|
|
|
|
// initialize a connection with Chain B.
|
|
|
|
message MsgConnectionOpenInit {
|
|
|
|
option (gogoproto.equal) = false;
|
|
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
|
|
|
|
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
|
|
|
|
string connection_id = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""];
|
|
|
|
Counterparty counterparty = 3 [(gogoproto.nullable) = false];
|
2020-10-28 02:41:54 -07:00
|
|
|
Version version = 4;
|
2020-10-27 07:14:07 -07:00
|
|
|
string signer = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response type.
|
2020-11-13 08:36:58 -08:00
|
|
|
message MsgConnectionOpenInitResponse {}
|
2020-10-27 07:14:07 -07:00
|
|
|
|
|
|
|
// MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a
|
|
|
|
// connection on Chain B.
|
|
|
|
message MsgConnectionOpenTry {
|
|
|
|
option (gogoproto.equal) = false;
|
|
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
|
|
|
|
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
|
|
|
|
string desired_connection_id = 2 [(gogoproto.moretags) = "yaml:\"desired_connection_id\""];
|
|
|
|
string counterparty_chosen_connection_id = 3 [(gogoproto.moretags) = "yaml:\"counterparty_chosen_connection_id\""];
|
2020-11-13 08:36:58 -08:00
|
|
|
google.protobuf.Any client_state = 4 [(gogoproto.moretags) = "yaml:\"client_state\""];
|
|
|
|
Counterparty counterparty = 5 [(gogoproto.nullable) = false];
|
|
|
|
repeated Version counterparty_versions = 6 [(gogoproto.moretags) = "yaml:\"counterparty_versions\""];
|
2020-10-27 07:14:07 -07:00
|
|
|
ibc.core.client.v1.Height proof_height = 7
|
|
|
|
[(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
|
|
|
|
// proof of the initialization the connection on Chain A: `UNITIALIZED ->
|
|
|
|
// INIT`
|
|
|
|
bytes proof_init = 8 [(gogoproto.moretags) = "yaml:\"proof_init\""];
|
|
|
|
// proof of client state included in message
|
|
|
|
bytes proof_client = 9 [(gogoproto.moretags) = "yaml:\"proof_client\""];
|
|
|
|
// proof of client consensus state
|
|
|
|
bytes proof_consensus = 10 [(gogoproto.moretags) = "yaml:\"proof_consensus\""];
|
|
|
|
ibc.core.client.v1.Height consensus_height = 11
|
|
|
|
[(gogoproto.moretags) = "yaml:\"consensus_height\"", (gogoproto.nullable) = false];
|
|
|
|
string signer = 12;
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type.
|
2020-11-13 08:36:58 -08:00
|
|
|
message MsgConnectionOpenTryResponse {}
|
2020-10-27 07:14:07 -07:00
|
|
|
|
|
|
|
// MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
|
|
|
|
// acknowledge the change of connection state to TRYOPEN on Chain B.
|
|
|
|
message MsgConnectionOpenAck {
|
|
|
|
option (gogoproto.equal) = false;
|
|
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
|
|
|
|
string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""];
|
|
|
|
string counterparty_connection_id = 2 [(gogoproto.moretags) = "yaml:\"counterparty_connection_id\""];
|
2020-10-28 02:41:54 -07:00
|
|
|
Version version = 3;
|
2020-10-27 07:14:07 -07:00
|
|
|
google.protobuf.Any client_state = 4 [(gogoproto.moretags) = "yaml:\"client_state\""];
|
|
|
|
ibc.core.client.v1.Height proof_height = 5
|
|
|
|
[(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
|
|
|
|
// proof of the initialization the connection on Chain B: `UNITIALIZED ->
|
|
|
|
// TRYOPEN`
|
|
|
|
bytes proof_try = 6 [(gogoproto.moretags) = "yaml:\"proof_try\""];
|
|
|
|
// proof of client state included in message
|
|
|
|
bytes proof_client = 7 [(gogoproto.moretags) = "yaml:\"proof_client\""];
|
|
|
|
// proof of client consensus state
|
|
|
|
bytes proof_consensus = 8 [(gogoproto.moretags) = "yaml:\"proof_consensus\""];
|
|
|
|
ibc.core.client.v1.Height consensus_height = 9
|
|
|
|
[(gogoproto.moretags) = "yaml:\"consensus_height\"", (gogoproto.nullable) = false];
|
|
|
|
string signer = 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type.
|
2020-11-13 08:36:58 -08:00
|
|
|
message MsgConnectionOpenAckResponse {}
|
2020-10-27 07:14:07 -07:00
|
|
|
|
|
|
|
// MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to
|
|
|
|
// acknowledge the change of connection state to OPEN on Chain A.
|
|
|
|
message MsgConnectionOpenConfirm {
|
|
|
|
option (gogoproto.equal) = false;
|
|
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
|
|
|
|
string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""];
|
|
|
|
// proof for the change of the connection state on Chain A: `INIT -> OPEN`
|
|
|
|
bytes proof_ack = 2 [(gogoproto.moretags) = "yaml:\"proof_ack\""];
|
|
|
|
ibc.core.client.v1.Height proof_height = 3
|
|
|
|
[(gogoproto.moretags) = "yaml:\"proof_height\"", (gogoproto.nullable) = false];
|
|
|
|
string signer = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm response type.
|
2020-11-13 08:36:58 -08:00
|
|
|
message MsgConnectionOpenConfirmResponse {}
|