Documentation
¶
Index ¶
- func EndBlocker(ctx sdk.Context, k Keeper, req abci.RequestEndBlock) []abci.ValidatorUpdate
- type Keeper
- func (k Keeper) AddTransientGasWanted(_ sdk.Context, _ uint64) (uint64, error)
- func (k Keeper) BaseFee(c context.Context, _ *feemarkettypes.QueryBaseFeeRequest) (*feemarkettypes.QueryBaseFeeResponse, error)
- func (k Keeper) BlockGas(c context.Context, _ *feemarkettypes.QueryBlockGasRequest) (*feemarkettypes.QueryBlockGasResponse, error)
- func (k Keeper) CalculateCommission(c context.Context, req *types.QueryCalculateCommissionRequest) (*types.QueryCalculateCommissionResponse, error)
- func (k Keeper) CoinPrice(c context.Context, req *types.QueryCoinPriceRequest) (*types.QueryCoinPriceResponse, error)
- func (k Keeper) CoinPrices(c context.Context, req *types.QueryCoinPricesRequest) (*types.QueryCoinPricesResponse, error)
- func (k Keeper) GetBaseFee(ctx sdk.Context) *big.Int
- func (k Keeper) GetBaseFeeEnabled(ctx sdk.Context) bool
- func (k Keeper) GetMinGasPrice(ctx sdk.Context) sdk.Dec
- func (k *Keeper) GetModuleParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetParams(ctx sdk.Context) feemarkettypes.Params
- func (k *Keeper) GetPrice(ctx sdk.Context, denom string, quote string) (types.CoinPrice, error)
- func (k *Keeper) GetPrices(ctx sdk.Context) ([]types.CoinPrice, error)
- func (k *Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ModuleParams(c context.Context, req *types.QueryModuleParamsRequest) (*types.QueryModuleParamsResponse, error)
- func (k Keeper) Params(c context.Context, _ *feemarkettypes.QueryParamsRequest) (*feemarkettypes.QueryParamsResponse, error)
- func (k *Keeper) SavePrice(ctx sdk.Context, price types.CoinPrice) error
- func (k *Keeper) SetModuleParams(ctx sdk.Context, params types.Params)
- func (k Keeper) UpdateCoinPrices(c context.Context, msg *types.MsgUpdateCoinPrices) (*types.MsgUpdateCoinPricesResponse, error)
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 (Keeper) BaseFee ¶
func (k Keeper) BaseFee(c context.Context, _ *feemarkettypes.QueryBaseFeeRequest) (*feemarkettypes.QueryBaseFeeResponse, error)
BaseFee implements the Query/BaseFee gRPC method
func (Keeper) BlockGas ¶
func (k Keeper) BlockGas(c context.Context, _ *feemarkettypes.QueryBlockGasRequest) (*feemarkettypes.QueryBlockGasResponse, error)
BlockGas implements the Query/BlockGas gRPC method
func (Keeper) CalculateCommission ¶ added in v0.1.0
func (k Keeper) CalculateCommission(c context.Context, req *types.QueryCalculateCommissionRequest) (*types.QueryCalculateCommissionResponse, error)
func (Keeper) CoinPrice ¶
func (k Keeper) CoinPrice(c context.Context, req *types.QueryCoinPriceRequest) (*types.QueryCoinPriceResponse, error)
func (Keeper) CoinPrices ¶
func (k Keeper) CoinPrices(c context.Context, req *types.QueryCoinPricesRequest) (*types.QueryCoinPricesResponse, error)
func (Keeper) GetBaseFeeEnabled ¶ added in v0.1.0
func (*Keeper) GetModuleParams ¶
GetParams returns the total set of the module parameters.
func (Keeper) ModuleParams ¶
func (k Keeper) ModuleParams(c context.Context, req *types.QueryModuleParamsRequest) (*types.QueryModuleParamsResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *feemarkettypes.QueryParamsRequest) (*feemarkettypes.QueryParamsResponse, error)
Params implements the Query/Params gRPC method
func (*Keeper) SetModuleParams ¶
SetParams sets the module parameters to the param space.
func (Keeper) UpdateCoinPrices ¶
func (k Keeper) UpdateCoinPrices(c context.Context, msg *types.MsgUpdateCoinPrices) (*types.MsgUpdateCoinPricesResponse, error)
Click to show internal directories.
Click to hide internal directories.