Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add v2 Packet definition to v2 channel protos #7347

Closed
Tracked by #7345
damiannolan opened this issue Oct 1, 2024 · 0 comments
Closed
Tracked by #7345

Add v2 Packet definition to v2 channel protos #7347

damiannolan opened this issue Oct 1, 2024 · 0 comments
Assignees

Comments

@damiannolan
Copy link
Member

damiannolan commented Oct 1, 2024

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants