keeper

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndBlocker added in v0.1.0

func EndBlocker(ctx sdk.Context, k Keeper, req abci.RequestEndBlock) []abci.ValidatorUpdate

Types

type Keeper

type Keeper struct {
	// 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.BinaryCodec,
	storeKey sdkstore.StoreKey,
	ps paramtypes.Subspace,
	bankKeeper keeper.Keeper,
	coinKeeper types.CoinKeeper,
	authKeeper types.AccountKeeper,
	baseDenom string,
	calcFunc types.CalculateCommissionFunc,
) *Keeper

NewKeeper creates new instances of the nft Keeper

func (Keeper) AddTransientGasWanted

func (k Keeper) AddTransientGasWanted(_ sdk.Context, _ uint64) (uint64, error)

func (Keeper) BaseFee

BaseFee implements the Query/BaseFee gRPC method

func (Keeper) BlockGas

BlockGas implements the Query/BlockGas gRPC method

func (Keeper) CalculateCommission added in v0.1.0

func (Keeper) GetBaseFee

func (k Keeper) GetBaseFee(ctx sdk.Context) *big.Int

func (Keeper) GetBaseFeeEnabled added in v0.1.0

func (k Keeper) GetBaseFeeEnabled(ctx sdk.Context) bool

func (Keeper) GetMinGasPrice

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

func (*Keeper) GetModuleParams

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

GetParams returns the total set of the module parameters.

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) feemarkettypes.Params

func (*Keeper) GetPrice

func (k *Keeper) GetPrice(
	ctx sdk.Context,
	denom string,
	quote string,
) (types.CoinPrice, error)

func (*Keeper) GetPrices

func (k *Keeper) GetPrices(
	ctx sdk.Context,
) ([]types.CoinPrice, error)

func (*Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) Params

Params implements the Query/Params gRPC method

func (*Keeper) SavePrice

func (k *Keeper) SavePrice(
	ctx sdk.Context,
	price types.CoinPrice,
) error

func (*Keeper) SetModuleParams

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

SetParams sets the module parameters to the param space.

Jump to

Keyboard shortcuts

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