Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec
- func (k Keeper) Burn(ctx sdk.Context, address string, amount sdk.Coins) error
- func (k Keeper) GetAllMinterStateHistory(ctx sdk.Context) (list []*types.MinterState)
- func (k Keeper) GetCollectorName() string
- func (k Keeper) GetCurrentInflation(ctx sdk.Context) (sdk.Dec, error)
- func (k Keeper) GetMinterState(ctx sdk.Context) (minter types.MinterState)
- func (k Keeper) GetMinterStateHistory(ctx sdk.Context, sequenceId uint32) (state types.MinterState, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) Inflation(goCtx context.Context, req *types.QueryInflationRequest) (*types.QueryInflationResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MarshalConfig(minterConfig types.MinterConfigI) ([]byte, error)
- func (k Keeper) Mint(ctx sdk.Context) (math.Int, error)
- func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error
- func (k Keeper) MintDenom(ctx sdk.Context) string
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SendMintedCoins(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) SetMinterState(ctx sdk.Context, minter types.MinterState)
- func (k Keeper) SetMinterStateHistory(ctx sdk.Context, state types.MinterState)
- func (k Keeper) SetParams(ctx sdk.Context, p types.Params) error
- func (k Keeper) State(goCtx context.Context, req *types.QueryStateRequest) (*types.QueryStateResponse, error)
- func (k Keeper) UnmarshalConfig(bz []byte) (types.MinterConfigI, error)
- func (k Keeper) UpdateParams(ctx sdk.Context, authority string, params types.Params) 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.
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, stakingKeeper types.StakingKeeper, collectorName string, authority string, ) *Keeper
func (Keeper) BondedRatio ¶
BondedRatio implements an alias call to the underlying staking keeper's BondedRatio to be used in BeginBlocker.
func (Keeper) GetAllMinterStateHistory ¶
func (k Keeper) GetAllMinterStateHistory(ctx sdk.Context) (list []*types.MinterState)
GetAllMinterStateHistory returns all historical minter states for ended Minter
func (Keeper) GetCollectorName ¶
func (Keeper) GetCurrentInflation ¶
func (Keeper) GetMinterState ¶
func (k Keeper) GetMinterState(ctx sdk.Context) (minter types.MinterState)
get the minter
func (Keeper) GetMinterStateHistory ¶
func (k Keeper) GetMinterStateHistory(ctx sdk.Context, sequenceId uint32) (state types.MinterState, found bool)
get the vesting types
func (Keeper) Inflation ¶
func (k Keeper) Inflation(goCtx context.Context, req *types.QueryInflationRequest) (*types.QueryInflationResponse, error)
func (Keeper) MarshalConfig ¶ added in v1.2.0
func (k Keeper) MarshalConfig(minterConfig types.MinterConfigI) ([]byte, error)
func (Keeper) MintCoins ¶
MintCoins implements an alias call to the underlying supply keeper's MintCoins to be used in BeginBlocker.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SendMintedCoins ¶ added in v1.1.0
SendMintedCoins implements an alias call to the underlying supply keeper's SendMintedCoins to be used in BeginBlocker.
func (Keeper) SetMinterState ¶
func (k Keeper) SetMinterState(ctx sdk.Context, minter types.MinterState)
set the minter
func (Keeper) SetMinterStateHistory ¶
func (k Keeper) SetMinterStateHistory(ctx sdk.Context, state types.MinterState)
set the vesting types
func (Keeper) State ¶
func (k Keeper) State(goCtx context.Context, req *types.QueryStateRequest) (*types.QueryStateResponse, error)
func (Keeper) UnmarshalConfig ¶ added in v1.2.0
func (k Keeper) UnmarshalConfig(bz []byte) (types.MinterConfigI, error)
type Migrator ¶ added in v1.1.0
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶ added in v1.1.0
NewMigrator returns a new Migrator.
func (Migrator) Migrate1to2 ¶ added in v1.1.0
Migrate1to2 migrates from version 1 to 2.