Documentation
¶
Index ¶
- func CoordinatorAddrNotFoundInvariant(k Keeper) sdk.Invariant
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQueryServerImpl(k Keeper) types.QueryServer
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- type Keeper
- func (k Keeper) AddressCodec() address.Codec
- func (k Keeper) AppendCoordinator(ctx context.Context, coordinator types.Coordinator) (uint64, error)
- func (k Keeper) CoordinatorByAddresses(ctx context.Context) ([]types.CoordinatorByAddress, error)
- func (k Keeper) CoordinatorIDFromAddress(ctx context.Context, address sdk.AccAddress) (uint64, error)
- func (k Keeper) Coordinators(ctx context.Context) ([]types.Coordinator, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetCoordinator(ctx context.Context, coordinatorID uint64) (types.Coordinator, error)
- func (k Keeper) GetCoordinatorByAddress(ctx context.Context, address sdk.AccAddress) (types.CoordinatorByAddress, error)
- func (k Keeper) GetValidator(ctx context.Context, address string) (types.Validator, error)
- func (k Keeper) GetValidatorByOperatorAddress(ctx context.Context, operatorAddress string) (types.ValidatorByOperatorAddress, error)
- func (k Keeper) ListValidator(ctx context.Context) ([]types.Validator, error)
- func (k Keeper) Logger() log.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoordinatorAddrNotFoundInvariant ¶
CoordinatorAddrNotFoundInvariant invariant that checks if the `CoordinateByAddress` is associated with a coordinator
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) types.QueryServer
NewQueryServerImpl returns an implementation of the QueryServer interface for the provided Keeper.
func RegisterInvariants ¶
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
RegisterInvariants registers all module invariants
Types ¶
type Keeper ¶
type Keeper struct { Schema collections.Schema Params collections.Item[types.Params] CoordinatorSeq collections.Sequence Coordinator collections.Map[uint64, types.Coordinator] CoordinatorByAddress collections.Map[sdk.AccAddress, types.CoordinatorByAddress] Validator collections.Map[string, types.Validator] ValidatorByOperatorAddress collections.Map[string, types.ValidatorByOperatorAddress] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, addressCodec address.Codec, storeService store.KVStoreService, logger log.Logger, authority string, ) Keeper
func (Keeper) AddressCodec ¶
AddressCodec returns the address codec.
func (Keeper) AppendCoordinator ¶
func (k Keeper) AppendCoordinator(ctx context.Context, coordinator types.Coordinator) (uint64, error)
AppendCoordinator appends a coordinator in the store with a new coordinator id and update the count
func (Keeper) CoordinatorByAddresses ¶
CoordinatorByAddresses returns all CoordinatorByAddress.
func (Keeper) CoordinatorIDFromAddress ¶
func (Keeper) Coordinators ¶
Coordinators returns all Coordinator.
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (Keeper) GetCoordinator ¶
func (Keeper) GetCoordinatorByAddress ¶
func (k Keeper) GetCoordinatorByAddress(ctx context.Context, address sdk.AccAddress) (types.CoordinatorByAddress, error)
GetCoordinatorByAddress returns the CoordinatorByAddress associated to an address returns ErrCoordAddressNotFound if not found in the store if the corresponding Coordinator is not found or is inactive, returns ErrCritical
func (Keeper) GetValidator ¶
func (Keeper) GetValidatorByOperatorAddress ¶
func (Keeper) ListValidator ¶
ListValidator returns all Validator.