keeper

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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,
	baseDenom string,
) *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) GetBaseFee

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

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