keeper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvWildcardToRegular

func ConvWildcardToRegular(wildcard string) string

ConvWildcardToRegular convert wildcard to regular

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 storetypes.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

Authenticate judges whether the packet compliance with white list

func (Keeper) GetRoutingRules

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

GetRoutingRules returns the rules from store

func (Keeper) HandleSetRoutingRulesProposal added in v0.2.0

func (k Keeper) HandleSetRoutingRulesProposal(ctx sdk.Context, p *types.SetRoutingRulesProposal) error

HandleSetRoutingRulesProposal will try to set routing rules if and only if the proposal passes.

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) RoutingRules added in v0.2.0

RoutingRules implements the Query/RoutingRules gRPC method

func (*Keeper) SetRouter

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

SetRouter sets the Router in TIBC 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

SetRoutingRules sets routing table to store.

Jump to

Keyboard shortcuts

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