cosmos-sdk: Index | Files

package keeper

import ""


Package Files

genesis.go keeper.go params.go

type Keeper Uses

type Keeper struct {
    // contains filtered or unexported fields

Keeper - crisis keeper

func NewKeeper Uses

func NewKeeper(
    paramSpace paramtypes.Subspace, invCheckPeriod uint, supplyKeeper types.SupplyKeeper,
    feeCollectorName string,
) Keeper

NewKeeper creates a new Keeper object

func (Keeper) AssertInvariants Uses

func (k Keeper) AssertInvariants(ctx sdk.Context)

AssertInvariants asserts all registered invariants. If any invariant fails, the method panics.

func (Keeper) ExportGenesis Uses

func (k Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState

ExportGenesis returns a GenesisState for a given context and keeper.

func (Keeper) GetConstantFee Uses

func (k Keeper) GetConstantFee(ctx sdk.Context) (constantFee sdk.Coin)

GetConstantFee get's the constant fee from the paramSpace

func (Keeper) InitGenesis Uses

func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)

new crisis genesis

func (Keeper) InvCheckPeriod Uses

func (k Keeper) InvCheckPeriod() uint

InvCheckPeriod returns the invariant checks period.

func (Keeper) Invariants Uses

func (k Keeper) Invariants() []sdk.Invariant

Invariants returns all the registered Crisis keeper invariants.

func (Keeper) Logger Uses

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (*Keeper) RegisterRoute Uses

func (k *Keeper) RegisterRoute(moduleName, route string, invar sdk.Invariant)

RegisterRoute register the routes for each of the invariants

func (Keeper) Routes Uses

func (k Keeper) Routes() []types.InvarRoute

Routes - return the keeper's invariant routes

func (Keeper) SendCoinsFromAccountToFeeCollector Uses

func (k Keeper) SendCoinsFromAccountToFeeCollector(ctx sdk.Context, senderAddr sdk.AccAddress, amt sdk.Coins) error

SendCoinsFromAccountToFeeCollector transfers amt to the fee collector account.

func (Keeper) SetConstantFee Uses

func (k Keeper) SetConstantFee(ctx sdk.Context, constantFee sdk.Coin)

GetConstantFee set's the constant fee in the paramSpace

Package keeper imports 6 packages (graph) and is imported by 2 packages. Updated 2020-07-15. Refresh now. Tools for package owners.