33 lines
764 B
Go
33 lines
764 B
Go
package exported
|
|
|
|
// ChannelI defines the standard interface for a channel end.
|
|
type ChannelI interface {
|
|
GetState() int32
|
|
GetOrdering() int32
|
|
GetCounterparty() CounterpartyChannelI
|
|
GetConnectionHops() []string
|
|
GetVersion() string
|
|
ValidateBasic() error
|
|
}
|
|
|
|
// CounterpartyChannelI defines the standard interface for a channel end's
|
|
// counterparty.
|
|
type CounterpartyChannelI interface {
|
|
GetPortID() string
|
|
GetChannelID() string
|
|
ValidateBasic() error
|
|
}
|
|
|
|
// PacketI defines the standard interface for IBC packets
|
|
type PacketI interface {
|
|
GetSequence() uint64
|
|
GetTimeoutHeight() uint64
|
|
GetTimeoutTimestamp() uint64
|
|
GetSourcePort() string
|
|
GetSourceChannel() string
|
|
GetDestPort() string
|
|
GetDestChannel() string
|
|
GetData() []byte
|
|
ValidateBasic() error
|
|
}
|