Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) CreateDenom(ctx sdk.Context, originalDenom string, startTime int64, ...) (types.Denom, error)
- func (k Keeper) DeleteDenom(ctx sdk.Context, baseDenom string)
- func (k Keeper) Denom(goCtx context.Context, req *types.QueryDenomRequest) (*types.QueryDenomResponse, error)
- func (k Keeper) Denoms(goCtx context.Context, req *types.QueryDenomsRequest) (*types.QueryDenomsResponse, error)
- func (k Keeper) GetAllDenoms(ctx sdk.Context) (list []types.Denom)
- func (k Keeper) GetDenom(ctx sdk.Context, baseDenom string) (val types.Denom, found bool)
- func (k Keeper) GetDenomCounter(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) IsLiquidVestingEnabled(ctx sdk.Context) bool
- func (k Keeper) IterateDenoms(ctx sdk.Context, cb func(account types.Denom) (stop bool))
- func (k Keeper) Liquidate(goCtx context.Context, msg *types.MsgLiquidate) (*types.MsgLiquidateResponse, error)
- func (k Keeper) Redeem(goCtx context.Context, msg *types.MsgRedeem) (*types.MsgRedeemResponse, error)
- func (k Keeper) ResetParamsToDefault(ctx sdk.Context)
- func (k Keeper) SetDenom(ctx sdk.Context, denom types.Denom)
- func (k Keeper) SetDenomCounter(ctx sdk.Context, counter uint64)
- func (k Keeper) SetLiquidVestingEnabled(ctx sdk.Context, enable bool)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- func (k Keeper) UpdateDenomPeriods(ctx sdk.Context, baseDenom string, newPeriods sdkvesting.Periods) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( storeKey storetypes.StoreKey, cdc codec.BinaryCodec, ps paramtypes.Subspace, ak types.AccountKeeper, bk types.BankKeeper, erc20 types.ERC20Keeper, vk types.VestingKeeper, ) Keeper
NewKeeper creates new Keeper
func (Keeper) CreateDenom ¶
func (k Keeper) CreateDenom( ctx sdk.Context, originalDenom string, startTime int64, periods sdkvesting.Periods, ) (types.Denom, error)
CreateDenom creates new liquid denom and stores it
func (Keeper) DeleteDenom ¶
DeleteDenom deletes denom from the storage
func (Keeper) Denom ¶
func (k Keeper) Denom(goCtx context.Context, req *types.QueryDenomRequest) (*types.QueryDenomResponse, error)
Denom retrieves liquid token denom by its name
func (Keeper) Denoms ¶
func (k Keeper) Denoms(goCtx context.Context, req *types.QueryDenomsRequest) (*types.QueryDenomsResponse, error)
Denoms retrieves liquid tokens denoms
func (Keeper) GetAllDenoms ¶ added in v1.7.4
GetAllGenesisAccount returns all genesisAccount
func (Keeper) GetDenomCounter ¶
GetDenomCounter get the counter for denoms
func (Keeper) IsLiquidVestingEnabled ¶ added in v1.7.5
func (Keeper) IterateDenoms ¶ added in v1.7.4
IterateDenoms iterates over all the stored denoms and performs a callback function. Stops iteration when callback returns true.
func (Keeper) Liquidate ¶
func (k Keeper) Liquidate(goCtx context.Context, msg *types.MsgLiquidate) (*types.MsgLiquidateResponse, error)
Liquidate liquidates specified amount of token locked in vesting into liquid token
func (Keeper) Redeem ¶
func (k Keeper) Redeem(goCtx context.Context, msg *types.MsgRedeem) (*types.MsgRedeemResponse, error)
Redeem redeems specified amount of liquid token into original locked token and adds them to account
func (Keeper) ResetParamsToDefault ¶ added in v1.7.6
func (Keeper) SetDenomCounter ¶
SetDenomCounter set the counter for denoms
func (Keeper) SetLiquidVestingEnabled ¶ added in v1.7.5
func (Keeper) UpdateDenomPeriods ¶
func (k Keeper) UpdateDenomPeriods(ctx sdk.Context, baseDenom string, newPeriods sdkvesting.Periods) error
UpdateDenomPeriods updates schedule periods bound to liquid denom