Documentation ¶
Index ¶
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) DistributeRewards(ctx sdk.Context) error
- func (k Keeper) GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
- func (k Keeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
- func (k Keeper) GetModuleAccountAddress(ctx sdk.Context, name string) sdk.AccAddress
- func (k Keeper) GetNextSequence(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetState(ctx sdk.Context) types.State
- func (k Keeper) GrabCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) IsAllowedMonitoringAccount(ctx sdk.Context, addr sdk.AccAddress) bool
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SendCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) SendCoinsToRewardDistributor(ctx sdk.Context, amt sdk.Coins) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetState(ctx sdk.Context, state types.State)
- func (k Keeper) State(c context.Context, req *types.QueryStateRequest) (*types.QueryStateResponse, error)
- func (k Keeper) StoreRewardCoins(ctx sdk.Context, amt sdk.Coins) error
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
Types ¶
type Keeper ¶
type Keeper struct { PushAction vm.ActionPusher // contains filtered or unexported fields }
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, key storetypes.StoreKey, paramSpace paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, rewardDistributorName string, pushAction vm.ActionPusher, ) Keeper
NewKeeper creates a new vbank Keeper instance
func (Keeper) DistributeRewards ¶
DistributeRewards drives the rewards state machine.
func (Keeper) GetAllBalances ¶
func (Keeper) GetBalance ¶
func (Keeper) GetModuleAccountAddress ¶
func (Keeper) IsAllowedMonitoringAccount ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params queries params of distribution module
func (Keeper) SendCoinsToRewardDistributor ¶
func (Keeper) State ¶
func (k Keeper) State(c context.Context, req *types.QueryStateRequest) (*types.QueryStateResponse, error)
State queries state of distribution module
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator handles in-place store migrations.
func NewMigrator ¶
NewMigrator creates a new Migrator based on the keeper.
Click to show internal directories.
Click to hide internal directories.