Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddSuper(ctx sdk.Context, super types.Super)
- func (k Keeper) Authorized(ctx sdk.Context, addr sdk.AccAddress) bool
- func (k Keeper) DeleteSuper(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) GetSuper(ctx sdk.Context, addr sdk.AccAddress) (super types.Super, found bool)
- func (k Keeper) IterateSupers(ctx sdk.Context, op func(super types.Super) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Supers(c context.Context, req *types.QuerySupersRequest) (*types.QuerySupersResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the guardian MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the guardian store
func NewKeeper ¶
func NewKeeper(cdc codec.Codec, key storetypes.StoreKey) Keeper
NewKeeper returns a guardian keeper
func (Keeper) AddSuper ¶
Add a super, only a existing super can add a new and the super is not existed
func (Keeper) Authorized ¶
func (Keeper) DeleteSuper ¶
func (k Keeper) DeleteSuper(ctx sdk.Context, address sdk.AccAddress)
DeleteSuper delete the stored super
func (Keeper) IterateSupers ¶
IterateSupers iterates through all supers
func (Keeper) Supers ¶
func (k Keeper) Supers(c context.Context, req *types.QuerySupersRequest) (*types.QuerySupersResponse, error)
Supers implements the Query/Supers gRPC method
Click to show internal directories.
Click to hide internal directories.