Documentation ¶
Index ¶
- func HandleMintProposal(ctx sdk.Context, k Keeper, c *types.MintProposal) error
- func NewMsgServer(keeper Keeper) types.MsgServer
- func NewQueryServer(keeper Keeper) types.QueryServer
- type Keeper
- func (k Keeper) Burn(ctx sdk.Context, addr sdk.AccAddress, coin sdk.Coin) error
- func (k Keeper) GetAverageSPBalance(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetSPWithdrawal(ctx sdk.Context, owner sdk.AccAddress, id string) (types.SPWithdrawal, bool)
- func (k Keeper) IsSupervisor(ctx sdk.Context, addr string) bool
- func (k Keeper) ListAddressesForGasRestore(ctx sdk.Context) []sdk.AccAddress
- func (k Keeper) ListAllWithdrawals(ctx sdk.Context) []types.SPWithdrawal
- func (k Keeper) ListWithdrawals(ctx sdk.Context, owner sdk.AccAddress) []types.SPWithdrawal
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Mint(ctx sdk.Context, addr sdk.AccAddress, coin sdk.Coin) error
- func (k Keeper) PrepareValidatorsReward(ctx sdk.Context)
- func (k Keeper) RestoreGas(ctx sdk.Context)
- func (k Keeper) RestoreGasForAddress(ctx sdk.Context, addr sdk.AccAddress, avgSPBalance sdk.Dec, ...)
- func (k Keeper) SetAddressToRestoreGas(ctx sdk.Context, addr sdk.AccAddress)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSPWithdrawal(ctx sdk.Context, w types.SPWithdrawal)
- func (k Keeper) WithdrawSP(ctx sdk.Context, timestamp uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleMintProposal ¶
func NewMsgServer ¶
NewMsgServer returns an implementation of the MsgServer interface for the provided Keeper.
func NewQueryServer ¶
func NewQueryServer(keeper Keeper) types.QueryServer
NewQueryServer returns an implementation of the QueryServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey storetypes.StoreKey, ps paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, feeCollectorName string, ) Keeper
func (Keeper) GetSPWithdrawal ¶
func (k Keeper) GetSPWithdrawal(ctx sdk.Context, owner sdk.AccAddress, id string) (types.SPWithdrawal, bool)
func (Keeper) ListAddressesForGasRestore ¶
func (k Keeper) ListAddressesForGasRestore(ctx sdk.Context) []sdk.AccAddress
func (Keeper) ListAllWithdrawals ¶
func (k Keeper) ListAllWithdrawals(ctx sdk.Context) []types.SPWithdrawal
func (Keeper) ListWithdrawals ¶
func (k Keeper) ListWithdrawals(ctx sdk.Context, owner sdk.AccAddress) []types.SPWithdrawal
func (Keeper) PrepareValidatorsReward ¶ added in v0.0.3
func (Keeper) RestoreGas ¶
func (Keeper) RestoreGasForAddress ¶
func (Keeper) SetAddressToRestoreGas ¶
func (k Keeper) SetAddressToRestoreGas(ctx sdk.Context, addr sdk.AccAddress)
func (Keeper) SetSPWithdrawal ¶
func (k Keeper) SetSPWithdrawal(ctx sdk.Context, w types.SPWithdrawal)
Click to show internal directories.
Click to hide internal directories.