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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildResponse

func BuildResponse(info *types.MappingInfo) types.QueryInfoResponse

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, mapStoreKey sdk.StoreKey, verifyStoreKey sdk.StoreKey) Keeper

NewKeeper returns a guardian keeper

func (Keeper) AddMapping

func (k Keeper) AddMapping(ctx sdk.Context, info *types.MappingInfo) error

func (Keeper) AddVerified

func (k Keeper) AddVerified(ctx sdk.Context, ccAddr string) error

func (Keeper) GetAllMapInfo

func (k Keeper) GetAllMapInfo(ctx sdk.Context) []*types.MappingInfo

func (Keeper) GetMapInfo

func (k Keeper) GetMapInfo(ctx sdk.Context, ercAddr string) *types.MappingInfo

func (Keeper) GetVerified

func (k Keeper) GetVerified(ctx sdk.Context, ccAddr string) int

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) UpdateMapping

func (k Keeper) UpdateMapping(ctx sdk.Context, info *types.MappingInfo) error

func (Keeper) UpdateVerified

func (k Keeper) UpdateVerified(ctx sdk.Context, ccAddr string, status byte) error

Jump to

Keyboard shortcuts

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