-
Notifications
You must be signed in to change notification settings - Fork 745
Closed
Labels
Description
Finalisation pending specification: cosmos/ibc#1149
In order to make progress fleshing out the currently implementation and feature branch we can assume the following and iterate to fine tune it later.
// Packet defines a type that carries data across different chains through IBC
message Packet {
// number corresponds to the order of sends and receives, where a Packet
// with an earlier sequence number must be sent and received before a Packet
// with a later sequence number.
uint64 sequence = 1;
// identifies the sending chain.
string source_id = 2;
// identifies the receiving chain.
string destination_id = 3;
// timeout timestamp after which the packet times out.
uint64 timeout_timestamp = 4;
// a list of packet data, each one for a specific application.
repeated PacketData data = 5 [(gogoproto.nullable) = false];
}
// PacketData contains the source and destination ports and payload for the application
message PacketData {
// specifies the source port of the packet.
string source_port = 1;
// specifies the destination port of the packet.
string destination_port = 2;
// the payload to be sent to the application.
Payload payload = 3 [(gogoproto.nullable) = false];
}
// Payload holds the version, encoding and raw bytes to be passed to an application
message Payload {
// version of the specified application.
string version = 1;
// the encoding used for the provided value.
string encoding = 2;
// the raw bytes for the payload.
bytes value = 3;
}