Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AllDebts(ctx sdk.Context) []types.Debt
- func (k Keeper) BeginBlocker(ctx sdk.Context)
- func (k Keeper) Borrow(ctx sdk.Context, addr sdk.AccAddress, amount sdk.Coin) error
- func (k Keeper) BorrowRatio(goCtx context.Context, req *types.QueryBorrowRatioRequest) (*types.QueryBorrowRatioResponse, error)
- func (k Keeper) DeleteDebt(ctx sdk.Context, debt types.Debt)
- func (k Keeper) GetDebt(ctx sdk.Context, addr sdk.AccAddress) types.Debt
- func (k Keeper) GetEpochLength(ctx sdk.Context) int64
- func (k Keeper) GetEpochPosition(ctx sdk.Context, epochLength int64) int64
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) InterestRateComputation(ctx sdk.Context) sdk.Dec
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Repay(ctx sdk.Context, addr sdk.AccAddress, amount sdk.Coin) error
- func (k Keeper) SetDebt(ctx sdk.Context, debt types.Debt)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) UpdateInterestStacked(ctx sdk.Context, debt types.Debt) types.Debt
- func (k Keeper) UpdateInterestStackedByAddress(ctx sdk.Context, addr sdk.AccAddress) types.Debt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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) BeginBlocker ¶
func (Keeper) BorrowRatio ¶ added in v0.15.0
func (k Keeper) BorrowRatio(goCtx context.Context, req *types.QueryBorrowRatioRequest) (*types.QueryBorrowRatioResponse, error)
func (Keeper) GetEpochPosition ¶
get position of current block in epoch
func (Keeper) InterestRateComputation ¶
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) UpdateInterestStacked ¶
func (Keeper) UpdateInterestStackedByAddress ¶
Click to show internal directories.
Click to hide internal directories.