@@ -6,142 +6,6 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/types";
6
6
import "gogoproto/gogo.proto" ;
7
7
import "ibc/core/client/v1/client.proto" ;
8
8
9
- // MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It
10
- // is called by a relayer on Chain A.
11
- message MsgChannelOpenInit {
12
- option (gogoproto.equal ) = false ;
13
- option (gogoproto.goproto_getters ) = false ;
14
-
15
- string port_id = 1 [(gogoproto.moretags ) = "yaml:\"port_id\"" ];
16
- string channel_id = 2 [(gogoproto.moretags ) = "yaml:\"channel_id\"" ];
17
- Channel channel = 3 [(gogoproto.nullable ) = false ];
18
- string signer = 4 ;
19
- }
20
-
21
- // MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel
22
- // on Chain B.
23
- message MsgChannelOpenTry {
24
- option (gogoproto.equal ) = false ;
25
- option (gogoproto.goproto_getters ) = false ;
26
-
27
- string port_id = 1 [(gogoproto.moretags ) = "yaml:\"port_id\"" ];
28
- string desired_channel_id = 2 [(gogoproto.moretags ) = "yaml:\"desired_channel_id\"" ];
29
- string counterparty_chosen_channel_id = 3 [(gogoproto.moretags ) = "yaml:\"counterparty_chosen_channel_id\"" ];
30
- Channel channel = 4 [(gogoproto.nullable ) = false ];
31
- string counterparty_version = 5 [(gogoproto.moretags ) = "yaml:\"counterparty_version\"" ];
32
- bytes proof_init = 6 [(gogoproto.moretags ) = "yaml:\"proof_init\"" ];
33
- ibc.core.client.v1.Height proof_height = 7
34
- [(gogoproto.moretags ) = "yaml:\"proof_height\"" , (gogoproto.nullable ) = false ];
35
- string signer = 8 ;
36
- }
37
-
38
- // MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge
39
- // the change of channel state to TRYOPEN on Chain B.
40
- message MsgChannelOpenAck {
41
- option (gogoproto.equal ) = false ;
42
- option (gogoproto.goproto_getters ) = false ;
43
-
44
- string port_id = 1 [(gogoproto.moretags ) = "yaml:\"port_id\"" ];
45
- string channel_id = 2 [(gogoproto.moretags ) = "yaml:\"channel_id\"" ];
46
- string counterparty_channel_id = 3 [(gogoproto.moretags ) = "yaml:\"counterparty_channel_id\"" ];
47
- string counterparty_version = 4 [(gogoproto.moretags ) = "yaml:\"counterparty_version\"" ];
48
- bytes proof_try = 5 [(gogoproto.moretags ) = "yaml:\"proof_try\"" ];
49
- ibc.core.client.v1.Height proof_height = 6
50
- [(gogoproto.moretags ) = "yaml:\"proof_height\"" , (gogoproto.nullable ) = false ];
51
- string signer = 7 ;
52
- }
53
-
54
- // MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to
55
- // acknowledge the change of channel state to OPEN on Chain A.
56
- message MsgChannelOpenConfirm {
57
- option (gogoproto.equal ) = false ;
58
- option (gogoproto.goproto_getters ) = false ;
59
-
60
- string port_id = 1 [(gogoproto.moretags ) = "yaml:\"port_id\"" ];
61
- string channel_id = 2 [(gogoproto.moretags ) = "yaml:\"channel_id\"" ];
62
- bytes proof_ack = 3 [(gogoproto.moretags ) = "yaml:\"proof_ack\"" ];
63
- ibc.core.client.v1.Height proof_height = 4
64
- [(gogoproto.moretags ) = "yaml:\"proof_height\"" , (gogoproto.nullable ) = false ];
65
- string signer = 5 ;
66
- }
67
-
68
- // MsgChannelCloseInit defines a msg sent by a Relayer to Chain A
69
- // to close a channel with Chain B.
70
- message MsgChannelCloseInit {
71
- option (gogoproto.equal ) = false ;
72
- option (gogoproto.goproto_getters ) = false ;
73
-
74
- string port_id = 1 [(gogoproto.moretags ) = "yaml:\"port_id\"" ];
75
- string channel_id = 2 [(gogoproto.moretags ) = "yaml:\"channel_id\"" ];
76
- string signer = 3 ;
77
- }
78
-
79
- // MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B
80
- // to acknowledge the change of channel state to CLOSED on Chain A.
81
- message MsgChannelCloseConfirm {
82
- option (gogoproto.equal ) = false ;
83
- option (gogoproto.goproto_getters ) = false ;
84
-
85
- string port_id = 1 [(gogoproto.moretags ) = "yaml:\"port_id\"" ];
86
- string channel_id = 2 [(gogoproto.moretags ) = "yaml:\"channel_id\"" ];
87
- bytes proof_init = 3 [(gogoproto.moretags ) = "yaml:\"proof_init\"" ];
88
- ibc.core.client.v1.Height proof_height = 4
89
- [(gogoproto.moretags ) = "yaml:\"proof_height\"" , (gogoproto.nullable ) = false ];
90
- string signer = 5 ;
91
- }
92
-
93
- // MsgRecvPacket receives incoming IBC packet
94
- message MsgRecvPacket {
95
- option (gogoproto.equal ) = false ;
96
- option (gogoproto.goproto_getters ) = false ;
97
-
98
- Packet packet = 1 [(gogoproto.nullable ) = false ];
99
- bytes proof = 2 ;
100
- ibc.core.client.v1.Height proof_height = 3
101
- [(gogoproto.moretags ) = "yaml:\"proof_height\"" , (gogoproto.nullable ) = false ];
102
- string signer = 4 ;
103
- }
104
-
105
- // MsgTimeout receives timed-out packet
106
- message MsgTimeout {
107
- option (gogoproto.equal ) = false ;
108
- option (gogoproto.goproto_getters ) = false ;
109
-
110
- Packet packet = 1 [(gogoproto.nullable ) = false ];
111
- bytes proof = 2 ;
112
- ibc.core.client.v1.Height proof_height = 3
113
- [(gogoproto.moretags ) = "yaml:\"proof_height\"" , (gogoproto.nullable ) = false ];
114
- uint64 next_sequence_recv = 4 [(gogoproto.moretags ) = "yaml:\"next_sequence_recv\"" ];
115
- string signer = 5 ;
116
- }
117
-
118
- // MsgTimeoutOnClose timed-out packet upon counterparty channel closure.
119
- message MsgTimeoutOnClose {
120
- option (gogoproto.equal ) = false ;
121
- option (gogoproto.goproto_getters ) = false ;
122
-
123
- Packet packet = 1 [(gogoproto.nullable ) = false ];
124
- bytes proof = 2 ;
125
- bytes proof_close = 3 [(gogoproto.moretags ) = "yaml:\"proof_close\"" ];
126
- ibc.core.client.v1.Height proof_height = 4
127
- [(gogoproto.moretags ) = "yaml:\"proof_height\"" , (gogoproto.nullable ) = false ];
128
- uint64 next_sequence_recv = 5 [(gogoproto.moretags ) = "yaml:\"next_sequence_recv\"" ];
129
- string signer = 6 ;
130
- }
131
-
132
- // MsgAcknowledgement receives incoming IBC acknowledgement
133
- message MsgAcknowledgement {
134
- option (gogoproto.equal ) = false ;
135
- option (gogoproto.goproto_getters ) = false ;
136
-
137
- Packet packet = 1 [(gogoproto.nullable ) = false ];
138
- bytes acknowledgement = 2 ;
139
- bytes proof = 3 ;
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
9
// Channel defines pipeline for exactly-once packet delivery between specific
146
10
// modules on separate blockchains, which has at least one end capable of
147
11
// sending packets and one end capable of receiving packets.
@@ -250,9 +114,11 @@ message Packet {
250
114
uint64 timeout_timestamp = 8 [(gogoproto.moretags ) = "yaml:\"timeout_timestamp\"" ];
251
115
}
252
116
253
- // PacketAckCommitment defines the genesis type necessary to retrieve and store
254
- // acknowlegements.
255
- message PacketAckCommitment {
117
+ // PacketState defines the generic type necessary to retrieve and store
118
+ // packet commitments, acknowledgements, and receipts.
119
+ // Caller is responsible for knowing the context necessary to interpret this
120
+ // state as a commitment, acknowledgement, or a receipt.
121
+ message PacketState {
256
122
option (gogoproto.goproto_getters ) = false ;
257
123
258
124
// channel port identifier.
@@ -261,8 +127,8 @@ message PacketAckCommitment {
261
127
string channel_id = 2 [(gogoproto.moretags ) = "yaml:\"channel_id\"" ];
262
128
// packet sequence.
263
129
uint64 sequence = 3 ;
264
- // packet commitment hash .
265
- bytes hash = 4 ;
130
+ // embedded data that represents packet state .
131
+ bytes data = 4 ;
266
132
}
267
133
268
134
// Acknowledgement is the recommended acknowledgement format to be used by
0 commit comments