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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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
}

func NewKeeper

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

NewKeeper returns a guardian keeper

func (Keeper) AddRecord

func (k Keeper) AddRecord(ctx sdk.Context, rhash []byte, r *types.CoinSwapRecord) error

func (Keeper) GetAllRecord

func (k Keeper) GetAllRecord(ctx sdk.Context) []*types.CoinSwapRecordStorage

func (Keeper) GetRecord

func (k Keeper) GetRecord(ctx sdk.Context, rhash []byte) *types.CoinSwapRecordStorage

func (Keeper) HasRecord

func (k Keeper) HasRecord(ctx sdk.Context, rhash []byte) bool

func (Keeper) UpdateRecord

func (k Keeper) UpdateRecord(ctx sdk.Context, rhash []byte, rs *types.CoinSwapRecordStorage) error

Jump to

Keyboard shortcuts

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