github.com/okex/exchain@v1.8.0/libs/ibc-go/modules/core/exported/connection.go (about) 1 package exported 2 3 // ConnectionI describes the required methods for a connection. 4 type ConnectionI interface { 5 GetClientID() string 6 GetState() int32 7 GetCounterparty() CounterpartyConnectionI 8 GetVersions() []Version 9 GetDelayPeriod() uint64 10 ValidateBasic() error 11 } 12 13 // CounterpartyConnectionI describes the required methods for a counterparty connection. 14 type CounterpartyConnectionI interface { 15 GetClientID() string 16 GetConnectionID() string 17 GetPrefix() Prefix 18 ValidateBasic() error 19 } 20 21 // Version defines an IBC version used in connection handshake negotiation. 22 type Version interface { 23 GetIdentifier() string 24 GetFeatures() []string 25 VerifyProposedVersion(Version) error 26 }