Documentation ¶
Index ¶
- func NewQuerier(k Keeper) sdk.Querier
- func RemovePrefixFromHash(key []byte, prefix []byte) (hash []byte)
- type Keeper
- func (k Keeper) DeleteScavenge(ctx sdk.Context, solutionHash string)
- func (k Keeper) GetCommit(ctx sdk.Context, solutionScavengerHash string) (types.Commit, error)
- func (k Keeper) GetCommitsIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetScavenge(ctx sdk.Context, solutionHash string) (types.Scavenge, error)
- func (k Keeper) GetScavengesIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetCommit(ctx sdk.Context, commit types.Commit)
- func (k Keeper) SetScavenge(ctx sdk.Context, scavenge types.Scavenge)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for scavenge clients.
func RemovePrefixFromHash ¶
RemovePrefixFromHash removes the prefix from the key
Types ¶
type Keeper ¶
Keeper of the scavenge store
func (Keeper) DeleteScavenge ¶
DeleteScavenge deletes a scavenge
func (Keeper) GetCommitsIterator ¶
GetCommitsIterator gets an iterator over all commits in which the keys are the prefix and solutionHashes and the values are the scavenges
func (Keeper) GetScavenge ¶
GetScavenge returns the scavenge information
func (Keeper) GetScavengesIterator ¶
GetScavengesIterator gets an iterator over all scavnges in which the keys are the solutionHashes and the values are the scavenges
Click to show internal directories.
Click to hide internal directories.