keeper

package
v0.0.0-...-f826e9d Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

NewQuerier creates a new querier for agency clients.

Types

type Keeper

type Keeper struct {
	CoinKeeper bank.Keeper
	// contains filtered or unexported fields
}

Keeper of the agency store

func NewKeeper

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

NewKeeper creates a agency keeper

func (Keeper) CreateAgency

func (k Keeper) CreateAgency(ctx sdk.Context, agency types.Agency)

CreateAgency stores an agency

func (Keeper) DeleteAgency

func (k Keeper) DeleteAgency(ctx sdk.Context, agency types.Agency)

DeleteAgency deletes a agency

func (Keeper) GetAgency

func (k Keeper) GetAgency(ctx sdk.Context, principal sdk.AccAddress, agent sdk.AccAddress) (types.Agency, error)

GetAgency returns an agency func (k Keeper) GetAgency(ctx sdk.Context, key string) (types.Agency, error) {

func (Keeper) Logger

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

Logger returns a module-specific logger.

Jump to

Keyboard shortcuts

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