Skip to content

Commit

Permalink
chore: split orderings supported into own variable. (#3680)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitrisJim authored May 30, 2023
1 parent df2841d commit 25de1c4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/core/03-connection/types/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ import (

var (
// DefaultIBCVersion represents the latest supported version of IBC used
// in connection version negotiation. The current version supports only
// ORDERED and UNORDERED channels and requires at least one channel type
// in connection version negotiation. The current version supports the list
// of orderings defined in SupportedOrderings and requires at least one channel type
// to be agreed upon.
DefaultIBCVersion = NewVersion(DefaultIBCVersionIdentifier, []string{"ORDER_ORDERED", "ORDER_UNORDERED"})
DefaultIBCVersion = NewVersion(DefaultIBCVersionIdentifier, SupportedOrderings)

// DefaultIBCVersionIdentifier is the IBC v1.0.0 protocol version identifier
DefaultIBCVersionIdentifier = "1"

// SupportedOrderings is the list of orderings supported by IBC. The current
// version supports only ORDERED and UNORDERED channels.
SupportedOrderings = []string{"ORDER_ORDERED", "ORDER_UNORDERED"}

// AllowNilFeatureSet is a helper map to indicate if a specified version
// identifier is allowed to have a nil feature set. Any versions supported,
// but not included in the map default to not supporting nil feature sets.
Expand Down

0 comments on commit 25de1c4

Please sign in to comment.