Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NonNegativeCoinStateInvariant(k Keeper) sdk.Invariant
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- func StateSumBalanceCheckInvariant(k Keeper) sdk.Invariant
- type Keeper
- func (k Keeper) BurnCoinsForSpecifiedModuleAccount(ctx sdk.Context, coins sdk.Coins, moduleAccountName string) error
- func (k Keeper) GetAccountAddressModuleAccount(ctx sdk.Context, accountName string) sdk.AccAddress
- func (k Keeper) GetAccountCoins(ctx sdk.Context, account sdk.AccAddress) sdk.Coins
- func (k Keeper) GetAccountCoinsForModuleAccount(ctx sdk.Context, accountName string) sdk.Coins
- func (k Keeper) GetAllStates(ctx sdk.Context) (list []types.State)
- func (k Keeper) GetBurnState(ctx sdk.Context) (remains types.State, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) GetState(ctx sdk.Context, stateKey string) (remains types.State, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PrepareCoinsToDistribute(sources []*types.Account, ctx sdk.Context, states []types.State, ...) sdk.DecCoins
- func (k Keeper) SendCoinsFromModuleAccount(ctx sdk.Context, coins sdk.Coins, moduleFrom string, account sdk.AccAddress) error
- func (k Keeper) SendCoinsFromModuleToModule(ctx sdk.Context, coins sdk.Coins, moduleFrom string, moduleTo string) error
- func (k Keeper) SendCoinsFromStates(ctx sdk.Context, states []types.State)
- func (k Keeper) SendCoinsToModuleAccount(ctx sdk.Context, coins sdk.Coins, account sdk.AccAddress, moduleTo string) error
- func (k Keeper) SetParams(ctx sdk.Context, p types.Params) error
- func (k Keeper) SetState(ctx sdk.Context, state types.State)
- func (k Keeper) StartDistributionProcess(ctx sdk.Context, states *[]types.State, coinsToDistributeDec sdk.DecCoins, ...) (localRemains *[]types.State, distributionEvents []*types.EventDistribution, ...)
- func (k Keeper) States(goCtx context.Context, req *types.QueryStatesRequest) (*types.QueryStatesResponse, error)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NonNegativeCoinStateInvariant ¶
NonNegativeCoinStateInvariant checks that any coin state is negative
func RegisterInvariants ¶
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
RegisterInvariants register cfedistribution invariants
func StateSumBalanceCheckInvariant ¶
StateSumBalanceCheckInvariant checks that sum on state equal module account balance
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, bankKeeper types.BankKeeper, accountKeeper types.AccountKeeper, authority string, ) *Keeper
func (Keeper) BurnCoinsForSpecifiedModuleAccount ¶
func (Keeper) GetAccountAddressModuleAccount ¶
func (Keeper) GetAccountCoins ¶
func (Keeper) GetAccountCoinsForModuleAccount ¶
func (Keeper) GetAllStates ¶
GetAllStates returns all States
func (Keeper) GetBurnState ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) PrepareCoinsToDistribute ¶
func (Keeper) SendCoinsFromModuleAccount ¶
func (Keeper) SendCoinsFromModuleToModule ¶
func (Keeper) SendCoinsFromStates ¶
func (Keeper) SendCoinsToModuleAccount ¶
func (Keeper) StartDistributionProcess ¶
func (k Keeper) StartDistributionProcess(ctx sdk.Context, states *[]types.State, coinsToDistributeDec sdk.DecCoins, subDistributor types.SubDistributor) (localRemains *[]types.State, distributionEvents []*types.EventDistribution, burnEvent *types.EventDistributionBurn)
func (Keeper) States ¶
func (k Keeper) States(goCtx context.Context, req *types.QueryStatesRequest) (*types.QueryStatesResponse, error)
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶
NewMigrator returns a new Migrator.
func (Migrator) Migrate1to2 ¶
Migrate1to2 migrates from version 1 to 2.
Click to show internal directories.
Click to hide internal directories.