Versions in this module Expand all Collapse all v0 v0.1.3 Nov 25, 2021 v0.1.1 Nov 25, 2021 Changes in this version + const KeyChannelCapabilityPrefix + const KeyChannelPrefix + const KeyNextSeqAckPrefix + const KeyNextSeqRecvPrefix + const KeyNextSeqSendPrefix + const KeyPacketAckPrefix + const KeyPacketCommitmentPrefix + const ModuleName + const QuerierRoute + const RouterKey + const StoreKey + const SubModuleName + var ErrInvalidID = sdkerrors.Register(SubModuleName, 2, "invalid identifier") + var ErrInvalidPacket = sdkerrors.Register(SubModuleName, 4, "invalid packet") + var ErrInvalidPath = sdkerrors.Register(SubModuleName, 3, "invalid path") + var IsValidID = regexp.MustCompile(`^[a-zA-Z0-9\.\_\+\-\#\[\]\<\>]+$`).MatchString + var KeyClientStorePrefix = []byte("clients") + var KeyConnectionPrefix = []byte("connections") + func ChannelCapabilityPath(portID, channelID string) string + func ChannelIdentifierValidator(id string) error + func ChannelPath(portID, channelID string) string + func ClientConnectionsPath(clientID string) string + func ClientIdentifierValidator(id string) error + func ClientStatePath() string + func ClientTypePath() string + func ConnectionIdentifierValidator(id string) error + func ConnectionPath(connectionID string) string + func ConsensusStatePath(height uint64) string + func GetChannelPortsKeysPrefix(prefix int) []byte + func KeyChannel(portID, channelID string) []byte + func KeyClientConnections(clientID string) []byte + func KeyClientState() []byte + func KeyClientType() []byte + func KeyConnection(connectionID string) []byte + func KeyConsensusState(height uint64) []byte + func KeyNextSequenceAck(portID, channelID string) []byte + func KeyNextSequenceRecv(portID, channelID string) []byte + func KeyNextSequenceSend(portID, channelID string) []byte + func KeyPacketAcknowledgement(portID, channelID string, sequence uint64) []byte + func KeyPacketCommitment(portID, channelID string, sequence uint64) []byte + func KeyPort(portID string) []byte + func KeyPrefixBytes(prefix int) []byte + func MustParseChannelPath(path string) (string, string) + func NextSequenceAckPath(portID, channelID string) string + func NextSequenceRecvPath(portID, channelID string) string + func NextSequenceSendPath(portID, channelID string) string + func PacketAcknowledgementPath(portID, channelID string, sequence uint64) string + func PacketCommitmentPath(portID, channelID string, sequence uint64) string + func ParseChannelPath(path string) (string, string, error) + func PathValidator(path string) error + func PortIdentifierValidator(id string) error + func PortPath(portID string) string + func RemovePath(paths []string, path string) ([]string, bool) + type ValidateFn func(string) error + func NewPathValidator(idValidator ValidateFn) ValidateFn