Documentation ¶
Index ¶
- func GetCoordinatorIDBytes(id uint64) []byte
- func GetCoordinatorIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- 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, found bool)
- 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) GetCoordinator(ctx sdk.Context, id uint64) types.Coordinator
- func (k Keeper) GetCoordinatorAddressFromID(ctx sdk.Context, id uint64) (string, bool)
- func (k Keeper) GetCoordinatorByAddress(ctx sdk.Context, address string) (val types.CoordinatorByAddress, found bool)
- func (k Keeper) GetCoordinatorCount(ctx sdk.Context) uint64
- func (k Keeper) GetValidator(ctx sdk.Context, address string) (val types.Validator, found bool)
- func (k Keeper) HasCoordinator(ctx sdk.Context, id uint64) 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) RemoveValidator(ctx sdk.Context, address string)
- func (k Keeper) SetCoordinator(ctx sdk.Context, coordinator types.Coordinator)
- func (k Keeper) SetCoordinatorByAddress(ctx sdk.Context, coordinatorByAddress types.CoordinatorByAddress)
- func (k Keeper) SetCoordinatorCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetValidator(ctx sdk.Context, validator types.Validator)
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCoordinatorIDBytes ¶
GetCoordinatorIDBytes returns the byte representation of the ID
func GetCoordinatorIDFromBytes ¶
GetCoordinatorIDFromBytes returns ID in uint64 format from a byte array
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) AppendCoordinator ¶
AppendCoordinator appends a coordinator in the store with a new id and update the count
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 ¶
func (k Keeper) CoordinatorIDFromAddress( ctx sdk.Context, address string, ) (id uint64, found bool)
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) GetCoordinator ¶
GetCoordinator returns a coordinator from its id
func (Keeper) GetCoordinatorAddressFromID ¶
GetCoordinatorAddressFromID returns a coordinator address from its id
func (Keeper) GetCoordinatorByAddress ¶
func (k Keeper) GetCoordinatorByAddress( ctx sdk.Context, address string, ) (val types.CoordinatorByAddress, found bool)
GetCoordinatorByAddress returns a coordinatorByAddress from its index
func (Keeper) GetCoordinatorCount ¶
GetCoordinatorCount get the total number of Coordinators
func (Keeper) GetValidator ¶
GetValidator returns a validator from its index
func (Keeper) HasCoordinator ¶
HasCoordinator checks if the coordinator exists in the store
func (Keeper) RemoveCoordinator ¶
RemoveCoordinator removes a coordinator from the store
func (Keeper) RemoveCoordinatorByAddress ¶
RemoveCoordinatorByAddress removes a coordinatorByAddress from the store
func (Keeper) RemoveValidator ¶
RemoveValidator removes a validator 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) SetCoordinatorCount ¶
SetCoordinatorCount set the total number of coordinator
func (Keeper) SetValidator ¶
SetValidator set a specific validator 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)
Source Files ¶
- coordinator.go
- coordinator_by_address.go
- grpc_query.go
- grpc_query_coordinator.go
- grpc_query_coordinator_by_address.go
- grpc_query_validator.go
- keeper.go
- msg_server.go
- msg_server_create_coordinator.go
- msg_server_delete_coordinator.go
- msg_server_delete_validator.go
- msg_server_update_coordinator_address.go
- msg_server_update_coordinator_description.go
- msg_server_update_validator_description.go
- validator.go