Documentation ¶
Index ¶
- func CoordinatorAddrNotFoundInvariant(k Keeper) sdk.Invariant
- func GetCoordinatorIDBytes(id uint64) []byte
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- type Keeper
- func (k Keeper) AppendCoordinator(ctx sdk.Context, coordinator types.Coordinator) uint64
- func (k Keeper) Coordinator(c context.Context, req *types.QueryGetCoordinatorRequest) (*types.QueryGetCoordinatorResponse, error)
- func (k Keeper) CoordinatorAll(c context.Context, req *types.QueryAllCoordinatorRequest) (*types.QueryAllCoordinatorResponse, error)
- func (k Keeper) CoordinatorByAddress(c context.Context, req *types.QueryGetCoordinatorByAddressRequest) (*types.QueryGetCoordinatorByAddressResponse, error)
- func (k Keeper) CoordinatorIDFromAddress(ctx sdk.Context, address string) (id uint64, err error)
- func (k Keeper) GetAllCoordinator(ctx sdk.Context) (list []types.Coordinator)
- func (k Keeper) GetAllCoordinatorByAddress(ctx sdk.Context) (list []types.CoordinatorByAddress)
- func (k Keeper) GetAllValidator(ctx sdk.Context) (list []types.Validator)
- func (k Keeper) GetAllValidatorByOperatorAddress(ctx sdk.Context) (list []types.ValidatorByOperatorAddress)
- func (k Keeper) GetCoordinator(ctx sdk.Context, id uint64) (val types.Coordinator, found bool)
- func (k Keeper) GetCoordinatorByAddress(ctx sdk.Context, address string) (types.CoordinatorByAddress, error)
- func (k Keeper) GetCoordinatorCounter(ctx sdk.Context) uint64
- func (k Keeper) GetValidator(ctx sdk.Context, address string) (val types.Validator, found bool)
- func (k Keeper) GetValidatorByOperatorAddress(ctx sdk.Context, operatorAddress string) (val types.ValidatorByOperatorAddress, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RemoveCoordinator(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveCoordinatorByAddress(ctx sdk.Context, address string)
- func (k Keeper) RemoveValidatorByOperatorAddress(ctx sdk.Context, operatorAddress string)
- func (k Keeper) SetCoordinator(ctx sdk.Context, coordinator types.Coordinator)
- func (k Keeper) SetCoordinatorByAddress(ctx sdk.Context, coordinatorByAddress types.CoordinatorByAddress)
- func (k Keeper) SetCoordinatorCounter(ctx sdk.Context, counter uint64)
- func (k Keeper) SetValidator(ctx sdk.Context, validator types.Validator)
- func (k Keeper) SetValidatorByOperatorAddress(ctx sdk.Context, validatorByOperatorAddress types.ValidatorByOperatorAddress)
- func (k Keeper) Validator(c context.Context, req *types.QueryGetValidatorRequest) (*types.QueryGetValidatorResponse, error)
- func (k Keeper) ValidatorAll(c context.Context, req *types.QueryAllValidatorRequest) (*types.QueryAllValidatorResponse, error)
- func (k Keeper) ValidatorByOperatorAddress(c context.Context, req *types.QueryGetValidatorByOperatorAddressRequest) (*types.QueryGetValidatorByOperatorAddressResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoordinatorAddrNotFoundInvariant ¶ added in v0.2.0
CoordinatorAddrNotFoundInvariant invariant that checks if the `CoordinateByAddress` is associated with a coordinator
func GetCoordinatorIDBytes ¶
GetCoordinatorIDBytes returns the byte representation of the ID
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func RegisterInvariants ¶ added in v0.2.0
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
RegisterInvariants registers all module invariants
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ) *Keeper
func (Keeper) AppendCoordinator ¶
AppendCoordinator appends a coordinator in the store with a new id and update the counter
func (Keeper) Coordinator ¶
func (k Keeper) Coordinator(c context.Context, req *types.QueryGetCoordinatorRequest) (*types.QueryGetCoordinatorResponse, error)
func (Keeper) CoordinatorAll ¶
func (k Keeper) CoordinatorAll(c context.Context, req *types.QueryAllCoordinatorRequest) (*types.QueryAllCoordinatorResponse, error)
func (Keeper) CoordinatorByAddress ¶
func (k Keeper) CoordinatorByAddress(c context.Context, req *types.QueryGetCoordinatorByAddressRequest) (*types.QueryGetCoordinatorByAddressResponse, error)
func (Keeper) CoordinatorIDFromAddress ¶
CoordinatorIDFromAddress returns the coordinator id associated to an address
func (Keeper) GetAllCoordinator ¶
func (k Keeper) GetAllCoordinator(ctx sdk.Context) (list []types.Coordinator)
GetAllCoordinator returns all coordinator
func (Keeper) GetAllCoordinatorByAddress ¶
func (k Keeper) GetAllCoordinatorByAddress(ctx sdk.Context) (list []types.CoordinatorByAddress)
GetAllCoordinatorByAddress returns all coordinatorByAddress
func (Keeper) GetAllValidator ¶
GetAllValidator returns all validator
func (Keeper) GetAllValidatorByOperatorAddress ¶ added in v0.2.0
func (k Keeper) GetAllValidatorByOperatorAddress(ctx sdk.Context) (list []types.ValidatorByOperatorAddress)
GetAllValidatorByOperatorAddress returns all validatorByOperatorAddress
func (Keeper) GetCoordinator ¶
GetCoordinator returns a coordinator from its id
func (Keeper) GetCoordinatorByAddress ¶
func (k Keeper) GetCoordinatorByAddress(ctx sdk.Context, address string) (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) GetCoordinatorCounter ¶ added in v0.2.0
GetCoordinatorCounter get the total number of Coordinators
func (Keeper) GetValidator ¶
GetValidator returns a validator from its index
func (Keeper) GetValidatorByOperatorAddress ¶ added in v0.2.0
func (k Keeper) GetValidatorByOperatorAddress( ctx sdk.Context, operatorAddress string, ) (val types.ValidatorByOperatorAddress, found bool)
GetValidatorByOperatorAddress returns a validatorByOperatorAddress from its index
func (Keeper) RemoveCoordinator ¶
RemoveCoordinator removes a coordinator from the store
func (Keeper) RemoveCoordinatorByAddress ¶
RemoveCoordinatorByAddress removes a coordinatorByAddress from the store
func (Keeper) RemoveValidatorByOperatorAddress ¶ added in v0.2.0
RemoveValidatorByOperatorAddress removes a validatorByOperatorAddress from the store
func (Keeper) SetCoordinator ¶
func (k Keeper) SetCoordinator(ctx sdk.Context, coordinator types.Coordinator)
SetCoordinator set a specific coordinator in the store
func (Keeper) SetCoordinatorByAddress ¶
func (k Keeper) SetCoordinatorByAddress(ctx sdk.Context, coordinatorByAddress types.CoordinatorByAddress)
SetCoordinatorByAddress set a specific coordinatorByAddress in the store from its index
func (Keeper) SetCoordinatorCounter ¶ added in v0.2.0
SetCoordinatorCounter set the total number of coordinator
func (Keeper) SetValidator ¶
SetValidator set a specific validator in the store from its index
func (Keeper) SetValidatorByOperatorAddress ¶ added in v0.2.0
func (k Keeper) SetValidatorByOperatorAddress(ctx sdk.Context, validatorByOperatorAddress types.ValidatorByOperatorAddress)
SetValidatorByOperatorAddress set a specific validatorByOperatorAddress in the store from its index
func (Keeper) Validator ¶
func (k Keeper) Validator(c context.Context, req *types.QueryGetValidatorRequest) (*types.QueryGetValidatorResponse, error)
func (Keeper) ValidatorAll ¶
func (k Keeper) ValidatorAll(c context.Context, req *types.QueryAllValidatorRequest) (*types.QueryAllValidatorResponse, error)
func (Keeper) ValidatorByOperatorAddress ¶ added in v0.2.0
func (k Keeper) ValidatorByOperatorAddress(c context.Context, req *types.QueryGetValidatorByOperatorAddressRequest) ( *types.QueryGetValidatorByOperatorAddressResponse, error, )
Source Files ¶
- coordinator.go
- coordinator_by_address.go
- grpc.go
- grpc_coordinator.go
- grpc_coordinator_by_address.go
- grpc_validator.go
- grpc_validator_by_operator_address.go
- invariants.go
- keeper.go
- msg.go
- msg_add_validator_operator_address.go
- msg_create_coordinator.go
- msg_disable_coordinator.go
- msg_update_coordinator_address.go
- msg_update_coordinator_description.go
- msg_update_validator_description.go
- validator.go
- validator_by_operator_address.go