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 + const AttributeKeyDepositor + const AttributeKeyOwner + const AttributeKeyShares + const AttributeKeyVaultDenom + const AttributeValueCategory + const DefaultParamspace + const EventTypeVaultDeposit + const EventTypeVaultWithdraw + const ModuleAccountName + const ModuleName + const ProposalTypeCommunityPoolDeposit + const ProposalTypeCommunityPoolWithdraw + const QuerierRoute + const RouterKey + const StoreKey + const TypeMsgDeposit + const TypeMsgWithdraw + var DefaultAllowedVaults = AllowedVaults + var ErrAccountDepositNotAllowed = errorsmod.Register(ModuleName, 8, "account is not allowed to deposit to this vault") + var ErrInsufficientAmount = errorsmod.Register(ModuleName, 4, "insufficient amount") + var ErrInsufficientValue = errorsmod.Register(ModuleName, 5, "insufficient vault account value") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowVault = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthVault = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidVaultDenom = errorsmod.Register(ModuleName, 2, "invalid vault denom") + var ErrInvalidVaultStrategy = errorsmod.Register(ModuleName, 3, "vault does not support this strategy") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupVault = fmt.Errorf("proto: unexpected end of group") + var ErrVaultRecordNotFound = errorsmod.Register(ModuleName, 6, "vault record not found") + var ErrVaultShareRecordNotFound = errorsmod.Register(ModuleName, 7, "vault share record not found") + var KeyAllowedVaults = []byte("AllowedVaults") + var ModuleCdc = codec.NewAminoCodec(amino) + var StrategyType_name = map[int32]string + var StrategyType_value = map[string]int32 + var VaultRecordKeyPrefix = []byte + var VaultShareRecordKeyPrefix = []byte + func DepositorVaultSharesKey(depositor sdk.AccAddress) []byte + func ParamKeyTable() paramtypes.KeyTable + func RegisterInterfaces(registry types.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error + func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error + func RegisterQueryServer(s grpc1.Server, srv QueryServer) + func VaultKey(denom string) []byte + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) types.AccountI + GetModuleAccount func(ctx sdk.Context, name string) types.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + SetModuleAccount func(sdk.Context, types.ModuleAccountI) + type AllowedVault struct + AllowedDepositors []github_com_cosmos_cosmos_sdk_types.AccAddress + Denom string + IsPrivateVault bool + Strategies StrategyTypes + func NewAllowedVault(denom string, strategyTypes StrategyTypes, isPrivateVault bool, ...) AllowedVault + func (*AllowedVault) Descriptor() ([]byte, []int) + func (*AllowedVault) ProtoMessage() + func (a *AllowedVault) IsAccountAllowed(account sdk.AccAddress) bool + func (a *AllowedVault) IsStrategyAllowed(strategy StrategyType) bool + func (a *AllowedVault) Validate() error + func (m *AllowedVault) GetAllowedDepositors() []github_com_cosmos_cosmos_sdk_types.AccAddress + func (m *AllowedVault) GetDenom() string + func (m *AllowedVault) GetIsPrivateVault() bool + func (m *AllowedVault) GetStrategies() StrategyTypes + func (m *AllowedVault) Marshal() (dAtA []byte, err error) + func (m *AllowedVault) MarshalTo(dAtA []byte) (int, error) + func (m *AllowedVault) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AllowedVault) Reset() + func (m *AllowedVault) Size() (n int) + func (m *AllowedVault) String() string + func (m *AllowedVault) Unmarshal(dAtA []byte) error + func (m *AllowedVault) XXX_DiscardUnknown() + func (m *AllowedVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AllowedVault) XXX_Merge(src proto.Message) + func (m *AllowedVault) XXX_Size() int + func (m *AllowedVault) XXX_Unmarshal(b []byte) error + type AllowedVaults []AllowedVault + func (a AllowedVaults) Validate() error + type BankKeeper interface + GetAllBalances func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + SendCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + SendCoinsFromModuleToModule func(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error + type CommunityPoolDepositProposal struct + Amount types.Coin + Description string + Title string + func NewCommunityPoolDepositProposal(title, description string, amount sdk.Coin) *CommunityPoolDepositProposal + func (*CommunityPoolDepositProposal) Descriptor() ([]byte, []int) + func (*CommunityPoolDepositProposal) ProtoMessage() + func (cdp *CommunityPoolDepositProposal) GetDescription() string + func (cdp *CommunityPoolDepositProposal) GetTitle() string + func (cdp *CommunityPoolDepositProposal) ProposalRoute() string + func (cdp *CommunityPoolDepositProposal) ProposalType() string + func (cdp *CommunityPoolDepositProposal) String() string + func (cdp *CommunityPoolDepositProposal) ValidateBasic() error + func (m *CommunityPoolDepositProposal) Marshal() (dAtA []byte, err error) + func (m *CommunityPoolDepositProposal) MarshalTo(dAtA []byte) (int, error) + func (m *CommunityPoolDepositProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CommunityPoolDepositProposal) Reset() + func (m *CommunityPoolDepositProposal) Size() (n int) + func (m *CommunityPoolDepositProposal) Unmarshal(dAtA []byte) error + func (m *CommunityPoolDepositProposal) XXX_DiscardUnknown() + func (m *CommunityPoolDepositProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CommunityPoolDepositProposal) XXX_Merge(src proto.Message) + func (m *CommunityPoolDepositProposal) XXX_Size() int + func (m *CommunityPoolDepositProposal) XXX_Unmarshal(b []byte) error + type CommunityPoolDepositProposalJSON struct + Amount types.Coin + Deposit github_com_cosmos_cosmos_sdk_types.Coins + Description string + Title string + func (*CommunityPoolDepositProposalJSON) Descriptor() ([]byte, []int) + func (*CommunityPoolDepositProposalJSON) ProtoMessage() + func (m *CommunityPoolDepositProposalJSON) Marshal() (dAtA []byte, err error) + func (m *CommunityPoolDepositProposalJSON) MarshalTo(dAtA []byte) (int, error) + func (m *CommunityPoolDepositProposalJSON) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CommunityPoolDepositProposalJSON) Reset() + func (m *CommunityPoolDepositProposalJSON) Size() (n int) + func (m *CommunityPoolDepositProposalJSON) String() string + func (m *CommunityPoolDepositProposalJSON) Unmarshal(dAtA []byte) error + func (m *CommunityPoolDepositProposalJSON) XXX_DiscardUnknown() + func (m *CommunityPoolDepositProposalJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CommunityPoolDepositProposalJSON) XXX_Merge(src proto.Message) + func (m *CommunityPoolDepositProposalJSON) XXX_Size() int + func (m *CommunityPoolDepositProposalJSON) XXX_Unmarshal(b []byte) error + type CommunityPoolWithdrawProposal struct + Amount types.Coin + Description string + Title string + func NewCommunityPoolWithdrawProposal(title, description string, amount sdk.Coin) *CommunityPoolWithdrawProposal + func (*CommunityPoolWithdrawProposal) Descriptor() ([]byte, []int) + func (*CommunityPoolWithdrawProposal) ProtoMessage() + func (cdp *CommunityPoolWithdrawProposal) GetDescription() string + func (cdp *CommunityPoolWithdrawProposal) GetTitle() string + func (cdp *CommunityPoolWithdrawProposal) ProposalRoute() string + func (cdp *CommunityPoolWithdrawProposal) ProposalType() string + func (cdp *CommunityPoolWithdrawProposal) String() string + func (cdp *CommunityPoolWithdrawProposal) ValidateBasic() error + func (m *CommunityPoolWithdrawProposal) Marshal() (dAtA []byte, err error) + func (m *CommunityPoolWithdrawProposal) MarshalTo(dAtA []byte) (int, error) + func (m *CommunityPoolWithdrawProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CommunityPoolWithdrawProposal) Reset() + func (m *CommunityPoolWithdrawProposal) Size() (n int) + func (m *CommunityPoolWithdrawProposal) Unmarshal(dAtA []byte) error + func (m *CommunityPoolWithdrawProposal) XXX_DiscardUnknown() + func (m *CommunityPoolWithdrawProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CommunityPoolWithdrawProposal) XXX_Merge(src proto.Message) + func (m *CommunityPoolWithdrawProposal) XXX_Size() int + func (m *CommunityPoolWithdrawProposal) XXX_Unmarshal(b []byte) error + type CommunityPoolWithdrawProposalJSON struct + Amount types.Coin + Deposit github_com_cosmos_cosmos_sdk_types.Coins + Description string + Title string + func (*CommunityPoolWithdrawProposalJSON) Descriptor() ([]byte, []int) + func (*CommunityPoolWithdrawProposalJSON) ProtoMessage() + func (m *CommunityPoolWithdrawProposalJSON) Marshal() (dAtA []byte, err error) + func (m *CommunityPoolWithdrawProposalJSON) MarshalTo(dAtA []byte) (int, error) + func (m *CommunityPoolWithdrawProposalJSON) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CommunityPoolWithdrawProposalJSON) Reset() + func (m *CommunityPoolWithdrawProposalJSON) Size() (n int) + func (m *CommunityPoolWithdrawProposalJSON) String() string + func (m *CommunityPoolWithdrawProposalJSON) Unmarshal(dAtA []byte) error + func (m *CommunityPoolWithdrawProposalJSON) XXX_DiscardUnknown() + func (m *CommunityPoolWithdrawProposalJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CommunityPoolWithdrawProposalJSON) XXX_Merge(src proto.Message) + func (m *CommunityPoolWithdrawProposalJSON) XXX_Size() int + func (m *CommunityPoolWithdrawProposalJSON) XXX_Unmarshal(b []byte) error + type DepositResponse struct + Depositor string + Shares VaultShares + Value github_com_cosmos_cosmos_sdk_types.Coins + func (*DepositResponse) Descriptor() ([]byte, []int) + func (*DepositResponse) ProtoMessage() + func (m *DepositResponse) Marshal() (dAtA []byte, err error) + func (m *DepositResponse) MarshalTo(dAtA []byte) (int, error) + func (m *DepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DepositResponse) Reset() + func (m *DepositResponse) Size() (n int) + func (m *DepositResponse) String() string + func (m *DepositResponse) Unmarshal(dAtA []byte) error + func (m *DepositResponse) XXX_DiscardUnknown() + func (m *DepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DepositResponse) XXX_Merge(src proto.Message) + func (m *DepositResponse) XXX_Size() int + func (m *DepositResponse) XXX_Unmarshal(b []byte) error + type DistributionKeeper interface + DistributeFromFeePool func(ctx sdk.Context, amount sdk.Coins, receiveAddr sdk.AccAddress) error + GetDistributionAccount func(ctx sdk.Context) types.ModuleAccountI + GetFeePool func(ctx sdk.Context) (feePool disttypes.FeePool) + SetFeePool func(ctx sdk.Context, feePool disttypes.FeePool) + type EarnHooks interface + AfterVaultDepositCreated func(ctx sdk.Context, vaultDenom string, depositor sdk.AccAddress, ...) + BeforeVaultDepositModified func(ctx sdk.Context, vaultDenom string, depositor sdk.AccAddress, ...) + type GenesisState struct + Params Params + VaultRecords VaultRecords + VaultShareRecords VaultShareRecords + func DefaultGenesisState() GenesisState + func NewGenesisState(params Params, vaultRecords VaultRecords, vaultShareRecords VaultShareRecords) GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + func (m *GenesisState) GetParams() Params + func (m *GenesisState) GetVaultRecords() VaultRecords + func (m *GenesisState) GetVaultShareRecords() VaultShareRecords + func (m *GenesisState) Marshal() (dAtA []byte, err error) + func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) + func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) error + func (m *GenesisState) XXX_DiscardUnknown() + func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenesisState) XXX_Merge(src proto.Message) + func (m *GenesisState) XXX_Size() int + func (m *GenesisState) XXX_Unmarshal(b []byte) error + type HardKeeper interface + Deposit func(ctx sdk.Context, depositor sdk.AccAddress, coins sdk.Coins) error + GetSyncedDeposit func(ctx sdk.Context, depositor sdk.AccAddress) (hardtypes.Deposit, bool) + Withdraw func(ctx sdk.Context, depositor sdk.AccAddress, coins sdk.Coins) error + type LiquidKeeper interface + GetStakedTokensForDerivatives func(ctx sdk.Context, derivatives sdk.Coins) (sdk.Coin, error) + IsDerivativeDenom func(ctx sdk.Context, denom string) bool + type MsgClient interface + Deposit func(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) + Withdraw func(ctx context.Context, in *MsgWithdraw, opts ...grpc.CallOption) (*MsgWithdrawResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgDeposit struct + Amount types.Coin + Depositor string + Strategy StrategyType + func NewMsgDeposit(depositor string, amount sdk.Coin, strategy StrategyType) *MsgDeposit + func (*MsgDeposit) Descriptor() ([]byte, []int) + func (*MsgDeposit) ProtoMessage() + func (m *MsgDeposit) Marshal() (dAtA []byte, err error) + func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDeposit) Reset() + func (m *MsgDeposit) Size() (n int) + func (m *MsgDeposit) String() string + func (m *MsgDeposit) Unmarshal(dAtA []byte) error + func (m *MsgDeposit) XXX_DiscardUnknown() + func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDeposit) XXX_Merge(src proto.Message) + func (m *MsgDeposit) XXX_Size() int + func (m *MsgDeposit) XXX_Unmarshal(b []byte) error + func (msg MsgDeposit) GetSignBytes() []byte + func (msg MsgDeposit) GetSigners() []sdk.AccAddress + func (msg MsgDeposit) Route() string + func (msg MsgDeposit) Type() string + func (msg MsgDeposit) ValidateBasic() error + type MsgDepositResponse struct + Shares VaultShare + func (*MsgDepositResponse) Descriptor() ([]byte, []int) + func (*MsgDepositResponse) ProtoMessage() + func (m *MsgDepositResponse) GetShares() VaultShare + func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error) + func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDepositResponse) Reset() + func (m *MsgDepositResponse) Size() (n int) + func (m *MsgDepositResponse) String() string + func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error + func (m *MsgDepositResponse) XXX_DiscardUnknown() + func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDepositResponse) XXX_Merge(src proto.Message) + func (m *MsgDepositResponse) XXX_Size() int + func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + Deposit func(context.Context, *MsgDeposit) (*MsgDepositResponse, error) + Withdraw func(context.Context, *MsgWithdraw) (*MsgWithdrawResponse, error) + type MsgWithdraw struct + Amount types.Coin + From string + Strategy StrategyType + func NewMsgWithdraw(from string, amount sdk.Coin, strategy StrategyType) *MsgWithdraw + func (*MsgWithdraw) Descriptor() ([]byte, []int) + func (*MsgWithdraw) ProtoMessage() + func (m *MsgWithdraw) Marshal() (dAtA []byte, err error) + func (m *MsgWithdraw) MarshalTo(dAtA []byte) (int, error) + func (m *MsgWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgWithdraw) Reset() + func (m *MsgWithdraw) Size() (n int) + func (m *MsgWithdraw) String() string + func (m *MsgWithdraw) Unmarshal(dAtA []byte) error + func (m *MsgWithdraw) XXX_DiscardUnknown() + func (m *MsgWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgWithdraw) XXX_Merge(src proto.Message) + func (m *MsgWithdraw) XXX_Size() int + func (m *MsgWithdraw) XXX_Unmarshal(b []byte) error + func (msg MsgWithdraw) GetSignBytes() []byte + func (msg MsgWithdraw) GetSigners() []sdk.AccAddress + func (msg MsgWithdraw) Route() string + func (msg MsgWithdraw) Type() string + func (msg MsgWithdraw) ValidateBasic() error + type MsgWithdrawResponse struct + Shares VaultShare + func (*MsgWithdrawResponse) Descriptor() ([]byte, []int) + func (*MsgWithdrawResponse) ProtoMessage() + func (m *MsgWithdrawResponse) GetShares() VaultShare + func (m *MsgWithdrawResponse) Marshal() (dAtA []byte, err error) + func (m *MsgWithdrawResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgWithdrawResponse) Reset() + func (m *MsgWithdrawResponse) Size() (n int) + func (m *MsgWithdrawResponse) String() string + func (m *MsgWithdrawResponse) Unmarshal(dAtA []byte) error + func (m *MsgWithdrawResponse) XXX_DiscardUnknown() + func (m *MsgWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgWithdrawResponse) XXX_Merge(src proto.Message) + func (m *MsgWithdrawResponse) XXX_Size() int + func (m *MsgWithdrawResponse) XXX_Unmarshal(b []byte) error + type Params struct + AllowedVaults AllowedVaults + func DefaultParams() Params + func NewParams(allowedVaults AllowedVaults) Params + func (*Params) Descriptor() ([]byte, []int) + func (*Params) ProtoMessage() + func (m *Params) GetAllowedVaults() AllowedVaults + func (m *Params) Marshal() (dAtA []byte, err error) + func (m *Params) MarshalTo(dAtA []byte) (int, error) + func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Params) Reset() + func (m *Params) Size() (n int) + func (m *Params) String() string + func (m *Params) Unmarshal(dAtA []byte) error + func (m *Params) XXX_DiscardUnknown() + func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Params) XXX_Merge(src proto.Message) + func (m *Params) XXX_Size() int + func (m *Params) XXX_Unmarshal(b []byte) error + func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs + func (p Params) Validate() error + type QueryClient interface + Deposits func(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error) + Params func(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + TotalSupply func(ctx context.Context, in *QueryTotalSupplyRequest, opts ...grpc.CallOption) (*QueryTotalSupplyResponse, error) + Vault func(ctx context.Context, in *QueryVaultRequest, opts ...grpc.CallOption) (*QueryVaultResponse, error) + Vaults func(ctx context.Context, in *QueryVaultsRequest, opts ...grpc.CallOption) (*QueryVaultsResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryDepositsRequest struct + Denom string + Depositor string + Pagination *query.PageRequest + ValueInStakedTokens bool + func NewQueryDepositsRequest(depositor string, denom string, ValueInStakedTokens bool, ...) *QueryDepositsRequest + func (*QueryDepositsRequest) Descriptor() ([]byte, []int) + func (*QueryDepositsRequest) ProtoMessage() + func (m *QueryDepositsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryDepositsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositsRequest) Reset() + func (m *QueryDepositsRequest) Size() (n int) + func (m *QueryDepositsRequest) String() string + func (m *QueryDepositsRequest) Unmarshal(dAtA []byte) error + func (m *QueryDepositsRequest) XXX_DiscardUnknown() + func (m *QueryDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositsRequest) XXX_Merge(src proto.Message) + func (m *QueryDepositsRequest) XXX_Size() int + func (m *QueryDepositsRequest) XXX_Unmarshal(b []byte) error + type QueryDepositsResponse struct + Deposits []DepositResponse + Pagination *query.PageResponse + func (*QueryDepositsResponse) Descriptor() ([]byte, []int) + func (*QueryDepositsResponse) ProtoMessage() + func (m *QueryDepositsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryDepositsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositsResponse) Reset() + func (m *QueryDepositsResponse) Size() (n int) + func (m *QueryDepositsResponse) String() string + func (m *QueryDepositsResponse) Unmarshal(dAtA []byte) error + func (m *QueryDepositsResponse) XXX_DiscardUnknown() + func (m *QueryDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositsResponse) XXX_Merge(src proto.Message) + func (m *QueryDepositsResponse) XXX_Size() int + func (m *QueryDepositsResponse) XXX_Unmarshal(b []byte) error + type QueryParamsRequest struct + func NewQueryParamsRequest() *QueryParamsRequest + func (*QueryParamsRequest) Descriptor() ([]byte, []int) + func (*QueryParamsRequest) ProtoMessage() + func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryParamsRequest) Reset() + func (m *QueryParamsRequest) Size() (n int) + func (m *QueryParamsRequest) String() string + func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error + func (m *QueryParamsRequest) XXX_DiscardUnknown() + func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryParamsRequest) XXX_Merge(src proto.Message) + func (m *QueryParamsRequest) XXX_Size() int + func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error + type QueryParamsResponse struct + Params Params + func (*QueryParamsResponse) Descriptor() ([]byte, []int) + func (*QueryParamsResponse) ProtoMessage() + func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryParamsResponse) Reset() + func (m *QueryParamsResponse) Size() (n int) + func (m *QueryParamsResponse) String() string + func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error + func (m *QueryParamsResponse) XXX_DiscardUnknown() + func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryParamsResponse) XXX_Merge(src proto.Message) + func (m *QueryParamsResponse) XXX_Size() int + func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + Deposits func(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error) + Params func(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + TotalSupply func(context.Context, *QueryTotalSupplyRequest) (*QueryTotalSupplyResponse, error) + Vault func(context.Context, *QueryVaultRequest) (*QueryVaultResponse, error) + Vaults func(context.Context, *QueryVaultsRequest) (*QueryVaultsResponse, error) + type QueryTotalSupplyRequest struct + func (*QueryTotalSupplyRequest) Descriptor() ([]byte, []int) + func (*QueryTotalSupplyRequest) ProtoMessage() + func (m *QueryTotalSupplyRequest) Marshal() (dAtA []byte, err error) + func (m *QueryTotalSupplyRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTotalSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTotalSupplyRequest) Reset() + func (m *QueryTotalSupplyRequest) Size() (n int) + func (m *QueryTotalSupplyRequest) String() string + func (m *QueryTotalSupplyRequest) Unmarshal(dAtA []byte) error + func (m *QueryTotalSupplyRequest) XXX_DiscardUnknown() + func (m *QueryTotalSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTotalSupplyRequest) XXX_Merge(src proto.Message) + func (m *QueryTotalSupplyRequest) XXX_Size() int + func (m *QueryTotalSupplyRequest) XXX_Unmarshal(b []byte) error + type QueryTotalSupplyResponse struct + Height int64 + Result github_com_cosmos_cosmos_sdk_types.Coins + func (*QueryTotalSupplyResponse) Descriptor() ([]byte, []int) + func (*QueryTotalSupplyResponse) ProtoMessage() + func (m *QueryTotalSupplyResponse) Marshal() (dAtA []byte, err error) + func (m *QueryTotalSupplyResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTotalSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTotalSupplyResponse) Reset() + func (m *QueryTotalSupplyResponse) Size() (n int) + func (m *QueryTotalSupplyResponse) String() string + func (m *QueryTotalSupplyResponse) Unmarshal(dAtA []byte) error + func (m *QueryTotalSupplyResponse) XXX_DiscardUnknown() + func (m *QueryTotalSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTotalSupplyResponse) XXX_Merge(src proto.Message) + func (m *QueryTotalSupplyResponse) XXX_Size() int + func (m *QueryTotalSupplyResponse) XXX_Unmarshal(b []byte) error + type QueryVaultRequest struct + Denom string + func NewQueryVaultRequest(denom string) *QueryVaultRequest + func (*QueryVaultRequest) Descriptor() ([]byte, []int) + func (*QueryVaultRequest) ProtoMessage() + func (m *QueryVaultRequest) Marshal() (dAtA []byte, err error) + func (m *QueryVaultRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVaultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVaultRequest) Reset() + func (m *QueryVaultRequest) Size() (n int) + func (m *QueryVaultRequest) String() string + func (m *QueryVaultRequest) Unmarshal(dAtA []byte) error + func (m *QueryVaultRequest) XXX_DiscardUnknown() + func (m *QueryVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVaultRequest) XXX_Merge(src proto.Message) + func (m *QueryVaultRequest) XXX_Size() int + func (m *QueryVaultRequest) XXX_Unmarshal(b []byte) error + type QueryVaultResponse struct + Vault VaultResponse + func (*QueryVaultResponse) Descriptor() ([]byte, []int) + func (*QueryVaultResponse) ProtoMessage() + func (m *QueryVaultResponse) Marshal() (dAtA []byte, err error) + func (m *QueryVaultResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVaultResponse) Reset() + func (m *QueryVaultResponse) Size() (n int) + func (m *QueryVaultResponse) String() string + func (m *QueryVaultResponse) Unmarshal(dAtA []byte) error + func (m *QueryVaultResponse) XXX_DiscardUnknown() + func (m *QueryVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVaultResponse) XXX_Merge(src proto.Message) + func (m *QueryVaultResponse) XXX_Size() int + func (m *QueryVaultResponse) XXX_Unmarshal(b []byte) error + type QueryVaultsRequest struct + func NewQueryVaultsRequest() *QueryVaultsRequest + func (*QueryVaultsRequest) Descriptor() ([]byte, []int) + func (*QueryVaultsRequest) ProtoMessage() + func (m *QueryVaultsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryVaultsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVaultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVaultsRequest) Reset() + func (m *QueryVaultsRequest) Size() (n int) + func (m *QueryVaultsRequest) String() string + func (m *QueryVaultsRequest) Unmarshal(dAtA []byte) error + func (m *QueryVaultsRequest) XXX_DiscardUnknown() + func (m *QueryVaultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVaultsRequest) XXX_Merge(src proto.Message) + func (m *QueryVaultsRequest) XXX_Size() int + func (m *QueryVaultsRequest) XXX_Unmarshal(b []byte) error + type QueryVaultsResponse struct + Vaults []VaultResponse + func (*QueryVaultsResponse) Descriptor() ([]byte, []int) + func (*QueryVaultsResponse) ProtoMessage() + func (m *QueryVaultsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryVaultsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVaultsResponse) Reset() + func (m *QueryVaultsResponse) Size() (n int) + func (m *QueryVaultsResponse) String() string + func (m *QueryVaultsResponse) Unmarshal(dAtA []byte) error + func (m *QueryVaultsResponse) XXX_DiscardUnknown() + func (m *QueryVaultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVaultsResponse) XXX_Merge(src proto.Message) + func (m *QueryVaultsResponse) XXX_Size() int + func (m *QueryVaultsResponse) XXX_Unmarshal(b []byte) error + type SavingsKeeper interface + Deposit func(ctx sdk.Context, depositor sdk.AccAddress, coins sdk.Coins) error + GetDeposit func(ctx sdk.Context, depositor sdk.AccAddress) (savingstypes.Deposit, bool) + Withdraw func(ctx sdk.Context, depositor sdk.AccAddress, coins sdk.Coins) error + type StrategyType int32 + const STRATEGY_TYPE_HARD + const STRATEGY_TYPE_SAVINGS + const STRATEGY_TYPE_UNSPECIFIED + func NewStrategyTypeFromString(str string) StrategyType + func (StrategyType) EnumDescriptor() ([]byte, []int) + func (s StrategyType) IsValid() bool + func (s StrategyType) Validate() error + func (x StrategyType) String() string + type StrategyTypes []StrategyType + func (strategies StrategyTypes) Validate() error + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error) + func (*UnimplementedMsgServer) Withdraw(ctx context.Context, req *MsgWithdraw) (*MsgWithdrawResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Deposits(ctx context.Context, req *QueryDepositsRequest) (*QueryDepositsResponse, error) + func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) + func (*UnimplementedQueryServer) TotalSupply(ctx context.Context, req *QueryTotalSupplyRequest) (*QueryTotalSupplyResponse, error) + func (*UnimplementedQueryServer) Vault(ctx context.Context, req *QueryVaultRequest) (*QueryVaultResponse, error) + func (*UnimplementedQueryServer) Vaults(ctx context.Context, req *QueryVaultsRequest) (*QueryVaultsResponse, error) + type VaultRecord struct + TotalShares VaultShare + func NewVaultRecord(vaultDenom string, amount sdk.Dec) VaultRecord + func (*VaultRecord) Descriptor() ([]byte, []int) + func (*VaultRecord) ProtoMessage() + func (m *VaultRecord) GetTotalShares() VaultShare + func (m *VaultRecord) Marshal() (dAtA []byte, err error) + func (m *VaultRecord) MarshalTo(dAtA []byte) (int, error) + func (m *VaultRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *VaultRecord) Reset() + func (m *VaultRecord) Size() (n int) + func (m *VaultRecord) String() string + func (m *VaultRecord) Unmarshal(dAtA []byte) error + func (m *VaultRecord) XXX_DiscardUnknown() + func (m *VaultRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VaultRecord) XXX_Merge(src proto.Message) + func (m *VaultRecord) XXX_Size() int + func (m *VaultRecord) XXX_Unmarshal(b []byte) error + func (vr *VaultRecord) Validate() error + type VaultRecords []VaultRecord + func (vrs VaultRecords) Validate() error + type VaultResponse struct + AllowedDepositors []string + Denom string + IsPrivateVault bool + Strategies StrategyTypes + TotalShares string + TotalValue github_com_cosmos_cosmos_sdk_types.Int + func (*VaultResponse) Descriptor() ([]byte, []int) + func (*VaultResponse) ProtoMessage() + func (m *VaultResponse) Marshal() (dAtA []byte, err error) + func (m *VaultResponse) MarshalTo(dAtA []byte) (int, error) + func (m *VaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *VaultResponse) Reset() + func (m *VaultResponse) Size() (n int) + func (m *VaultResponse) String() string + func (m *VaultResponse) Unmarshal(dAtA []byte) error + func (m *VaultResponse) XXX_DiscardUnknown() + func (m *VaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VaultResponse) XXX_Merge(src proto.Message) + func (m *VaultResponse) XXX_Size() int + func (m *VaultResponse) XXX_Unmarshal(b []byte) error + type VaultShare struct + Amount github_com_cosmos_cosmos_sdk_types.Dec + Denom string + func NewVaultShare(denom string, amount sdk.Dec) VaultShare + func (*VaultShare) Descriptor() ([]byte, []int) + func (*VaultShare) ProtoMessage() + func (m *VaultShare) GetDenom() string + func (m *VaultShare) Marshal() (dAtA []byte, err error) + func (m *VaultShare) MarshalTo(dAtA []byte) (int, error) + func (m *VaultShare) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *VaultShare) Reset() + func (m *VaultShare) Size() (n int) + func (m *VaultShare) Unmarshal(dAtA []byte) error + func (m *VaultShare) XXX_DiscardUnknown() + func (m *VaultShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VaultShare) XXX_Merge(src proto.Message) + func (m *VaultShare) XXX_Size() int + func (m *VaultShare) XXX_Unmarshal(b []byte) error + func (share VaultShare) Add(vsB VaultShare) VaultShare + func (share VaultShare) IsNegative() bool + func (share VaultShare) IsPositive() bool + func (share VaultShare) IsValid() bool + func (share VaultShare) IsZero() bool + func (share VaultShare) String() string + func (share VaultShare) Sub(vsB VaultShare) VaultShare + func (share VaultShare) Validate() error + type VaultShareRecord struct + Depositor github_com_cosmos_cosmos_sdk_types.AccAddress + Shares VaultShares + func NewVaultShareRecord(depositor sdk.AccAddress, shares VaultShares) VaultShareRecord + func (*VaultShareRecord) Descriptor() ([]byte, []int) + func (*VaultShareRecord) ProtoMessage() + func (m *VaultShareRecord) GetDepositor() github_com_cosmos_cosmos_sdk_types.AccAddress + func (m *VaultShareRecord) GetShares() VaultShares + func (m *VaultShareRecord) Marshal() (dAtA []byte, err error) + func (m *VaultShareRecord) MarshalTo(dAtA []byte) (int, error) + func (m *VaultShareRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *VaultShareRecord) Reset() + func (m *VaultShareRecord) Size() (n int) + func (m *VaultShareRecord) String() string + func (m *VaultShareRecord) Unmarshal(dAtA []byte) error + func (m *VaultShareRecord) XXX_DiscardUnknown() + func (m *VaultShareRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VaultShareRecord) XXX_Merge(src proto.Message) + func (m *VaultShareRecord) XXX_Size() int + func (m *VaultShareRecord) XXX_Unmarshal(b []byte) error + func (vsr VaultShareRecord) Validate() error + type VaultShareRecords []VaultShareRecord + func (vsrs VaultShareRecords) Validate() error + type VaultShares []VaultShare + func NewVaultShares(shares ...VaultShare) VaultShares + func (shares VaultShares) Add(sharesB ...VaultShare) VaultShares + func (shares VaultShares) AmountOf(denom string) sdk.Dec + func (shares VaultShares) GetShare(denom string) VaultShare + func (shares VaultShares) IsAnyNegative() bool + func (shares VaultShares) IsValid() bool + func (shares VaultShares) IsZero() bool + func (shares VaultShares) Len() int + func (shares VaultShares) Less(i, j int) bool + func (shares VaultShares) SafeSub(sharesB VaultShares) (VaultShares, bool) + func (shares VaultShares) Sort() VaultShares + func (shares VaultShares) String() string + func (shares VaultShares) Sub(sharesB ...VaultShare) VaultShares + func (shares VaultShares) Swap(i, j int) + func (shares VaultShares) Validate() error