Versions in this module Expand all Collapse all v0 v0.0.2 Jul 1, 2023 v0.0.1 Jul 2, 2023 Changes in this version + func AllInvariants(k Keeper) sdk.Invariant + func HandleCommunityPoolDepositProposal(ctx sdk.Context, k Keeper, p *types.CommunityPoolDepositProposal) error + func HandleCommunityPoolWithdrawProposal(ctx sdk.Context, k Keeper, p *types.CommunityPoolWithdrawProposal) error + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func NewQueryServerImpl(k Keeper) types.QueryServer + func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper) + func ShareRecordsInvariant(k Keeper) sdk.Invariant + func VaultRecordsInvariant(k Keeper) sdk.Invariant + func VaultSharesInvariant(k Keeper) sdk.Invariant + type HardStrategy Keeper + func (s *HardStrategy) Deposit(ctx sdk.Context, amount sdk.Coin) error + func (s *HardStrategy) GetEstimatedTotalAssets(ctx sdk.Context, denom string) (sdk.Coin, error) + func (s *HardStrategy) GetStrategyType() types.StrategyType + func (s *HardStrategy) Withdraw(ctx sdk.Context, amount sdk.Coin) error + type Keeper struct + func NewKeeper(cdc codec.Codec, key storetypes.StoreKey, paramstore paramtypes.Subspace, ...) Keeper + func (k *Keeper) ClearHooks() + func (k *Keeper) ConvertToAssets(ctx sdk.Context, share types.VaultShare) (sdk.Coin, error) + func (k *Keeper) ConvertToShares(ctx sdk.Context, assets sdk.Coin) (types.VaultShare, error) + func (k *Keeper) DeleteVaultRecord(ctx sdk.Context, vaultDenom string) + func (k *Keeper) DeleteVaultShareRecord(ctx sdk.Context, acc sdk.AccAddress) + func (k *Keeper) Deposit(ctx sdk.Context, depositor sdk.AccAddress, amount sdk.Coin, ...) error + func (k *Keeper) DepositFromModuleAccount(ctx sdk.Context, from string, wantAmount sdk.Coin, ...) error + func (k *Keeper) GetAllowedVault(ctx sdk.Context, vaultDenom string) (types.AllowedVault, bool) + func (k *Keeper) GetStrategy(strategyType types.StrategyType) (Strategy, error) + func (k *Keeper) GetVaultAccountShares(ctx sdk.Context, acc sdk.AccAddress) (types.VaultShares, bool) + func (k *Keeper) GetVaultAccountValue(ctx sdk.Context, denom string, acc sdk.AccAddress) (sdk.Coin, error) + func (k *Keeper) GetVaultRecord(ctx sdk.Context, vaultDenom string) (types.VaultRecord, bool) + func (k *Keeper) GetVaultShareRecord(ctx sdk.Context, acc sdk.AccAddress) (types.VaultShareRecord, bool) + func (k *Keeper) GetVaultTotalShares(ctx sdk.Context, denom string) (types.VaultShare, bool) + func (k *Keeper) GetVaultTotalValue(ctx sdk.Context, denom string) (sdk.Coin, error) + func (k *Keeper) SetHooks(sh types.EarnHooks) *Keeper + func (k *Keeper) SetVaultRecord(ctx sdk.Context, record types.VaultRecord) + func (k *Keeper) SetVaultShareRecord(ctx sdk.Context, record types.VaultShareRecord) + func (k *Keeper) ShareIsDust(ctx sdk.Context, share types.VaultShare) (bool, error) + func (k *Keeper) UpdateVaultRecord(ctx sdk.Context, vaultRecord types.VaultRecord) + func (k *Keeper) UpdateVaultShareRecord(ctx sdk.Context, record types.VaultShareRecord) + func (k *Keeper) Withdraw(ctx sdk.Context, from sdk.AccAddress, wantAmount sdk.Coin, ...) (sdk.Coin, error) + func (k *Keeper) WithdrawFromModuleAccount(ctx sdk.Context, from string, wantAmount sdk.Coin, ...) (sdk.Coin, error) + func (k Keeper) AfterVaultDepositCreated(ctx sdk.Context, vaultDenom string, depositor sdk.AccAddress, ...) + func (k Keeper) BeforeVaultDepositModified(ctx sdk.Context, vaultDenom string, depositor sdk.AccAddress, ...) + func (k Keeper) GetAllVaultRecords(ctx sdk.Context) types.VaultRecords + func (k Keeper) GetAllVaultShareRecords(ctx sdk.Context) types.VaultShareRecords + func (k Keeper) GetAllowedVaults(ctx sdk.Context) types.AllowedVaults + func (k Keeper) GetParams(ctx sdk.Context) types.Params + func (k Keeper) IterateVaultRecords(ctx sdk.Context, cb func(record types.VaultRecord) (stop bool)) + func (k Keeper) IterateVaultShareRecords(ctx sdk.Context, cb func(record types.VaultShareRecord) (stop bool)) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + type SavingsStrategy Keeper + func (s *SavingsStrategy) Deposit(ctx sdk.Context, amount sdk.Coin) error + func (s *SavingsStrategy) GetEstimatedTotalAssets(ctx sdk.Context, denom string) (sdk.Coin, error) + func (s *SavingsStrategy) GetStrategyType() types.StrategyType + func (s *SavingsStrategy) Withdraw(ctx sdk.Context, amount sdk.Coin) error + type Strategy interface + Deposit func(ctx sdk.Context, amount sdk.Coin) error + GetEstimatedTotalAssets func(ctx sdk.Context, denom string) (sdk.Coin, error) + GetStrategyType func() types.StrategyType + Withdraw func(ctx sdk.Context, amount sdk.Coin) error