Documentation ¶
Index ¶
- func GenerateQueryHash(connection_id string, chain_id string, query_type string, request []byte, ...) string
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AllQueries(ctx sdk.Context) []types.Query
- func (k Keeper) DeleteQuery(ctx sdk.Context, id string)
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) GetQuery(ctx sdk.Context, id string) (types.Query, bool)
- func (k Keeper) HasQueryExceededTtl(ctx sdk.Context, msg *types.MsgSubmitQueryResponse, query types.Query) (bool, error)
- func (k Keeper) InvokeCallback(ctx sdk.Context, msg *types.MsgSubmitQueryResponse, q types.Query) error
- func (k Keeper) IterateQueries(ctx sdk.Context, fn func(index int64, queryInfo types.Query) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k *Keeper) MakeRequest(ctx sdk.Context, connection_id string, chain_id string, query_type string, ...) error
- func (k Keeper) NewQuery(ctx sdk.Context, module string, connection_id string, chain_id string, ...) *types.Query
- func (k *Keeper) SetCallbackHandler(module string, handler types.QueryCallbacks) error
- func (k Keeper) SetQuery(ctx sdk.Context, query types.Query)
- func (k Keeper) VerifyKeyProof(ctx sdk.Context, msg *types.MsgSubmitQueryResponse, q types.Query) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateQueryHash ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the bank MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
Keeper of this module maintains collections of registered zones.
func (Keeper) AllQueries ¶
AllQueries returns every queryInfo in the store
func (Keeper) DeleteQuery ¶
DeleteQuery delete query info
func (Keeper) EndBlocker ¶
EndBlocker of interchainquery module
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) MakeRequest ¶
func (*Keeper) SetCallbackHandler ¶
func (k *Keeper) SetCallbackHandler(module string, handler types.QueryCallbacks) error
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!
Click to show internal directories.
Click to hide internal directories.