keeper

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleMintProposal

func HandleMintProposal(ctx sdk.Context, k Keeper, c *types.MintProposal) error

func NewMsgServer

func NewMsgServer(keeper Keeper) types.MsgServer

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) Burn

func (k Keeper) Burn(ctx sdk.Context, addr sdk.AccAddress, coin sdk.Coin) error

func (Keeper) GetAverageSPBalance

func (k Keeper) GetAverageSPBalance(ctx sdk.Context) sdk.Dec

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams get all parameters as types.Params

func (Keeper) GetSPWithdrawal

func (k Keeper) GetSPWithdrawal(ctx sdk.Context, owner sdk.AccAddress, id string) (types.SPWithdrawal, bool)

func (Keeper) IsSupervisor

func (k Keeper) IsSupervisor(ctx sdk.Context, addr string) 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) Logger

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

func (Keeper) Mint

func (k Keeper) Mint(ctx sdk.Context, addr sdk.AccAddress, coin sdk.Coin) error

func (Keeper) PrepareValidatorsReward added in v0.0.3

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

func (Keeper) RestoreGas

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

func (Keeper) RestoreGasForAddress

func (k Keeper) RestoreGasForAddress(ctx sdk.Context, addr sdk.AccAddress, avgSPBalance sdk.Dec, params types.Params)

func (Keeper) SetAddressToRestoreGas

func (k Keeper) SetAddressToRestoreGas(ctx sdk.Context, addr sdk.AccAddress)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetSPWithdrawal

func (k Keeper) SetSPWithdrawal(ctx sdk.Context, w types.SPWithdrawal)

func (Keeper) WithdrawSP

func (k Keeper) WithdrawSP(ctx sdk.Context, timestamp uint64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL