cosmos-sdk/x/ibc/04-channel/exported/exported.go

33 lines
743 B
Go

package exported
// ChannelI defines the standard interface for a channel end.
type ChannelI interface {
GetState() int32
GetOrdering() int32
GetCounterparty() CounterpartyI
GetConnectionHops() []string
GetVersion() string
ValidateBasic() error
}
// CounterpartyI defines the standard interface for a channel end's
// counterparty.
type CounterpartyI 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
}