Versions in this module Expand all Collapse all v0 v0.0.2 Nov 23, 2021 Changes in this version + const DefaultMaxCharacterLength + const KeyChannelCapabilityPrefix + const KeyChannelEndPrefix + const KeyChannelPrefix + const KeyClientState + const KeyConnectionPrefix + const KeyConsensusStatePrefix + const KeyNextSeqAckPrefix + const KeyNextSeqRecvPrefix + const KeyNextSeqSendPrefix + const KeyPacketAckPrefix + const KeyPacketCommitmentPrefix + const KeyPacketReceiptPrefix + const KeyPortPrefix + const KeySequencePrefix + 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") + func ChannelCapabilityPath(portID, channelID string) string + func ChannelIdentifierValidator(id string) error + func ChannelKey(portID, channelID string) []byte + func ChannelPath(portID, channelID string) string + func ClientConnectionsKey(clientID string) []byte + func ClientConnectionsPath(clientID string) string + func ClientIdentifierValidator(id string) error + func ClientStateKey() []byte + func ConnectionIdentifierValidator(id string) error + func ConnectionKey(connectionID string) []byte + func ConnectionPath(connectionID string) string + func ConsensusStateKey(height exported.Height) []byte + func ConsensusStatePath(height exported.Height) string + func FullClientKey(clientID string, path []byte) []byte + func FullClientPath(clientID string, path string) string + func FullClientStateKey(clientID string) []byte + func FullClientStatePath(clientID string) string + func FullConsensusStateKey(clientID string, height exported.Height) []byte + func FullConsensusStatePath(clientID string, height exported.Height) string + func MustParseChannelPath(path string) (string, string) + func MustParseConnectionPath(path string) string + func NextSequenceAckKey(portID, channelID string) []byte + func NextSequenceAckPath(portID, channelID string) string + func NextSequenceRecvKey(portID, channelID string) []byte + func NextSequenceRecvPath(portID, channelID string) string + func NextSequenceSendKey(portID, channelID string) []byte + func NextSequenceSendPath(portID, channelID string) string + func PacketAcknowledgementKey(portID, channelID string, sequence uint64) []byte + func PacketAcknowledgementPath(portID, channelID string, sequence uint64) string + func PacketAcknowledgementPrefixPath(portID, channelID string) string + func PacketCommitmentKey(portID, channelID string, sequence uint64) []byte + func PacketCommitmentPath(portID, channelID string, sequence uint64) string + func PacketCommitmentPrefixPath(portID, channelID string) string + func PacketReceiptKey(portID, channelID string, sequence uint64) []byte + func PacketReceiptPath(portID, channelID string, sequence uint64) string + func ParseChannelPath(path string) (string, string, error) + func ParseConnectionPath(path string) (string, error) + func ParseIdentifier(identifier, prefix string) (uint64, error) + func PortIdentifierValidator(id string) error + func PortPath(portID string) string + type ValidateFn func(string) error + func NewPathValidator(idValidator ValidateFn) ValidateFn