keeper

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0, Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateQueryHash

func GenerateQueryHash(connection_id string, chain_id string, query_type string, request []byte, module string, height int64) string

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the bank MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	IBCKeeper *ibckeeper.Keeper
	// contains filtered or unexported fields
}

Keeper of this module maintains collections of registered zones.

func NewKeeper

func NewKeeper(cdc codec.Codec, storeKey sdk.StoreKey, ibckeeper *ibckeeper.Keeper) Keeper

NewKeeper returns a new instance of zones Keeper

func (Keeper) AllQueries

func (k Keeper) AllQueries(ctx sdk.Context) []types.Query

AllQueries returns every queryInfo in the store

func (Keeper) DeleteQuery

func (k Keeper) DeleteQuery(ctx sdk.Context, id string)

DeleteQuery delete query info

func (Keeper) EndBlocker

func (k Keeper) EndBlocker(ctx sdk.Context)

EndBlocker of interchainquery module

func (Keeper) GetQuery

func (k Keeper) GetQuery(ctx sdk.Context, id string) (types.Query, bool)

GetQuery returns query

func (Keeper) HasQueryExceededTtl added in v0.5.1

func (k Keeper) HasQueryExceededTtl(ctx sdk.Context, msg *types.MsgSubmitQueryResponse, query types.Query) (bool, error)

verify the query has not exceeded its ttl

func (Keeper) InvokeCallback added in v0.5.1

func (k Keeper) InvokeCallback(ctx sdk.Context, msg *types.MsgSubmitQueryResponse, q types.Query) error

call the query's associated callback function

func (Keeper) IterateQueries

func (k Keeper) IterateQueries(ctx sdk.Context, fn func(index int64, queryInfo types.Query) (stop bool))

IterateQueries iterate through queries

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (*Keeper) MakeRequest

func (k *Keeper) MakeRequest(ctx sdk.Context, connection_id string, chain_id string, query_type string, request []byte, period sdk.Int, module string, callback_id string, ttl uint64, height int64) error

func (Keeper) NewQuery

func (k Keeper) NewQuery(ctx sdk.Context, module string, connection_id string, chain_id string, query_type string, request []byte, period sdk.Int, callback_id string, ttl uint64, height int64) *types.Query

func (*Keeper) SetCallbackHandler

func (k *Keeper) SetCallbackHandler(module string, handler types.QueryCallbacks) error

func (Keeper) SetQuery

func (k Keeper) SetQuery(ctx sdk.Context, query types.Query)

SetQuery set query info

func (Keeper) VerifyKeyProof added in v0.5.1

func (k Keeper) VerifyKeyProof(ctx sdk.Context, msg *types.MsgSubmitQueryResponse, q types.Query) error

check if the query requires proving; if it does, verify it!

Jump to

Keyboard shortcuts

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