keeper

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(q sdk.Querier, k Keeper) sdk.Querier

NewQuerier returns a new sdk.Keeper instance.

Types

type Keeper

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

func NewKeeper

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

func SetupTestInput

func SetupTestInput() (cdc *codec.Codec, ctx sdk.Context, keeper Keeper)

SetupTestInput creates a test environment

func (Keeper) AddBlockedAddresses

func (keeper Keeper) AddBlockedAddresses(ctx sdk.Context, address sdk.AccAddress)

AddBlockedAddresses allows to add the given address as a blocked one

func (Keeper) GetBlockedAddresses

func (keeper Keeper) GetBlockedAddresses(ctx sdk.Context) cmtypes.Addresses

GetBlockedAddresses returns the list of all the blocked addresses

func (Keeper) IsAddressBlocked

func (keeper Keeper) IsAddressBlocked(ctx sdk.Context, address sdk.AccAddress) bool

IsAddressBlocked returns true iff

func (Keeper) RemoveBlockedAddress

func (keeper Keeper) RemoveBlockedAddress(ctx sdk.Context, address sdk.AccAddress)

RemoveBlockedAddress removes the given address from the list of blocked addresses

func (Keeper) SetBlockedAddresses

func (keeper Keeper) SetBlockedAddresses(ctx sdk.Context, addresses cmtypes.Addresses)

SetBlockedAddresses allows to set the given addresses as the blocked ones

Jump to

Keyboard shortcuts

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