keeper

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	bk types.BankKeeper,
	commitmentKeeper *commitmentkeeper.Keeper,
	assetProfileKeeper types.AssetProfileKeeper,
) *Keeper

func (Keeper) AllDebts

func (k Keeper) AllDebts(ctx sdk.Context) []types.Debt

func (Keeper) BeginBlocker

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

func (Keeper) Borrow

func (k Keeper) Borrow(ctx sdk.Context, addr sdk.AccAddress, amount sdk.Coin) error

func (Keeper) BorrowRatio added in v0.15.0

func (Keeper) DeleteDebt

func (k Keeper) DeleteDebt(ctx sdk.Context, debt types.Debt)

func (Keeper) GetDebt

func (k Keeper) GetDebt(ctx sdk.Context, addr sdk.AccAddress) types.Debt

func (Keeper) GetEpochLength

func (k Keeper) GetEpochLength(ctx sdk.Context) int64

func (Keeper) GetEpochPosition

func (k Keeper) GetEpochPosition(ctx sdk.Context, epochLength int64) int64

get position of current block in epoch

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) InterestRateComputation

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

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) Repay

func (k Keeper) Repay(ctx sdk.Context, addr sdk.AccAddress, amount sdk.Coin) error

func (Keeper) SetDebt

func (k Keeper) SetDebt(ctx sdk.Context, debt types.Debt)

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) UpdateInterestStacked

func (k Keeper) UpdateInterestStacked(ctx sdk.Context, debt types.Debt) types.Debt

func (Keeper) UpdateInterestStackedByAddress

func (k Keeper) UpdateInterestStackedByAddress(ctx sdk.Context, addr sdk.AccAddress) types.Debt

Jump to

Keyboard shortcuts

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