2020-08-07 01:33:47 -07:00
|
|
|
syntax = "proto3";
|
2020-10-01 12:23:29 -07:00
|
|
|
package ibc.core.channel.v1;
|
2020-08-07 01:33:47 -07:00
|
|
|
|
2020-10-02 02:03:02 -07:00
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/types";
|
2020-08-07 01:33:47 -07:00
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
2020-10-01 12:23:29 -07:00
|
|
|
import "ibc/core/channel/v1/channel.proto";
|
2020-08-07 01:33:47 -07:00
|
|
|
|
|
|
|
// GenesisState defines the ibc channel submodule's genesis state.
|
|
|
|
message GenesisState {
|
2020-11-13 08:36:58 -08:00
|
|
|
repeated IdentifiedChannel channels = 1 [(gogoproto.casttype) = "IdentifiedChannel", (gogoproto.nullable) = false];
|
|
|
|
repeated PacketState acknowledgements = 2 [(gogoproto.nullable) = false];
|
|
|
|
repeated PacketState commitments = 3 [(gogoproto.nullable) = false];
|
|
|
|
repeated PacketState receipts = 4 [(gogoproto.nullable) = false];
|
|
|
|
repeated PacketSequence send_sequences = 5
|
2020-09-08 15:06:54 -07:00
|
|
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"send_sequences\""];
|
2020-11-02 07:13:48 -08:00
|
|
|
repeated PacketSequence recv_sequences = 6
|
2020-09-08 15:06:54 -07:00
|
|
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"recv_sequences\""];
|
2020-11-02 07:13:48 -08:00
|
|
|
repeated PacketSequence ack_sequences = 7
|
2020-09-08 15:06:54 -07:00
|
|
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"ack_sequences\""];
|
2020-08-07 01:33:47 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// PacketSequence defines the genesis type necessary to retrieve and store
|
|
|
|
// next send and receive sequences.
|
|
|
|
message PacketSequence {
|
2020-09-08 15:06:54 -07:00
|
|
|
string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""];
|
|
|
|
string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""];
|
|
|
|
uint64 sequence = 3;
|
2020-08-07 01:33:47 -07:00
|
|
|
}
|