Documentation ¶
Index ¶
- func ConvWildcardToRegular(wildcard string) string
- type Keeper
- func (k Keeper) Authenticate(ctx sdk.Context, sourceChain, destinationChain, port string) bool
- func (k Keeper) GetRoutingRules(ctx sdk.Context) ([]string, bool)
- func (k Keeper) HandleSetRoutingRulesProposal(ctx sdk.Context, p *types.SetRoutingRulesProposal) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (q Keeper) RoutingRules(c context.Context, req *types.QueryRoutingRulesRequest) (*types.QueryRoutingRulesResponse, error)
- func (k *Keeper) SetRouter(rtr *types.Router)
- func (k Keeper) SetRoutingRules(ctx sdk.Context, rules []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvWildcardToRegular ¶
ConvWildcardToRegular convert wildcard to regular
Types ¶
type Keeper ¶
Keeper defines the TIBC routing keeper
func (Keeper) Authenticate ¶
Authenticate judges whether the packet compliance with white list
func (Keeper) GetRoutingRules ¶
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) RoutingRules ¶ added in v0.2.0
func (q Keeper) RoutingRules(c context.Context, req *types.QueryRoutingRulesRequest) (*types.QueryRoutingRulesResponse, error)
RoutingRules implements the Query/RoutingRules gRPC method
Click to show internal directories.
Click to hide internal directories.