Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AccountInterest(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) DeleteAllInterest(ctx sdk.Context)
- func (k Keeper) DeleteDebt(ctx sdk.Context, debt types.Debt)
- func (k Keeper) DeleteInterest(ctx sdk.Context, delBlock int64)
- func (k Keeper) GetAllDebts(ctx sdk.Context) []types.Debt
- func (k Keeper) GetAllInterest(ctx sdk.Context) []types.InterestBlock
- func (k Keeper) GetDebt(ctx sdk.Context, addr sdk.AccAddress) types.Debt
- func (k Keeper) GetDepositDenom(ctx sdk.Context) string
- func (k Keeper) GetEpochLength(ctx sdk.Context) int64
- func (k Keeper) GetEpochPosition(ctx sdk.Context, epochLength int64) int64
- func (k Keeper) GetInterest(ctx sdk.Context, startBlock uint64, startTime uint64, borrowed sdk.Dec) sdk.Int
- func (k Keeper) GetLegacyParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetRedemptionRate(ctx sdk.Context) sdk.Dec
- 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) SetHooks(eh types.StableStakeHooks) *Keeper
- func (k Keeper) SetInterest(ctx sdk.Context, block uint64, interest types.InterestBlock)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) ShareDenomPrice(ctx sdk.Context, oracleKeeper types.OracleKeeper, baseCurrency string) math.LegacyDec
- func (k Keeper) TVL(ctx sdk.Context, oracleKeeper types.OracleKeeper, baseCurrency string) math.LegacyDec
- func (k Keeper) UpdateInterestAndGetDebt(ctx sdk.Context, addr sdk.AccAddress) types.Debt
- func (k Keeper) UpdateInterestStacked(ctx sdk.Context, debt types.Debt) types.Debt
- type MultiStableStakeHooks
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, authority string, ps paramtypes.Subspace, bk types.BankKeeper, commitmentKeeper *commitmentkeeper.Keeper, assetProfileKeeper types.AssetProfileKeeper, ) *Keeper
func (Keeper) AccountInterest ¶ added in v0.47.0
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) DeleteAllInterest ¶ added in v0.45.1
func (Keeper) DeleteInterest ¶ added in v0.42.0
func (Keeper) GetAllDebts ¶ added in v0.45.0
func (Keeper) GetAllInterest ¶ added in v0.42.0
func (k Keeper) GetAllInterest(ctx sdk.Context) []types.InterestBlock
func (Keeper) GetDepositDenom ¶ added in v0.29.10
func (Keeper) GetEpochPosition ¶
get position of current block in epoch
func (Keeper) GetInterest ¶ added in v0.42.0
func (Keeper) GetLegacyParams ¶ added in v0.45.0
func (Keeper) GetRedemptionRate ¶ added in v0.47.0
func (Keeper) InterestRateComputation ¶
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (*Keeper) SetHooks ¶ added in v0.31.0
func (k *Keeper) SetHooks(eh types.StableStakeHooks) *Keeper
SetHooks set the epoch hooks
func (Keeper) SetInterest ¶ added in v0.42.0
func (Keeper) ShareDenomPrice ¶ added in v0.29.31
func (Keeper) UpdateInterestAndGetDebt ¶ added in v0.42.0
type MultiStableStakeHooks ¶ added in v0.31.0
type MultiStableStakeHooks []types.StableStakeHooks
combine multiple stablestake hooks, all hook functions are run in array sequence
func NewMultiStableStakeHooks ¶ added in v0.31.0
func NewMultiStableStakeHooks(hooks ...types.StableStakeHooks) MultiStableStakeHooks
func (MultiStableStakeHooks) AfterBond ¶ added in v0.31.0
func (mh MultiStableStakeHooks) AfterBond(ctx sdk.Context, sender sdk.AccAddress, shareAmount math.Int) error
Committed is called when staker committed his token
func (MultiStableStakeHooks) AfterUnbond ¶ added in v0.31.0
func (mh MultiStableStakeHooks) AfterUnbond(ctx sdk.Context, sender sdk.AccAddress, shareAmount math.Int) error
Committed is called when staker committed his token
Click to show internal directories.
Click to hide internal directories.