Documentation ¶
Index ¶
- func GetPoolIdFromShareDenom(shareDenom string) (uint64, error)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func Pow10(decimal uint64) (value sdk.Dec)
- type Keeper
- func (k Keeper) CalculateDiscount(goCtx context.Context, req *types.QueryCalculateDiscountRequest) (*types.QueryCalculateDiscountResponse, error)
- func (k Keeper) GetAllPortfolio(ctx sdk.Context, timestamp string) (list []types.Portfolio)
- func (k Keeper) GetDateFromBlock(blockTime time.Time) string
- func (k Keeper) GetMembershipTier(ctx sdk.Context, user string) (total_portfoilio sdk.Dec, tier string, discount uint64)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPortfolio(ctx sdk.Context, user string, timestamp string) (sdk.Dec, bool)
- 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) Portfolio(goCtx context.Context, req *types.QueryGetPortfolioRequest) (*types.QueryGetPortfolioResponse, error)
- func (k Keeper) PortfolioAll(goCtx context.Context, req *types.QueryAllPortfolioRequest) (*types.QueryAllPortfolioResponse, error)
- func (k Keeper) RemovePortfolio(ctx sdk.Context, user string, timestamp string)
- func (k Keeper) RetreiveAllPortfolio(ctx sdk.Context, user string)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPortfolio(ctx sdk.Context, todayDate string, user string, portfolio types.Portfolio)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPoolIdFromShareDenom ¶
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, bankKeeper types.BankKeeper, oracleKeeper types.OracleKeeper, assetProfileKeeper types.AssetProfileKeeper, amm types.AmmKeeper, estaking types.EstakingKeeper, masterchef types.MasterchefKeeper, commitement types.CommitmentKeeper, stakingKeeper types.StakingKeeper, perpetual types.PerpetualKeeper, ) *Keeper
func (Keeper) CalculateDiscount ¶
func (k Keeper) CalculateDiscount(goCtx context.Context, req *types.QueryCalculateDiscountRequest) (*types.QueryCalculateDiscountResponse, error)
func (Keeper) GetAllPortfolio ¶
GetAllPortfolio returns all portfolio
func (Keeper) GetMembershipTier ¶
func (Keeper) GetPortfolio ¶
GetPortfolio returns a portfolio from its index
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Portfolio ¶
func (k Keeper) Portfolio(goCtx context.Context, req *types.QueryGetPortfolioRequest) (*types.QueryGetPortfolioResponse, error)
func (Keeper) PortfolioAll ¶
func (k Keeper) PortfolioAll(goCtx context.Context, req *types.QueryAllPortfolioRequest) (*types.QueryAllPortfolioResponse, error)
func (Keeper) RemovePortfolio ¶
RemovePortfolio removes a portfolio from the store
func (Keeper) RetreiveAllPortfolio ¶
Click to show internal directories.
Click to hide internal directories.