keeper

package
v0.0.0-...-79a0367 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListGreetings = "list"
)

query endpoints supported by the hellochain Querier

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

NewQuerier is the module level router for state queries

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine

func NewKeeper

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

NewKeeper creates new instances of the greeter Keeper

func (Keeper) GetGreetings

func (k Keeper) GetGreetings(ctx sdk.Context, addr sdk.AccAddress, from sdk.Address) gtypes.GreetingsList

GetGreetings returns the greetings for a given address and given sender

func (Keeper) GetGreetingsIterator

func (k Keeper) GetGreetingsIterator(ctx sdk.Context) sdk.Iterator

GetGreetingsIterator returns an iterator over all names in which the keys are the addresses and the values are lists of greetings.

func (Keeper) SetGreeting

func (k Keeper) SetGreeting(ctx sdk.Context, greeting gtypes.Greeting)

SetGreeting saves a greeting for a given address.

Jump to

Keyboard shortcuts

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