Documentation ¶
Index ¶
- Constants
- Variables
- func CleanPacketCommitmentKey(sourceChain, destinationChain string) []byte
- func CleanPacketCommitmentPath(sourceChain, destinationChain string) string
- func NextSequenceSendKey(sourceChain, destChain string) []byte
- func NextSequenceSendPath(sourceChain, destChain string) string
- func PacketAcknowledgementKey(sourceChain, destinationChain string, sequence uint64) []byte
- func PacketAcknowledgementPath(sourceChain, destinationChain string, sequence uint64) string
- func PacketAcknowledgementPrefixPath(sourceChain, destinationChain string) string
- func PacketCommitmentKey(sourceChain, destinationChain string, sequence uint64) []byte
- func PacketCommitmentPath(sourceChain, destinationChain string, sequence uint64) string
- func PacketCommitmentPrefixPath(sourceChain, destinationChain string) string
- func PacketReceiptKey(sourceChain, destinationChain string, sequence uint64) []byte
- func PacketReceiptPath(sourceChain, destinationChain string, sequence uint64) string
- func PacketReceiptPrefixPath(sourceChain, destinationChain string) string
- type ProofKeyConstructor
Constants ¶
const ( KeySequencePrefix = "sequences" KeyNextSeqSendPrefix = "nextSequenceSend" KeyPacketCommitmentPrefix = "commitments" KeyPacketAckPrefix = "acks" KeyPacketReceiptPrefix = "receipts" KeyCleanPacketCommitmentPrefix = "clean" )
KVStore key prefixes for IBC
const DefaultCacheDirName = "cache"
const DefaultConfigDirName = "configs"
const DefaultConfigName = "config.toml"
const DefaultHomeDirName = ".tibc-relayer"
Variables ¶
var (
UserDir, _ = os.UserHomeDir()
DefaultHomePath = filepath.Join(UserDir, DefaultHomeDirName)
)
Functions ¶
func CleanPacketCommitmentKey ¶ added in v0.2.0
CleanPacketCommitmentKey returns the store key of under which a clean packet commitment is stored
func CleanPacketCommitmentPath ¶ added in v0.2.0
CleanPacketCommitmentPrefixPath defines the prefix for commitments to packet data fields store path.
func NextSequenceSendKey ¶ added in v0.2.0
NextSequenceSendKey returns the store key for the send sequence of a particular channel binded to a specific port.
func NextSequenceSendPath ¶ added in v0.2.0
NextSequenceSendPath defines the next send sequence counter store path
func PacketAcknowledgementKey ¶ added in v0.2.0
PacketAcknowledgementKey returns the store key of under which a packet acknowledgement is stored
func PacketAcknowledgementPath ¶ added in v0.2.0
PacketAcknowledgementPath defines the packet acknowledgement store path
func PacketAcknowledgementPrefixPath ¶ added in v0.2.0
PacketAcknowledgementPrefixPath defines the prefix for commitments to packet data fields store path.
func PacketCommitmentKey ¶ added in v0.2.0
PacketCommitmentKey returns the store key of under which a packet commitment is stored
func PacketCommitmentPath ¶ added in v0.2.0
PacketCommitmentPath defines the commitments to packet data fields store path
func PacketCommitmentPrefixPath ¶ added in v0.2.0
PacketCommitmentPrefixPath defines the prefix for commitments to packet data fields store path.
func PacketReceiptKey ¶ added in v0.2.0
PacketReceiptKey returns the store key of under which a packet receipt is stored
func PacketReceiptPath ¶ added in v0.2.0
PacketReceiptPath defines the packet receipt store path
func PacketReceiptPrefixPath ¶ added in v0.2.0
PacketReceiptKey returns the store key of under which a packet receipt is stored
Types ¶
type ProofKeyConstructor ¶ added in v0.2.0
type ProofKeyConstructor struct {
// contains filtered or unexported fields
}
func NewProofKeyConstructor ¶ added in v0.2.0
func NewProofKeyConstructor(sourceChain string, destChain string, sequence uint64) ProofKeyConstructor
func (ProofKeyConstructor) GetAckProofKey ¶ added in v0.2.0
func (k ProofKeyConstructor) GetAckProofKey(slot int64) []byte
func (ProofKeyConstructor) GetCleanPacketCommitmentProofKey ¶ added in v0.2.0
func (k ProofKeyConstructor) GetCleanPacketCommitmentProofKey(slot int64) []byte
func (ProofKeyConstructor) GetPacketCommitmentProofKey ¶ added in v0.2.0
func (k ProofKeyConstructor) GetPacketCommitmentProofKey(slot int64) []byte