keeper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvWildcardToRegular

func ConvWildcardToRegular(wildcard string) string

func RoutingRulesKey

func RoutingRulesKey() []byte

func RoutingRulesPath

func RoutingRulesPath() string

RoutingRulesPath defines the routing rules store path

Types

type Keeper

type Keeper struct {
	Router *types.Router
	// contains filtered or unexported fields
}

Keeper defines the TIBC routing keeper

func NewKeeper

func NewKeeper(key sdk.StoreKey) Keeper

NewKeeper creates a new TIBC connection Keeper instance

func (Keeper) Authenticate

func (k Keeper) Authenticate(ctx sdk.Context, sourceChain, destinationChain, port string) bool

func (Keeper) GetRoutingRules

func (k Keeper) GetRoutingRules(ctx sdk.Context) ([]string, bool)

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (*Keeper) SetRouter

func (k *Keeper) SetRouter(rtr *types.Router)

SetRouter sets the Router in IBC Keeper and seals it. The method panics if there is an existing router that's already sealed.

func (Keeper) SetRoutingRules

func (k Keeper) SetRoutingRules(ctx sdk.Context, rules []string) error

Jump to

Keyboard shortcuts

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