Documentation ¶
Index ¶
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) Beam(c context.Context, req *types.QueryGetBeamRequest) (*types.QueryGetBeamResponse, error)
- func (k Keeper) Beams(c context.Context, req *types.QueryFetchBeamsRequest) (*types.QueryFetchBeamsResponse, error)
- func (k Keeper) BeamsIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) ClaimBeam(ctx sdk.Context, msg types.MsgClaimBeam) error
- func (k Keeper) ClosedBeamsQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetBeam(ctx sdk.Context, key string) (types.Beam, error)
- func (k Keeper) GetBeamAccount(ctx sdk.Context) authtypes.ModuleAccountI
- func (k Keeper) HasBeam(ctx sdk.Context, beamID string) bool
- func (k Keeper) InsertClosedBeamQueue(ctx sdk.Context, beamID string)
- func (k Keeper) InsertOpenBeamQueue(ctx sdk.Context, beamID string)
- func (k Keeper) IterateBeams(ctx sdk.Context, cb func(beam types.Beam) (stop bool))
- func (k Keeper) IterateClosedBeamsQueue(ctx sdk.Context, cb func(beam types.Beam) (stop bool))
- func (k Keeper) IterateOpenBeamsQueue(ctx sdk.Context, cb func(beam types.Beam) (stop bool))
- func (k Keeper) ListBeams(ctx sdk.Context) (beams []types.Beam)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) OpenBeam(ctx sdk.Context, msg types.MsgOpenBeam) error
- func (k Keeper) OpenBeamsQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) RemoveFromClosedBeamQueue(ctx sdk.Context, beamID string)
- func (k Keeper) RemoveFromOpenBeamQueue(ctx sdk.Context, beamID string)
- func (k Keeper) SetBeam(ctx sdk.Context, beamID string, beam *types.Beam)
- func (k Keeper) UpdateBeam(ctx sdk.Context, msg types.MsgUpdateBeam) error
- func (k Keeper) UpdateBeamStatus(ctx sdk.Context, beamID string, newStatus types.BeamState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
NewQuerier Return a querier instance
Types ¶
type Keeper ¶
type Keeper struct { AuthKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, auth authkeeper.AccountKeeper, bank bankkeeper.Keeper) *Keeper
NewKeeper Create a new keeper instance and return the pointer
func (Keeper) Beam ¶
func (k Keeper) Beam(c context.Context, req *types.QueryGetBeamRequest) (*types.QueryGetBeamResponse, error)
func (Keeper) Beams ¶
func (k Keeper) Beams(c context.Context, req *types.QueryFetchBeamsRequest) (*types.QueryFetchBeamsResponse, error)
func (Keeper) BeamsIterator ¶
BeamsIterator Return a ready to use iterator for the whole beams queue
func (Keeper) ClosedBeamsQueueIterator ¶
ClosedBeamsQueueIterator Return a ready to use iterator for the closed only beams queue
func (Keeper) GetBeamAccount ¶
func (k Keeper) GetBeamAccount(ctx sdk.Context) authtypes.ModuleAccountI
GetBeamAccount Return the beam module account interface
func (Keeper) InsertClosedBeamQueue ¶
InsertClosedBeamQueue Insert a beam ID inside the closed beam queue
func (Keeper) InsertOpenBeamQueue ¶
InsertOpenBeamQueue Insert a beam ID inside the active beam queue
func (Keeper) IterateBeams ¶
IterateBeams Iterate over the whole beam queue
func (Keeper) IterateClosedBeamsQueue ¶
IterateClosedBeamsQueue Iterate over the closed only beams queue
func (Keeper) IterateOpenBeamsQueue ¶
IterateOpenBeamsQueue Iterate over the open only beams queue
func (Keeper) OpenBeamsQueueIterator ¶
OpenBeamsQueueIterator Return a ready to use iterator for the open only beams queue
func (Keeper) RemoveFromClosedBeamQueue ¶
RemoveFromClosedBeamQueue Remove a beam ID from the closed beam queue
func (Keeper) RemoveFromOpenBeamQueue ¶
RemoveFromOpenBeamQueue Remove a beam ID from the active beam queue
func (Keeper) UpdateBeam ¶
UpdateBeam Update a beam instance and proceeds any require state machine update