Skip to content

Add genesis state for channel/v2 #7479

Closed as duplicate of#7922
Closed as duplicate of#7922
@DimitrisJim

Description

Add genesis state for channel/v2 state entries. Judging by what we imported/exported for v1, we should still be doing something similar for v2, a rough proto might look like:

// GenesisState defines the ibc channel submodule's genesis state.
message GenesisState {
  // TODO: Possibly re-use?
  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 [(gogoproto.nullable) = false];
}

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned
  • Estimate provided

Metadata

Assignees

Type

No type

Projects

  • Status

    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions