Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func ParamKeyTable() paramtypes.KeyTable
- type Keeper
- func (k Keeper) CanVouch(ctx sdk.Context, address sdk.AccAddress) (can bool)
- func (k Keeper) CreateVouch(ctx sdk.Context, voucher, vouched sdk.AccAddress, comment string) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetVouchByVouched(ctx sdk.Context, vouched sdk.AccAddress) (vouch types.Vouch, found bool, err error)
- func (k Keeper) GetVouchesByVoucher(ctx sdk.Context, voucher sdk.AccAddress) (vouches []types.Vouch)
- func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
- func (k Keeper) IsVouched(ctx sdk.Context, address sdk.AccAddress) (vouched bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the user MsgServer interface for the provided Keeper.
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) 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) 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 ¶
IsVouched returns whether the given address has been previously vouched for
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns module params
Click to show internal directories.
Click to hide internal directories.