Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CalculatePerSecondRewards(periodStart time.Time, periodEnd time.Time, ...) (sdk.DecCoins, time.Time)
- func GetTotalVestingPeriodLength(periods vestingtypes.Periods) int64
- func NewPeriod(amount sdk.Coins, length int64) vestingtypes.Period
- 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)
- type APYs
- type AccountKeeper
- type AccumulationTime
- func (*AccumulationTime) Descriptor() ([]byte, []int)
- func (m *AccumulationTime) Marshal() (dAtA []byte, err error)
- func (m *AccumulationTime) MarshalTo(dAtA []byte) (int, error)
- func (m *AccumulationTime) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccumulationTime) ProtoMessage()
- func (m *AccumulationTime) Reset()
- func (m *AccumulationTime) Size() (n int)
- func (m *AccumulationTime) String() string
- func (m *AccumulationTime) Unmarshal(dAtA []byte) error
- func (gat AccumulationTime) Validate() error
- func (m *AccumulationTime) XXX_DiscardUnknown()
- func (m *AccumulationTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccumulationTime) XXX_Merge(src proto.Message)
- func (m *AccumulationTime) XXX_Size() int
- func (m *AccumulationTime) XXX_Unmarshal(b []byte) error
- type AccumulationTimes
- type Accumulator
- type Apy
- func (*Apy) Descriptor() ([]byte, []int)
- func (m *Apy) GetCollateralType() string
- func (m *Apy) Marshal() (dAtA []byte, err error)
- func (m *Apy) MarshalTo(dAtA []byte) (int, error)
- func (m *Apy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Apy) ProtoMessage()
- func (m *Apy) Reset()
- func (m *Apy) Size() (n int)
- func (m *Apy) String() string
- func (m *Apy) Unmarshal(dAtA []byte) error
- func (m *Apy) XXX_DiscardUnknown()
- func (m *Apy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Apy) XXX_Merge(src proto.Message)
- func (m *Apy) XXX_Size() int
- func (m *Apy) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type BaseClaim
- func (*BaseClaim) Descriptor() ([]byte, []int)
- func (c BaseClaim) GetOwner() sdk.AccAddress
- func (c BaseClaim) GetReward() sdk.Coin
- func (c BaseClaim) GetType() string
- func (m *BaseClaim) Marshal() (dAtA []byte, err error)
- func (m *BaseClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *BaseClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BaseClaim) ProtoMessage()
- func (m *BaseClaim) Reset()
- func (m *BaseClaim) Size() (n int)
- func (m *BaseClaim) String() string
- func (m *BaseClaim) Unmarshal(dAtA []byte) error
- func (c BaseClaim) Validate() error
- func (m *BaseClaim) XXX_DiscardUnknown()
- func (m *BaseClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseClaim) XXX_Merge(src proto.Message)
- func (m *BaseClaim) XXX_Size() int
- func (m *BaseClaim) XXX_Unmarshal(b []byte) error
- type BaseMultiClaim
- func (*BaseMultiClaim) Descriptor() ([]byte, []int)
- func (c BaseMultiClaim) GetOwner() sdk.AccAddress
- func (c BaseMultiClaim) GetReward() sdk.Coins
- func (c BaseMultiClaim) GetType() string
- func (m *BaseMultiClaim) Marshal() (dAtA []byte, err error)
- func (m *BaseMultiClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *BaseMultiClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BaseMultiClaim) ProtoMessage()
- func (m *BaseMultiClaim) Reset()
- func (m *BaseMultiClaim) Size() (n int)
- func (m *BaseMultiClaim) String() string
- func (m *BaseMultiClaim) Unmarshal(dAtA []byte) error
- func (c BaseMultiClaim) Validate() error
- func (m *BaseMultiClaim) XXX_DiscardUnknown()
- func (m *BaseMultiClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseMultiClaim) XXX_Merge(src proto.Message)
- func (m *BaseMultiClaim) XXX_Size() int
- func (m *BaseMultiClaim) XXX_Unmarshal(b []byte) error
- type CDPHooks
- type CdpKeeper
- type DelegatorClaim
- func (*DelegatorClaim) Descriptor() ([]byte, []int)
- func (c DelegatorClaim) GetOwner() sdk.AccAddress
- func (c DelegatorClaim) GetReward() sdk.Coins
- func (c DelegatorClaim) GetType() string
- func (c DelegatorClaim) HasRewardIndex(collateralType string) (int64, bool)
- func (m *DelegatorClaim) Marshal() (dAtA []byte, err error)
- func (m *DelegatorClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *DelegatorClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelegatorClaim) ProtoMessage()
- func (m *DelegatorClaim) Reset()
- func (m *DelegatorClaim) Size() (n int)
- func (m *DelegatorClaim) String() string
- func (m *DelegatorClaim) Unmarshal(dAtA []byte) error
- func (c DelegatorClaim) Validate() error
- func (m *DelegatorClaim) XXX_DiscardUnknown()
- func (m *DelegatorClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelegatorClaim) XXX_Merge(src proto.Message)
- func (m *DelegatorClaim) XXX_Size() int
- func (m *DelegatorClaim) XXX_Unmarshal(b []byte) error
- type DelegatorClaims
- type DistrKeeper
- type EarnClaim
- func (*EarnClaim) Descriptor() ([]byte, []int)
- func (c EarnClaim) GetOwner() sdk.AccAddress
- func (c EarnClaim) GetReward() sdk.Coins
- func (c EarnClaim) GetType() string
- func (c EarnClaim) HasRewardIndex(poolID string) (int64, bool)
- func (m *EarnClaim) Marshal() (dAtA []byte, err error)
- func (m *EarnClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *EarnClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EarnClaim) ProtoMessage()
- func (m *EarnClaim) Reset()
- func (m *EarnClaim) Size() (n int)
- func (m *EarnClaim) String() string
- func (m *EarnClaim) Unmarshal(dAtA []byte) error
- func (c EarnClaim) Validate() error
- func (m *EarnClaim) XXX_DiscardUnknown()
- func (m *EarnClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EarnClaim) XXX_Merge(src proto.Message)
- func (m *EarnClaim) XXX_Size() int
- func (m *EarnClaim) XXX_Unmarshal(b []byte) error
- type EarnClaims
- type EarnKeeper
- type GenesisRewardState
- func (*GenesisRewardState) Descriptor() ([]byte, []int)
- func (m *GenesisRewardState) Marshal() (dAtA []byte, err error)
- func (m *GenesisRewardState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisRewardState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisRewardState) ProtoMessage()
- func (m *GenesisRewardState) Reset()
- func (m *GenesisRewardState) Size() (n int)
- func (m *GenesisRewardState) String() string
- func (m *GenesisRewardState) Unmarshal(dAtA []byte) error
- func (grs GenesisRewardState) Validate() error
- func (m *GenesisRewardState) XXX_DiscardUnknown()
- func (m *GenesisRewardState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisRewardState) XXX_Merge(src proto.Message)
- func (m *GenesisRewardState) XXX_Size() int
- func (m *GenesisRewardState) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() 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 HARDHooks
- type HardKeeper
- type HardLiquidityProviderClaim
- func (*HardLiquidityProviderClaim) Descriptor() ([]byte, []int)
- func (c HardLiquidityProviderClaim) GetOwner() sdk.AccAddress
- func (c HardLiquidityProviderClaim) GetReward() sdk.Coins
- func (c HardLiquidityProviderClaim) GetType() string
- func (c HardLiquidityProviderClaim) HasBorrowRewardIndex(denom string) (int64, bool)
- func (c HardLiquidityProviderClaim) HasSupplyRewardIndex(denom string) (int64, bool)
- func (m *HardLiquidityProviderClaim) Marshal() (dAtA []byte, err error)
- func (m *HardLiquidityProviderClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *HardLiquidityProviderClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HardLiquidityProviderClaim) ProtoMessage()
- func (m *HardLiquidityProviderClaim) Reset()
- func (m *HardLiquidityProviderClaim) Size() (n int)
- func (m *HardLiquidityProviderClaim) String() string
- func (m *HardLiquidityProviderClaim) Unmarshal(dAtA []byte) error
- func (c HardLiquidityProviderClaim) Validate() error
- func (m *HardLiquidityProviderClaim) XXX_DiscardUnknown()
- func (m *HardLiquidityProviderClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HardLiquidityProviderClaim) XXX_Merge(src proto.Message)
- func (m *HardLiquidityProviderClaim) XXX_Size() int
- func (m *HardLiquidityProviderClaim) XXX_Unmarshal(b []byte) error
- type HardLiquidityProviderClaims
- type LiquidKeeper
- type MintKeeper
- type MsgClaimDelegatorReward
- func (*MsgClaimDelegatorReward) Descriptor() ([]byte, []int)
- func (msg MsgClaimDelegatorReward) GetSignBytes() []byte
- func (msg MsgClaimDelegatorReward) GetSigners() []sdk.AccAddress
- func (m *MsgClaimDelegatorReward) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimDelegatorReward) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimDelegatorReward) ProtoMessage()
- func (m *MsgClaimDelegatorReward) Reset()
- func (msg MsgClaimDelegatorReward) Route() string
- func (m *MsgClaimDelegatorReward) Size() (n int)
- func (m *MsgClaimDelegatorReward) String() string
- func (msg MsgClaimDelegatorReward) Type() string
- func (m *MsgClaimDelegatorReward) Unmarshal(dAtA []byte) error
- func (msg MsgClaimDelegatorReward) ValidateBasic() error
- func (m *MsgClaimDelegatorReward) XXX_DiscardUnknown()
- func (m *MsgClaimDelegatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimDelegatorReward) XXX_Merge(src proto.Message)
- func (m *MsgClaimDelegatorReward) XXX_Size() int
- func (m *MsgClaimDelegatorReward) XXX_Unmarshal(b []byte) error
- type MsgClaimDelegatorRewardResponse
- func (*MsgClaimDelegatorRewardResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimDelegatorRewardResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimDelegatorRewardResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimDelegatorRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimDelegatorRewardResponse) ProtoMessage()
- func (m *MsgClaimDelegatorRewardResponse) Reset()
- func (m *MsgClaimDelegatorRewardResponse) Size() (n int)
- func (m *MsgClaimDelegatorRewardResponse) String() string
- func (m *MsgClaimDelegatorRewardResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimDelegatorRewardResponse) XXX_DiscardUnknown()
- func (m *MsgClaimDelegatorRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimDelegatorRewardResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimDelegatorRewardResponse) XXX_Size() int
- func (m *MsgClaimDelegatorRewardResponse) XXX_Unmarshal(b []byte) error
- type MsgClaimEarnReward
- func (*MsgClaimEarnReward) Descriptor() ([]byte, []int)
- func (msg MsgClaimEarnReward) GetSignBytes() []byte
- func (msg MsgClaimEarnReward) GetSigners() []sdk.AccAddress
- func (m *MsgClaimEarnReward) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimEarnReward) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimEarnReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimEarnReward) ProtoMessage()
- func (m *MsgClaimEarnReward) Reset()
- func (msg MsgClaimEarnReward) Route() string
- func (m *MsgClaimEarnReward) Size() (n int)
- func (m *MsgClaimEarnReward) String() string
- func (msg MsgClaimEarnReward) Type() string
- func (m *MsgClaimEarnReward) Unmarshal(dAtA []byte) error
- func (msg MsgClaimEarnReward) ValidateBasic() error
- func (m *MsgClaimEarnReward) XXX_DiscardUnknown()
- func (m *MsgClaimEarnReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimEarnReward) XXX_Merge(src proto.Message)
- func (m *MsgClaimEarnReward) XXX_Size() int
- func (m *MsgClaimEarnReward) XXX_Unmarshal(b []byte) error
- type MsgClaimEarnRewardResponse
- func (*MsgClaimEarnRewardResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimEarnRewardResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimEarnRewardResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimEarnRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimEarnRewardResponse) ProtoMessage()
- func (m *MsgClaimEarnRewardResponse) Reset()
- func (m *MsgClaimEarnRewardResponse) Size() (n int)
- func (m *MsgClaimEarnRewardResponse) String() string
- func (m *MsgClaimEarnRewardResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimEarnRewardResponse) XXX_DiscardUnknown()
- func (m *MsgClaimEarnRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimEarnRewardResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimEarnRewardResponse) XXX_Size() int
- func (m *MsgClaimEarnRewardResponse) XXX_Unmarshal(b []byte) error
- type MsgClaimHardReward
- func (*MsgClaimHardReward) Descriptor() ([]byte, []int)
- func (msg MsgClaimHardReward) GetSignBytes() []byte
- func (msg MsgClaimHardReward) GetSigners() []sdk.AccAddress
- func (m *MsgClaimHardReward) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimHardReward) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimHardReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimHardReward) ProtoMessage()
- func (m *MsgClaimHardReward) Reset()
- func (msg MsgClaimHardReward) Route() string
- func (m *MsgClaimHardReward) Size() (n int)
- func (m *MsgClaimHardReward) String() string
- func (msg MsgClaimHardReward) Type() string
- func (m *MsgClaimHardReward) Unmarshal(dAtA []byte) error
- func (msg MsgClaimHardReward) ValidateBasic() error
- func (m *MsgClaimHardReward) XXX_DiscardUnknown()
- func (m *MsgClaimHardReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimHardReward) XXX_Merge(src proto.Message)
- func (m *MsgClaimHardReward) XXX_Size() int
- func (m *MsgClaimHardReward) XXX_Unmarshal(b []byte) error
- type MsgClaimHardRewardResponse
- func (*MsgClaimHardRewardResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimHardRewardResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimHardRewardResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimHardRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimHardRewardResponse) ProtoMessage()
- func (m *MsgClaimHardRewardResponse) Reset()
- func (m *MsgClaimHardRewardResponse) Size() (n int)
- func (m *MsgClaimHardRewardResponse) String() string
- func (m *MsgClaimHardRewardResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimHardRewardResponse) XXX_DiscardUnknown()
- func (m *MsgClaimHardRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimHardRewardResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimHardRewardResponse) XXX_Size() int
- func (m *MsgClaimHardRewardResponse) XXX_Unmarshal(b []byte) error
- type MsgClaimSavingsReward
- func (*MsgClaimSavingsReward) Descriptor() ([]byte, []int)
- func (msg MsgClaimSavingsReward) GetSignBytes() []byte
- func (msg MsgClaimSavingsReward) GetSigners() []sdk.AccAddress
- func (m *MsgClaimSavingsReward) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimSavingsReward) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimSavingsReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimSavingsReward) ProtoMessage()
- func (m *MsgClaimSavingsReward) Reset()
- func (msg MsgClaimSavingsReward) Route() string
- func (m *MsgClaimSavingsReward) Size() (n int)
- func (m *MsgClaimSavingsReward) String() string
- func (msg MsgClaimSavingsReward) Type() string
- func (m *MsgClaimSavingsReward) Unmarshal(dAtA []byte) error
- func (msg MsgClaimSavingsReward) ValidateBasic() error
- func (m *MsgClaimSavingsReward) XXX_DiscardUnknown()
- func (m *MsgClaimSavingsReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimSavingsReward) XXX_Merge(src proto.Message)
- func (m *MsgClaimSavingsReward) XXX_Size() int
- func (m *MsgClaimSavingsReward) XXX_Unmarshal(b []byte) error
- type MsgClaimSavingsRewardResponse
- func (*MsgClaimSavingsRewardResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimSavingsRewardResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimSavingsRewardResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimSavingsRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimSavingsRewardResponse) ProtoMessage()
- func (m *MsgClaimSavingsRewardResponse) Reset()
- func (m *MsgClaimSavingsRewardResponse) Size() (n int)
- func (m *MsgClaimSavingsRewardResponse) String() string
- func (m *MsgClaimSavingsRewardResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimSavingsRewardResponse) XXX_DiscardUnknown()
- func (m *MsgClaimSavingsRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimSavingsRewardResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimSavingsRewardResponse) XXX_Size() int
- func (m *MsgClaimSavingsRewardResponse) XXX_Unmarshal(b []byte) error
- type MsgClaimSwapReward
- func (*MsgClaimSwapReward) Descriptor() ([]byte, []int)
- func (msg MsgClaimSwapReward) GetSignBytes() []byte
- func (msg MsgClaimSwapReward) GetSigners() []sdk.AccAddress
- func (m *MsgClaimSwapReward) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimSwapReward) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimSwapReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimSwapReward) ProtoMessage()
- func (m *MsgClaimSwapReward) Reset()
- func (msg MsgClaimSwapReward) Route() string
- func (m *MsgClaimSwapReward) Size() (n int)
- func (m *MsgClaimSwapReward) String() string
- func (msg MsgClaimSwapReward) Type() string
- func (m *MsgClaimSwapReward) Unmarshal(dAtA []byte) error
- func (msg MsgClaimSwapReward) ValidateBasic() error
- func (m *MsgClaimSwapReward) XXX_DiscardUnknown()
- func (m *MsgClaimSwapReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimSwapReward) XXX_Merge(src proto.Message)
- func (m *MsgClaimSwapReward) XXX_Size() int
- func (m *MsgClaimSwapReward) XXX_Unmarshal(b []byte) error
- type MsgClaimSwapRewardResponse
- func (*MsgClaimSwapRewardResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimSwapRewardResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimSwapRewardResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimSwapRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimSwapRewardResponse) ProtoMessage()
- func (m *MsgClaimSwapRewardResponse) Reset()
- func (m *MsgClaimSwapRewardResponse) Size() (n int)
- func (m *MsgClaimSwapRewardResponse) String() string
- func (m *MsgClaimSwapRewardResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimSwapRewardResponse) XXX_DiscardUnknown()
- func (m *MsgClaimSwapRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimSwapRewardResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimSwapRewardResponse) XXX_Size() int
- func (m *MsgClaimSwapRewardResponse) XXX_Unmarshal(b []byte) error
- type MsgClaimUSDXMintingReward
- func (*MsgClaimUSDXMintingReward) Descriptor() ([]byte, []int)
- func (msg MsgClaimUSDXMintingReward) GetSignBytes() []byte
- func (msg MsgClaimUSDXMintingReward) GetSigners() []sdk.AccAddress
- func (m *MsgClaimUSDXMintingReward) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimUSDXMintingReward) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimUSDXMintingReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimUSDXMintingReward) ProtoMessage()
- func (m *MsgClaimUSDXMintingReward) Reset()
- func (msg MsgClaimUSDXMintingReward) Route() string
- func (m *MsgClaimUSDXMintingReward) Size() (n int)
- func (m *MsgClaimUSDXMintingReward) String() string
- func (msg MsgClaimUSDXMintingReward) Type() string
- func (m *MsgClaimUSDXMintingReward) Unmarshal(dAtA []byte) error
- func (msg MsgClaimUSDXMintingReward) ValidateBasic() error
- func (m *MsgClaimUSDXMintingReward) XXX_DiscardUnknown()
- func (m *MsgClaimUSDXMintingReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimUSDXMintingReward) XXX_Merge(src proto.Message)
- func (m *MsgClaimUSDXMintingReward) XXX_Size() int
- func (m *MsgClaimUSDXMintingReward) XXX_Unmarshal(b []byte) error
- type MsgClaimUSDXMintingRewardResponse
- func (*MsgClaimUSDXMintingRewardResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimUSDXMintingRewardResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimUSDXMintingRewardResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimUSDXMintingRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimUSDXMintingRewardResponse) ProtoMessage()
- func (m *MsgClaimUSDXMintingRewardResponse) Reset()
- func (m *MsgClaimUSDXMintingRewardResponse) Size() (n int)
- func (m *MsgClaimUSDXMintingRewardResponse) String() string
- func (m *MsgClaimUSDXMintingRewardResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimUSDXMintingRewardResponse) XXX_DiscardUnknown()
- func (m *MsgClaimUSDXMintingRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimUSDXMintingRewardResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimUSDXMintingRewardResponse) XXX_Size() int
- func (m *MsgClaimUSDXMintingRewardResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MultiRewardIndex
- func (*MultiRewardIndex) Descriptor() ([]byte, []int)
- func (mri MultiRewardIndex) GetFactorIndex(denom string) (int, bool)
- func (m *MultiRewardIndex) Marshal() (dAtA []byte, err error)
- func (m *MultiRewardIndex) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiRewardIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiRewardIndex) ProtoMessage()
- func (m *MultiRewardIndex) Reset()
- func (m *MultiRewardIndex) Size() (n int)
- func (m *MultiRewardIndex) String() string
- func (m *MultiRewardIndex) Unmarshal(dAtA []byte) error
- func (mri MultiRewardIndex) Validate() error
- func (m *MultiRewardIndex) XXX_DiscardUnknown()
- func (m *MultiRewardIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiRewardIndex) XXX_Merge(src proto.Message)
- func (m *MultiRewardIndex) XXX_Size() int
- func (m *MultiRewardIndex) XXX_Unmarshal(b []byte) error
- type MultiRewardIndexes
- func (mris MultiRewardIndexes) Get(denom string) (RewardIndexes, bool)
- func (mris MultiRewardIndexes) GetCollateralTypes() []string
- func (mris MultiRewardIndexes) GetRewardIndex(denom string) (MultiRewardIndex, bool)
- func (mris MultiRewardIndexes) GetRewardIndexIndex(denom string) (int, bool)
- func (mris MultiRewardIndexes) RemoveRewardIndex(denom string) MultiRewardIndexes
- func (mris MultiRewardIndexes) Validate() error
- func (mris MultiRewardIndexes) With(denom string, indexes RewardIndexes) MultiRewardIndexes
- type MultiRewardIndexesProto
- func (*MultiRewardIndexesProto) Descriptor() ([]byte, []int)
- func (m *MultiRewardIndexesProto) Marshal() (dAtA []byte, err error)
- func (m *MultiRewardIndexesProto) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiRewardIndexesProto) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiRewardIndexesProto) ProtoMessage()
- func (m *MultiRewardIndexesProto) Reset()
- func (m *MultiRewardIndexesProto) Size() (n int)
- func (m *MultiRewardIndexesProto) String() string
- func (m *MultiRewardIndexesProto) Unmarshal(dAtA []byte) error
- func (m *MultiRewardIndexesProto) XXX_DiscardUnknown()
- func (m *MultiRewardIndexesProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiRewardIndexesProto) XXX_Merge(src proto.Message)
- func (m *MultiRewardIndexesProto) XXX_Size() int
- func (m *MultiRewardIndexesProto) XXX_Unmarshal(b []byte) error
- type MultiRewardPeriod
- func (*MultiRewardPeriod) Descriptor() ([]byte, []int)
- func (m *MultiRewardPeriod) Marshal() (dAtA []byte, err error)
- func (m *MultiRewardPeriod) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiRewardPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiRewardPeriod) ProtoMessage()
- func (m *MultiRewardPeriod) Reset()
- func (m *MultiRewardPeriod) Size() (n int)
- func (m *MultiRewardPeriod) String() string
- func (m *MultiRewardPeriod) Unmarshal(dAtA []byte) error
- func (mrp MultiRewardPeriod) Validate() error
- func (m *MultiRewardPeriod) XXX_DiscardUnknown()
- func (m *MultiRewardPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiRewardPeriod) XXX_Merge(src proto.Message)
- func (m *MultiRewardPeriod) XXX_Size() int
- func (m *MultiRewardPeriod) XXX_Unmarshal(b []byte) error
- type MultiRewardPeriods
- type Multiplier
- func (*Multiplier) Descriptor() ([]byte, []int)
- func (m *Multiplier) Marshal() (dAtA []byte, err error)
- func (m *Multiplier) MarshalTo(dAtA []byte) (int, error)
- func (m *Multiplier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Multiplier) ProtoMessage()
- func (m *Multiplier) Reset()
- func (m *Multiplier) Size() (n int)
- func (m *Multiplier) String() string
- func (m *Multiplier) Unmarshal(dAtA []byte) error
- func (m Multiplier) Validate() error
- func (m *Multiplier) XXX_DiscardUnknown()
- func (m *Multiplier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Multiplier) XXX_Merge(src proto.Message)
- func (m *Multiplier) XXX_Size() int
- func (m *Multiplier) XXX_Unmarshal(b []byte) error
- type Multipliers
- type MultipliersPerDenom
- func (*MultipliersPerDenom) Descriptor() ([]byte, []int)
- func (m *MultipliersPerDenom) Marshal() (dAtA []byte, err error)
- func (m *MultipliersPerDenom) MarshalTo(dAtA []byte) (int, error)
- func (m *MultipliersPerDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultipliersPerDenom) ProtoMessage()
- func (m *MultipliersPerDenom) Reset()
- func (m *MultipliersPerDenom) Size() (n int)
- func (m *MultipliersPerDenom) String() string
- func (m *MultipliersPerDenom) Unmarshal(dAtA []byte) error
- func (m *MultipliersPerDenom) XXX_DiscardUnknown()
- func (m *MultipliersPerDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultipliersPerDenom) XXX_Merge(src proto.Message)
- func (m *MultipliersPerDenom) XXX_Size() int
- func (m *MultipliersPerDenom) XXX_Unmarshal(b []byte) error
- type MultipliersPerDenoms
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- 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 (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() 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
- type PricefeedKeeper
- type QueryApyRequest
- func (*QueryApyRequest) Descriptor() ([]byte, []int)
- func (m *QueryApyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryApyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryApyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryApyRequest) ProtoMessage()
- func (m *QueryApyRequest) Reset()
- func (m *QueryApyRequest) Size() (n int)
- func (m *QueryApyRequest) String() string
- func (m *QueryApyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryApyRequest) XXX_DiscardUnknown()
- func (m *QueryApyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryApyRequest) XXX_Merge(src proto.Message)
- func (m *QueryApyRequest) XXX_Size() int
- func (m *QueryApyRequest) XXX_Unmarshal(b []byte) error
- type QueryApyResponse
- func (*QueryApyResponse) Descriptor() ([]byte, []int)
- func (m *QueryApyResponse) GetEarn() []Apy
- func (m *QueryApyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryApyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryApyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryApyResponse) ProtoMessage()
- func (m *QueryApyResponse) Reset()
- func (m *QueryApyResponse) Size() (n int)
- func (m *QueryApyResponse) String() string
- func (m *QueryApyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryApyResponse) XXX_DiscardUnknown()
- func (m *QueryApyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryApyResponse) XXX_Merge(src proto.Message)
- func (m *QueryApyResponse) XXX_Size() int
- func (m *QueryApyResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- 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 (*QueryParamsRequest) ProtoMessage()
- 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
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- 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 (*QueryParamsResponse) ProtoMessage()
- 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 QueryRewardFactorsRequest
- func (*QueryRewardFactorsRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardFactorsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardFactorsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardFactorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardFactorsRequest) ProtoMessage()
- func (m *QueryRewardFactorsRequest) Reset()
- func (m *QueryRewardFactorsRequest) Size() (n int)
- func (m *QueryRewardFactorsRequest) String() string
- func (m *QueryRewardFactorsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardFactorsRequest) XXX_DiscardUnknown()
- func (m *QueryRewardFactorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardFactorsRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardFactorsRequest) XXX_Size() int
- func (m *QueryRewardFactorsRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardFactorsResponse
- func (*QueryRewardFactorsResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardFactorsResponse) GetDelegatorRewardFactors() MultiRewardIndexes
- func (m *QueryRewardFactorsResponse) GetEarnRewardFactors() MultiRewardIndexes
- func (m *QueryRewardFactorsResponse) GetHardBorrowRewardFactors() MultiRewardIndexes
- func (m *QueryRewardFactorsResponse) GetHardSupplyRewardFactors() MultiRewardIndexes
- func (m *QueryRewardFactorsResponse) GetSavingsRewardFactors() MultiRewardIndexes
- func (m *QueryRewardFactorsResponse) GetSwapRewardFactors() MultiRewardIndexes
- func (m *QueryRewardFactorsResponse) GetUsdxMintingRewardFactors() RewardIndexes
- func (m *QueryRewardFactorsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardFactorsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardFactorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardFactorsResponse) ProtoMessage()
- func (m *QueryRewardFactorsResponse) Reset()
- func (m *QueryRewardFactorsResponse) Size() (n int)
- func (m *QueryRewardFactorsResponse) String() string
- func (m *QueryRewardFactorsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardFactorsResponse) XXX_DiscardUnknown()
- func (m *QueryRewardFactorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardFactorsResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardFactorsResponse) XXX_Size() int
- func (m *QueryRewardFactorsResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardsRequest
- func (*QueryRewardsRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardsRequest) GetOwner() string
- func (m *QueryRewardsRequest) GetRewardType() string
- func (m *QueryRewardsRequest) GetUnsynchronized() bool
- func (m *QueryRewardsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsRequest) ProtoMessage()
- func (m *QueryRewardsRequest) Reset()
- func (m *QueryRewardsRequest) Size() (n int)
- func (m *QueryRewardsRequest) String() string
- func (m *QueryRewardsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsRequest) XXX_DiscardUnknown()
- func (m *QueryRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardsRequest) XXX_Size() int
- func (m *QueryRewardsRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardsResponse
- func (*QueryRewardsResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsResponse) GetDelegatorClaims() DelegatorClaims
- func (m *QueryRewardsResponse) GetEarnClaims() EarnClaims
- func (m *QueryRewardsResponse) GetHardLiquidityProviderClaims() HardLiquidityProviderClaims
- func (m *QueryRewardsResponse) GetSavingsClaims() SavingsClaims
- func (m *QueryRewardsResponse) GetSwapClaims() SwapClaims
- func (m *QueryRewardsResponse) GetUSDXMintingClaims() USDXMintingClaims
- func (m *QueryRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsResponse) ProtoMessage()
- func (m *QueryRewardsResponse) Reset()
- func (m *QueryRewardsResponse) Size() (n int)
- func (m *QueryRewardsResponse) String() string
- func (m *QueryRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsResponse) XXX_Size() int
- func (m *QueryRewardsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RewardIndex
- func (*RewardIndex) Descriptor() ([]byte, []int)
- func (m *RewardIndex) Marshal() (dAtA []byte, err error)
- func (m *RewardIndex) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardIndex) ProtoMessage()
- func (m *RewardIndex) Reset()
- func (m *RewardIndex) Size() (n int)
- func (m *RewardIndex) String() string
- func (m *RewardIndex) Unmarshal(dAtA []byte) error
- func (ri RewardIndex) Validate() error
- func (m *RewardIndex) XXX_DiscardUnknown()
- func (m *RewardIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardIndex) XXX_Merge(src proto.Message)
- func (m *RewardIndex) XXX_Size() int
- func (m *RewardIndex) XXX_Unmarshal(b []byte) error
- type RewardIndexes
- func (ris RewardIndexes) Add(addend RewardIndexes) RewardIndexes
- func (ris RewardIndexes) Get(denom string) (sdk.Dec, bool)
- func (ris RewardIndexes) GetFactorIndex(denom string) (int, bool)
- func (ris RewardIndexes) GetRewardIndex(denom string) (RewardIndex, bool)
- func (ris RewardIndexes) Mul(multiplier sdk.Dec) RewardIndexes
- func (ris RewardIndexes) Quo(divisor sdk.Dec) RewardIndexes
- func (ris RewardIndexes) Validate() error
- func (ris RewardIndexes) With(denom string, factor sdk.Dec) RewardIndexes
- type RewardIndexesProto
- func (*RewardIndexesProto) Descriptor() ([]byte, []int)
- func (m *RewardIndexesProto) Marshal() (dAtA []byte, err error)
- func (m *RewardIndexesProto) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardIndexesProto) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardIndexesProto) ProtoMessage()
- func (m *RewardIndexesProto) Reset()
- func (m *RewardIndexesProto) Size() (n int)
- func (m *RewardIndexesProto) String() string
- func (m *RewardIndexesProto) Unmarshal(dAtA []byte) error
- func (m *RewardIndexesProto) XXX_DiscardUnknown()
- func (m *RewardIndexesProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardIndexesProto) XXX_Merge(src proto.Message)
- func (m *RewardIndexesProto) XXX_Size() int
- func (m *RewardIndexesProto) XXX_Unmarshal(b []byte) error
- type RewardPeriod
- func (*RewardPeriod) Descriptor() ([]byte, []int)
- func (m *RewardPeriod) Marshal() (dAtA []byte, err error)
- func (m *RewardPeriod) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardPeriod) ProtoMessage()
- func (m *RewardPeriod) Reset()
- func (m *RewardPeriod) Size() (n int)
- func (m *RewardPeriod) String() string
- func (m *RewardPeriod) Unmarshal(dAtA []byte) error
- func (rp RewardPeriod) Validate() error
- func (m *RewardPeriod) XXX_DiscardUnknown()
- func (m *RewardPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardPeriod) XXX_Merge(src proto.Message)
- func (m *RewardPeriod) XXX_Size() int
- func (m *RewardPeriod) XXX_Unmarshal(b []byte) error
- type RewardPeriods
- type SavingsClaim
- func (*SavingsClaim) Descriptor() ([]byte, []int)
- func (c SavingsClaim) GetOwner() sdk.AccAddress
- func (c SavingsClaim) GetReward() sdk.Coins
- func (c SavingsClaim) GetType() string
- func (c SavingsClaim) HasRewardIndex(denom string) (int64, bool)
- func (m *SavingsClaim) Marshal() (dAtA []byte, err error)
- func (m *SavingsClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *SavingsClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SavingsClaim) ProtoMessage()
- func (m *SavingsClaim) Reset()
- func (m *SavingsClaim) Size() (n int)
- func (m *SavingsClaim) String() string
- func (m *SavingsClaim) Unmarshal(dAtA []byte) error
- func (c SavingsClaim) Validate() error
- func (m *SavingsClaim) XXX_DiscardUnknown()
- func (m *SavingsClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SavingsClaim) XXX_Merge(src proto.Message)
- func (m *SavingsClaim) XXX_Size() int
- func (m *SavingsClaim) XXX_Unmarshal(b []byte) error
- type SavingsClaims
- type SavingsKeeper
- type Selection
- func (*Selection) Descriptor() ([]byte, []int)
- func (m *Selection) Marshal() (dAtA []byte, err error)
- func (m *Selection) MarshalTo(dAtA []byte) (int, error)
- func (m *Selection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Selection) ProtoMessage()
- func (m *Selection) Reset()
- func (m *Selection) Size() (n int)
- func (m *Selection) String() string
- func (m *Selection) Unmarshal(dAtA []byte) error
- func (s Selection) Validate() error
- func (m *Selection) XXX_DiscardUnknown()
- func (m *Selection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Selection) XXX_Merge(src proto.Message)
- func (m *Selection) XXX_Size() int
- func (m *Selection) XXX_Unmarshal(b []byte) error
- type Selections
- type StakingKeeper
- type SwapClaim
- func (*SwapClaim) Descriptor() ([]byte, []int)
- func (c SwapClaim) GetOwner() sdk.AccAddress
- func (c SwapClaim) GetReward() sdk.Coins
- func (c SwapClaim) GetType() string
- func (c SwapClaim) HasRewardIndex(poolID string) (int64, bool)
- func (m *SwapClaim) Marshal() (dAtA []byte, err error)
- func (m *SwapClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapClaim) ProtoMessage()
- func (m *SwapClaim) Reset()
- func (m *SwapClaim) Size() (n int)
- func (m *SwapClaim) String() string
- func (m *SwapClaim) Unmarshal(dAtA []byte) error
- func (c SwapClaim) Validate() error
- func (m *SwapClaim) XXX_DiscardUnknown()
- func (m *SwapClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapClaim) XXX_Merge(src proto.Message)
- func (m *SwapClaim) XXX_Size() int
- func (m *SwapClaim) XXX_Unmarshal(b []byte) error
- type SwapClaims
- type SwapKeeper
- type USDXMintingClaim
- func (*USDXMintingClaim) Descriptor() ([]byte, []int)
- func (c USDXMintingClaim) GetOwner() sdk.AccAddress
- func (c USDXMintingClaim) GetReward() sdk.Coin
- func (c USDXMintingClaim) GetType() string
- func (c USDXMintingClaim) HasRewardIndex(collateralType string) (int64, bool)
- func (m *USDXMintingClaim) Marshal() (dAtA []byte, err error)
- func (m *USDXMintingClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *USDXMintingClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*USDXMintingClaim) ProtoMessage()
- func (m *USDXMintingClaim) Reset()
- func (m *USDXMintingClaim) Size() (n int)
- func (m *USDXMintingClaim) String() string
- func (m *USDXMintingClaim) Unmarshal(dAtA []byte) error
- func (c USDXMintingClaim) Validate() error
- func (m *USDXMintingClaim) XXX_DiscardUnknown()
- func (m *USDXMintingClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *USDXMintingClaim) XXX_Merge(src proto.Message)
- func (m *USDXMintingClaim) XXX_Size() int
- func (m *USDXMintingClaim) XXX_Unmarshal(b []byte) error
- type USDXMintingClaims
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ClaimDelegatorReward(ctx context.Context, req *MsgClaimDelegatorReward) (*MsgClaimDelegatorRewardResponse, error)
- func (*UnimplementedMsgServer) ClaimEarnReward(ctx context.Context, req *MsgClaimEarnReward) (*MsgClaimEarnRewardResponse, error)
- func (*UnimplementedMsgServer) ClaimHardReward(ctx context.Context, req *MsgClaimHardReward) (*MsgClaimHardRewardResponse, error)
- func (*UnimplementedMsgServer) ClaimSavingsReward(ctx context.Context, req *MsgClaimSavingsReward) (*MsgClaimSavingsRewardResponse, error)
- func (*UnimplementedMsgServer) ClaimSwapReward(ctx context.Context, req *MsgClaimSwapReward) (*MsgClaimSwapRewardResponse, error)
- func (*UnimplementedMsgServer) ClaimUSDXMintingReward(ctx context.Context, req *MsgClaimUSDXMintingReward) (*MsgClaimUSDXMintingRewardResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Apy(ctx context.Context, req *QueryApyRequest) (*QueryApyResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) RewardFactors(ctx context.Context, req *QueryRewardFactorsRequest) (*QueryRewardFactorsResponse, error)
- func (*UnimplementedQueryServer) Rewards(ctx context.Context, req *QueryRewardsRequest) (*QueryRewardsResponse, error)
Constants ¶
const ( USDXMintingClaimType = "usdx_minting" HardLiquidityProviderClaimType = "hard_liquidity_provider" DelegatorClaimType = "delegator_claim" SwapClaimType = "swap" SavingsClaimType = "savings" EarnClaimType = "earn" )
const ( EventTypeClaim = "claim_reward" EventTypeRewardPeriod = "new_reward_period" EventTypeClaimPeriod = "new_claim_period" EventTypeClaimPeriodExpiry = "claim_period_expiry" AttributeValueCategory = ModuleName AttributeKeyClaimedBy = "claimed_by" AttributeKeyClaimAmount = "claim_amount" AttributeKeyClaimType = "claim_type" AttributeKeyRewardPeriod = "reward_period" AttributeKeyClaimPeriod = "claim_period" )
Events emitted by the incentive module
const ( // ModuleName The name that will be used throughout the module ModuleName = "incentive" // StoreKey Top level store key where all module items will be stored StoreKey = ModuleName // RouterKey Top level router key RouterKey = ModuleName // DefaultParamspace default name for parameter store DefaultParamspace = ModuleName )
const ( TypeMsgClaimUSDXMintingReward = "claim_usdx_minting_reward" TypeMsgClaimHardReward = "claim_hard_reward" TypeMsgClaimDelegatorReward = "claim_delegator_reward" TypeMsgClaimSwapReward = "claim_swap_reward" TypeMsgClaimSavingsReward = "claim_savings_reward" TypeMsgClaimEarnReward = "claim_earn_reward" )
const MaxDenomsToClaim = 1000
Variables ¶
var ( ErrInvalidLengthApy = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApy = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupApy = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthClaims = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClaims = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupClaims = fmt.Errorf("proto: unexpected end of group") )
var ( ErrClaimNotFound = errorsmod.Register(ModuleName, 2, "no claimable rewards found for user") ErrRewardPeriodNotFound = errorsmod.Register(ModuleName, 3, "no reward period found for collateral type") ErrInvalidAccountType = errorsmod.Register(ModuleName, 4, "account type not supported") ErrNoClaimsFound = errorsmod.Register(ModuleName, 5, "no claimable rewards found") ErrInsufficientModAccountBalance = errorsmod.Register(ModuleName, 6, "module account has insufficient balance to pay claim") ErrAccountNotFound = errorsmod.Register(ModuleName, 7, "account not found") ErrInvalidMultiplier = errorsmod.Register(ModuleName, 8, "invalid rewards multiplier") ErrZeroClaim = errorsmod.Register(ModuleName, 9, "cannot claim - claim amount rounds to zero") ErrClaimExpired = errorsmod.Register(ModuleName, 10, "claim has expired") ErrInvalidClaimType = errorsmod.Register(ModuleName, 11, "invalid claim type") ErrDecreasingRewardFactor = errorsmod.Register(ModuleName, 13, "found new reward factor less than an old reward factor") ErrInvalidClaimDenoms = errorsmod.Register(ModuleName, 14, "invalid claim denoms") )
Incentive module errors
var ( DefaultUSDXClaims = USDXMintingClaims{} DefaultHardClaims = HardLiquidityProviderClaims{} DefaultDelegatorClaims = DelegatorClaims{} DefaultSwapClaims = SwapClaims{} DefaultSavingsClaims = SavingsClaims{} DefaultGenesisRewardState = NewGenesisRewardState( AccumulationTimes{}, MultiRewardIndexes{}, ) DefaultEarnClaims = EarnClaims{} )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( USDXMintingClaimKeyPrefix = []byte{0x01} // prefix for keys that store USDX minting claims USDXMintingRewardFactorKeyPrefix = []byte{0x02} // prefix for key that stores USDX minting reward factors PreviousUSDXMintingRewardAccrualTimeKeyPrefix = []byte{0x03} // prefix for key that stores the blocktime HardLiquidityClaimKeyPrefix = []byte{0x04} // prefix for keys that store Hard liquidity claims HardSupplyRewardIndexesKeyPrefix = []byte{0x05} // prefix for key that stores Hard supply reward indexes PreviousHardSupplyRewardAccrualTimeKeyPrefix = []byte{0x06} // prefix for key that stores the previous time Hard supply rewards accrued HardBorrowRewardIndexesKeyPrefix = []byte{0x07} // prefix for key that stores Hard borrow reward indexes PreviousHardBorrowRewardAccrualTimeKeyPrefix = []byte{0x08} // prefix for key that stores the previous time Hard borrow rewards accrued DelegatorClaimKeyPrefix = []byte{0x09} // prefix for keys that store delegator claims DelegatorRewardIndexesKeyPrefix = []byte{0x10} // prefix for key that stores delegator reward indexes PreviousDelegatorRewardAccrualTimeKeyPrefix = []byte{0x11} // prefix for key that stores the previous time delegator rewards accrued SwapClaimKeyPrefix = []byte{0x12} // prefix for keys that store swap claims SwapRewardIndexesKeyPrefix = []byte{0x13} // prefix for key that stores swap reward indexes PreviousSwapRewardAccrualTimeKeyPrefix = []byte{0x14} // prefix for key that stores the previous time swap rewards accrued SavingsClaimKeyPrefix = []byte{0x15} // prefix for keys that store savings claims SavingsRewardIndexesKeyPrefix = []byte{0x16} // prefix for key that stores savings reward indexes PreviousSavingsRewardAccrualTimeKeyPrefix = []byte{0x17} // prefix for key that stores the previous time savings rewards accrued EarnClaimKeyPrefix = []byte{0x18} // prefix for keys that store earn claims EarnRewardIndexesKeyPrefix = []byte{0x19} // prefix for key that stores earn reward indexes PreviousEarnRewardAccrualTimeKeyPrefix = []byte{0x20} // prefix for key that stores the previous time earn rewards accrued )
Key Prefixes
var ( KeyUSDXMintingRewardPeriods = []byte("USDXMintingRewardPeriods") KeyHardSupplyRewardPeriods = []byte("HardSupplyRewardPeriods") KeyHardBorrowRewardPeriods = []byte("HardBorrowRewardPeriods") KeyDelegatorRewardPeriods = []byte("DelegatorRewardPeriods") KeySwapRewardPeriods = []byte("SwapRewardPeriods") KeySavingsRewardPeriods = []byte("SavingsRewardPeriods") KeyEarnRewardPeriods = []byte("EarnRewardPeriods") KeyClaimEnd = []byte("ClaimEnd") KeyMultipliers = []byte("ClaimMultipliers") DefaultActive = false DefaultRewardPeriods = RewardPeriods{} DefaultMultiRewardPeriods = MultiRewardPeriods{} DefaultMultipliers = MultipliersPerDenoms{} DefaultClaimEnd = tmtime.Canonical(time.Unix(1, 0)) BondDenom = "ukava" USDXMintingRewardDenom = "ukava" IncentiveMacc = kavadistTypes.ModuleName )
Parameter keys and default values
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var Msg_serviceDesc = _Msg_serviceDesc
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func CalculatePerSecondRewards ¶ added in v0.19.0
func GetTotalVestingPeriodLength ¶
func GetTotalVestingPeriodLength(periods vestingtypes.Periods) int64
GetTotalVestingPeriodLength returns the summed length of all vesting periods
func NewPeriod ¶
func NewPeriod(amount sdk.Coins, length int64) vestingtypes.Period
NewPeriod returns a new vesting period
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable Key declaration for parameters
func RegisterInterfaces ¶ added in v0.16.0
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶ added in v0.16.0
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers all the necessary types and interfaces for the governance module.
func RegisterMsgServer ¶ added in v0.16.0
func RegisterQueryHandler ¶ added in v0.21.1
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.21.1
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v0.21.1
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v0.21.1
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.21.1
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI SetAccount(ctx sdk.Context, acc authtypes.AccountI) GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI }
AccountKeeper expected interface for the account keeper (noalias)
type AccumulationTime ¶ added in v0.15.0
type AccumulationTime struct { CollateralType string `protobuf:"bytes,1,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` PreviousAccumulationTime time.Time `` /* 133-byte string literal not displayed */ }
AccumulationTime stores the previous reward distribution time and its corresponding collateral type
func NewAccumulationTime ¶ added in v0.15.0
func NewAccumulationTime(ctype string, prevTime time.Time) AccumulationTime
NewAccumulationTime returns a new GenesisAccumulationTime
func (*AccumulationTime) Descriptor ¶ added in v0.16.0
func (*AccumulationTime) Descriptor() ([]byte, []int)
func (*AccumulationTime) Marshal ¶ added in v0.16.0
func (m *AccumulationTime) Marshal() (dAtA []byte, err error)
func (*AccumulationTime) MarshalTo ¶ added in v0.16.0
func (m *AccumulationTime) MarshalTo(dAtA []byte) (int, error)
func (*AccumulationTime) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *AccumulationTime) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccumulationTime) ProtoMessage ¶ added in v0.16.0
func (*AccumulationTime) ProtoMessage()
func (*AccumulationTime) Reset ¶ added in v0.16.0
func (m *AccumulationTime) Reset()
func (*AccumulationTime) Size ¶ added in v0.16.0
func (m *AccumulationTime) Size() (n int)
func (*AccumulationTime) String ¶ added in v0.16.0
func (m *AccumulationTime) String() string
func (*AccumulationTime) Unmarshal ¶ added in v0.16.0
func (m *AccumulationTime) Unmarshal(dAtA []byte) error
func (AccumulationTime) Validate ¶ added in v0.15.0
func (gat AccumulationTime) Validate() error
Validate performs validation of GenesisAccumulationTime
func (*AccumulationTime) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *AccumulationTime) XXX_DiscardUnknown()
func (*AccumulationTime) XXX_Marshal ¶ added in v0.16.0
func (m *AccumulationTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccumulationTime) XXX_Merge ¶ added in v0.16.0
func (m *AccumulationTime) XXX_Merge(src proto.Message)
func (*AccumulationTime) XXX_Size ¶ added in v0.16.0
func (m *AccumulationTime) XXX_Size() int
func (*AccumulationTime) XXX_Unmarshal ¶ added in v0.16.0
func (m *AccumulationTime) XXX_Unmarshal(b []byte) error
type AccumulationTimes ¶ added in v0.15.0
type AccumulationTimes []AccumulationTime
AccumulationTimes slice of GenesisAccumulationTime
func (AccumulationTimes) Validate ¶ added in v0.15.0
func (gats AccumulationTimes) Validate() error
Validate performs validation of GenesisAccumulationTimes
type Accumulator ¶ added in v0.15.0
type Accumulator struct { PreviousAccumulationTime time.Time Indexes RewardIndexes }
An Accumulator handles calculating and tracking global reward distributions.
func NewAccumulator ¶ added in v0.15.0
func NewAccumulator(previousAccrual time.Time, indexes RewardIndexes) *Accumulator
func (*Accumulator) Accumulate ¶ added in v0.15.0
func (acc *Accumulator) Accumulate(period MultiRewardPeriod, totalSourceShares sdk.Dec, currentTime time.Time)
Accumulate accrues rewards up to the current time.
It calculates new rewards and adds them to the reward indexes for the period from PreviousAccumulationTime to currentTime. It stores the currentTime in PreviousAccumulationTime to be used for later accumulations.
Rewards are not accrued for times outside of the start and end times of a reward period. If a period ends before currentTime, the PreviousAccrualTime is shortened to the end time. This allows accumulate to be called sequentially on consecutive reward periods.
totalSourceShares is the sum of all users' source shares. For example:total btcb supplied to hard, total usdx borrowed from all bnb CDPs, or total shares in a swap pool.
type Apy ¶ added in v0.21.1
type Apy struct { CollateralType string `protobuf:"bytes,1,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` Apy github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=apy,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"apy"` }
Apy contains the calculated APY for a given collateral type at a specific instant in time.
func (*Apy) Descriptor ¶ added in v0.21.1
func (*Apy) GetCollateralType ¶ added in v0.21.1
func (*Apy) MarshalToSizedBuffer ¶ added in v0.21.1
func (*Apy) ProtoMessage ¶ added in v0.21.1
func (*Apy) ProtoMessage()
func (*Apy) XXX_DiscardUnknown ¶ added in v0.21.1
func (m *Apy) XXX_DiscardUnknown()
func (*Apy) XXX_Marshal ¶ added in v0.21.1
func (*Apy) XXX_Unmarshal ¶ added in v0.21.1
type BankKeeper ¶ added in v0.16.0
type BankKeeper interface { SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetSupply(ctx sdk.Context, denom string) sdk.Coin }
BankKeeper defines the expected interface needed to send coins
type BaseClaim ¶ added in v0.13.0
type BaseClaim struct { Owner github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=owner,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"owner,omitempty"` Reward types.Coin `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward"` }
BaseClaim is a claim with a single reward coin types
func (*BaseClaim) Descriptor ¶ added in v0.16.0
func (BaseClaim) GetOwner ¶ added in v0.13.0
func (c BaseClaim) GetOwner() sdk.AccAddress
GetOwner is a getter for Claim Owner
func (BaseClaim) GetType ¶ added in v0.13.0
GetType returns the claim type, used to identify auctions in event attributes
func (*BaseClaim) MarshalToSizedBuffer ¶ added in v0.16.0
func (*BaseClaim) ProtoMessage ¶ added in v0.16.0
func (*BaseClaim) ProtoMessage()
func (*BaseClaim) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *BaseClaim) XXX_DiscardUnknown()
func (*BaseClaim) XXX_Marshal ¶ added in v0.16.0
func (*BaseClaim) XXX_Unmarshal ¶ added in v0.16.0
type BaseMultiClaim ¶ added in v0.13.0
type BaseMultiClaim struct { Owner github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=owner,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"owner,omitempty"` Reward github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward"` }
BaseMultiClaim is a claim with multiple reward coin types
func (*BaseMultiClaim) Descriptor ¶ added in v0.16.0
func (*BaseMultiClaim) Descriptor() ([]byte, []int)
func (BaseMultiClaim) GetOwner ¶ added in v0.13.0
func (c BaseMultiClaim) GetOwner() sdk.AccAddress
GetOwner is a getter for Claim Owner
func (BaseMultiClaim) GetReward ¶ added in v0.13.0
func (c BaseMultiClaim) GetReward() sdk.Coins
GetReward is a getter for Claim Reward
func (BaseMultiClaim) GetType ¶ added in v0.13.0
func (c BaseMultiClaim) GetType() string
GetType returns the claim type, used to identify auctions in event attributes
func (*BaseMultiClaim) Marshal ¶ added in v0.16.0
func (m *BaseMultiClaim) Marshal() (dAtA []byte, err error)
func (*BaseMultiClaim) MarshalTo ¶ added in v0.16.0
func (m *BaseMultiClaim) MarshalTo(dAtA []byte) (int, error)
func (*BaseMultiClaim) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *BaseMultiClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BaseMultiClaim) ProtoMessage ¶ added in v0.16.0
func (*BaseMultiClaim) ProtoMessage()
func (*BaseMultiClaim) Reset ¶ added in v0.16.0
func (m *BaseMultiClaim) Reset()
func (*BaseMultiClaim) Size ¶ added in v0.16.0
func (m *BaseMultiClaim) Size() (n int)
func (*BaseMultiClaim) String ¶ added in v0.13.0
func (m *BaseMultiClaim) String() string
func (*BaseMultiClaim) Unmarshal ¶ added in v0.16.0
func (m *BaseMultiClaim) Unmarshal(dAtA []byte) error
func (BaseMultiClaim) Validate ¶ added in v0.13.0
func (c BaseMultiClaim) Validate() error
Validate performs a basic check of a BaseClaim fields
func (*BaseMultiClaim) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *BaseMultiClaim) XXX_DiscardUnknown()
func (*BaseMultiClaim) XXX_Marshal ¶ added in v0.16.0
func (m *BaseMultiClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BaseMultiClaim) XXX_Merge ¶ added in v0.16.0
func (m *BaseMultiClaim) XXX_Merge(src proto.Message)
func (*BaseMultiClaim) XXX_Size ¶ added in v0.16.0
func (m *BaseMultiClaim) XXX_Size() int
func (*BaseMultiClaim) XXX_Unmarshal ¶ added in v0.16.0
func (m *BaseMultiClaim) XXX_Unmarshal(b []byte) error
type CDPHooks ¶ added in v0.13.0
type CDPHooks interface { AfterCDPCreated(ctx sdk.Context, cdp cdptypes.CDP) BeforeCDPModified(ctx sdk.Context, cdp cdptypes.CDP) }
CDPHooks event hooks for other keepers to run code in response to CDP modifications
type CdpKeeper ¶
type CdpKeeper interface { GetInterestFactor(ctx sdk.Context, collateralType string) (sdk.Dec, bool) GetTotalPrincipal(ctx sdk.Context, collateralType string, principalDenom string) (total sdkmath.Int) GetCdpByOwnerAndCollateralType(ctx sdk.Context, owner sdk.AccAddress, collateralType string) (cdptypes.CDP, bool) GetCollateral(ctx sdk.Context, collateralType string) (cdptypes.CollateralParam, bool) }
CdpKeeper defines the expected cdp keeper for interacting with cdps
type DelegatorClaim ¶ added in v0.15.0
type DelegatorClaim struct { BaseMultiClaim `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"` RewardIndexes MultiRewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=MultiRewardIndexes" json:"reward_indexes"` }
DelegatorClaim stores delegation rewards that can be claimed by owner
func NewDelegatorClaim ¶ added in v0.15.0
func NewDelegatorClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) DelegatorClaim
NewDelegatorClaim returns a new DelegatorClaim
func (*DelegatorClaim) Descriptor ¶ added in v0.16.0
func (*DelegatorClaim) Descriptor() ([]byte, []int)
func (DelegatorClaim) GetOwner ¶ added in v0.15.0
func (c DelegatorClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (DelegatorClaim) GetReward ¶ added in v0.15.0
func (c DelegatorClaim) GetReward() sdk.Coins
GetReward returns the claim's reward coin
func (DelegatorClaim) GetType ¶ added in v0.15.0
func (c DelegatorClaim) GetType() string
GetType returns the claim's type
func (DelegatorClaim) HasRewardIndex ¶ added in v0.15.0
func (c DelegatorClaim) HasRewardIndex(collateralType string) (int64, bool)
HasRewardIndex checks if a DelegatorClaim has a reward index for the input collateral type
func (*DelegatorClaim) Marshal ¶ added in v0.16.0
func (m *DelegatorClaim) Marshal() (dAtA []byte, err error)
func (*DelegatorClaim) MarshalTo ¶ added in v0.16.0
func (m *DelegatorClaim) MarshalTo(dAtA []byte) (int, error)
func (*DelegatorClaim) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *DelegatorClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegatorClaim) ProtoMessage ¶ added in v0.16.0
func (*DelegatorClaim) ProtoMessage()
func (*DelegatorClaim) Reset ¶ added in v0.16.0
func (m *DelegatorClaim) Reset()
func (*DelegatorClaim) Size ¶ added in v0.16.0
func (m *DelegatorClaim) Size() (n int)
func (*DelegatorClaim) String ¶ added in v0.15.0
func (m *DelegatorClaim) String() string
func (*DelegatorClaim) Unmarshal ¶ added in v0.16.0
func (m *DelegatorClaim) Unmarshal(dAtA []byte) error
func (DelegatorClaim) Validate ¶ added in v0.15.0
func (c DelegatorClaim) Validate() error
Validate performs a basic check of a DelegatorClaim fields
func (*DelegatorClaim) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *DelegatorClaim) XXX_DiscardUnknown()
func (*DelegatorClaim) XXX_Marshal ¶ added in v0.16.0
func (m *DelegatorClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegatorClaim) XXX_Merge ¶ added in v0.16.0
func (m *DelegatorClaim) XXX_Merge(src proto.Message)
func (*DelegatorClaim) XXX_Size ¶ added in v0.16.0
func (m *DelegatorClaim) XXX_Size() int
func (*DelegatorClaim) XXX_Unmarshal ¶ added in v0.16.0
func (m *DelegatorClaim) XXX_Unmarshal(b []byte) error
type DelegatorClaims ¶ added in v0.15.0
type DelegatorClaims []DelegatorClaim
DelegatorClaim slice of DelegatorClaim
func (DelegatorClaims) Validate ¶ added in v0.15.0
func (cs DelegatorClaims) Validate() error
Validate checks if all the claims are valid and there are no duplicated entries.
type DistrKeeper ¶ added in v0.19.0
DistrKeeper defines the required methods needed by this modules keeper
type EarnClaim ¶ added in v0.19.0
type EarnClaim struct { BaseMultiClaim `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"` RewardIndexes MultiRewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=MultiRewardIndexes" json:"reward_indexes"` }
EarnClaim stores the earn rewards that can be claimed by owner
func NewEarnClaim ¶ added in v0.19.0
func NewEarnClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) EarnClaim
NewEarnClaim returns a new EarnClaim
func (*EarnClaim) Descriptor ¶ added in v0.19.0
func (EarnClaim) GetOwner ¶ added in v0.19.0
func (c EarnClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (EarnClaim) HasRewardIndex ¶ added in v0.19.0
HasRewardIndex check if a claim has a reward index for the input pool ID.
func (*EarnClaim) MarshalToSizedBuffer ¶ added in v0.19.0
func (*EarnClaim) ProtoMessage ¶ added in v0.19.0
func (*EarnClaim) ProtoMessage()
func (*EarnClaim) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *EarnClaim) XXX_DiscardUnknown()
func (*EarnClaim) XXX_Marshal ¶ added in v0.19.0
func (*EarnClaim) XXX_Unmarshal ¶ added in v0.19.0
type EarnClaims ¶ added in v0.19.0
type EarnClaims []EarnClaim
EarnClaims slice of EarnClaim
func (EarnClaims) Validate ¶ added in v0.19.0
func (cs EarnClaims) Validate() error
Validate checks if all the claims are valid.
type EarnKeeper ¶ added in v0.19.0
type EarnKeeper interface { GetVaultTotalValue(ctx sdk.Context, denom string) (sdk.Coin, error) IterateVaultRecords(ctx sdk.Context, cb func(record earntypes.VaultRecord) (stop bool)) }
EarnKeeper defines the required methods needed by this modules keeper
type GenesisRewardState ¶ added in v0.15.0
type GenesisRewardState struct { AccumulationTimes AccumulationTimes `` /* 133-byte string literal not displayed */ MultiRewardIndexes MultiRewardIndexes `` /* 139-byte string literal not displayed */ }
GenesisRewardState groups together the global state for a particular reward so it can be exported in genesis.
func NewGenesisRewardState ¶ added in v0.15.0
func NewGenesisRewardState(accumTimes AccumulationTimes, indexes MultiRewardIndexes) GenesisRewardState
NewGenesisRewardState returns a new GenesisRewardState
func (*GenesisRewardState) Descriptor ¶ added in v0.16.0
func (*GenesisRewardState) Descriptor() ([]byte, []int)
func (*GenesisRewardState) Marshal ¶ added in v0.16.0
func (m *GenesisRewardState) Marshal() (dAtA []byte, err error)
func (*GenesisRewardState) MarshalTo ¶ added in v0.16.0
func (m *GenesisRewardState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisRewardState) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *GenesisRewardState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisRewardState) ProtoMessage ¶ added in v0.16.0
func (*GenesisRewardState) ProtoMessage()
func (*GenesisRewardState) Reset ¶ added in v0.16.0
func (m *GenesisRewardState) Reset()
func (*GenesisRewardState) Size ¶ added in v0.16.0
func (m *GenesisRewardState) Size() (n int)
func (*GenesisRewardState) String ¶ added in v0.16.0
func (m *GenesisRewardState) String() string
func (*GenesisRewardState) Unmarshal ¶ added in v0.16.0
func (m *GenesisRewardState) Unmarshal(dAtA []byte) error
func (GenesisRewardState) Validate ¶ added in v0.15.0
func (grs GenesisRewardState) Validate() error
Validate performs validation of a GenesisRewardState
func (*GenesisRewardState) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *GenesisRewardState) XXX_DiscardUnknown()
func (*GenesisRewardState) XXX_Marshal ¶ added in v0.16.0
func (m *GenesisRewardState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisRewardState) XXX_Merge ¶ added in v0.16.0
func (m *GenesisRewardState) XXX_Merge(src proto.Message)
func (*GenesisRewardState) XXX_Size ¶ added in v0.16.0
func (m *GenesisRewardState) XXX_Size() int
func (*GenesisRewardState) XXX_Unmarshal ¶ added in v0.16.0
func (m *GenesisRewardState) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` USDXRewardState GenesisRewardState `protobuf:"bytes,2,opt,name=usdx_reward_state,json=usdxRewardState,proto3" json:"usdx_reward_state"` HardSupplyRewardState GenesisRewardState `protobuf:"bytes,3,opt,name=hard_supply_reward_state,json=hardSupplyRewardState,proto3" json:"hard_supply_reward_state"` HardBorrowRewardState GenesisRewardState `protobuf:"bytes,4,opt,name=hard_borrow_reward_state,json=hardBorrowRewardState,proto3" json:"hard_borrow_reward_state"` DelegatorRewardState GenesisRewardState `protobuf:"bytes,5,opt,name=delegator_reward_state,json=delegatorRewardState,proto3" json:"delegator_reward_state"` SwapRewardState GenesisRewardState `protobuf:"bytes,6,opt,name=swap_reward_state,json=swapRewardState,proto3" json:"swap_reward_state"` USDXMintingClaims USDXMintingClaims `` /* 135-byte string literal not displayed */ HardLiquidityProviderClaims HardLiquidityProviderClaims `` /* 177-byte string literal not displayed */ DelegatorClaims DelegatorClaims `protobuf:"bytes,9,rep,name=delegator_claims,json=delegatorClaims,proto3,castrepeated=DelegatorClaims" json:"delegator_claims"` SwapClaims SwapClaims `protobuf:"bytes,10,rep,name=swap_claims,json=swapClaims,proto3,castrepeated=SwapClaims" json:"swap_claims"` SavingsRewardState GenesisRewardState `protobuf:"bytes,11,opt,name=savings_reward_state,json=savingsRewardState,proto3" json:"savings_reward_state"` SavingsClaims SavingsClaims `protobuf:"bytes,12,rep,name=savings_claims,json=savingsClaims,proto3,castrepeated=SavingsClaims" json:"savings_claims"` EarnRewardState GenesisRewardState `protobuf:"bytes,13,opt,name=earn_reward_state,json=earnRewardState,proto3" json:"earn_reward_state"` EarnClaims EarnClaims `protobuf:"bytes,14,rep,name=earn_claims,json=earnClaims,proto3,castrepeated=EarnClaims" json:"earn_claims"` }
GenesisState is the state that must be provided at genesis.
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns a default genesis state
func NewGenesisState ¶
func NewGenesisState( params Params, usdxState, hardSupplyState, hardBorrowState, delegatorState, swapState, savingsState, earnState GenesisRewardState, c USDXMintingClaims, hc HardLiquidityProviderClaims, dc DelegatorClaims, sc SwapClaims, savingsc SavingsClaims, earnc EarnClaims, ) GenesisState
NewGenesisState returns a new genesis state
func (*GenesisState) Descriptor ¶ added in v0.16.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶ added in v0.16.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.16.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.16.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.16.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.16.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.16.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.16.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic validation of genesis data returning an error for any failed validation criteria.
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.16.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.16.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.16.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.16.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type HARDHooks ¶ added in v0.13.0
type HARDHooks interface { AfterDepositCreated(ctx sdk.Context, deposit hardtypes.Deposit) BeforeDepositModified(ctx sdk.Context, deposit hardtypes.Deposit) AfterDepositModified(ctx sdk.Context, deposit hardtypes.Deposit) AfterBorrowCreated(ctx sdk.Context, borrow hardtypes.Borrow) BeforeBorrowModified(ctx sdk.Context, borrow hardtypes.Borrow) AfterBorrowModified(ctx sdk.Context, deposit hardtypes.Deposit) }
HARDHooks event hooks for other keepers to run code in response to HARD modifications
type HardKeeper ¶ added in v0.13.0
type HardKeeper interface { GetDeposit(ctx sdk.Context, depositor sdk.AccAddress) (hardtypes.Deposit, bool) GetBorrow(ctx sdk.Context, borrower sdk.AccAddress) (hardtypes.Borrow, bool) GetSupplyInterestFactor(ctx sdk.Context, denom string) (sdk.Dec, bool) GetBorrowInterestFactor(ctx sdk.Context, denom string) (sdk.Dec, bool) GetBorrowedCoins(ctx sdk.Context) (coins sdk.Coins, found bool) GetSuppliedCoins(ctx sdk.Context) (coins sdk.Coins, found bool) }
HardKeeper defines the expected hard keeper for interacting with Hard protocol
type HardLiquidityProviderClaim ¶ added in v0.13.0
type HardLiquidityProviderClaim struct { BaseMultiClaim `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"` SupplyRewardIndexes MultiRewardIndexes `` /* 142-byte string literal not displayed */ BorrowRewardIndexes MultiRewardIndexes `` /* 142-byte string literal not displayed */ }
HardLiquidityProviderClaim stores the hard liquidity provider rewards that can be claimed by owner
func NewHardLiquidityProviderClaim ¶ added in v0.13.0
func NewHardLiquidityProviderClaim(owner sdk.AccAddress, rewards sdk.Coins, supplyRewardIndexes, borrowRewardIndexes MultiRewardIndexes, ) HardLiquidityProviderClaim
NewHardLiquidityProviderClaim returns a new HardLiquidityProviderClaim
func (*HardLiquidityProviderClaim) Descriptor ¶ added in v0.16.0
func (*HardLiquidityProviderClaim) Descriptor() ([]byte, []int)
func (HardLiquidityProviderClaim) GetOwner ¶ added in v0.13.0
func (c HardLiquidityProviderClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (HardLiquidityProviderClaim) GetReward ¶ added in v0.13.0
func (c HardLiquidityProviderClaim) GetReward() sdk.Coins
GetReward returns the claim's reward coin
func (HardLiquidityProviderClaim) GetType ¶ added in v0.13.0
func (c HardLiquidityProviderClaim) GetType() string
GetType returns the claim's type
func (HardLiquidityProviderClaim) HasBorrowRewardIndex ¶ added in v0.13.0
func (c HardLiquidityProviderClaim) HasBorrowRewardIndex(denom string) (int64, bool)
HasBorrowRewardIndex check if a claim has a borrow reward index for the input collateral type
func (HardLiquidityProviderClaim) HasSupplyRewardIndex ¶ added in v0.13.0
func (c HardLiquidityProviderClaim) HasSupplyRewardIndex(denom string) (int64, bool)
HasSupplyRewardIndex check if a claim has a supply reward index for the input collateral type
func (*HardLiquidityProviderClaim) Marshal ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) Marshal() (dAtA []byte, err error)
func (*HardLiquidityProviderClaim) MarshalTo ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) MarshalTo(dAtA []byte) (int, error)
func (*HardLiquidityProviderClaim) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HardLiquidityProviderClaim) ProtoMessage ¶ added in v0.16.0
func (*HardLiquidityProviderClaim) ProtoMessage()
func (*HardLiquidityProviderClaim) Reset ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) Reset()
func (*HardLiquidityProviderClaim) Size ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) Size() (n int)
func (*HardLiquidityProviderClaim) String ¶ added in v0.13.0
func (m *HardLiquidityProviderClaim) String() string
func (*HardLiquidityProviderClaim) Unmarshal ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) Unmarshal(dAtA []byte) error
func (HardLiquidityProviderClaim) Validate ¶ added in v0.13.0
func (c HardLiquidityProviderClaim) Validate() error
Validate performs a basic check of a HardLiquidityProviderClaim fields
func (*HardLiquidityProviderClaim) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) XXX_DiscardUnknown()
func (*HardLiquidityProviderClaim) XXX_Marshal ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HardLiquidityProviderClaim) XXX_Merge ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) XXX_Merge(src proto.Message)
func (*HardLiquidityProviderClaim) XXX_Size ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) XXX_Size() int
func (*HardLiquidityProviderClaim) XXX_Unmarshal ¶ added in v0.16.0
func (m *HardLiquidityProviderClaim) XXX_Unmarshal(b []byte) error
type HardLiquidityProviderClaims ¶ added in v0.13.0
type HardLiquidityProviderClaims []HardLiquidityProviderClaim
HardLiquidityProviderClaims slice of HardLiquidityProviderClaim
func (HardLiquidityProviderClaims) Validate ¶ added in v0.13.0
func (cs HardLiquidityProviderClaims) Validate() error
Validate checks if all the claims are valid and there are no duplicated entries.
type LiquidKeeper ¶ added in v0.19.0
type LiquidKeeper interface { IsDerivativeDenom(ctx sdk.Context, denom string) bool GetTotalDerivativeValue(ctx sdk.Context) (sdk.Coin, error) GetDerivativeValue(ctx sdk.Context, denom string) (sdk.Coin, error) CollectStakingRewardsByDenom( ctx sdk.Context, derivativeDenom string, destinationModAccount string, ) (sdk.Coins, error) }
LiquidKeeper defines the required methods needed by this modules keeper
type MintKeeper ¶ added in v0.19.0
MintKeeper defines the required methods needed by this modules keeper
type MsgClaimDelegatorReward ¶ added in v0.15.0
type MsgClaimDelegatorReward struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` DenomsToClaim Selections `protobuf:"bytes,2,rep,name=denoms_to_claim,json=denomsToClaim,proto3,castrepeated=Selections" json:"denoms_to_claim"` }
MsgClaimDelegatorReward message type used to claim delegator rewards
func NewMsgClaimDelegatorReward ¶ added in v0.15.0
func NewMsgClaimDelegatorReward(sender string, denomsToClaim Selections) MsgClaimDelegatorReward
NewMsgClaimDelegatorReward returns a new MsgClaimDelegatorReward.
func (*MsgClaimDelegatorReward) Descriptor ¶ added in v0.16.0
func (*MsgClaimDelegatorReward) Descriptor() ([]byte, []int)
func (MsgClaimDelegatorReward) GetSignBytes ¶ added in v0.15.0
func (msg MsgClaimDelegatorReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimDelegatorReward) GetSigners ¶ added in v0.15.0
func (msg MsgClaimDelegatorReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimDelegatorReward) Marshal ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimDelegatorReward) MarshalTo ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimDelegatorReward) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimDelegatorReward) ProtoMessage ¶ added in v0.16.0
func (*MsgClaimDelegatorReward) ProtoMessage()
func (*MsgClaimDelegatorReward) Reset ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) Reset()
func (MsgClaimDelegatorReward) Route ¶ added in v0.15.0
func (msg MsgClaimDelegatorReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimDelegatorReward) Size ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) Size() (n int)
func (*MsgClaimDelegatorReward) String ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) String() string
func (MsgClaimDelegatorReward) Type ¶ added in v0.15.0
func (msg MsgClaimDelegatorReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimDelegatorReward) Unmarshal ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) Unmarshal(dAtA []byte) error
func (MsgClaimDelegatorReward) ValidateBasic ¶ added in v0.15.0
func (msg MsgClaimDelegatorReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimDelegatorReward) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) XXX_DiscardUnknown()
func (*MsgClaimDelegatorReward) XXX_Marshal ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimDelegatorReward) XXX_Merge ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) XXX_Merge(src proto.Message)
func (*MsgClaimDelegatorReward) XXX_Size ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) XXX_Size() int
func (*MsgClaimDelegatorReward) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgClaimDelegatorReward) XXX_Unmarshal(b []byte) error
type MsgClaimDelegatorRewardResponse ¶ added in v0.16.0
type MsgClaimDelegatorRewardResponse struct { }
MsgClaimDelegatorRewardResponse defines the Msg/ClaimDelegatorReward response type.
func (*MsgClaimDelegatorRewardResponse) Descriptor ¶ added in v0.16.0
func (*MsgClaimDelegatorRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimDelegatorRewardResponse) Marshal ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimDelegatorRewardResponse) MarshalTo ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimDelegatorRewardResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimDelegatorRewardResponse) ProtoMessage ¶ added in v0.16.0
func (*MsgClaimDelegatorRewardResponse) ProtoMessage()
func (*MsgClaimDelegatorRewardResponse) Reset ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) Reset()
func (*MsgClaimDelegatorRewardResponse) Size ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) Size() (n int)
func (*MsgClaimDelegatorRewardResponse) String ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) String() string
func (*MsgClaimDelegatorRewardResponse) Unmarshal ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimDelegatorRewardResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimDelegatorRewardResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimDelegatorRewardResponse) XXX_Merge ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimDelegatorRewardResponse) XXX_Size ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) XXX_Size() int
func (*MsgClaimDelegatorRewardResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgClaimDelegatorRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClaimEarnReward ¶ added in v0.19.0
type MsgClaimEarnReward struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` DenomsToClaim Selections `protobuf:"bytes,2,rep,name=denoms_to_claim,json=denomsToClaim,proto3,castrepeated=Selections" json:"denoms_to_claim"` }
MsgClaimEarnReward message type used to claim earn rewards
func NewMsgClaimEarnReward ¶ added in v0.19.0
func NewMsgClaimEarnReward(sender string, denomsToClaim Selections) MsgClaimEarnReward
NewMsgClaimEarnReward returns a new MsgClaimEarnReward.
func (*MsgClaimEarnReward) Descriptor ¶ added in v0.19.0
func (*MsgClaimEarnReward) Descriptor() ([]byte, []int)
func (MsgClaimEarnReward) GetSignBytes ¶ added in v0.19.0
func (msg MsgClaimEarnReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimEarnReward) GetSigners ¶ added in v0.19.0
func (msg MsgClaimEarnReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimEarnReward) Marshal ¶ added in v0.19.0
func (m *MsgClaimEarnReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimEarnReward) MarshalTo ¶ added in v0.19.0
func (m *MsgClaimEarnReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimEarnReward) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgClaimEarnReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimEarnReward) ProtoMessage ¶ added in v0.19.0
func (*MsgClaimEarnReward) ProtoMessage()
func (*MsgClaimEarnReward) Reset ¶ added in v0.19.0
func (m *MsgClaimEarnReward) Reset()
func (MsgClaimEarnReward) Route ¶ added in v0.19.0
func (msg MsgClaimEarnReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimEarnReward) Size ¶ added in v0.19.0
func (m *MsgClaimEarnReward) Size() (n int)
func (*MsgClaimEarnReward) String ¶ added in v0.19.0
func (m *MsgClaimEarnReward) String() string
func (MsgClaimEarnReward) Type ¶ added in v0.19.0
func (msg MsgClaimEarnReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimEarnReward) Unmarshal ¶ added in v0.19.0
func (m *MsgClaimEarnReward) Unmarshal(dAtA []byte) error
func (MsgClaimEarnReward) ValidateBasic ¶ added in v0.19.0
func (msg MsgClaimEarnReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimEarnReward) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgClaimEarnReward) XXX_DiscardUnknown()
func (*MsgClaimEarnReward) XXX_Marshal ¶ added in v0.19.0
func (m *MsgClaimEarnReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimEarnReward) XXX_Merge ¶ added in v0.19.0
func (m *MsgClaimEarnReward) XXX_Merge(src proto.Message)
func (*MsgClaimEarnReward) XXX_Size ¶ added in v0.19.0
func (m *MsgClaimEarnReward) XXX_Size() int
func (*MsgClaimEarnReward) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgClaimEarnReward) XXX_Unmarshal(b []byte) error
type MsgClaimEarnRewardResponse ¶ added in v0.19.0
type MsgClaimEarnRewardResponse struct { }
MsgClaimEarnRewardResponse defines the Msg/ClaimEarnReward response type.
func (*MsgClaimEarnRewardResponse) Descriptor ¶ added in v0.19.0
func (*MsgClaimEarnRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimEarnRewardResponse) Marshal ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimEarnRewardResponse) MarshalTo ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimEarnRewardResponse) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimEarnRewardResponse) ProtoMessage ¶ added in v0.19.0
func (*MsgClaimEarnRewardResponse) ProtoMessage()
func (*MsgClaimEarnRewardResponse) Reset ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) Reset()
func (*MsgClaimEarnRewardResponse) Size ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) Size() (n int)
func (*MsgClaimEarnRewardResponse) String ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) String() string
func (*MsgClaimEarnRewardResponse) Unmarshal ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimEarnRewardResponse) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimEarnRewardResponse) XXX_Marshal ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimEarnRewardResponse) XXX_Merge ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimEarnRewardResponse) XXX_Size ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) XXX_Size() int
func (*MsgClaimEarnRewardResponse) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgClaimEarnRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClaimHardReward ¶ added in v0.14.0
type MsgClaimHardReward struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` DenomsToClaim Selections `protobuf:"bytes,2,rep,name=denoms_to_claim,json=denomsToClaim,proto3,castrepeated=Selections" json:"denoms_to_claim"` }
MsgClaimHardReward message type used to claim Hard liquidity provider rewards
func NewMsgClaimHardReward ¶ added in v0.14.0
func NewMsgClaimHardReward(sender string, denomsToClaim Selections) MsgClaimHardReward
NewMsgClaimHardReward returns a new MsgClaimHardReward.
func (*MsgClaimHardReward) Descriptor ¶ added in v0.16.0
func (*MsgClaimHardReward) Descriptor() ([]byte, []int)
func (MsgClaimHardReward) GetSignBytes ¶ added in v0.14.0
func (msg MsgClaimHardReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimHardReward) GetSigners ¶ added in v0.14.0
func (msg MsgClaimHardReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimHardReward) Marshal ¶ added in v0.16.0
func (m *MsgClaimHardReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimHardReward) MarshalTo ¶ added in v0.16.0
func (m *MsgClaimHardReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimHardReward) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgClaimHardReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimHardReward) ProtoMessage ¶ added in v0.16.0
func (*MsgClaimHardReward) ProtoMessage()
func (*MsgClaimHardReward) Reset ¶ added in v0.16.0
func (m *MsgClaimHardReward) Reset()
func (MsgClaimHardReward) Route ¶ added in v0.14.0
func (msg MsgClaimHardReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimHardReward) Size ¶ added in v0.16.0
func (m *MsgClaimHardReward) Size() (n int)
func (*MsgClaimHardReward) String ¶ added in v0.16.0
func (m *MsgClaimHardReward) String() string
func (MsgClaimHardReward) Type ¶ added in v0.14.0
func (msg MsgClaimHardReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimHardReward) Unmarshal ¶ added in v0.16.0
func (m *MsgClaimHardReward) Unmarshal(dAtA []byte) error
func (MsgClaimHardReward) ValidateBasic ¶ added in v0.14.0
func (msg MsgClaimHardReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimHardReward) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgClaimHardReward) XXX_DiscardUnknown()
func (*MsgClaimHardReward) XXX_Marshal ¶ added in v0.16.0
func (m *MsgClaimHardReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimHardReward) XXX_Merge ¶ added in v0.16.0
func (m *MsgClaimHardReward) XXX_Merge(src proto.Message)
func (*MsgClaimHardReward) XXX_Size ¶ added in v0.16.0
func (m *MsgClaimHardReward) XXX_Size() int
func (*MsgClaimHardReward) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgClaimHardReward) XXX_Unmarshal(b []byte) error
type MsgClaimHardRewardResponse ¶ added in v0.16.0
type MsgClaimHardRewardResponse struct { }
MsgClaimHardRewardResponse defines the Msg/ClaimHardReward response type.
func (*MsgClaimHardRewardResponse) Descriptor ¶ added in v0.16.0
func (*MsgClaimHardRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimHardRewardResponse) Marshal ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimHardRewardResponse) MarshalTo ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimHardRewardResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimHardRewardResponse) ProtoMessage ¶ added in v0.16.0
func (*MsgClaimHardRewardResponse) ProtoMessage()
func (*MsgClaimHardRewardResponse) Reset ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) Reset()
func (*MsgClaimHardRewardResponse) Size ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) Size() (n int)
func (*MsgClaimHardRewardResponse) String ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) String() string
func (*MsgClaimHardRewardResponse) Unmarshal ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimHardRewardResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimHardRewardResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimHardRewardResponse) XXX_Merge ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimHardRewardResponse) XXX_Size ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) XXX_Size() int
func (*MsgClaimHardRewardResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgClaimHardRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClaimSavingsReward ¶ added in v0.17.0
type MsgClaimSavingsReward struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` DenomsToClaim Selections `protobuf:"bytes,2,rep,name=denoms_to_claim,json=denomsToClaim,proto3,castrepeated=Selections" json:"denoms_to_claim"` }
MsgClaimSavingsReward message type used to claim savings rewards
func NewMsgClaimSavingsReward ¶ added in v0.17.0
func NewMsgClaimSavingsReward(sender string, denomsToClaim Selections) MsgClaimSavingsReward
NewMsgClaimSavingsReward returns a new MsgClaimSavingsReward.
func (*MsgClaimSavingsReward) Descriptor ¶ added in v0.17.0
func (*MsgClaimSavingsReward) Descriptor() ([]byte, []int)
func (MsgClaimSavingsReward) GetSignBytes ¶ added in v0.17.0
func (msg MsgClaimSavingsReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimSavingsReward) GetSigners ¶ added in v0.17.0
func (msg MsgClaimSavingsReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimSavingsReward) Marshal ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimSavingsReward) MarshalTo ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimSavingsReward) MarshalToSizedBuffer ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimSavingsReward) ProtoMessage ¶ added in v0.17.0
func (*MsgClaimSavingsReward) ProtoMessage()
func (*MsgClaimSavingsReward) Reset ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) Reset()
func (MsgClaimSavingsReward) Route ¶ added in v0.17.0
func (msg MsgClaimSavingsReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimSavingsReward) Size ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) Size() (n int)
func (*MsgClaimSavingsReward) String ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) String() string
func (MsgClaimSavingsReward) Type ¶ added in v0.17.0
func (msg MsgClaimSavingsReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimSavingsReward) Unmarshal ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) Unmarshal(dAtA []byte) error
func (MsgClaimSavingsReward) ValidateBasic ¶ added in v0.17.0
func (msg MsgClaimSavingsReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimSavingsReward) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) XXX_DiscardUnknown()
func (*MsgClaimSavingsReward) XXX_Marshal ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimSavingsReward) XXX_Merge ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) XXX_Merge(src proto.Message)
func (*MsgClaimSavingsReward) XXX_Size ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) XXX_Size() int
func (*MsgClaimSavingsReward) XXX_Unmarshal ¶ added in v0.17.0
func (m *MsgClaimSavingsReward) XXX_Unmarshal(b []byte) error
type MsgClaimSavingsRewardResponse ¶ added in v0.17.0
type MsgClaimSavingsRewardResponse struct { }
MsgClaimSavingsRewardResponse defines the Msg/ClaimSavingsReward response type.
func (*MsgClaimSavingsRewardResponse) Descriptor ¶ added in v0.17.0
func (*MsgClaimSavingsRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimSavingsRewardResponse) Marshal ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimSavingsRewardResponse) MarshalTo ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimSavingsRewardResponse) MarshalToSizedBuffer ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimSavingsRewardResponse) ProtoMessage ¶ added in v0.17.0
func (*MsgClaimSavingsRewardResponse) ProtoMessage()
func (*MsgClaimSavingsRewardResponse) Reset ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) Reset()
func (*MsgClaimSavingsRewardResponse) Size ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) Size() (n int)
func (*MsgClaimSavingsRewardResponse) String ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) String() string
func (*MsgClaimSavingsRewardResponse) Unmarshal ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimSavingsRewardResponse) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimSavingsRewardResponse) XXX_Marshal ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimSavingsRewardResponse) XXX_Merge ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimSavingsRewardResponse) XXX_Size ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) XXX_Size() int
func (*MsgClaimSavingsRewardResponse) XXX_Unmarshal ¶ added in v0.17.0
func (m *MsgClaimSavingsRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClaimSwapReward ¶ added in v0.15.0
type MsgClaimSwapReward struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` DenomsToClaim Selections `protobuf:"bytes,2,rep,name=denoms_to_claim,json=denomsToClaim,proto3,castrepeated=Selections" json:"denoms_to_claim"` }
MsgClaimSwapReward message type used to claim delegator rewards
func NewMsgClaimSwapReward ¶ added in v0.15.0
func NewMsgClaimSwapReward(sender string, denomsToClaim Selections) MsgClaimSwapReward
NewMsgClaimSwapReward returns a new MsgClaimSwapReward.
func (*MsgClaimSwapReward) Descriptor ¶ added in v0.16.0
func (*MsgClaimSwapReward) Descriptor() ([]byte, []int)
func (MsgClaimSwapReward) GetSignBytes ¶ added in v0.15.0
func (msg MsgClaimSwapReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimSwapReward) GetSigners ¶ added in v0.15.0
func (msg MsgClaimSwapReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimSwapReward) Marshal ¶ added in v0.16.0
func (m *MsgClaimSwapReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimSwapReward) MarshalTo ¶ added in v0.16.0
func (m *MsgClaimSwapReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimSwapReward) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgClaimSwapReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimSwapReward) ProtoMessage ¶ added in v0.16.0
func (*MsgClaimSwapReward) ProtoMessage()
func (*MsgClaimSwapReward) Reset ¶ added in v0.16.0
func (m *MsgClaimSwapReward) Reset()
func (MsgClaimSwapReward) Route ¶ added in v0.15.0
func (msg MsgClaimSwapReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimSwapReward) Size ¶ added in v0.16.0
func (m *MsgClaimSwapReward) Size() (n int)
func (*MsgClaimSwapReward) String ¶ added in v0.16.0
func (m *MsgClaimSwapReward) String() string
func (MsgClaimSwapReward) Type ¶ added in v0.15.0
func (msg MsgClaimSwapReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimSwapReward) Unmarshal ¶ added in v0.16.0
func (m *MsgClaimSwapReward) Unmarshal(dAtA []byte) error
func (MsgClaimSwapReward) ValidateBasic ¶ added in v0.15.0
func (msg MsgClaimSwapReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimSwapReward) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgClaimSwapReward) XXX_DiscardUnknown()
func (*MsgClaimSwapReward) XXX_Marshal ¶ added in v0.16.0
func (m *MsgClaimSwapReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimSwapReward) XXX_Merge ¶ added in v0.16.0
func (m *MsgClaimSwapReward) XXX_Merge(src proto.Message)
func (*MsgClaimSwapReward) XXX_Size ¶ added in v0.16.0
func (m *MsgClaimSwapReward) XXX_Size() int
func (*MsgClaimSwapReward) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgClaimSwapReward) XXX_Unmarshal(b []byte) error
type MsgClaimSwapRewardResponse ¶ added in v0.16.0
type MsgClaimSwapRewardResponse struct { }
MsgClaimSwapRewardResponse defines the Msg/ClaimSwapReward response type.
func (*MsgClaimSwapRewardResponse) Descriptor ¶ added in v0.16.0
func (*MsgClaimSwapRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimSwapRewardResponse) Marshal ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimSwapRewardResponse) MarshalTo ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimSwapRewardResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimSwapRewardResponse) ProtoMessage ¶ added in v0.16.0
func (*MsgClaimSwapRewardResponse) ProtoMessage()
func (*MsgClaimSwapRewardResponse) Reset ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) Reset()
func (*MsgClaimSwapRewardResponse) Size ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) Size() (n int)
func (*MsgClaimSwapRewardResponse) String ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) String() string
func (*MsgClaimSwapRewardResponse) Unmarshal ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimSwapRewardResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimSwapRewardResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimSwapRewardResponse) XXX_Merge ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimSwapRewardResponse) XXX_Size ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) XXX_Size() int
func (*MsgClaimSwapRewardResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgClaimSwapRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClaimUSDXMintingReward ¶ added in v0.13.0
type MsgClaimUSDXMintingReward struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` MultiplierName string `protobuf:"bytes,2,opt,name=multiplier_name,json=multiplierName,proto3" json:"multiplier_name,omitempty"` }
MsgClaimUSDXMintingReward message type used to claim USDX minting rewards
func NewMsgClaimUSDXMintingReward ¶ added in v0.13.0
func NewMsgClaimUSDXMintingReward(sender string, multiplierName string) MsgClaimUSDXMintingReward
NewMsgClaimUSDXMintingReward returns a new MsgClaimUSDXMintingReward.
func (*MsgClaimUSDXMintingReward) Descriptor ¶ added in v0.16.0
func (*MsgClaimUSDXMintingReward) Descriptor() ([]byte, []int)
func (MsgClaimUSDXMintingReward) GetSignBytes ¶ added in v0.13.0
func (msg MsgClaimUSDXMintingReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimUSDXMintingReward) GetSigners ¶ added in v0.13.0
func (msg MsgClaimUSDXMintingReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimUSDXMintingReward) Marshal ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimUSDXMintingReward) MarshalTo ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimUSDXMintingReward) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimUSDXMintingReward) ProtoMessage ¶ added in v0.16.0
func (*MsgClaimUSDXMintingReward) ProtoMessage()
func (*MsgClaimUSDXMintingReward) Reset ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) Reset()
func (MsgClaimUSDXMintingReward) Route ¶ added in v0.13.0
func (msg MsgClaimUSDXMintingReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimUSDXMintingReward) Size ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) Size() (n int)
func (*MsgClaimUSDXMintingReward) String ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) String() string
func (MsgClaimUSDXMintingReward) Type ¶ added in v0.13.0
func (msg MsgClaimUSDXMintingReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimUSDXMintingReward) Unmarshal ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) Unmarshal(dAtA []byte) error
func (MsgClaimUSDXMintingReward) ValidateBasic ¶ added in v0.13.0
func (msg MsgClaimUSDXMintingReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimUSDXMintingReward) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) XXX_DiscardUnknown()
func (*MsgClaimUSDXMintingReward) XXX_Marshal ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimUSDXMintingReward) XXX_Merge ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) XXX_Merge(src proto.Message)
func (*MsgClaimUSDXMintingReward) XXX_Size ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) XXX_Size() int
func (*MsgClaimUSDXMintingReward) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingReward) XXX_Unmarshal(b []byte) error
type MsgClaimUSDXMintingRewardResponse ¶ added in v0.16.0
type MsgClaimUSDXMintingRewardResponse struct { }
MsgClaimUSDXMintingRewardResponse defines the Msg/ClaimUSDXMintingReward response type.
func (*MsgClaimUSDXMintingRewardResponse) Descriptor ¶ added in v0.16.0
func (*MsgClaimUSDXMintingRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimUSDXMintingRewardResponse) Marshal ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimUSDXMintingRewardResponse) MarshalTo ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimUSDXMintingRewardResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimUSDXMintingRewardResponse) ProtoMessage ¶ added in v0.16.0
func (*MsgClaimUSDXMintingRewardResponse) ProtoMessage()
func (*MsgClaimUSDXMintingRewardResponse) Reset ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) Reset()
func (*MsgClaimUSDXMintingRewardResponse) Size ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) Size() (n int)
func (*MsgClaimUSDXMintingRewardResponse) String ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) String() string
func (*MsgClaimUSDXMintingRewardResponse) Unmarshal ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimUSDXMintingRewardResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimUSDXMintingRewardResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimUSDXMintingRewardResponse) XXX_Merge ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimUSDXMintingRewardResponse) XXX_Size ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) XXX_Size() int
func (*MsgClaimUSDXMintingRewardResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgClaimUSDXMintingRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.16.0
type MsgClient interface { // ClaimUSDXMintingReward is a message type used to claim USDX minting rewards ClaimUSDXMintingReward(ctx context.Context, in *MsgClaimUSDXMintingReward, opts ...grpc.CallOption) (*MsgClaimUSDXMintingRewardResponse, error) // ClaimHardReward is a message type used to claim Hard liquidity provider rewards ClaimHardReward(ctx context.Context, in *MsgClaimHardReward, opts ...grpc.CallOption) (*MsgClaimHardRewardResponse, error) // ClaimDelegatorReward is a message type used to claim delegator rewards ClaimDelegatorReward(ctx context.Context, in *MsgClaimDelegatorReward, opts ...grpc.CallOption) (*MsgClaimDelegatorRewardResponse, error) // ClaimSwapReward is a message type used to claim swap rewards ClaimSwapReward(ctx context.Context, in *MsgClaimSwapReward, opts ...grpc.CallOption) (*MsgClaimSwapRewardResponse, error) // ClaimSavingsReward is a message type used to claim savings rewards ClaimSavingsReward(ctx context.Context, in *MsgClaimSavingsReward, opts ...grpc.CallOption) (*MsgClaimSavingsRewardResponse, error) // ClaimEarnReward is a message type used to claim earn rewards ClaimEarnReward(ctx context.Context, in *MsgClaimEarnReward, opts ...grpc.CallOption) (*MsgClaimEarnRewardResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶ added in v0.16.0
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶ added in v0.16.0
type MsgServer interface { // ClaimUSDXMintingReward is a message type used to claim USDX minting rewards ClaimUSDXMintingReward(context.Context, *MsgClaimUSDXMintingReward) (*MsgClaimUSDXMintingRewardResponse, error) // ClaimHardReward is a message type used to claim Hard liquidity provider rewards ClaimHardReward(context.Context, *MsgClaimHardReward) (*MsgClaimHardRewardResponse, error) // ClaimDelegatorReward is a message type used to claim delegator rewards ClaimDelegatorReward(context.Context, *MsgClaimDelegatorReward) (*MsgClaimDelegatorRewardResponse, error) // ClaimSwapReward is a message type used to claim swap rewards ClaimSwapReward(context.Context, *MsgClaimSwapReward) (*MsgClaimSwapRewardResponse, error) // ClaimSavingsReward is a message type used to claim savings rewards ClaimSavingsReward(context.Context, *MsgClaimSavingsReward) (*MsgClaimSavingsRewardResponse, error) // ClaimEarnReward is a message type used to claim earn rewards ClaimEarnReward(context.Context, *MsgClaimEarnReward) (*MsgClaimEarnRewardResponse, error) }
MsgServer is the server API for Msg service.
type MultiRewardIndex ¶ added in v0.13.0
type MultiRewardIndex struct { CollateralType string `protobuf:"bytes,1,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` RewardIndexes RewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=RewardIndexes" json:"reward_indexes"` }
MultiRewardIndex stores reward accumulation information on multiple reward types
func NewMultiRewardIndex ¶ added in v0.13.0
func NewMultiRewardIndex(collateralType string, indexes RewardIndexes) MultiRewardIndex
NewMultiRewardIndex returns a new MultiRewardIndex
func (*MultiRewardIndex) Descriptor ¶ added in v0.16.0
func (*MultiRewardIndex) Descriptor() ([]byte, []int)
func (MultiRewardIndex) GetFactorIndex ¶ added in v0.13.0
func (mri MultiRewardIndex) GetFactorIndex(denom string) (int, bool)
GetFactorIndex gets the index of a specific reward index inside the array by its index
func (*MultiRewardIndex) Marshal ¶ added in v0.16.0
func (m *MultiRewardIndex) Marshal() (dAtA []byte, err error)
func (*MultiRewardIndex) MarshalTo ¶ added in v0.16.0
func (m *MultiRewardIndex) MarshalTo(dAtA []byte) (int, error)
func (*MultiRewardIndex) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MultiRewardIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiRewardIndex) ProtoMessage ¶ added in v0.16.0
func (*MultiRewardIndex) ProtoMessage()
func (*MultiRewardIndex) Reset ¶ added in v0.16.0
func (m *MultiRewardIndex) Reset()
func (*MultiRewardIndex) Size ¶ added in v0.16.0
func (m *MultiRewardIndex) Size() (n int)
func (*MultiRewardIndex) String ¶ added in v0.13.0
func (m *MultiRewardIndex) String() string
func (*MultiRewardIndex) Unmarshal ¶ added in v0.16.0
func (m *MultiRewardIndex) Unmarshal(dAtA []byte) error
func (MultiRewardIndex) Validate ¶ added in v0.13.0
func (mri MultiRewardIndex) Validate() error
Validate validates multi-reward index
func (*MultiRewardIndex) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MultiRewardIndex) XXX_DiscardUnknown()
func (*MultiRewardIndex) XXX_Marshal ¶ added in v0.16.0
func (m *MultiRewardIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiRewardIndex) XXX_Merge ¶ added in v0.16.0
func (m *MultiRewardIndex) XXX_Merge(src proto.Message)
func (*MultiRewardIndex) XXX_Size ¶ added in v0.16.0
func (m *MultiRewardIndex) XXX_Size() int
func (*MultiRewardIndex) XXX_Unmarshal ¶ added in v0.16.0
func (m *MultiRewardIndex) XXX_Unmarshal(b []byte) error
type MultiRewardIndexes ¶ added in v0.13.0
type MultiRewardIndexes []MultiRewardIndex
MultiRewardIndexes slice of MultiRewardIndex
func (MultiRewardIndexes) Get ¶ added in v0.15.0
func (mris MultiRewardIndexes) Get(denom string) (RewardIndexes, bool)
Get fetches a RewardIndexes by it's denom
func (MultiRewardIndexes) GetCollateralTypes ¶ added in v0.14.0
func (mris MultiRewardIndexes) GetCollateralTypes() []string
GetCollateralTypes returns a slice of containing all collateral types
func (MultiRewardIndexes) GetRewardIndex ¶ added in v0.13.0
func (mris MultiRewardIndexes) GetRewardIndex(denom string) (MultiRewardIndex, bool)
GetRewardIndex fetches a RewardIndex from a MultiRewardIndex by its denom
func (MultiRewardIndexes) GetRewardIndexIndex ¶ added in v0.13.0
func (mris MultiRewardIndexes) GetRewardIndexIndex(denom string) (int, bool)
GetRewardIndexIndex fetches a specific reward index inside the array by its denom
func (MultiRewardIndexes) RemoveRewardIndex ¶ added in v0.14.0
func (mris MultiRewardIndexes) RemoveRewardIndex(denom string) MultiRewardIndexes
RemoveRewardIndex removes a denom's reward interest factor value
func (MultiRewardIndexes) Validate ¶ added in v0.13.0
func (mris MultiRewardIndexes) Validate() error
Validate validation for reward indexes
func (MultiRewardIndexes) With ¶ added in v0.15.0
func (mris MultiRewardIndexes) With(denom string, indexes RewardIndexes) MultiRewardIndexes
With returns a copy of the indexes with a new RewardIndexes added
type MultiRewardIndexesProto ¶ added in v0.16.0
type MultiRewardIndexesProto struct {
MultiRewardIndexes MultiRewardIndexes `` /* 139-byte string literal not displayed */
}
MultiRewardIndexesProto defines a Protobuf wrapper around a MultiRewardIndexes slice
func (*MultiRewardIndexesProto) Descriptor ¶ added in v0.16.0
func (*MultiRewardIndexesProto) Descriptor() ([]byte, []int)
func (*MultiRewardIndexesProto) Marshal ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) Marshal() (dAtA []byte, err error)
func (*MultiRewardIndexesProto) MarshalTo ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) MarshalTo(dAtA []byte) (int, error)
func (*MultiRewardIndexesProto) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiRewardIndexesProto) ProtoMessage ¶ added in v0.16.0
func (*MultiRewardIndexesProto) ProtoMessage()
func (*MultiRewardIndexesProto) Reset ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) Reset()
func (*MultiRewardIndexesProto) Size ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) Size() (n int)
func (*MultiRewardIndexesProto) String ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) String() string
func (*MultiRewardIndexesProto) Unmarshal ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) Unmarshal(dAtA []byte) error
func (*MultiRewardIndexesProto) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) XXX_DiscardUnknown()
func (*MultiRewardIndexesProto) XXX_Marshal ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiRewardIndexesProto) XXX_Merge ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) XXX_Merge(src proto.Message)
func (*MultiRewardIndexesProto) XXX_Size ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) XXX_Size() int
func (*MultiRewardIndexesProto) XXX_Unmarshal ¶ added in v0.16.0
func (m *MultiRewardIndexesProto) XXX_Unmarshal(b []byte) error
type MultiRewardPeriod ¶ added in v0.13.0
type MultiRewardPeriod struct { Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` CollateralType string `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` Start time.Time `protobuf:"bytes,3,opt,name=start,proto3,stdtime" json:"start"` End time.Time `protobuf:"bytes,4,opt,name=end,proto3,stdtime" json:"end"` RewardsPerSecond github_com_cosmos_cosmos_sdk_types.Coins `` /* 155-byte string literal not displayed */ }
MultiRewardPeriod supports multiple reward types
func NewMultiRewardPeriod ¶ added in v0.13.0
func NewMultiRewardPeriod(active bool, collateralType string, start time.Time, end time.Time, reward sdk.Coins) MultiRewardPeriod
NewMultiRewardPeriod returns a new MultiRewardPeriod
func NewMultiRewardPeriodFromRewardPeriod ¶ added in v0.15.0
func NewMultiRewardPeriodFromRewardPeriod(period RewardPeriod) MultiRewardPeriod
NewMultiRewardPeriodFromRewardPeriod converts a RewardPeriod into a MultiRewardPeriod. It's useful for compatibility between single and multi denom rewards.
func (*MultiRewardPeriod) Descriptor ¶ added in v0.16.0
func (*MultiRewardPeriod) Descriptor() ([]byte, []int)
func (*MultiRewardPeriod) Marshal ¶ added in v0.16.0
func (m *MultiRewardPeriod) Marshal() (dAtA []byte, err error)
func (*MultiRewardPeriod) MarshalTo ¶ added in v0.16.0
func (m *MultiRewardPeriod) MarshalTo(dAtA []byte) (int, error)
func (*MultiRewardPeriod) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MultiRewardPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiRewardPeriod) ProtoMessage ¶ added in v0.16.0
func (*MultiRewardPeriod) ProtoMessage()
func (*MultiRewardPeriod) Reset ¶ added in v0.16.0
func (m *MultiRewardPeriod) Reset()
func (*MultiRewardPeriod) Size ¶ added in v0.16.0
func (m *MultiRewardPeriod) Size() (n int)
func (*MultiRewardPeriod) String ¶ added in v0.13.0
func (m *MultiRewardPeriod) String() string
func (*MultiRewardPeriod) Unmarshal ¶ added in v0.16.0
func (m *MultiRewardPeriod) Unmarshal(dAtA []byte) error
func (MultiRewardPeriod) Validate ¶ added in v0.13.0
func (mrp MultiRewardPeriod) Validate() error
Validate performs a basic check of a MultiRewardPeriod.
func (*MultiRewardPeriod) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MultiRewardPeriod) XXX_DiscardUnknown()
func (*MultiRewardPeriod) XXX_Marshal ¶ added in v0.16.0
func (m *MultiRewardPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiRewardPeriod) XXX_Merge ¶ added in v0.16.0
func (m *MultiRewardPeriod) XXX_Merge(src proto.Message)
func (*MultiRewardPeriod) XXX_Size ¶ added in v0.16.0
func (m *MultiRewardPeriod) XXX_Size() int
func (*MultiRewardPeriod) XXX_Unmarshal ¶ added in v0.16.0
func (m *MultiRewardPeriod) XXX_Unmarshal(b []byte) error
type MultiRewardPeriods ¶ added in v0.13.0
type MultiRewardPeriods []MultiRewardPeriod
MultiRewardPeriods array of MultiRewardPeriod
func (MultiRewardPeriods) GetMultiRewardPeriod ¶ added in v0.13.0
func (mrps MultiRewardPeriods) GetMultiRewardPeriod(denom string) (MultiRewardPeriod, bool)
GetMultiRewardPeriod fetches a MultiRewardPeriod from an array of MultiRewardPeriods by its denom
func (MultiRewardPeriods) GetMultiRewardPeriodIndex ¶ added in v0.13.0
func (mrps MultiRewardPeriods) GetMultiRewardPeriodIndex(denom string) (int, bool)
GetMultiRewardPeriodIndex returns the index of a MultiRewardPeriod inside array MultiRewardPeriods
func (MultiRewardPeriods) Validate ¶ added in v0.13.0
func (mrps MultiRewardPeriods) Validate() error
Validate checks if all the RewardPeriods are valid and there are no duplicated entries.
type Multiplier ¶ added in v0.11.0
type Multiplier struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` MonthsLockup int64 `protobuf:"varint,2,opt,name=months_lockup,json=monthsLockup,proto3" json:"months_lockup,omitempty"` Factor github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=factor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"factor"` }
Multiplier amount the claim rewards get increased by, along with how long the claim rewards are locked
func NewMultiplier ¶ added in v0.11.0
func NewMultiplier(name string, lockup int64, factor sdk.Dec) Multiplier
NewMultiplier returns a new Multiplier
func (*Multiplier) Descriptor ¶ added in v0.16.0
func (*Multiplier) Descriptor() ([]byte, []int)
func (*Multiplier) Marshal ¶ added in v0.16.0
func (m *Multiplier) Marshal() (dAtA []byte, err error)
func (*Multiplier) MarshalTo ¶ added in v0.16.0
func (m *Multiplier) MarshalTo(dAtA []byte) (int, error)
func (*Multiplier) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *Multiplier) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Multiplier) ProtoMessage ¶ added in v0.16.0
func (*Multiplier) ProtoMessage()
func (*Multiplier) Reset ¶ added in v0.16.0
func (m *Multiplier) Reset()
func (*Multiplier) Size ¶ added in v0.16.0
func (m *Multiplier) Size() (n int)
func (*Multiplier) String ¶ added in v0.11.0
func (m *Multiplier) String() string
func (*Multiplier) Unmarshal ¶ added in v0.16.0
func (m *Multiplier) Unmarshal(dAtA []byte) error
func (Multiplier) Validate ¶ added in v0.11.0
func (m Multiplier) Validate() error
Validate multiplier param
func (*Multiplier) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *Multiplier) XXX_DiscardUnknown()
func (*Multiplier) XXX_Marshal ¶ added in v0.16.0
func (m *Multiplier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Multiplier) XXX_Merge ¶ added in v0.16.0
func (m *Multiplier) XXX_Merge(src proto.Message)
func (*Multiplier) XXX_Size ¶ added in v0.16.0
func (m *Multiplier) XXX_Size() int
func (*Multiplier) XXX_Unmarshal ¶ added in v0.16.0
func (m *Multiplier) XXX_Unmarshal(b []byte) error
type Multipliers ¶ added in v0.11.0
type Multipliers []Multiplier
Multipliers is a slice of Multiplier
func (Multipliers) Get ¶ added in v0.15.0
func (ms Multipliers) Get(name string) (Multiplier, bool)
Get returns a multiplier with a matching name
func (Multipliers) Validate ¶ added in v0.11.0
func (ms Multipliers) Validate() error
Validate validates each multiplier
type MultipliersPerDenom ¶ added in v0.15.0
type MultipliersPerDenom struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Multipliers Multipliers `protobuf:"bytes,2,rep,name=multipliers,proto3,castrepeated=Multipliers" json:"multipliers"` }
MultipliersPerDenom is a map of denoms to a set of multipliers
func (*MultipliersPerDenom) Descriptor ¶ added in v0.16.0
func (*MultipliersPerDenom) Descriptor() ([]byte, []int)
func (*MultipliersPerDenom) Marshal ¶ added in v0.16.0
func (m *MultipliersPerDenom) Marshal() (dAtA []byte, err error)
func (*MultipliersPerDenom) MarshalTo ¶ added in v0.16.0
func (m *MultipliersPerDenom) MarshalTo(dAtA []byte) (int, error)
func (*MultipliersPerDenom) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MultipliersPerDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultipliersPerDenom) ProtoMessage ¶ added in v0.16.0
func (*MultipliersPerDenom) ProtoMessage()
func (*MultipliersPerDenom) Reset ¶ added in v0.16.0
func (m *MultipliersPerDenom) Reset()
func (*MultipliersPerDenom) Size ¶ added in v0.16.0
func (m *MultipliersPerDenom) Size() (n int)
func (*MultipliersPerDenom) String ¶ added in v0.16.0
func (m *MultipliersPerDenom) String() string
func (*MultipliersPerDenom) Unmarshal ¶ added in v0.16.0
func (m *MultipliersPerDenom) Unmarshal(dAtA []byte) error
func (*MultipliersPerDenom) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MultipliersPerDenom) XXX_DiscardUnknown()
func (*MultipliersPerDenom) XXX_Marshal ¶ added in v0.16.0
func (m *MultipliersPerDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultipliersPerDenom) XXX_Merge ¶ added in v0.16.0
func (m *MultipliersPerDenom) XXX_Merge(src proto.Message)
func (*MultipliersPerDenom) XXX_Size ¶ added in v0.16.0
func (m *MultipliersPerDenom) XXX_Size() int
func (*MultipliersPerDenom) XXX_Unmarshal ¶ added in v0.16.0
func (m *MultipliersPerDenom) XXX_Unmarshal(b []byte) error
type MultipliersPerDenoms ¶ added in v0.16.0
type MultipliersPerDenoms []MultipliersPerDenom
MultipliersPerDenoms is a slice of MultipliersPerDenom
func (MultipliersPerDenoms) Validate ¶ added in v0.16.0
func (mpd MultipliersPerDenoms) Validate() error
Validate checks each denom and multipliers for invalid values.
type ParamSubspace ¶ added in v0.15.0
type ParamSubspace interface { GetParamSet(sdk.Context, paramtypes.ParamSet) SetParamSet(sdk.Context, paramtypes.ParamSet) WithKeyTable(paramtypes.KeyTable) paramtypes.Subspace HasKeyTable() bool }
ParamSubspace defines the expected Subspace interfacace
type Params ¶
type Params struct { USDXMintingRewardPeriods RewardPeriods `` /* 154-byte string literal not displayed */ HardSupplyRewardPeriods MultiRewardPeriods `` /* 156-byte string literal not displayed */ HardBorrowRewardPeriods MultiRewardPeriods `` /* 156-byte string literal not displayed */ DelegatorRewardPeriods MultiRewardPeriods `` /* 151-byte string literal not displayed */ SwapRewardPeriods MultiRewardPeriods `` /* 136-byte string literal not displayed */ ClaimMultipliers MultipliersPerDenoms `` /* 133-byte string literal not displayed */ ClaimEnd time.Time `protobuf:"bytes,7,opt,name=claim_end,json=claimEnd,proto3,stdtime" json:"claim_end"` SavingsRewardPeriods MultiRewardPeriods `` /* 145-byte string literal not displayed */ EarnRewardPeriods MultiRewardPeriods `` /* 136-byte string literal not displayed */ }
Params
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns default params for incentive module
func NewParams ¶
func NewParams( usdxMinting RewardPeriods, hardSupply, hardBorrow, delegator, swap, savings, earn MultiRewardPeriods, multipliers MultipliersPerDenoms, claimEnd time.Time, ) Params
NewParams returns a new params object
func (*Params) Descriptor ¶ added in v0.16.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.16.0
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs
func (*Params) ProtoMessage ¶ added in v0.16.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.16.0
func (*Params) XXX_Unmarshal ¶ added in v0.16.0
type PricefeedKeeper ¶ added in v0.19.0
type PricefeedKeeper interface {
GetCurrentPrice(ctx sdk.Context, marketID string) (pricefeedtypes.CurrentPrice, error)
}
PricefeedKeeper defines the required methods needed by this modules keeper
type QueryApyRequest ¶ added in v0.21.1
type QueryApyRequest struct { }
QueryApysRequest is the request type for the Query/Apys RPC method.
func (*QueryApyRequest) Descriptor ¶ added in v0.21.1
func (*QueryApyRequest) Descriptor() ([]byte, []int)
func (*QueryApyRequest) Marshal ¶ added in v0.21.1
func (m *QueryApyRequest) Marshal() (dAtA []byte, err error)
func (*QueryApyRequest) MarshalTo ¶ added in v0.21.1
func (m *QueryApyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryApyRequest) MarshalToSizedBuffer ¶ added in v0.21.1
func (m *QueryApyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryApyRequest) ProtoMessage ¶ added in v0.21.1
func (*QueryApyRequest) ProtoMessage()
func (*QueryApyRequest) Reset ¶ added in v0.21.1
func (m *QueryApyRequest) Reset()
func (*QueryApyRequest) Size ¶ added in v0.21.1
func (m *QueryApyRequest) Size() (n int)
func (*QueryApyRequest) String ¶ added in v0.21.1
func (m *QueryApyRequest) String() string
func (*QueryApyRequest) Unmarshal ¶ added in v0.21.1
func (m *QueryApyRequest) Unmarshal(dAtA []byte) error
func (*QueryApyRequest) XXX_DiscardUnknown ¶ added in v0.21.1
func (m *QueryApyRequest) XXX_DiscardUnknown()
func (*QueryApyRequest) XXX_Marshal ¶ added in v0.21.1
func (m *QueryApyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryApyRequest) XXX_Merge ¶ added in v0.21.1
func (m *QueryApyRequest) XXX_Merge(src proto.Message)
func (*QueryApyRequest) XXX_Size ¶ added in v0.21.1
func (m *QueryApyRequest) XXX_Size() int
func (*QueryApyRequest) XXX_Unmarshal ¶ added in v0.21.1
func (m *QueryApyRequest) XXX_Unmarshal(b []byte) error
type QueryApyResponse ¶ added in v0.21.1
type QueryApyResponse struct {
Earn []Apy `protobuf:"bytes,1,rep,name=earn,proto3" json:"earn"`
}
QueryApysResponse is the response type for the Query/Apys RPC method.
func (*QueryApyResponse) Descriptor ¶ added in v0.21.1
func (*QueryApyResponse) Descriptor() ([]byte, []int)
func (*QueryApyResponse) GetEarn ¶ added in v0.21.1
func (m *QueryApyResponse) GetEarn() []Apy
func (*QueryApyResponse) Marshal ¶ added in v0.21.1
func (m *QueryApyResponse) Marshal() (dAtA []byte, err error)
func (*QueryApyResponse) MarshalTo ¶ added in v0.21.1
func (m *QueryApyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryApyResponse) MarshalToSizedBuffer ¶ added in v0.21.1
func (m *QueryApyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryApyResponse) ProtoMessage ¶ added in v0.21.1
func (*QueryApyResponse) ProtoMessage()
func (*QueryApyResponse) Reset ¶ added in v0.21.1
func (m *QueryApyResponse) Reset()
func (*QueryApyResponse) Size ¶ added in v0.21.1
func (m *QueryApyResponse) Size() (n int)
func (*QueryApyResponse) String ¶ added in v0.21.1
func (m *QueryApyResponse) String() string
func (*QueryApyResponse) Unmarshal ¶ added in v0.21.1
func (m *QueryApyResponse) Unmarshal(dAtA []byte) error
func (*QueryApyResponse) XXX_DiscardUnknown ¶ added in v0.21.1
func (m *QueryApyResponse) XXX_DiscardUnknown()
func (*QueryApyResponse) XXX_Marshal ¶ added in v0.21.1
func (m *QueryApyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryApyResponse) XXX_Merge ¶ added in v0.21.1
func (m *QueryApyResponse) XXX_Merge(src proto.Message)
func (*QueryApyResponse) XXX_Size ¶ added in v0.21.1
func (m *QueryApyResponse) XXX_Size() int
func (*QueryApyResponse) XXX_Unmarshal ¶ added in v0.21.1
func (m *QueryApyResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶ added in v0.21.1
type QueryClient interface { // Params queries module params. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Rewards queries reward information for a given user. Rewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error) // Rewards queries the reward factors. RewardFactors(ctx context.Context, in *QueryRewardFactorsRequest, opts ...grpc.CallOption) (*QueryRewardFactorsResponse, error) // Apy queries incentive reward apy for a reward. Apy(ctx context.Context, in *QueryApyRequest, opts ...grpc.CallOption) (*QueryApyResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶ added in v0.21.1
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶ added in v0.21.1
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v0.21.1
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.21.1
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.21.1
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.21.1
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.21.1
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.21.1
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.21.1
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.21.1
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.21.1
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.21.1
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.21.1
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.21.1
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.21.1
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.21.1
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.21.1
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶ added in v0.21.1
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.21.1
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v0.21.1
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.21.1
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.21.1
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.21.1
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.21.1
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.21.1
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.21.1
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.21.1
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.21.1
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.21.1
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.21.1
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.21.1
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.21.1
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryRewardFactorsRequest ¶ added in v0.21.1
type QueryRewardFactorsRequest struct { }
QueryRewardFactorsRequest is the request type for the Query/RewardFactors RPC method.
func (*QueryRewardFactorsRequest) Descriptor ¶ added in v0.21.1
func (*QueryRewardFactorsRequest) Descriptor() ([]byte, []int)
func (*QueryRewardFactorsRequest) Marshal ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardFactorsRequest) MarshalTo ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardFactorsRequest) MarshalToSizedBuffer ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardFactorsRequest) ProtoMessage ¶ added in v0.21.1
func (*QueryRewardFactorsRequest) ProtoMessage()
func (*QueryRewardFactorsRequest) Reset ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) Reset()
func (*QueryRewardFactorsRequest) Size ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) Size() (n int)
func (*QueryRewardFactorsRequest) String ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) String() string
func (*QueryRewardFactorsRequest) Unmarshal ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardFactorsRequest) XXX_DiscardUnknown ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) XXX_DiscardUnknown()
func (*QueryRewardFactorsRequest) XXX_Marshal ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardFactorsRequest) XXX_Merge ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) XXX_Merge(src proto.Message)
func (*QueryRewardFactorsRequest) XXX_Size ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) XXX_Size() int
func (*QueryRewardFactorsRequest) XXX_Unmarshal ¶ added in v0.21.1
func (m *QueryRewardFactorsRequest) XXX_Unmarshal(b []byte) error
type QueryRewardFactorsResponse ¶ added in v0.21.1
type QueryRewardFactorsResponse struct { UsdxMintingRewardFactors RewardIndexes `` /* 154-byte string literal not displayed */ HardSupplyRewardFactors MultiRewardIndexes `` /* 156-byte string literal not displayed */ HardBorrowRewardFactors MultiRewardIndexes `` /* 156-byte string literal not displayed */ DelegatorRewardFactors MultiRewardIndexes `` /* 151-byte string literal not displayed */ SwapRewardFactors MultiRewardIndexes `` /* 136-byte string literal not displayed */ SavingsRewardFactors MultiRewardIndexes `` /* 145-byte string literal not displayed */ EarnRewardFactors MultiRewardIndexes `` /* 136-byte string literal not displayed */ }
QueryRewardFactorsResponse is the response type for the Query/RewardFactors RPC method.
func (*QueryRewardFactorsResponse) Descriptor ¶ added in v0.21.1
func (*QueryRewardFactorsResponse) Descriptor() ([]byte, []int)
func (*QueryRewardFactorsResponse) GetDelegatorRewardFactors ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) GetDelegatorRewardFactors() MultiRewardIndexes
func (*QueryRewardFactorsResponse) GetEarnRewardFactors ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) GetEarnRewardFactors() MultiRewardIndexes
func (*QueryRewardFactorsResponse) GetHardBorrowRewardFactors ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) GetHardBorrowRewardFactors() MultiRewardIndexes
func (*QueryRewardFactorsResponse) GetHardSupplyRewardFactors ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) GetHardSupplyRewardFactors() MultiRewardIndexes
func (*QueryRewardFactorsResponse) GetSavingsRewardFactors ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) GetSavingsRewardFactors() MultiRewardIndexes
func (*QueryRewardFactorsResponse) GetSwapRewardFactors ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) GetSwapRewardFactors() MultiRewardIndexes
func (*QueryRewardFactorsResponse) GetUsdxMintingRewardFactors ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) GetUsdxMintingRewardFactors() RewardIndexes
func (*QueryRewardFactorsResponse) Marshal ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardFactorsResponse) MarshalTo ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardFactorsResponse) MarshalToSizedBuffer ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardFactorsResponse) ProtoMessage ¶ added in v0.21.1
func (*QueryRewardFactorsResponse) ProtoMessage()
func (*QueryRewardFactorsResponse) Reset ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) Reset()
func (*QueryRewardFactorsResponse) Size ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) Size() (n int)
func (*QueryRewardFactorsResponse) String ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) String() string
func (*QueryRewardFactorsResponse) Unmarshal ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardFactorsResponse) XXX_DiscardUnknown ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) XXX_DiscardUnknown()
func (*QueryRewardFactorsResponse) XXX_Marshal ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardFactorsResponse) XXX_Merge ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) XXX_Merge(src proto.Message)
func (*QueryRewardFactorsResponse) XXX_Size ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) XXX_Size() int
func (*QueryRewardFactorsResponse) XXX_Unmarshal ¶ added in v0.21.1
func (m *QueryRewardFactorsResponse) XXX_Unmarshal(b []byte) error
type QueryRewardsRequest ¶ added in v0.21.1
type QueryRewardsRequest struct { // owner is the address of the user to query rewards for. Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // reward_type is the type of reward to query rewards for, e.g. hard, earn, // swap. RewardType string `protobuf:"bytes,2,opt,name=reward_type,json=rewardType,proto3" json:"reward_type,omitempty"` // unsynchronized is a flag to query rewards that are not simulated for reward // synchronized for the current block. Unsynchronized bool `protobuf:"varint,3,opt,name=unsynchronized,proto3" json:"unsynchronized,omitempty"` }
QueryRewardsRequest is the request type for the Query/Rewards RPC method.
func (*QueryRewardsRequest) Descriptor ¶ added in v0.21.1
func (*QueryRewardsRequest) Descriptor() ([]byte, []int)
func (*QueryRewardsRequest) GetOwner ¶ added in v0.21.1
func (m *QueryRewardsRequest) GetOwner() string
func (*QueryRewardsRequest) GetRewardType ¶ added in v0.21.1
func (m *QueryRewardsRequest) GetRewardType() string
func (*QueryRewardsRequest) GetUnsynchronized ¶ added in v0.21.1
func (m *QueryRewardsRequest) GetUnsynchronized() bool
func (*QueryRewardsRequest) Marshal ¶ added in v0.21.1
func (m *QueryRewardsRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardsRequest) MarshalTo ¶ added in v0.21.1
func (m *QueryRewardsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsRequest) MarshalToSizedBuffer ¶ added in v0.21.1
func (m *QueryRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsRequest) ProtoMessage ¶ added in v0.21.1
func (*QueryRewardsRequest) ProtoMessage()
func (*QueryRewardsRequest) Reset ¶ added in v0.21.1
func (m *QueryRewardsRequest) Reset()
func (*QueryRewardsRequest) Size ¶ added in v0.21.1
func (m *QueryRewardsRequest) Size() (n int)
func (*QueryRewardsRequest) String ¶ added in v0.21.1
func (m *QueryRewardsRequest) String() string
func (*QueryRewardsRequest) Unmarshal ¶ added in v0.21.1
func (m *QueryRewardsRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardsRequest) XXX_DiscardUnknown ¶ added in v0.21.1
func (m *QueryRewardsRequest) XXX_DiscardUnknown()
func (*QueryRewardsRequest) XXX_Marshal ¶ added in v0.21.1
func (m *QueryRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsRequest) XXX_Merge ¶ added in v0.21.1
func (m *QueryRewardsRequest) XXX_Merge(src proto.Message)
func (*QueryRewardsRequest) XXX_Size ¶ added in v0.21.1
func (m *QueryRewardsRequest) XXX_Size() int
func (*QueryRewardsRequest) XXX_Unmarshal ¶ added in v0.21.1
func (m *QueryRewardsRequest) XXX_Unmarshal(b []byte) error
type QueryRewardsResponse ¶ added in v0.21.1
type QueryRewardsResponse struct { USDXMintingClaims USDXMintingClaims `` /* 135-byte string literal not displayed */ HardLiquidityProviderClaims HardLiquidityProviderClaims `` /* 177-byte string literal not displayed */ DelegatorClaims DelegatorClaims `protobuf:"bytes,3,rep,name=delegator_claims,json=delegatorClaims,proto3,castrepeated=DelegatorClaims" json:"delegator_claims"` SwapClaims SwapClaims `protobuf:"bytes,4,rep,name=swap_claims,json=swapClaims,proto3,castrepeated=SwapClaims" json:"swap_claims"` SavingsClaims SavingsClaims `protobuf:"bytes,5,rep,name=savings_claims,json=savingsClaims,proto3,castrepeated=SavingsClaims" json:"savings_claims"` EarnClaims EarnClaims `protobuf:"bytes,6,rep,name=earn_claims,json=earnClaims,proto3,castrepeated=EarnClaims" json:"earn_claims"` }
QueryRewardsResponse is the response type for the Query/Rewards RPC method.
func (*QueryRewardsResponse) Descriptor ¶ added in v0.21.1
func (*QueryRewardsResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsResponse) GetDelegatorClaims ¶ added in v0.21.1
func (m *QueryRewardsResponse) GetDelegatorClaims() DelegatorClaims
func (*QueryRewardsResponse) GetEarnClaims ¶ added in v0.21.1
func (m *QueryRewardsResponse) GetEarnClaims() EarnClaims
func (*QueryRewardsResponse) GetHardLiquidityProviderClaims ¶ added in v0.21.1
func (m *QueryRewardsResponse) GetHardLiquidityProviderClaims() HardLiquidityProviderClaims
func (*QueryRewardsResponse) GetSavingsClaims ¶ added in v0.21.1
func (m *QueryRewardsResponse) GetSavingsClaims() SavingsClaims
func (*QueryRewardsResponse) GetSwapClaims ¶ added in v0.21.1
func (m *QueryRewardsResponse) GetSwapClaims() SwapClaims
func (*QueryRewardsResponse) GetUSDXMintingClaims ¶ added in v0.21.1
func (m *QueryRewardsResponse) GetUSDXMintingClaims() USDXMintingClaims
func (*QueryRewardsResponse) Marshal ¶ added in v0.21.1
func (m *QueryRewardsResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsResponse) MarshalTo ¶ added in v0.21.1
func (m *QueryRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsResponse) MarshalToSizedBuffer ¶ added in v0.21.1
func (m *QueryRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsResponse) ProtoMessage ¶ added in v0.21.1
func (*QueryRewardsResponse) ProtoMessage()
func (*QueryRewardsResponse) Reset ¶ added in v0.21.1
func (m *QueryRewardsResponse) Reset()
func (*QueryRewardsResponse) Size ¶ added in v0.21.1
func (m *QueryRewardsResponse) Size() (n int)
func (*QueryRewardsResponse) String ¶ added in v0.21.1
func (m *QueryRewardsResponse) String() string
func (*QueryRewardsResponse) Unmarshal ¶ added in v0.21.1
func (m *QueryRewardsResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsResponse) XXX_DiscardUnknown ¶ added in v0.21.1
func (m *QueryRewardsResponse) XXX_DiscardUnknown()
func (*QueryRewardsResponse) XXX_Marshal ¶ added in v0.21.1
func (m *QueryRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsResponse) XXX_Merge ¶ added in v0.21.1
func (m *QueryRewardsResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsResponse) XXX_Size ¶ added in v0.21.1
func (m *QueryRewardsResponse) XXX_Size() int
func (*QueryRewardsResponse) XXX_Unmarshal ¶ added in v0.21.1
func (m *QueryRewardsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.21.1
type QueryServer interface { // Params queries module params. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Rewards queries reward information for a given user. Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error) // Rewards queries the reward factors. RewardFactors(context.Context, *QueryRewardFactorsRequest) (*QueryRewardFactorsResponse, error) // Apy queries incentive reward apy for a reward. Apy(context.Context, *QueryApyRequest) (*QueryApyResponse, error) }
QueryServer is the server API for Query service.
type RewardIndex ¶ added in v0.13.0
type RewardIndex struct { CollateralType string `protobuf:"bytes,1,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` RewardFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */ }
RewardIndex stores reward accumulation information
func NewRewardIndex ¶ added in v0.13.0
func NewRewardIndex(collateralType string, factor sdk.Dec) RewardIndex
NewRewardIndex returns a new RewardIndex
func (*RewardIndex) Descriptor ¶ added in v0.16.0
func (*RewardIndex) Descriptor() ([]byte, []int)
func (*RewardIndex) Marshal ¶ added in v0.16.0
func (m *RewardIndex) Marshal() (dAtA []byte, err error)
func (*RewardIndex) MarshalTo ¶ added in v0.16.0
func (m *RewardIndex) MarshalTo(dAtA []byte) (int, error)
func (*RewardIndex) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *RewardIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardIndex) ProtoMessage ¶ added in v0.16.0
func (*RewardIndex) ProtoMessage()
func (*RewardIndex) Reset ¶ added in v0.16.0
func (m *RewardIndex) Reset()
func (*RewardIndex) Size ¶ added in v0.16.0
func (m *RewardIndex) Size() (n int)
func (*RewardIndex) String ¶ added in v0.13.0
func (m *RewardIndex) String() string
func (*RewardIndex) Unmarshal ¶ added in v0.16.0
func (m *RewardIndex) Unmarshal(dAtA []byte) error
func (RewardIndex) Validate ¶ added in v0.13.0
func (ri RewardIndex) Validate() error
Validate validates reward index
func (*RewardIndex) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *RewardIndex) XXX_DiscardUnknown()
func (*RewardIndex) XXX_Marshal ¶ added in v0.16.0
func (m *RewardIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardIndex) XXX_Merge ¶ added in v0.16.0
func (m *RewardIndex) XXX_Merge(src proto.Message)
func (*RewardIndex) XXX_Size ¶ added in v0.16.0
func (m *RewardIndex) XXX_Size() int
func (*RewardIndex) XXX_Unmarshal ¶ added in v0.16.0
func (m *RewardIndex) XXX_Unmarshal(b []byte) error
type RewardIndexes ¶ added in v0.13.0
type RewardIndexes []RewardIndex
RewardIndexes slice of RewardIndex
func NewRewardIndexesFromCoins ¶ added in v0.19.0
func NewRewardIndexesFromCoins(coins sdk.DecCoins) RewardIndexes
NewRewardIndexesFromCoins is a helper function to initialize a RewardIndexes slice with the values from a Coins slice.
func (RewardIndexes) Add ¶ added in v0.15.0
func (ris RewardIndexes) Add(addend RewardIndexes) RewardIndexes
Add combines two reward indexes by adding together factors with the same CollateralType. Any CollateralTypes unique to either reward indexes are included in the output as is.
func (RewardIndexes) Get ¶ added in v0.15.0
func (ris RewardIndexes) Get(denom string) (sdk.Dec, bool)
Get fetches a RewardFactor by it's denom
func (RewardIndexes) GetFactorIndex ¶ added in v0.13.0
func (ris RewardIndexes) GetFactorIndex(denom string) (int, bool)
GetFactorIndex gets the index of a specific reward index inside the array by its index
func (RewardIndexes) GetRewardIndex ¶ added in v0.13.0
func (ris RewardIndexes) GetRewardIndex(denom string) (RewardIndex, bool)
GetRewardIndex fetches a RewardIndex by its denom
func (RewardIndexes) Mul ¶ added in v0.15.0
func (ris RewardIndexes) Mul(multiplier sdk.Dec) RewardIndexes
Mul returns a copy of RewardIndexes with all factors multiplied by a single value.
func (RewardIndexes) Quo ¶ added in v0.15.0
func (ris RewardIndexes) Quo(divisor sdk.Dec) RewardIndexes
Quo returns a copy of RewardIndexes with all factors divided by a single value. It uses sdk.Dec.Quo for the division.
func (RewardIndexes) Validate ¶ added in v0.13.0
func (ris RewardIndexes) Validate() error
Validate validation for reward indexes
func (RewardIndexes) With ¶ added in v0.15.0
func (ris RewardIndexes) With(denom string, factor sdk.Dec) RewardIndexes
With returns a copy of the indexes with a new reward factor added
type RewardIndexesProto ¶ added in v0.16.0
type RewardIndexesProto struct {
RewardIndexes RewardIndexes `protobuf:"bytes,1,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=RewardIndexes" json:"reward_indexes"`
}
RewardIndexesProto defines a Protobuf wrapper around a RewardIndexes slice
func (*RewardIndexesProto) Descriptor ¶ added in v0.16.0
func (*RewardIndexesProto) Descriptor() ([]byte, []int)
func (*RewardIndexesProto) Marshal ¶ added in v0.16.0
func (m *RewardIndexesProto) Marshal() (dAtA []byte, err error)
func (*RewardIndexesProto) MarshalTo ¶ added in v0.16.0
func (m *RewardIndexesProto) MarshalTo(dAtA []byte) (int, error)
func (*RewardIndexesProto) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *RewardIndexesProto) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardIndexesProto) ProtoMessage ¶ added in v0.16.0
func (*RewardIndexesProto) ProtoMessage()
func (*RewardIndexesProto) Reset ¶ added in v0.16.0
func (m *RewardIndexesProto) Reset()
func (*RewardIndexesProto) Size ¶ added in v0.16.0
func (m *RewardIndexesProto) Size() (n int)
func (*RewardIndexesProto) String ¶ added in v0.16.0
func (m *RewardIndexesProto) String() string
func (*RewardIndexesProto) Unmarshal ¶ added in v0.16.0
func (m *RewardIndexesProto) Unmarshal(dAtA []byte) error
func (*RewardIndexesProto) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *RewardIndexesProto) XXX_DiscardUnknown()
func (*RewardIndexesProto) XXX_Marshal ¶ added in v0.16.0
func (m *RewardIndexesProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardIndexesProto) XXX_Merge ¶ added in v0.16.0
func (m *RewardIndexesProto) XXX_Merge(src proto.Message)
func (*RewardIndexesProto) XXX_Size ¶ added in v0.16.0
func (m *RewardIndexesProto) XXX_Size() int
func (*RewardIndexesProto) XXX_Unmarshal ¶ added in v0.16.0
func (m *RewardIndexesProto) XXX_Unmarshal(b []byte) error
type RewardPeriod ¶
type RewardPeriod struct { Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` CollateralType string `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` Start time.Time `protobuf:"bytes,3,opt,name=start,proto3,stdtime" json:"start"` End time.Time `protobuf:"bytes,4,opt,name=end,proto3,stdtime" json:"end"` RewardsPerSecond types.Coin `protobuf:"bytes,5,opt,name=rewards_per_second,json=rewardsPerSecond,proto3" json:"rewards_per_second"` }
RewardPeriod stores the state of an ongoing reward
func NewRewardPeriod ¶
func NewRewardPeriod(active bool, collateralType string, start time.Time, end time.Time, reward sdk.Coin) RewardPeriod
NewRewardPeriod returns a new RewardPeriod
func (*RewardPeriod) Descriptor ¶ added in v0.16.0
func (*RewardPeriod) Descriptor() ([]byte, []int)
func (*RewardPeriod) Marshal ¶ added in v0.16.0
func (m *RewardPeriod) Marshal() (dAtA []byte, err error)
func (*RewardPeriod) MarshalTo ¶ added in v0.16.0
func (m *RewardPeriod) MarshalTo(dAtA []byte) (int, error)
func (*RewardPeriod) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *RewardPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardPeriod) ProtoMessage ¶ added in v0.16.0
func (*RewardPeriod) ProtoMessage()
func (*RewardPeriod) Reset ¶ added in v0.16.0
func (m *RewardPeriod) Reset()
func (*RewardPeriod) Size ¶ added in v0.16.0
func (m *RewardPeriod) Size() (n int)
func (*RewardPeriod) String ¶
func (m *RewardPeriod) String() string
func (*RewardPeriod) Unmarshal ¶ added in v0.16.0
func (m *RewardPeriod) Unmarshal(dAtA []byte) error
func (RewardPeriod) Validate ¶
func (rp RewardPeriod) Validate() error
Validate performs a basic check of a RewardPeriod fields.
func (*RewardPeriod) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *RewardPeriod) XXX_DiscardUnknown()
func (*RewardPeriod) XXX_Marshal ¶ added in v0.16.0
func (m *RewardPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardPeriod) XXX_Merge ¶ added in v0.16.0
func (m *RewardPeriod) XXX_Merge(src proto.Message)
func (*RewardPeriod) XXX_Size ¶ added in v0.16.0
func (m *RewardPeriod) XXX_Size() int
func (*RewardPeriod) XXX_Unmarshal ¶ added in v0.16.0
func (m *RewardPeriod) XXX_Unmarshal(b []byte) error
type RewardPeriods ¶
type RewardPeriods []RewardPeriod
RewardPeriods array of RewardPeriod
func (RewardPeriods) Validate ¶
func (rps RewardPeriods) Validate() error
Validate checks if all the RewardPeriods are valid and there are no duplicated entries.
type SavingsClaim ¶ added in v0.17.0
type SavingsClaim struct { BaseMultiClaim `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"` RewardIndexes MultiRewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=MultiRewardIndexes" json:"reward_indexes"` }
SavingsClaim stores the savings rewards that can be claimed by owner
func NewSavingsClaim ¶ added in v0.17.0
func NewSavingsClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) SavingsClaim
NewSavingsClaim returns a new SavingsClaim
func (*SavingsClaim) Descriptor ¶ added in v0.17.0
func (*SavingsClaim) Descriptor() ([]byte, []int)
func (SavingsClaim) GetOwner ¶ added in v0.17.0
func (c SavingsClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (SavingsClaim) GetReward ¶ added in v0.17.0
func (c SavingsClaim) GetReward() sdk.Coins
GetReward returns the claim's reward coin
func (SavingsClaim) GetType ¶ added in v0.17.0
func (c SavingsClaim) GetType() string
GetType returns the claim's type
func (SavingsClaim) HasRewardIndex ¶ added in v0.17.0
func (c SavingsClaim) HasRewardIndex(denom string) (int64, bool)
HasRewardIndex check if a claim has a reward index for the input denom
func (*SavingsClaim) Marshal ¶ added in v0.17.0
func (m *SavingsClaim) Marshal() (dAtA []byte, err error)
func (*SavingsClaim) MarshalTo ¶ added in v0.17.0
func (m *SavingsClaim) MarshalTo(dAtA []byte) (int, error)
func (*SavingsClaim) MarshalToSizedBuffer ¶ added in v0.17.0
func (m *SavingsClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SavingsClaim) ProtoMessage ¶ added in v0.17.0
func (*SavingsClaim) ProtoMessage()
func (*SavingsClaim) Reset ¶ added in v0.17.0
func (m *SavingsClaim) Reset()
func (*SavingsClaim) Size ¶ added in v0.17.0
func (m *SavingsClaim) Size() (n int)
func (*SavingsClaim) String ¶ added in v0.17.0
func (m *SavingsClaim) String() string
func (*SavingsClaim) Unmarshal ¶ added in v0.17.0
func (m *SavingsClaim) Unmarshal(dAtA []byte) error
func (SavingsClaim) Validate ¶ added in v0.17.0
func (c SavingsClaim) Validate() error
Validate performs a basic check of a SavingsClaim fields
func (*SavingsClaim) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *SavingsClaim) XXX_DiscardUnknown()
func (*SavingsClaim) XXX_Marshal ¶ added in v0.17.0
func (m *SavingsClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SavingsClaim) XXX_Merge ¶ added in v0.17.0
func (m *SavingsClaim) XXX_Merge(src proto.Message)
func (*SavingsClaim) XXX_Size ¶ added in v0.17.0
func (m *SavingsClaim) XXX_Size() int
func (*SavingsClaim) XXX_Unmarshal ¶ added in v0.17.0
func (m *SavingsClaim) XXX_Unmarshal(b []byte) error
type SavingsClaims ¶ added in v0.17.0
type SavingsClaims []SavingsClaim
SavingsClaims slice of SavingsClaim
func (SavingsClaims) Validate ¶ added in v0.17.0
func (cs SavingsClaims) Validate() error
Validate checks if all the claims are valid.
type SavingsKeeper ¶ added in v0.17.0
type SavingsKeeper interface { GetDeposit(ctx sdk.Context, depositor sdk.AccAddress) (savingstypes.Deposit, bool) GetSavingsModuleAccountBalances(ctx sdk.Context) sdk.Coins }
SavingsKeeper defines the required methods needed by this module's keeper
type Selection ¶ added in v0.15.0
type Selection struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` MultiplierName string `protobuf:"bytes,2,opt,name=multiplier_name,json=multiplierName,proto3" json:"multiplier_name,omitempty"` }
Selection is a pair of denom and multiplier name. It holds the choice of multiplier a user makes when they claim a denom.
func NewSelection ¶ added in v0.15.0
NewSelection returns a new Selection
func (*Selection) Descriptor ¶ added in v0.16.0
func (*Selection) MarshalToSizedBuffer ¶ added in v0.16.0
func (*Selection) ProtoMessage ¶ added in v0.16.0
func (*Selection) ProtoMessage()
func (*Selection) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *Selection) XXX_DiscardUnknown()
func (*Selection) XXX_Marshal ¶ added in v0.16.0
func (*Selection) XXX_Unmarshal ¶ added in v0.16.0
type Selections ¶ added in v0.15.0
type Selections []Selection
Selections are a list of denom - multiplier pairs that specify what rewards to claim and with what lockups.
func NewSelectionsFromMap ¶ added in v0.15.0
func NewSelectionsFromMap(selectionMap map[string]string) Selections
NewSelectionsFromMap creates a new set of selections from a string to string map. It sorts the output before returning.
func (Selections) Validate ¶ added in v0.15.0
func (ss Selections) Validate() error
Valdate performs basic validaton checks
type StakingKeeper ¶ added in v0.13.0
type StakingKeeper interface { GetDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (delegations []stakingtypes.Delegation) GetValidatorDelegations(ctx sdk.Context, valAddr sdk.ValAddress) (delegations []stakingtypes.Delegation) GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool) TotalBondedTokens(ctx sdk.Context) sdkmath.Int }
StakingKeeper defines the expected staking keeper for module accounts
type SwapClaim ¶ added in v0.15.0
type SwapClaim struct { BaseMultiClaim `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"` RewardIndexes MultiRewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=MultiRewardIndexes" json:"reward_indexes"` }
SwapClaim stores the swap rewards that can be claimed by owner
func NewSwapClaim ¶ added in v0.15.0
func NewSwapClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) SwapClaim
NewSwapClaim returns a new SwapClaim
func (*SwapClaim) Descriptor ¶ added in v0.16.0
func (SwapClaim) GetOwner ¶ added in v0.15.0
func (c SwapClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (SwapClaim) HasRewardIndex ¶ added in v0.15.0
HasRewardIndex check if a claim has a reward index for the input pool ID.
func (*SwapClaim) MarshalToSizedBuffer ¶ added in v0.16.0
func (*SwapClaim) ProtoMessage ¶ added in v0.16.0
func (*SwapClaim) ProtoMessage()
func (*SwapClaim) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *SwapClaim) XXX_DiscardUnknown()
func (*SwapClaim) XXX_Marshal ¶ added in v0.16.0
func (*SwapClaim) XXX_Unmarshal ¶ added in v0.16.0
type SwapClaims ¶ added in v0.15.0
type SwapClaims []SwapClaim
SwapClaims slice of SwapClaim
func (SwapClaims) Validate ¶ added in v0.15.0
func (cs SwapClaims) Validate() error
Validate checks if all the claims are valid.
type SwapKeeper ¶ added in v0.15.0
type SwapKeeper interface {}
SwapKeeper defines the required methods needed by this modules keeper
type USDXMintingClaim ¶ added in v0.13.0
type USDXMintingClaim struct { BaseClaim `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"` RewardIndexes RewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=RewardIndexes" json:"reward_indexes"` }
USDXMintingClaim is for USDX minting rewards
func NewUSDXMintingClaim ¶ added in v0.13.0
func NewUSDXMintingClaim(owner sdk.AccAddress, reward sdk.Coin, rewardIndexes RewardIndexes) USDXMintingClaim
NewUSDXMintingClaim returns a new USDXMintingClaim
func (*USDXMintingClaim) Descriptor ¶ added in v0.16.0
func (*USDXMintingClaim) Descriptor() ([]byte, []int)
func (USDXMintingClaim) GetOwner ¶ added in v0.13.0
func (c USDXMintingClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (USDXMintingClaim) GetReward ¶ added in v0.13.0
func (c USDXMintingClaim) GetReward() sdk.Coin
GetReward returns the claim's reward coin
func (USDXMintingClaim) GetType ¶ added in v0.13.0
func (c USDXMintingClaim) GetType() string
GetType returns the claim's type
func (USDXMintingClaim) HasRewardIndex ¶ added in v0.13.0
func (c USDXMintingClaim) HasRewardIndex(collateralType string) (int64, bool)
HasRewardIndex check if a claim has a reward index for the input collateral type
func (*USDXMintingClaim) Marshal ¶ added in v0.16.0
func (m *USDXMintingClaim) Marshal() (dAtA []byte, err error)
func (*USDXMintingClaim) MarshalTo ¶ added in v0.16.0
func (m *USDXMintingClaim) MarshalTo(dAtA []byte) (int, error)
func (*USDXMintingClaim) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *USDXMintingClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*USDXMintingClaim) ProtoMessage ¶ added in v0.16.0
func (*USDXMintingClaim) ProtoMessage()
func (*USDXMintingClaim) Reset ¶ added in v0.16.0
func (m *USDXMintingClaim) Reset()
func (*USDXMintingClaim) Size ¶ added in v0.16.0
func (m *USDXMintingClaim) Size() (n int)
func (*USDXMintingClaim) String ¶ added in v0.13.0
func (m *USDXMintingClaim) String() string
func (*USDXMintingClaim) Unmarshal ¶ added in v0.16.0
func (m *USDXMintingClaim) Unmarshal(dAtA []byte) error
func (USDXMintingClaim) Validate ¶ added in v0.13.0
func (c USDXMintingClaim) Validate() error
Validate performs a basic check of a Claim fields
func (*USDXMintingClaim) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *USDXMintingClaim) XXX_DiscardUnknown()
func (*USDXMintingClaim) XXX_Marshal ¶ added in v0.16.0
func (m *USDXMintingClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*USDXMintingClaim) XXX_Merge ¶ added in v0.16.0
func (m *USDXMintingClaim) XXX_Merge(src proto.Message)
func (*USDXMintingClaim) XXX_Size ¶ added in v0.16.0
func (m *USDXMintingClaim) XXX_Size() int
func (*USDXMintingClaim) XXX_Unmarshal ¶ added in v0.16.0
func (m *USDXMintingClaim) XXX_Unmarshal(b []byte) error
type USDXMintingClaims ¶ added in v0.13.0
type USDXMintingClaims []USDXMintingClaim
USDXMintingClaims slice of USDXMintingClaim
func (USDXMintingClaims) Validate ¶ added in v0.13.0
func (cs USDXMintingClaims) Validate() error
Validate checks if all the claims are valid and there are no duplicated entries.
type UnimplementedMsgServer ¶ added in v0.16.0
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ClaimDelegatorReward ¶ added in v0.16.0
func (*UnimplementedMsgServer) ClaimDelegatorReward(ctx context.Context, req *MsgClaimDelegatorReward) (*MsgClaimDelegatorRewardResponse, error)
func (*UnimplementedMsgServer) ClaimEarnReward ¶ added in v0.19.0
func (*UnimplementedMsgServer) ClaimEarnReward(ctx context.Context, req *MsgClaimEarnReward) (*MsgClaimEarnRewardResponse, error)
func (*UnimplementedMsgServer) ClaimHardReward ¶ added in v0.16.0
func (*UnimplementedMsgServer) ClaimHardReward(ctx context.Context, req *MsgClaimHardReward) (*MsgClaimHardRewardResponse, error)
func (*UnimplementedMsgServer) ClaimSavingsReward ¶ added in v0.17.0
func (*UnimplementedMsgServer) ClaimSavingsReward(ctx context.Context, req *MsgClaimSavingsReward) (*MsgClaimSavingsRewardResponse, error)
func (*UnimplementedMsgServer) ClaimSwapReward ¶ added in v0.16.0
func (*UnimplementedMsgServer) ClaimSwapReward(ctx context.Context, req *MsgClaimSwapReward) (*MsgClaimSwapRewardResponse, error)
func (*UnimplementedMsgServer) ClaimUSDXMintingReward ¶ added in v0.16.0
func (*UnimplementedMsgServer) ClaimUSDXMintingReward(ctx context.Context, req *MsgClaimUSDXMintingReward) (*MsgClaimUSDXMintingRewardResponse, error)
type UnimplementedQueryServer ¶ added in v0.21.1
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Apy ¶ added in v0.21.1
func (*UnimplementedQueryServer) Apy(ctx context.Context, req *QueryApyRequest) (*QueryApyResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v0.21.1
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) RewardFactors ¶ added in v0.21.1
func (*UnimplementedQueryServer) RewardFactors(ctx context.Context, req *QueryRewardFactorsRequest) (*QueryRewardFactorsResponse, error)
func (*UnimplementedQueryServer) Rewards ¶ added in v0.21.1
func (*UnimplementedQueryServer) Rewards(ctx context.Context, req *QueryRewardsRequest) (*QueryRewardsResponse, error)