Documentation ¶
Index ¶
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) AddProfiler(ctx sdk.Context, guardian types.Guardian)
- func (k Keeper) AddTrustee(ctx sdk.Context, guardian types.Guardian)
- func (k Keeper) Authorized(ctx sdk.Context, addr sdk.AccAddress) bool
- func (k Keeper) DeleteProfiler(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) DeleteTrustee(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) GetProfiler(ctx sdk.Context, addr sdk.AccAddress) (guardian types.Guardian, found bool)
- func (k Keeper) GetTrustee(ctx sdk.Context, addr sdk.AccAddress) (guardian types.Guardian, found bool)
- func (k Keeper) IterateProfilers(ctx sdk.Context, op func(profiler types.Guardian) (stop bool))
- func (k Keeper) IterateTrustees(ctx sdk.Context, op func(trustee types.Guardian) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Profilers(c context.Context, req *types.QueryProfilersRequest) (*types.QueryProfilersResponse, error)
- func (k Keeper) Trustees(c context.Context, req *types.QueryTrusteesRequest) (*types.QueryTrusteesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
NewQuerier creates a querier for guardian REST endpoints
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the guardian store
func (Keeper) AddProfiler ¶
Add a profiler, only a existing profiler can add a new and the profiler is not existed
func (Keeper) AddTrustee ¶
AddTrustee add a trustee
func (Keeper) Authorized ¶
func (Keeper) DeleteProfiler ¶
func (k Keeper) DeleteProfiler(ctx sdk.Context, address sdk.AccAddress)
DeleteProfiler delete the stored profiler
func (Keeper) DeleteTrustee ¶
func (k Keeper) DeleteTrustee(ctx sdk.Context, address sdk.AccAddress)
DeleteTrustee delete the stored trustee
func (Keeper) GetProfiler ¶
func (k Keeper) GetProfiler(ctx sdk.Context, addr sdk.AccAddress) (guardian types.Guardian, found bool)
GetProfiler retrieves the profiler by specified address
func (Keeper) GetTrustee ¶
func (k Keeper) GetTrustee(ctx sdk.Context, addr sdk.AccAddress) (guardian types.Guardian, found bool)
GetTrustee retrieves the trustee by specified address
func (Keeper) IterateProfilers ¶
IterateProfilers iterates through all profilers
func (Keeper) IterateTrustees ¶
IterateTrustees iterates through all trustees
func (Keeper) Profilers ¶
func (k Keeper) Profilers(c context.Context, req *types.QueryProfilersRequest) (*types.QueryProfilersResponse, error)
Profilers implements the Query/Profilers gRPC method
func (Keeper) Trustees ¶
func (k Keeper) Trustees(c context.Context, req *types.QueryTrusteesRequest) (*types.QueryTrusteesResponse, error)
Trustees implements the Query/Trustees gRPC method
Click to show internal directories.
Click to hide internal directories.