github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/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  }