Documentation
¶
Index ¶
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) AddProfiler(ctx sdk.Context, guardian types.Guardian)
- func (k Keeper) AddTrustee(ctx sdk.Context, guardian exported.GuardianI)
- 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 exported.GuardianI, found bool)
- func (k Keeper) GetTrustee(ctx sdk.Context, addr sdk.AccAddress) (guardian exported.GuardianI, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ProfilersIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) TrusteesIterator(ctx sdk.Context) sdk.Iterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
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) 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 exported.GuardianI, found bool)
GetProfiler retrieves the profiler by specified address
func (Keeper) GetTrustee ¶
func (k Keeper) GetTrustee(ctx sdk.Context, addr sdk.AccAddress) (guardian exported.GuardianI, found bool)
GetTrustee retrieves the trustee by specified address
func (Keeper) ProfilersIterator ¶
ProfilersIterator gets all profilers
Click to show internal directories.
Click to hide internal directories.