keeper

package
v0.0.0-...-bd61a53 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildResponse

func BuildResponse(info *types.RewardsInfo) types.QueryRewardsResponse

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

creates a querier for auth REST endpoints

Types

type Keeper

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

Keeper store user map info, (ERC20(oin) ===> localCoins)

func NewKeeper

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

NewKeeper returns a guardian keeper

func (Keeper) GetRewards

func (k Keeper) GetRewards(ctx sdk.Context, myAddr []byte) *types.RewardsInfo

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) UpdateRewards

func (k Keeper) UpdateRewards(ctx sdk.Context, myAddr []byte, rewards *types.RewardsInfo) error

Jump to

Keyboard shortcuts

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