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) BeamsOpenQueue(c context.Context, req *types.QueryFetchBeamsOpenQueueRequest) (*types.QueryFetchBeamsOpenQueueResponse, error)
- func (k Keeper) ClaimBeam(ctx sdk.Context, msg types.MsgClaimBeam) error
- func (k Keeper) ClosedBeamsQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) CreateBeamModuleAccount(ctx sdk.Context, amount sdk.Coin)
- func (k Keeper) GetBeam(ctx sdk.Context, key string) (types.Beam, error)
- func (k Keeper) GetBeamAccount(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) GetBeamAccountBalance(ctx sdk.Context) sdk.Coin
- func (k Keeper) GetBeamIDsFromBlockQueue(ctx sdk.Context, height int) []string
- func (k Keeper) HasBeam(ctx sdk.Context, beamID string) bool
- func (k Keeper) InsertClosedBeamQueue(ctx sdk.Context, beamID string)
- func (k Keeper) InsertOpenBeamByBlockQueue(ctx sdk.Context, height int, 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) IterateOpenBeamsByBlockQueue(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) ListBeamsFromClosedQueue(ctx sdk.Context) (beams []*types.Beam)
- func (k Keeper) ListBeamsFromOldOpenQueue(ctx sdk.Context) (beams []*types.Beam)
- func (k Keeper) ListBeamsFromOpenQueue(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) OpenBeamsByBlockQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) OpenBeamsQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) RemoveFromClosedBeamQueue(ctx sdk.Context, beamID string)
- func (k Keeper) RemoveFromOpenBeamByBlockQueue(ctx sdk.Context, height int, 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 StakingKeeper stakingkeeper.Keeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, auth authkeeper.AccountKeeper, bank bankkeeper.Keeper, sk stakingkeeper.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) BeamsOpenQueue ¶ added in v1.1.0
func (k Keeper) BeamsOpenQueue(c context.Context, req *types.QueryFetchBeamsOpenQueueRequest) (*types.QueryFetchBeamsOpenQueueResponse, error)
func (Keeper) ClosedBeamsQueueIterator ¶
ClosedBeamsQueueIterator Return a ready to use iterator for the closed only beams queue
func (Keeper) CreateBeamModuleAccount ¶ added in v1.0.3
CreateBeamModuleAccount create the module account
func (Keeper) GetBeamAccount ¶
func (k Keeper) GetBeamAccount(ctx sdk.Context) sdk.AccAddress
GetBeamAccount Return the beam module account interface
func (Keeper) GetBeamAccountBalance ¶ added in v1.0.3
GetBeamAccountBalance gets the airdrop coin balance of module account
func (Keeper) GetBeamIDsFromBlockQueue ¶ added in v1.1.0
GetBeamIDsFromBlockQueue Return a slice of beam IDs for a given height
func (Keeper) InsertClosedBeamQueue ¶
InsertClosedBeamQueue Insert a beam ID inside the closed beam queue
func (Keeper) InsertOpenBeamByBlockQueue ¶ added in v1.1.0
InsertOpenBeamByBlockQueue Insert a beam ID inside the by-block store entry
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) IterateOpenBeamsByBlockQueue ¶ added in v1.1.0
IterateOpenBeamsByBlockQueue Iterate over the open by block beams queue
func (Keeper) IterateOpenBeamsQueue ¶
IterateOpenBeamsQueue Iterate over the open only beams queue
func (Keeper) ListBeamsFromClosedQueue ¶ added in v1.1.2
ListBeamsFromClosedQueue Return a list of in store queue beams
func (Keeper) ListBeamsFromOldOpenQueue ¶ added in v1.1.2
ListBeamsFromOldOpenQueue Return a list of in store queue beams
func (Keeper) ListBeamsFromOpenQueue ¶ added in v1.1.2
func (Keeper) OpenBeamsByBlockQueueIterator ¶ added in v1.1.0
OpenBeamsByBlockQueueIterator Return a ready to use iterator for the open by block 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) RemoveFromOpenBeamByBlockQueue ¶ added in v1.1.0
RemoveFromOpenBeamByBlockQueue Remove a beam ID from the active beam queue by its height
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