keeper

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the user MsgServer interface for the provided Keeper.

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for staking module

Types

type Keeper

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

Keeper of the x/user store

func NewKeeper

func NewKeeper(cdc codec.BinaryMarshaler, key sdk.StoreKey, accountKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper, ps paramtypes.Subspace) Keeper

NewKeeper creates a x/user keeper

func (Keeper) CanVouch

func (k Keeper) CanVouch(
	ctx sdk.Context, address sdk.AccAddress) (can bool)

CanVouch returns whether the given address can vouch for someone

func (Keeper) CreateVouch

func (k Keeper) CreateVouch(
	ctx sdk.Context, voucher, vouched sdk.AccAddress, comment string) error

CreateVouch registers a vouch on-chain.

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

ExportGenesis exports the curating module state

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams returns the total set of user parameters.

func (Keeper) GetVouchByVouched

func (k Keeper) GetVouchByVouched(
	ctx sdk.Context, vouched sdk.AccAddress) (vouch types.Vouch, found bool, err error)

GetVouchByVouched returns the vouch if one exists

func (Keeper) GetVouchesByVoucher

func (k Keeper) GetVouchesByVoucher(
	ctx sdk.Context, voucher sdk.AccAddress) (vouches []types.Vouch)

GetVouchesByVoucher returns the vouch if one exists

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)

InitGenesis initializes the curating module state

func (Keeper) IsVouched

func (k Keeper) IsVouched(
	ctx sdk.Context, address sdk.AccAddress) (vouched bool)

IsVouched returns whether the given address has been previously vouched for

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) Params

Params returns module params

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the user parameters to the param space.

Jump to

Keyboard shortcuts

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