tools

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySequencePrefix              = "sequences"
	KeyNextSeqSendPrefix           = "nextSequenceSend"
	KeyPacketCommitmentPrefix      = "commitments"
	KeyPacketAckPrefix             = "acks"
	KeyPacketReceiptPrefix         = "receipts"
	KeyCleanPacketCommitmentPrefix = "clean"
)

KVStore key prefixes for IBC

View Source
const DefaultCacheDirName = "cache"
View Source
const DefaultConfigDirName = "configs"
View Source
const DefaultConfigName = "config.toml"
View Source
const DefaultHomeDirName = ".tibc-relayer"

Variables

View Source
var (
	UserDir, _      = os.UserHomeDir()
	DefaultHomePath = filepath.Join(UserDir, DefaultHomeDirName)
)

Functions

func CleanPacketCommitmentKey added in v0.2.0

func CleanPacketCommitmentKey(sourceChain, destinationChain string) []byte

CleanPacketCommitmentKey returns the store key of under which a clean packet commitment is stored

func CleanPacketCommitmentPath added in v0.2.0

func CleanPacketCommitmentPath(sourceChain, destinationChain string) string

CleanPacketCommitmentPrefixPath defines the prefix for commitments to packet data fields store path.

func NextSequenceSendKey added in v0.2.0

func NextSequenceSendKey(sourceChain, destChain string) []byte

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

func NextSequenceSendPath(sourceChain, destChain string) string

NextSequenceSendPath defines the next send sequence counter store path

func PacketAcknowledgementKey added in v0.2.0

func PacketAcknowledgementKey(sourceChain, destinationChain string, sequence uint64) []byte

PacketAcknowledgementKey returns the store key of under which a packet acknowledgement is stored

func PacketAcknowledgementPath added in v0.2.0

func PacketAcknowledgementPath(sourceChain, destinationChain string, sequence uint64) string

PacketAcknowledgementPath defines the packet acknowledgement store path

func PacketAcknowledgementPrefixPath added in v0.2.0

func PacketAcknowledgementPrefixPath(sourceChain, destinationChain string) string

PacketAcknowledgementPrefixPath defines the prefix for commitments to packet data fields store path.

func PacketCommitmentKey added in v0.2.0

func PacketCommitmentKey(sourceChain, destinationChain string, sequence uint64) []byte

PacketCommitmentKey returns the store key of under which a packet commitment is stored

func PacketCommitmentPath added in v0.2.0

func PacketCommitmentPath(sourceChain, destinationChain string, sequence uint64) string

PacketCommitmentPath defines the commitments to packet data fields store path

func PacketCommitmentPrefixPath added in v0.2.0

func PacketCommitmentPrefixPath(sourceChain, destinationChain string) string

PacketCommitmentPrefixPath defines the prefix for commitments to packet data fields store path.

func PacketReceiptKey added in v0.2.0

func PacketReceiptKey(sourceChain, destinationChain string, sequence uint64) []byte

PacketReceiptKey returns the store key of under which a packet receipt is stored

func PacketReceiptPath added in v0.2.0

func PacketReceiptPath(sourceChain, destinationChain string, sequence uint64) string

PacketReceiptPath defines the packet receipt store path

func PacketReceiptPrefixPath added in v0.2.0

func PacketReceiptPrefixPath(sourceChain, destinationChain string) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL