Documentation ¶
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)
- type APY
- 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 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 QueryGetAPYsResponse
- type QueryGetRewardFactorsResponse
- type QueryRewardsParams
- 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)
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 // QuerierRoute route used for abci queries QuerierRoute = 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 ( QueryGetHardRewards = "hard-rewards" QueryGetUSDXMintingRewards = "usdx-minting-rewards" QueryGetDelegatorRewards = "delegator-rewards" QueryGetSwapRewards = "swap-rewards" QueryGetSavingsRewards = "savings-rewards" QueryGetEarnRewards = "earn-rewards" QueryGetRewardFactors = "reward-factors" QueryGetParams = "parameters" QueryGetAPYs = "apys" RestClaimCollateralType = "collateral_type" RestClaimOwner = "owner" RestClaimType = "type" RestUnsynced = "unsynced" )
Querier routes for the incentive module
const MaxDenomsToClaim = 1000
Variables ¶
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 = sdkerrors.Register(ModuleName, 2, "no claimable rewards found for user") ErrRewardPeriodNotFound = sdkerrors.Register(ModuleName, 3, "no reward period found for collateral type") ErrInvalidAccountType = sdkerrors.Register(ModuleName, 4, "account type not supported") ErrNoClaimsFound = sdkerrors.Register(ModuleName, 5, "no claimable rewards found") ErrInsufficientModAccountBalance = sdkerrors.Register(ModuleName, 6, "module account has insufficient balance to pay claim") ErrAccountNotFound = sdkerrors.Register(ModuleName, 7, "account not found") ErrInvalidMultiplier = sdkerrors.Register(ModuleName, 8, "invalid rewards multiplier") ErrZeroClaim = sdkerrors.Register(ModuleName, 9, "cannot claim - claim amount rounds to zero") ErrClaimExpired = sdkerrors.Register(ModuleName, 10, "claim has expired") ErrInvalidClaimType = sdkerrors.Register(ModuleName, 11, "invalid claim type") ErrDecreasingRewardFactor = sdkerrors.Register(ModuleName, 13, "found new reward factor less than an old reward factor") ErrInvalidClaimDenoms = sdkerrors.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 = "uroto" USDXMintingRewardDenom = "uroto" IncentiveMacc = rotodistTypes.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 ( 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)
)
Functions ¶
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 ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers all the necessary types and interfaces for the governance module.
func RegisterMsgServer ¶
Types ¶
type APY ¶
type APY struct { CollateralType string `json:"collateral_type" yaml:"collateral_type"` APY sdk.Dec `json:"apy" yaml:"apy"` }
APY contains the APY for a given collateral type
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 ¶
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 ¶
func NewAccumulationTime(ctype string, prevTime time.Time) AccumulationTime
NewAccumulationTime returns a new GenesisAccumulationTime
func (*AccumulationTime) Descriptor ¶
func (*AccumulationTime) Descriptor() ([]byte, []int)
func (*AccumulationTime) Marshal ¶
func (m *AccumulationTime) Marshal() (dAtA []byte, err error)
func (*AccumulationTime) MarshalToSizedBuffer ¶
func (m *AccumulationTime) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccumulationTime) ProtoMessage ¶
func (*AccumulationTime) ProtoMessage()
func (*AccumulationTime) Reset ¶
func (m *AccumulationTime) Reset()
func (*AccumulationTime) Size ¶
func (m *AccumulationTime) Size() (n int)
func (*AccumulationTime) String ¶
func (m *AccumulationTime) String() string
func (*AccumulationTime) Unmarshal ¶
func (m *AccumulationTime) Unmarshal(dAtA []byte) error
func (AccumulationTime) Validate ¶
func (gat AccumulationTime) Validate() error
Validate performs validation of GenesisAccumulationTime
func (*AccumulationTime) XXX_DiscardUnknown ¶
func (m *AccumulationTime) XXX_DiscardUnknown()
func (*AccumulationTime) XXX_Marshal ¶
func (m *AccumulationTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccumulationTime) XXX_Merge ¶
func (m *AccumulationTime) XXX_Merge(src proto.Message)
func (*AccumulationTime) XXX_Size ¶
func (m *AccumulationTime) XXX_Size() int
func (*AccumulationTime) XXX_Unmarshal ¶
func (m *AccumulationTime) XXX_Unmarshal(b []byte) error
type AccumulationTimes ¶
type AccumulationTimes []AccumulationTime
AccumulationTimes slice of GenesisAccumulationTime
func (AccumulationTimes) Validate ¶
func (gats AccumulationTimes) Validate() error
Validate performs validation of GenesisAccumulationTimes
type Accumulator ¶
type Accumulator struct { PreviousAccumulationTime time.Time Indexes RewardIndexes }
An Accumulator handles calculating and tracking global reward distributions.
func NewAccumulator ¶
func NewAccumulator(previousAccrual time.Time, indexes RewardIndexes) *Accumulator
func (*Accumulator) Accumulate ¶
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 BankKeeper ¶
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 ¶
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 ¶
func (BaseClaim) GetOwner ¶
func (c BaseClaim) GetOwner() sdk.AccAddress
GetOwner is a getter for Claim Owner
func (BaseClaim) GetType ¶
GetType returns the claim type, used to identify auctions in event attributes
func (*BaseClaim) MarshalToSizedBuffer ¶
func (*BaseClaim) ProtoMessage ¶
func (*BaseClaim) ProtoMessage()
func (*BaseClaim) XXX_DiscardUnknown ¶
func (m *BaseClaim) XXX_DiscardUnknown()
func (*BaseClaim) XXX_Marshal ¶
func (*BaseClaim) XXX_Unmarshal ¶
type BaseMultiClaim ¶
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 ¶
func (*BaseMultiClaim) Descriptor() ([]byte, []int)
func (BaseMultiClaim) GetOwner ¶
func (c BaseMultiClaim) GetOwner() sdk.AccAddress
GetOwner is a getter for Claim Owner
func (BaseMultiClaim) GetReward ¶
func (c BaseMultiClaim) GetReward() sdk.Coins
GetReward is a getter for Claim Reward
func (BaseMultiClaim) GetType ¶
func (c BaseMultiClaim) GetType() string
GetType returns the claim type, used to identify auctions in event attributes
func (*BaseMultiClaim) Marshal ¶
func (m *BaseMultiClaim) Marshal() (dAtA []byte, err error)
func (*BaseMultiClaim) MarshalToSizedBuffer ¶
func (m *BaseMultiClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BaseMultiClaim) ProtoMessage ¶
func (*BaseMultiClaim) ProtoMessage()
func (*BaseMultiClaim) Reset ¶
func (m *BaseMultiClaim) Reset()
func (*BaseMultiClaim) Size ¶
func (m *BaseMultiClaim) Size() (n int)
func (*BaseMultiClaim) String ¶
func (m *BaseMultiClaim) String() string
func (*BaseMultiClaim) Unmarshal ¶
func (m *BaseMultiClaim) Unmarshal(dAtA []byte) error
func (BaseMultiClaim) Validate ¶
func (c BaseMultiClaim) Validate() error
Validate performs a basic check of a BaseClaim fields
func (*BaseMultiClaim) XXX_DiscardUnknown ¶
func (m *BaseMultiClaim) XXX_DiscardUnknown()
func (*BaseMultiClaim) XXX_Marshal ¶
func (m *BaseMultiClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BaseMultiClaim) XXX_Merge ¶
func (m *BaseMultiClaim) XXX_Merge(src proto.Message)
func (*BaseMultiClaim) XXX_Size ¶
func (m *BaseMultiClaim) XXX_Size() int
func (*BaseMultiClaim) XXX_Unmarshal ¶
func (m *BaseMultiClaim) XXX_Unmarshal(b []byte) error
type CDPHooks ¶
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 sdk.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 ¶
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 ¶
func NewDelegatorClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) DelegatorClaim
NewDelegatorClaim returns a new DelegatorClaim
func (*DelegatorClaim) Descriptor ¶
func (*DelegatorClaim) Descriptor() ([]byte, []int)
func (DelegatorClaim) GetOwner ¶
func (c DelegatorClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (DelegatorClaim) GetReward ¶
func (c DelegatorClaim) GetReward() sdk.Coins
GetReward returns the claim's reward coin
func (DelegatorClaim) GetType ¶
func (c DelegatorClaim) GetType() string
GetType returns the claim's type
func (DelegatorClaim) HasRewardIndex ¶
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 ¶
func (m *DelegatorClaim) Marshal() (dAtA []byte, err error)
func (*DelegatorClaim) MarshalToSizedBuffer ¶
func (m *DelegatorClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegatorClaim) ProtoMessage ¶
func (*DelegatorClaim) ProtoMessage()
func (*DelegatorClaim) Reset ¶
func (m *DelegatorClaim) Reset()
func (*DelegatorClaim) Size ¶
func (m *DelegatorClaim) Size() (n int)
func (*DelegatorClaim) String ¶
func (m *DelegatorClaim) String() string
func (*DelegatorClaim) Unmarshal ¶
func (m *DelegatorClaim) Unmarshal(dAtA []byte) error
func (DelegatorClaim) Validate ¶
func (c DelegatorClaim) Validate() error
Validate performs a basic check of a DelegatorClaim fields
func (*DelegatorClaim) XXX_DiscardUnknown ¶
func (m *DelegatorClaim) XXX_DiscardUnknown()
func (*DelegatorClaim) XXX_Marshal ¶
func (m *DelegatorClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegatorClaim) XXX_Merge ¶
func (m *DelegatorClaim) XXX_Merge(src proto.Message)
func (*DelegatorClaim) XXX_Size ¶
func (m *DelegatorClaim) XXX_Size() int
func (*DelegatorClaim) XXX_Unmarshal ¶
func (m *DelegatorClaim) XXX_Unmarshal(b []byte) error
type DelegatorClaims ¶
type DelegatorClaims []DelegatorClaim
DelegatorClaim slice of DelegatorClaim
func (DelegatorClaims) Validate ¶
func (cs DelegatorClaims) Validate() error
Validate checks if all the claims are valid and there are no duplicated entries.
type DistrKeeper ¶
DistrKeeper defines the required methods needed by this modules keeper
type EarnClaim ¶
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 ¶
func NewEarnClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) EarnClaim
NewEarnClaim returns a new EarnClaim
func (*EarnClaim) Descriptor ¶
func (EarnClaim) GetOwner ¶
func (c EarnClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (EarnClaim) HasRewardIndex ¶
HasRewardIndex check if a claim has a reward index for the input pool ID.
func (*EarnClaim) MarshalToSizedBuffer ¶
func (*EarnClaim) ProtoMessage ¶
func (*EarnClaim) ProtoMessage()
func (*EarnClaim) XXX_DiscardUnknown ¶
func (m *EarnClaim) XXX_DiscardUnknown()
func (*EarnClaim) XXX_Marshal ¶
func (*EarnClaim) XXX_Unmarshal ¶
type EarnClaims ¶
type EarnClaims []EarnClaim
EarnClaims slice of EarnClaim
func (EarnClaims) Validate ¶
func (cs EarnClaims) Validate() error
Validate checks if all the claims are valid.
type EarnKeeper ¶
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 ¶
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 ¶
func NewGenesisRewardState(accumTimes AccumulationTimes, indexes MultiRewardIndexes) GenesisRewardState
NewGenesisRewardState returns a new GenesisRewardState
func (*GenesisRewardState) Descriptor ¶
func (*GenesisRewardState) Descriptor() ([]byte, []int)
func (*GenesisRewardState) Marshal ¶
func (m *GenesisRewardState) Marshal() (dAtA []byte, err error)
func (*GenesisRewardState) MarshalTo ¶
func (m *GenesisRewardState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisRewardState) MarshalToSizedBuffer ¶
func (m *GenesisRewardState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisRewardState) ProtoMessage ¶
func (*GenesisRewardState) ProtoMessage()
func (*GenesisRewardState) Reset ¶
func (m *GenesisRewardState) Reset()
func (*GenesisRewardState) Size ¶
func (m *GenesisRewardState) Size() (n int)
func (*GenesisRewardState) String ¶
func (m *GenesisRewardState) String() string
func (*GenesisRewardState) Unmarshal ¶
func (m *GenesisRewardState) Unmarshal(dAtA []byte) error
func (GenesisRewardState) Validate ¶
func (grs GenesisRewardState) Validate() error
Validate performs validation of a GenesisRewardState
func (*GenesisRewardState) XXX_DiscardUnknown ¶
func (m *GenesisRewardState) XXX_DiscardUnknown()
func (*GenesisRewardState) XXX_Marshal ¶
func (m *GenesisRewardState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisRewardState) XXX_Merge ¶
func (m *GenesisRewardState) XXX_Merge(src proto.Message)
func (*GenesisRewardState) XXX_Size ¶
func (m *GenesisRewardState) XXX_Size() int
func (*GenesisRewardState) XXX_Unmarshal ¶
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 ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
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 ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type HARDHooks ¶
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 ¶
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 ¶
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 ¶
func NewHardLiquidityProviderClaim(owner sdk.AccAddress, rewards sdk.Coins, supplyRewardIndexes, borrowRewardIndexes MultiRewardIndexes, ) HardLiquidityProviderClaim
NewHardLiquidityProviderClaim returns a new HardLiquidityProviderClaim
func (*HardLiquidityProviderClaim) Descriptor ¶
func (*HardLiquidityProviderClaim) Descriptor() ([]byte, []int)
func (HardLiquidityProviderClaim) GetOwner ¶
func (c HardLiquidityProviderClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (HardLiquidityProviderClaim) GetReward ¶
func (c HardLiquidityProviderClaim) GetReward() sdk.Coins
GetReward returns the claim's reward coin
func (HardLiquidityProviderClaim) GetType ¶
func (c HardLiquidityProviderClaim) GetType() string
GetType returns the claim's type
func (HardLiquidityProviderClaim) HasBorrowRewardIndex ¶
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 ¶
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 ¶
func (m *HardLiquidityProviderClaim) Marshal() (dAtA []byte, err error)
func (*HardLiquidityProviderClaim) MarshalTo ¶
func (m *HardLiquidityProviderClaim) MarshalTo(dAtA []byte) (int, error)
func (*HardLiquidityProviderClaim) MarshalToSizedBuffer ¶
func (m *HardLiquidityProviderClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HardLiquidityProviderClaim) ProtoMessage ¶
func (*HardLiquidityProviderClaim) ProtoMessage()
func (*HardLiquidityProviderClaim) Reset ¶
func (m *HardLiquidityProviderClaim) Reset()
func (*HardLiquidityProviderClaim) Size ¶
func (m *HardLiquidityProviderClaim) Size() (n int)
func (*HardLiquidityProviderClaim) String ¶
func (m *HardLiquidityProviderClaim) String() string
func (*HardLiquidityProviderClaim) Unmarshal ¶
func (m *HardLiquidityProviderClaim) Unmarshal(dAtA []byte) error
func (HardLiquidityProviderClaim) Validate ¶
func (c HardLiquidityProviderClaim) Validate() error
Validate performs a basic check of a HardLiquidityProviderClaim fields
func (*HardLiquidityProviderClaim) XXX_DiscardUnknown ¶
func (m *HardLiquidityProviderClaim) XXX_DiscardUnknown()
func (*HardLiquidityProviderClaim) XXX_Marshal ¶
func (m *HardLiquidityProviderClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HardLiquidityProviderClaim) XXX_Merge ¶
func (m *HardLiquidityProviderClaim) XXX_Merge(src proto.Message)
func (*HardLiquidityProviderClaim) XXX_Size ¶
func (m *HardLiquidityProviderClaim) XXX_Size() int
func (*HardLiquidityProviderClaim) XXX_Unmarshal ¶
func (m *HardLiquidityProviderClaim) XXX_Unmarshal(b []byte) error
type HardLiquidityProviderClaims ¶
type HardLiquidityProviderClaims []HardLiquidityProviderClaim
HardLiquidityProviderClaims slice of HardLiquidityProviderClaim
func (HardLiquidityProviderClaims) Validate ¶
func (cs HardLiquidityProviderClaims) Validate() error
Validate checks if all the claims are valid and there are no duplicated entries.
type LiquidKeeper ¶
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 ¶
MintKeeper defines the required methods needed by this modules keeper
type MsgClaimDelegatorReward ¶
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 ¶
func NewMsgClaimDelegatorReward(sender string, denomsToClaim Selections) MsgClaimDelegatorReward
NewMsgClaimDelegatorReward returns a new MsgClaimDelegatorReward.
func (*MsgClaimDelegatorReward) Descriptor ¶
func (*MsgClaimDelegatorReward) Descriptor() ([]byte, []int)
func (MsgClaimDelegatorReward) GetSignBytes ¶
func (msg MsgClaimDelegatorReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimDelegatorReward) GetSigners ¶
func (msg MsgClaimDelegatorReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimDelegatorReward) Marshal ¶
func (m *MsgClaimDelegatorReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimDelegatorReward) MarshalTo ¶
func (m *MsgClaimDelegatorReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimDelegatorReward) MarshalToSizedBuffer ¶
func (m *MsgClaimDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimDelegatorReward) ProtoMessage ¶
func (*MsgClaimDelegatorReward) ProtoMessage()
func (*MsgClaimDelegatorReward) Reset ¶
func (m *MsgClaimDelegatorReward) Reset()
func (MsgClaimDelegatorReward) Route ¶
func (msg MsgClaimDelegatorReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimDelegatorReward) Size ¶
func (m *MsgClaimDelegatorReward) Size() (n int)
func (*MsgClaimDelegatorReward) String ¶
func (m *MsgClaimDelegatorReward) String() string
func (MsgClaimDelegatorReward) Type ¶
func (msg MsgClaimDelegatorReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimDelegatorReward) Unmarshal ¶
func (m *MsgClaimDelegatorReward) Unmarshal(dAtA []byte) error
func (MsgClaimDelegatorReward) ValidateBasic ¶
func (msg MsgClaimDelegatorReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimDelegatorReward) XXX_DiscardUnknown ¶
func (m *MsgClaimDelegatorReward) XXX_DiscardUnknown()
func (*MsgClaimDelegatorReward) XXX_Marshal ¶
func (m *MsgClaimDelegatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimDelegatorReward) XXX_Merge ¶
func (m *MsgClaimDelegatorReward) XXX_Merge(src proto.Message)
func (*MsgClaimDelegatorReward) XXX_Size ¶
func (m *MsgClaimDelegatorReward) XXX_Size() int
func (*MsgClaimDelegatorReward) XXX_Unmarshal ¶
func (m *MsgClaimDelegatorReward) XXX_Unmarshal(b []byte) error
type MsgClaimDelegatorRewardResponse ¶
type MsgClaimDelegatorRewardResponse struct { }
MsgClaimDelegatorRewardResponse defines the Msg/ClaimDelegatorReward response type.
func (*MsgClaimDelegatorRewardResponse) Descriptor ¶
func (*MsgClaimDelegatorRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimDelegatorRewardResponse) Marshal ¶
func (m *MsgClaimDelegatorRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimDelegatorRewardResponse) MarshalTo ¶
func (m *MsgClaimDelegatorRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimDelegatorRewardResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimDelegatorRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimDelegatorRewardResponse) ProtoMessage ¶
func (*MsgClaimDelegatorRewardResponse) ProtoMessage()
func (*MsgClaimDelegatorRewardResponse) Reset ¶
func (m *MsgClaimDelegatorRewardResponse) Reset()
func (*MsgClaimDelegatorRewardResponse) Size ¶
func (m *MsgClaimDelegatorRewardResponse) Size() (n int)
func (*MsgClaimDelegatorRewardResponse) String ¶
func (m *MsgClaimDelegatorRewardResponse) String() string
func (*MsgClaimDelegatorRewardResponse) Unmarshal ¶
func (m *MsgClaimDelegatorRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimDelegatorRewardResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimDelegatorRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimDelegatorRewardResponse) XXX_Marshal ¶
func (m *MsgClaimDelegatorRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimDelegatorRewardResponse) XXX_Merge ¶
func (m *MsgClaimDelegatorRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimDelegatorRewardResponse) XXX_Size ¶
func (m *MsgClaimDelegatorRewardResponse) XXX_Size() int
func (*MsgClaimDelegatorRewardResponse) XXX_Unmarshal ¶
func (m *MsgClaimDelegatorRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClaimEarnReward ¶
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 ¶
func NewMsgClaimEarnReward(sender string, denomsToClaim Selections) MsgClaimEarnReward
NewMsgClaimEarnReward returns a new MsgClaimEarnReward.
func (*MsgClaimEarnReward) Descriptor ¶
func (*MsgClaimEarnReward) Descriptor() ([]byte, []int)
func (MsgClaimEarnReward) GetSignBytes ¶
func (msg MsgClaimEarnReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimEarnReward) GetSigners ¶
func (msg MsgClaimEarnReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimEarnReward) Marshal ¶
func (m *MsgClaimEarnReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimEarnReward) MarshalTo ¶
func (m *MsgClaimEarnReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimEarnReward) MarshalToSizedBuffer ¶
func (m *MsgClaimEarnReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimEarnReward) ProtoMessage ¶
func (*MsgClaimEarnReward) ProtoMessage()
func (*MsgClaimEarnReward) Reset ¶
func (m *MsgClaimEarnReward) Reset()
func (MsgClaimEarnReward) Route ¶
func (msg MsgClaimEarnReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimEarnReward) Size ¶
func (m *MsgClaimEarnReward) Size() (n int)
func (*MsgClaimEarnReward) String ¶
func (m *MsgClaimEarnReward) String() string
func (MsgClaimEarnReward) Type ¶
func (msg MsgClaimEarnReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimEarnReward) Unmarshal ¶
func (m *MsgClaimEarnReward) Unmarshal(dAtA []byte) error
func (MsgClaimEarnReward) ValidateBasic ¶
func (msg MsgClaimEarnReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimEarnReward) XXX_DiscardUnknown ¶
func (m *MsgClaimEarnReward) XXX_DiscardUnknown()
func (*MsgClaimEarnReward) XXX_Marshal ¶
func (m *MsgClaimEarnReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimEarnReward) XXX_Merge ¶
func (m *MsgClaimEarnReward) XXX_Merge(src proto.Message)
func (*MsgClaimEarnReward) XXX_Size ¶
func (m *MsgClaimEarnReward) XXX_Size() int
func (*MsgClaimEarnReward) XXX_Unmarshal ¶
func (m *MsgClaimEarnReward) XXX_Unmarshal(b []byte) error
type MsgClaimEarnRewardResponse ¶
type MsgClaimEarnRewardResponse struct { }
MsgClaimEarnRewardResponse defines the Msg/ClaimEarnReward response type.
func (*MsgClaimEarnRewardResponse) Descriptor ¶
func (*MsgClaimEarnRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimEarnRewardResponse) Marshal ¶
func (m *MsgClaimEarnRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimEarnRewardResponse) MarshalTo ¶
func (m *MsgClaimEarnRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimEarnRewardResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimEarnRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimEarnRewardResponse) ProtoMessage ¶
func (*MsgClaimEarnRewardResponse) ProtoMessage()
func (*MsgClaimEarnRewardResponse) Reset ¶
func (m *MsgClaimEarnRewardResponse) Reset()
func (*MsgClaimEarnRewardResponse) Size ¶
func (m *MsgClaimEarnRewardResponse) Size() (n int)
func (*MsgClaimEarnRewardResponse) String ¶
func (m *MsgClaimEarnRewardResponse) String() string
func (*MsgClaimEarnRewardResponse) Unmarshal ¶
func (m *MsgClaimEarnRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimEarnRewardResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimEarnRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimEarnRewardResponse) XXX_Marshal ¶
func (m *MsgClaimEarnRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimEarnRewardResponse) XXX_Merge ¶
func (m *MsgClaimEarnRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimEarnRewardResponse) XXX_Size ¶
func (m *MsgClaimEarnRewardResponse) XXX_Size() int
func (*MsgClaimEarnRewardResponse) XXX_Unmarshal ¶
func (m *MsgClaimEarnRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClaimHardReward ¶
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 ¶
func NewMsgClaimHardReward(sender string, denomsToClaim Selections) MsgClaimHardReward
NewMsgClaimHardReward returns a new MsgClaimHardReward.
func (*MsgClaimHardReward) Descriptor ¶
func (*MsgClaimHardReward) Descriptor() ([]byte, []int)
func (MsgClaimHardReward) GetSignBytes ¶
func (msg MsgClaimHardReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimHardReward) GetSigners ¶
func (msg MsgClaimHardReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimHardReward) Marshal ¶
func (m *MsgClaimHardReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimHardReward) MarshalTo ¶
func (m *MsgClaimHardReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimHardReward) MarshalToSizedBuffer ¶
func (m *MsgClaimHardReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimHardReward) ProtoMessage ¶
func (*MsgClaimHardReward) ProtoMessage()
func (*MsgClaimHardReward) Reset ¶
func (m *MsgClaimHardReward) Reset()
func (MsgClaimHardReward) Route ¶
func (msg MsgClaimHardReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimHardReward) Size ¶
func (m *MsgClaimHardReward) Size() (n int)
func (*MsgClaimHardReward) String ¶
func (m *MsgClaimHardReward) String() string
func (MsgClaimHardReward) Type ¶
func (msg MsgClaimHardReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimHardReward) Unmarshal ¶
func (m *MsgClaimHardReward) Unmarshal(dAtA []byte) error
func (MsgClaimHardReward) ValidateBasic ¶
func (msg MsgClaimHardReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimHardReward) XXX_DiscardUnknown ¶
func (m *MsgClaimHardReward) XXX_DiscardUnknown()
func (*MsgClaimHardReward) XXX_Marshal ¶
func (m *MsgClaimHardReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimHardReward) XXX_Merge ¶
func (m *MsgClaimHardReward) XXX_Merge(src proto.Message)
func (*MsgClaimHardReward) XXX_Size ¶
func (m *MsgClaimHardReward) XXX_Size() int
func (*MsgClaimHardReward) XXX_Unmarshal ¶
func (m *MsgClaimHardReward) XXX_Unmarshal(b []byte) error
type MsgClaimHardRewardResponse ¶
type MsgClaimHardRewardResponse struct { }
MsgClaimHardRewardResponse defines the Msg/ClaimHardReward response type.
func (*MsgClaimHardRewardResponse) Descriptor ¶
func (*MsgClaimHardRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimHardRewardResponse) Marshal ¶
func (m *MsgClaimHardRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimHardRewardResponse) MarshalTo ¶
func (m *MsgClaimHardRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimHardRewardResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimHardRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimHardRewardResponse) ProtoMessage ¶
func (*MsgClaimHardRewardResponse) ProtoMessage()
func (*MsgClaimHardRewardResponse) Reset ¶
func (m *MsgClaimHardRewardResponse) Reset()
func (*MsgClaimHardRewardResponse) Size ¶
func (m *MsgClaimHardRewardResponse) Size() (n int)
func (*MsgClaimHardRewardResponse) String ¶
func (m *MsgClaimHardRewardResponse) String() string
func (*MsgClaimHardRewardResponse) Unmarshal ¶
func (m *MsgClaimHardRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimHardRewardResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimHardRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimHardRewardResponse) XXX_Marshal ¶
func (m *MsgClaimHardRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimHardRewardResponse) XXX_Merge ¶
func (m *MsgClaimHardRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimHardRewardResponse) XXX_Size ¶
func (m *MsgClaimHardRewardResponse) XXX_Size() int
func (*MsgClaimHardRewardResponse) XXX_Unmarshal ¶
func (m *MsgClaimHardRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClaimSavingsReward ¶
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 ¶
func NewMsgClaimSavingsReward(sender string, denomsToClaim Selections) MsgClaimSavingsReward
NewMsgClaimSavingsReward returns a new MsgClaimSavingsReward.
func (*MsgClaimSavingsReward) Descriptor ¶
func (*MsgClaimSavingsReward) Descriptor() ([]byte, []int)
func (MsgClaimSavingsReward) GetSignBytes ¶
func (msg MsgClaimSavingsReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimSavingsReward) GetSigners ¶
func (msg MsgClaimSavingsReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimSavingsReward) Marshal ¶
func (m *MsgClaimSavingsReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimSavingsReward) MarshalTo ¶
func (m *MsgClaimSavingsReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimSavingsReward) MarshalToSizedBuffer ¶
func (m *MsgClaimSavingsReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimSavingsReward) ProtoMessage ¶
func (*MsgClaimSavingsReward) ProtoMessage()
func (*MsgClaimSavingsReward) Reset ¶
func (m *MsgClaimSavingsReward) Reset()
func (MsgClaimSavingsReward) Route ¶
func (msg MsgClaimSavingsReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimSavingsReward) Size ¶
func (m *MsgClaimSavingsReward) Size() (n int)
func (*MsgClaimSavingsReward) String ¶
func (m *MsgClaimSavingsReward) String() string
func (MsgClaimSavingsReward) Type ¶
func (msg MsgClaimSavingsReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimSavingsReward) Unmarshal ¶
func (m *MsgClaimSavingsReward) Unmarshal(dAtA []byte) error
func (MsgClaimSavingsReward) ValidateBasic ¶
func (msg MsgClaimSavingsReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimSavingsReward) XXX_DiscardUnknown ¶
func (m *MsgClaimSavingsReward) XXX_DiscardUnknown()
func (*MsgClaimSavingsReward) XXX_Marshal ¶
func (m *MsgClaimSavingsReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimSavingsReward) XXX_Merge ¶
func (m *MsgClaimSavingsReward) XXX_Merge(src proto.Message)
func (*MsgClaimSavingsReward) XXX_Size ¶
func (m *MsgClaimSavingsReward) XXX_Size() int
func (*MsgClaimSavingsReward) XXX_Unmarshal ¶
func (m *MsgClaimSavingsReward) XXX_Unmarshal(b []byte) error
type MsgClaimSavingsRewardResponse ¶
type MsgClaimSavingsRewardResponse struct { }
MsgClaimSavingsRewardResponse defines the Msg/ClaimSavingsReward response type.
func (*MsgClaimSavingsRewardResponse) Descriptor ¶
func (*MsgClaimSavingsRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimSavingsRewardResponse) Marshal ¶
func (m *MsgClaimSavingsRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimSavingsRewardResponse) MarshalTo ¶
func (m *MsgClaimSavingsRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimSavingsRewardResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimSavingsRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimSavingsRewardResponse) ProtoMessage ¶
func (*MsgClaimSavingsRewardResponse) ProtoMessage()
func (*MsgClaimSavingsRewardResponse) Reset ¶
func (m *MsgClaimSavingsRewardResponse) Reset()
func (*MsgClaimSavingsRewardResponse) Size ¶
func (m *MsgClaimSavingsRewardResponse) Size() (n int)
func (*MsgClaimSavingsRewardResponse) String ¶
func (m *MsgClaimSavingsRewardResponse) String() string
func (*MsgClaimSavingsRewardResponse) Unmarshal ¶
func (m *MsgClaimSavingsRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimSavingsRewardResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimSavingsRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimSavingsRewardResponse) XXX_Marshal ¶
func (m *MsgClaimSavingsRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimSavingsRewardResponse) XXX_Merge ¶
func (m *MsgClaimSavingsRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimSavingsRewardResponse) XXX_Size ¶
func (m *MsgClaimSavingsRewardResponse) XXX_Size() int
func (*MsgClaimSavingsRewardResponse) XXX_Unmarshal ¶
func (m *MsgClaimSavingsRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClaimSwapReward ¶
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 ¶
func NewMsgClaimSwapReward(sender string, denomsToClaim Selections) MsgClaimSwapReward
NewMsgClaimSwapReward returns a new MsgClaimSwapReward.
func (*MsgClaimSwapReward) Descriptor ¶
func (*MsgClaimSwapReward) Descriptor() ([]byte, []int)
func (MsgClaimSwapReward) GetSignBytes ¶
func (msg MsgClaimSwapReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimSwapReward) GetSigners ¶
func (msg MsgClaimSwapReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimSwapReward) Marshal ¶
func (m *MsgClaimSwapReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimSwapReward) MarshalTo ¶
func (m *MsgClaimSwapReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimSwapReward) MarshalToSizedBuffer ¶
func (m *MsgClaimSwapReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimSwapReward) ProtoMessage ¶
func (*MsgClaimSwapReward) ProtoMessage()
func (*MsgClaimSwapReward) Reset ¶
func (m *MsgClaimSwapReward) Reset()
func (MsgClaimSwapReward) Route ¶
func (msg MsgClaimSwapReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimSwapReward) Size ¶
func (m *MsgClaimSwapReward) Size() (n int)
func (*MsgClaimSwapReward) String ¶
func (m *MsgClaimSwapReward) String() string
func (MsgClaimSwapReward) Type ¶
func (msg MsgClaimSwapReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimSwapReward) Unmarshal ¶
func (m *MsgClaimSwapReward) Unmarshal(dAtA []byte) error
func (MsgClaimSwapReward) ValidateBasic ¶
func (msg MsgClaimSwapReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimSwapReward) XXX_DiscardUnknown ¶
func (m *MsgClaimSwapReward) XXX_DiscardUnknown()
func (*MsgClaimSwapReward) XXX_Marshal ¶
func (m *MsgClaimSwapReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimSwapReward) XXX_Merge ¶
func (m *MsgClaimSwapReward) XXX_Merge(src proto.Message)
func (*MsgClaimSwapReward) XXX_Size ¶
func (m *MsgClaimSwapReward) XXX_Size() int
func (*MsgClaimSwapReward) XXX_Unmarshal ¶
func (m *MsgClaimSwapReward) XXX_Unmarshal(b []byte) error
type MsgClaimSwapRewardResponse ¶
type MsgClaimSwapRewardResponse struct { }
MsgClaimSwapRewardResponse defines the Msg/ClaimSwapReward response type.
func (*MsgClaimSwapRewardResponse) Descriptor ¶
func (*MsgClaimSwapRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimSwapRewardResponse) Marshal ¶
func (m *MsgClaimSwapRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimSwapRewardResponse) MarshalTo ¶
func (m *MsgClaimSwapRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimSwapRewardResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimSwapRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimSwapRewardResponse) ProtoMessage ¶
func (*MsgClaimSwapRewardResponse) ProtoMessage()
func (*MsgClaimSwapRewardResponse) Reset ¶
func (m *MsgClaimSwapRewardResponse) Reset()
func (*MsgClaimSwapRewardResponse) Size ¶
func (m *MsgClaimSwapRewardResponse) Size() (n int)
func (*MsgClaimSwapRewardResponse) String ¶
func (m *MsgClaimSwapRewardResponse) String() string
func (*MsgClaimSwapRewardResponse) Unmarshal ¶
func (m *MsgClaimSwapRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimSwapRewardResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimSwapRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimSwapRewardResponse) XXX_Marshal ¶
func (m *MsgClaimSwapRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimSwapRewardResponse) XXX_Merge ¶
func (m *MsgClaimSwapRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimSwapRewardResponse) XXX_Size ¶
func (m *MsgClaimSwapRewardResponse) XXX_Size() int
func (*MsgClaimSwapRewardResponse) XXX_Unmarshal ¶
func (m *MsgClaimSwapRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClaimUSDXMintingReward ¶
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 ¶
func NewMsgClaimUSDXMintingReward(sender string, multiplierName string) MsgClaimUSDXMintingReward
NewMsgClaimUSDXMintingReward returns a new MsgClaimUSDXMintingReward.
func (*MsgClaimUSDXMintingReward) Descriptor ¶
func (*MsgClaimUSDXMintingReward) Descriptor() ([]byte, []int)
func (MsgClaimUSDXMintingReward) GetSignBytes ¶
func (msg MsgClaimUSDXMintingReward) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg.
func (MsgClaimUSDXMintingReward) GetSigners ¶
func (msg MsgClaimUSDXMintingReward) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign.
func (*MsgClaimUSDXMintingReward) Marshal ¶
func (m *MsgClaimUSDXMintingReward) Marshal() (dAtA []byte, err error)
func (*MsgClaimUSDXMintingReward) MarshalTo ¶
func (m *MsgClaimUSDXMintingReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimUSDXMintingReward) MarshalToSizedBuffer ¶
func (m *MsgClaimUSDXMintingReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimUSDXMintingReward) ProtoMessage ¶
func (*MsgClaimUSDXMintingReward) ProtoMessage()
func (*MsgClaimUSDXMintingReward) Reset ¶
func (m *MsgClaimUSDXMintingReward) Reset()
func (MsgClaimUSDXMintingReward) Route ¶
func (msg MsgClaimUSDXMintingReward) Route() string
Route return the message type used for routing the message.
func (*MsgClaimUSDXMintingReward) Size ¶
func (m *MsgClaimUSDXMintingReward) Size() (n int)
func (*MsgClaimUSDXMintingReward) String ¶
func (m *MsgClaimUSDXMintingReward) String() string
func (MsgClaimUSDXMintingReward) Type ¶
func (msg MsgClaimUSDXMintingReward) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgClaimUSDXMintingReward) Unmarshal ¶
func (m *MsgClaimUSDXMintingReward) Unmarshal(dAtA []byte) error
func (MsgClaimUSDXMintingReward) ValidateBasic ¶
func (msg MsgClaimUSDXMintingReward) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgClaimUSDXMintingReward) XXX_DiscardUnknown ¶
func (m *MsgClaimUSDXMintingReward) XXX_DiscardUnknown()
func (*MsgClaimUSDXMintingReward) XXX_Marshal ¶
func (m *MsgClaimUSDXMintingReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimUSDXMintingReward) XXX_Merge ¶
func (m *MsgClaimUSDXMintingReward) XXX_Merge(src proto.Message)
func (*MsgClaimUSDXMintingReward) XXX_Size ¶
func (m *MsgClaimUSDXMintingReward) XXX_Size() int
func (*MsgClaimUSDXMintingReward) XXX_Unmarshal ¶
func (m *MsgClaimUSDXMintingReward) XXX_Unmarshal(b []byte) error
type MsgClaimUSDXMintingRewardResponse ¶
type MsgClaimUSDXMintingRewardResponse struct { }
MsgClaimUSDXMintingRewardResponse defines the Msg/ClaimUSDXMintingReward response type.
func (*MsgClaimUSDXMintingRewardResponse) Descriptor ¶
func (*MsgClaimUSDXMintingRewardResponse) Descriptor() ([]byte, []int)
func (*MsgClaimUSDXMintingRewardResponse) Marshal ¶
func (m *MsgClaimUSDXMintingRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimUSDXMintingRewardResponse) MarshalTo ¶
func (m *MsgClaimUSDXMintingRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimUSDXMintingRewardResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimUSDXMintingRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimUSDXMintingRewardResponse) ProtoMessage ¶
func (*MsgClaimUSDXMintingRewardResponse) ProtoMessage()
func (*MsgClaimUSDXMintingRewardResponse) Reset ¶
func (m *MsgClaimUSDXMintingRewardResponse) Reset()
func (*MsgClaimUSDXMintingRewardResponse) Size ¶
func (m *MsgClaimUSDXMintingRewardResponse) Size() (n int)
func (*MsgClaimUSDXMintingRewardResponse) String ¶
func (m *MsgClaimUSDXMintingRewardResponse) String() string
func (*MsgClaimUSDXMintingRewardResponse) Unmarshal ¶
func (m *MsgClaimUSDXMintingRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimUSDXMintingRewardResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimUSDXMintingRewardResponse) XXX_DiscardUnknown()
func (*MsgClaimUSDXMintingRewardResponse) XXX_Marshal ¶
func (m *MsgClaimUSDXMintingRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimUSDXMintingRewardResponse) XXX_Merge ¶
func (m *MsgClaimUSDXMintingRewardResponse) XXX_Merge(src proto.Message)
func (*MsgClaimUSDXMintingRewardResponse) XXX_Size ¶
func (m *MsgClaimUSDXMintingRewardResponse) XXX_Size() int
func (*MsgClaimUSDXMintingRewardResponse) XXX_Unmarshal ¶
func (m *MsgClaimUSDXMintingRewardResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
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 ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶
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 ¶
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 ¶
func NewMultiRewardIndex(collateralType string, indexes RewardIndexes) MultiRewardIndex
NewMultiRewardIndex returns a new MultiRewardIndex
func (*MultiRewardIndex) Descriptor ¶
func (*MultiRewardIndex) Descriptor() ([]byte, []int)
func (MultiRewardIndex) GetFactorIndex ¶
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 ¶
func (m *MultiRewardIndex) Marshal() (dAtA []byte, err error)
func (*MultiRewardIndex) MarshalToSizedBuffer ¶
func (m *MultiRewardIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiRewardIndex) ProtoMessage ¶
func (*MultiRewardIndex) ProtoMessage()
func (*MultiRewardIndex) Reset ¶
func (m *MultiRewardIndex) Reset()
func (*MultiRewardIndex) Size ¶
func (m *MultiRewardIndex) Size() (n int)
func (*MultiRewardIndex) String ¶
func (m *MultiRewardIndex) String() string
func (*MultiRewardIndex) Unmarshal ¶
func (m *MultiRewardIndex) Unmarshal(dAtA []byte) error
func (MultiRewardIndex) Validate ¶
func (mri MultiRewardIndex) Validate() error
Validate validates multi-reward index
func (*MultiRewardIndex) XXX_DiscardUnknown ¶
func (m *MultiRewardIndex) XXX_DiscardUnknown()
func (*MultiRewardIndex) XXX_Marshal ¶
func (m *MultiRewardIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiRewardIndex) XXX_Merge ¶
func (m *MultiRewardIndex) XXX_Merge(src proto.Message)
func (*MultiRewardIndex) XXX_Size ¶
func (m *MultiRewardIndex) XXX_Size() int
func (*MultiRewardIndex) XXX_Unmarshal ¶
func (m *MultiRewardIndex) XXX_Unmarshal(b []byte) error
type MultiRewardIndexes ¶
type MultiRewardIndexes []MultiRewardIndex
MultiRewardIndexes slice of MultiRewardIndex
func (MultiRewardIndexes) Get ¶
func (mris MultiRewardIndexes) Get(denom string) (RewardIndexes, bool)
Get fetches a RewardIndexes by it's denom
func (MultiRewardIndexes) GetCollateralTypes ¶
func (mris MultiRewardIndexes) GetCollateralTypes() []string
GetCollateralTypes returns a slice of containing all collateral types
func (MultiRewardIndexes) GetRewardIndex ¶
func (mris MultiRewardIndexes) GetRewardIndex(denom string) (MultiRewardIndex, bool)
GetRewardIndex fetches a RewardIndex from a MultiRewardIndex by its denom
func (MultiRewardIndexes) GetRewardIndexIndex ¶
func (mris MultiRewardIndexes) GetRewardIndexIndex(denom string) (int, bool)
GetRewardIndexIndex fetches a specific reward index inside the array by its denom
func (MultiRewardIndexes) RemoveRewardIndex ¶
func (mris MultiRewardIndexes) RemoveRewardIndex(denom string) MultiRewardIndexes
RemoveRewardIndex removes a denom's reward interest factor value
func (MultiRewardIndexes) Validate ¶
func (mris MultiRewardIndexes) Validate() error
Validate validation for reward indexes
func (MultiRewardIndexes) With ¶
func (mris MultiRewardIndexes) With(denom string, indexes RewardIndexes) MultiRewardIndexes
With returns a copy of the indexes with a new RewardIndexes added
type MultiRewardIndexesProto ¶
type MultiRewardIndexesProto struct {
MultiRewardIndexes MultiRewardIndexes `` /* 139-byte string literal not displayed */
}
MultiRewardIndexesProto defines a Protobuf wrapper around a MultiRewardIndexes slice
func (*MultiRewardIndexesProto) Descriptor ¶
func (*MultiRewardIndexesProto) Descriptor() ([]byte, []int)
func (*MultiRewardIndexesProto) Marshal ¶
func (m *MultiRewardIndexesProto) Marshal() (dAtA []byte, err error)
func (*MultiRewardIndexesProto) MarshalTo ¶
func (m *MultiRewardIndexesProto) MarshalTo(dAtA []byte) (int, error)
func (*MultiRewardIndexesProto) MarshalToSizedBuffer ¶
func (m *MultiRewardIndexesProto) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiRewardIndexesProto) ProtoMessage ¶
func (*MultiRewardIndexesProto) ProtoMessage()
func (*MultiRewardIndexesProto) Reset ¶
func (m *MultiRewardIndexesProto) Reset()
func (*MultiRewardIndexesProto) Size ¶
func (m *MultiRewardIndexesProto) Size() (n int)
func (*MultiRewardIndexesProto) String ¶
func (m *MultiRewardIndexesProto) String() string
func (*MultiRewardIndexesProto) Unmarshal ¶
func (m *MultiRewardIndexesProto) Unmarshal(dAtA []byte) error
func (*MultiRewardIndexesProto) XXX_DiscardUnknown ¶
func (m *MultiRewardIndexesProto) XXX_DiscardUnknown()
func (*MultiRewardIndexesProto) XXX_Marshal ¶
func (m *MultiRewardIndexesProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiRewardIndexesProto) XXX_Merge ¶
func (m *MultiRewardIndexesProto) XXX_Merge(src proto.Message)
func (*MultiRewardIndexesProto) XXX_Size ¶
func (m *MultiRewardIndexesProto) XXX_Size() int
func (*MultiRewardIndexesProto) XXX_Unmarshal ¶
func (m *MultiRewardIndexesProto) XXX_Unmarshal(b []byte) error
type MultiRewardPeriod ¶
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 ¶
func NewMultiRewardPeriod(active bool, collateralType string, start time.Time, end time.Time, reward sdk.Coins) MultiRewardPeriod
NewMultiRewardPeriod returns a new MultiRewardPeriod
func NewMultiRewardPeriodFromRewardPeriod ¶
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 ¶
func (*MultiRewardPeriod) Descriptor() ([]byte, []int)
func (*MultiRewardPeriod) Marshal ¶
func (m *MultiRewardPeriod) Marshal() (dAtA []byte, err error)
func (*MultiRewardPeriod) MarshalTo ¶
func (m *MultiRewardPeriod) MarshalTo(dAtA []byte) (int, error)
func (*MultiRewardPeriod) MarshalToSizedBuffer ¶
func (m *MultiRewardPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiRewardPeriod) ProtoMessage ¶
func (*MultiRewardPeriod) ProtoMessage()
func (*MultiRewardPeriod) Reset ¶
func (m *MultiRewardPeriod) Reset()
func (*MultiRewardPeriod) Size ¶
func (m *MultiRewardPeriod) Size() (n int)
func (*MultiRewardPeriod) String ¶
func (m *MultiRewardPeriod) String() string
func (*MultiRewardPeriod) Unmarshal ¶
func (m *MultiRewardPeriod) Unmarshal(dAtA []byte) error
func (MultiRewardPeriod) Validate ¶
func (mrp MultiRewardPeriod) Validate() error
Validate performs a basic check of a MultiRewardPeriod.
func (*MultiRewardPeriod) XXX_DiscardUnknown ¶
func (m *MultiRewardPeriod) XXX_DiscardUnknown()
func (*MultiRewardPeriod) XXX_Marshal ¶
func (m *MultiRewardPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiRewardPeriod) XXX_Merge ¶
func (m *MultiRewardPeriod) XXX_Merge(src proto.Message)
func (*MultiRewardPeriod) XXX_Size ¶
func (m *MultiRewardPeriod) XXX_Size() int
func (*MultiRewardPeriod) XXX_Unmarshal ¶
func (m *MultiRewardPeriod) XXX_Unmarshal(b []byte) error
type MultiRewardPeriods ¶
type MultiRewardPeriods []MultiRewardPeriod
MultiRewardPeriods array of MultiRewardPeriod
func (MultiRewardPeriods) GetMultiRewardPeriod ¶
func (mrps MultiRewardPeriods) GetMultiRewardPeriod(denom string) (MultiRewardPeriod, bool)
GetMultiRewardPeriod fetches a MultiRewardPeriod from an array of MultiRewardPeriods by its denom
func (MultiRewardPeriods) GetMultiRewardPeriodIndex ¶
func (mrps MultiRewardPeriods) GetMultiRewardPeriodIndex(denom string) (int, bool)
GetMultiRewardPeriodIndex returns the index of a MultiRewardPeriod inside array MultiRewardPeriods
func (MultiRewardPeriods) Validate ¶
func (mrps MultiRewardPeriods) Validate() error
Validate checks if all the RewardPeriods are valid and there are no duplicated entries.
type Multiplier ¶
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 ¶
func NewMultiplier(name string, lockup int64, factor sdk.Dec) Multiplier
NewMultiplier returns a new Multiplier
func (*Multiplier) Descriptor ¶
func (*Multiplier) Descriptor() ([]byte, []int)
func (*Multiplier) Marshal ¶
func (m *Multiplier) Marshal() (dAtA []byte, err error)
func (*Multiplier) MarshalToSizedBuffer ¶
func (m *Multiplier) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Multiplier) ProtoMessage ¶
func (*Multiplier) ProtoMessage()
func (*Multiplier) Reset ¶
func (m *Multiplier) Reset()
func (*Multiplier) Size ¶
func (m *Multiplier) Size() (n int)
func (*Multiplier) String ¶
func (m *Multiplier) String() string
func (*Multiplier) Unmarshal ¶
func (m *Multiplier) Unmarshal(dAtA []byte) error
func (*Multiplier) XXX_DiscardUnknown ¶
func (m *Multiplier) XXX_DiscardUnknown()
func (*Multiplier) XXX_Marshal ¶
func (m *Multiplier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Multiplier) XXX_Merge ¶
func (m *Multiplier) XXX_Merge(src proto.Message)
func (*Multiplier) XXX_Size ¶
func (m *Multiplier) XXX_Size() int
func (*Multiplier) XXX_Unmarshal ¶
func (m *Multiplier) XXX_Unmarshal(b []byte) error
type Multipliers ¶
type Multipliers []Multiplier
Multipliers is a slice of Multiplier
func (Multipliers) Get ¶
func (ms Multipliers) Get(name string) (Multiplier, bool)
Get returns a multiplier with a matching name
func (Multipliers) Validate ¶
func (ms Multipliers) Validate() error
Validate validates each multiplier
type MultipliersPerDenom ¶
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 ¶
func (*MultipliersPerDenom) Descriptor() ([]byte, []int)
func (*MultipliersPerDenom) Marshal ¶
func (m *MultipliersPerDenom) Marshal() (dAtA []byte, err error)
func (*MultipliersPerDenom) MarshalTo ¶
func (m *MultipliersPerDenom) MarshalTo(dAtA []byte) (int, error)
func (*MultipliersPerDenom) MarshalToSizedBuffer ¶
func (m *MultipliersPerDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultipliersPerDenom) ProtoMessage ¶
func (*MultipliersPerDenom) ProtoMessage()
func (*MultipliersPerDenom) Reset ¶
func (m *MultipliersPerDenom) Reset()
func (*MultipliersPerDenom) Size ¶
func (m *MultipliersPerDenom) Size() (n int)
func (*MultipliersPerDenom) String ¶
func (m *MultipliersPerDenom) String() string
func (*MultipliersPerDenom) Unmarshal ¶
func (m *MultipliersPerDenom) Unmarshal(dAtA []byte) error
func (*MultipliersPerDenom) XXX_DiscardUnknown ¶
func (m *MultipliersPerDenom) XXX_DiscardUnknown()
func (*MultipliersPerDenom) XXX_Marshal ¶
func (m *MultipliersPerDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultipliersPerDenom) XXX_Merge ¶
func (m *MultipliersPerDenom) XXX_Merge(src proto.Message)
func (*MultipliersPerDenom) XXX_Size ¶
func (m *MultipliersPerDenom) XXX_Size() int
func (*MultipliersPerDenom) XXX_Unmarshal ¶
func (m *MultipliersPerDenom) XXX_Unmarshal(b []byte) error
type MultipliersPerDenoms ¶
type MultipliersPerDenoms []MultipliersPerDenom
MultipliersPerDenoms is a slice of MultipliersPerDenom
func (MultipliersPerDenoms) Validate ¶
func (mpd MultipliersPerDenoms) Validate() error
Validate checks each denom and multipliers for invalid values.
type ParamSubspace ¶
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 ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PricefeedKeeper ¶
type PricefeedKeeper interface {
GetCurrentPrice(ctx sdk.Context, marketID string) (pricefeedtypes.CurrentPrice, error)
}
PricefeedKeeper defines the required methods needed by this modules keeper
type QueryGetAPYsResponse ¶
type QueryGetAPYsResponse struct {
Earn []APY `json:"earn" yaml:"earn"`
}
QueryGetAPYsResponse holds the response to a APY query
func NewQueryGetAPYsResponse ¶
func NewQueryGetAPYsResponse(earn []APY) QueryGetAPYsResponse
NewQueryGetAPYsResponse returns a new instance of QueryGetAPYsResponse
type QueryGetRewardFactorsResponse ¶
type QueryGetRewardFactorsResponse struct { USDXMintingRewardFactors RewardIndexes `json:"usdx_minting_reward_factors" yaml:"usdx_minting_reward_factors"` HardSupplyRewardFactors MultiRewardIndexes `json:"hard_supply_reward_factors" yaml:"hard_supply_reward_factors"` HardBorrowRewardFactors MultiRewardIndexes `json:"hard_borrow_reward_factors" yaml:"hard_borrow_reward_factors"` DelegatorRewardFactors MultiRewardIndexes `json:"delegator_reward_factors" yaml:"delegator_reward_factors"` SwapRewardFactors MultiRewardIndexes `json:"swap_reward_factors" yaml:"swap_reward_factors"` SavingsRewardFactors MultiRewardIndexes `json:"savings_reward_factors" yaml:"savings_reward_factors"` EarnRewardFactors MultiRewardIndexes `json:"earn_reward_factors" yaml:"earn_reward_factors"` }
QueryGetRewardFactorsResponse holds the response to a reward factor query
func NewQueryGetRewardFactorsResponse ¶
func NewQueryGetRewardFactorsResponse(usdxMintingFactors RewardIndexes, supplyFactors, hardBorrowFactors, delegatorFactors, swapFactors, savingsFactors, earnFactors MultiRewardIndexes, ) QueryGetRewardFactorsResponse
NewQueryGetRewardFactorsResponse returns a new instance of QueryAllRewardFactorsResponse
type QueryRewardsParams ¶
type QueryRewardsParams struct { Page int `json:"page" yaml:"page"` Limit int `json:"limit" yaml:"limit"` Owner sdk.AccAddress `json:"owner" yaml:"owner"` Unsynchronized bool `json:"unsynchronized" yaml:"unsynchronized"` }
QueryRewardsParams params for query /incentive/rewards/<claim type>
func NewQueryRewardsParams ¶
func NewQueryRewardsParams(page, limit int, owner sdk.AccAddress, unsynchronized bool) QueryRewardsParams
NewQueryRewardsParams returns QueryRewardsParams
type RewardIndex ¶
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 ¶
func NewRewardIndex(collateralType string, factor sdk.Dec) RewardIndex
NewRewardIndex returns a new RewardIndex
func (*RewardIndex) Descriptor ¶
func (*RewardIndex) Descriptor() ([]byte, []int)
func (*RewardIndex) Marshal ¶
func (m *RewardIndex) Marshal() (dAtA []byte, err error)
func (*RewardIndex) MarshalToSizedBuffer ¶
func (m *RewardIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardIndex) ProtoMessage ¶
func (*RewardIndex) ProtoMessage()
func (*RewardIndex) Reset ¶
func (m *RewardIndex) Reset()
func (*RewardIndex) Size ¶
func (m *RewardIndex) Size() (n int)
func (*RewardIndex) String ¶
func (m *RewardIndex) String() string
func (*RewardIndex) Unmarshal ¶
func (m *RewardIndex) Unmarshal(dAtA []byte) error
func (RewardIndex) Validate ¶
func (ri RewardIndex) Validate() error
Validate validates reward index
func (*RewardIndex) XXX_DiscardUnknown ¶
func (m *RewardIndex) XXX_DiscardUnknown()
func (*RewardIndex) XXX_Marshal ¶
func (m *RewardIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardIndex) XXX_Merge ¶
func (m *RewardIndex) XXX_Merge(src proto.Message)
func (*RewardIndex) XXX_Size ¶
func (m *RewardIndex) XXX_Size() int
func (*RewardIndex) XXX_Unmarshal ¶
func (m *RewardIndex) XXX_Unmarshal(b []byte) error
type RewardIndexes ¶
type RewardIndexes []RewardIndex
RewardIndexes slice of RewardIndex
func NewRewardIndexesFromCoins ¶
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 ¶
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 ¶
func (ris RewardIndexes) Get(denom string) (sdk.Dec, bool)
Get fetches a RewardFactor by it's denom
func (RewardIndexes) GetFactorIndex ¶
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 ¶
func (ris RewardIndexes) GetRewardIndex(denom string) (RewardIndex, bool)
GetRewardIndex fetches a RewardIndex by its denom
func (RewardIndexes) Mul ¶
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 ¶
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 ¶
func (ris RewardIndexes) Validate() error
Validate validation for reward indexes
func (RewardIndexes) With ¶
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 ¶
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 ¶
func (*RewardIndexesProto) Descriptor() ([]byte, []int)
func (*RewardIndexesProto) Marshal ¶
func (m *RewardIndexesProto) Marshal() (dAtA []byte, err error)
func (*RewardIndexesProto) MarshalTo ¶
func (m *RewardIndexesProto) MarshalTo(dAtA []byte) (int, error)
func (*RewardIndexesProto) MarshalToSizedBuffer ¶
func (m *RewardIndexesProto) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardIndexesProto) ProtoMessage ¶
func (*RewardIndexesProto) ProtoMessage()
func (*RewardIndexesProto) Reset ¶
func (m *RewardIndexesProto) Reset()
func (*RewardIndexesProto) Size ¶
func (m *RewardIndexesProto) Size() (n int)
func (*RewardIndexesProto) String ¶
func (m *RewardIndexesProto) String() string
func (*RewardIndexesProto) Unmarshal ¶
func (m *RewardIndexesProto) Unmarshal(dAtA []byte) error
func (*RewardIndexesProto) XXX_DiscardUnknown ¶
func (m *RewardIndexesProto) XXX_DiscardUnknown()
func (*RewardIndexesProto) XXX_Marshal ¶
func (m *RewardIndexesProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardIndexesProto) XXX_Merge ¶
func (m *RewardIndexesProto) XXX_Merge(src proto.Message)
func (*RewardIndexesProto) XXX_Size ¶
func (m *RewardIndexesProto) XXX_Size() int
func (*RewardIndexesProto) XXX_Unmarshal ¶
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 ¶
func (*RewardPeriod) Descriptor() ([]byte, []int)
func (*RewardPeriod) Marshal ¶
func (m *RewardPeriod) Marshal() (dAtA []byte, err error)
func (*RewardPeriod) MarshalToSizedBuffer ¶
func (m *RewardPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardPeriod) ProtoMessage ¶
func (*RewardPeriod) ProtoMessage()
func (*RewardPeriod) Reset ¶
func (m *RewardPeriod) Reset()
func (*RewardPeriod) Size ¶
func (m *RewardPeriod) Size() (n int)
func (*RewardPeriod) String ¶
func (m *RewardPeriod) String() string
func (*RewardPeriod) Unmarshal ¶
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 ¶
func (m *RewardPeriod) XXX_DiscardUnknown()
func (*RewardPeriod) XXX_Marshal ¶
func (m *RewardPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardPeriod) XXX_Merge ¶
func (m *RewardPeriod) XXX_Merge(src proto.Message)
func (*RewardPeriod) XXX_Size ¶
func (m *RewardPeriod) XXX_Size() int
func (*RewardPeriod) XXX_Unmarshal ¶
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 ¶
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 ¶
func NewSavingsClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) SavingsClaim
NewSavingsClaim returns a new SavingsClaim
func (*SavingsClaim) Descriptor ¶
func (*SavingsClaim) Descriptor() ([]byte, []int)
func (SavingsClaim) GetOwner ¶
func (c SavingsClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (SavingsClaim) GetReward ¶
func (c SavingsClaim) GetReward() sdk.Coins
GetReward returns the claim's reward coin
func (SavingsClaim) GetType ¶
func (c SavingsClaim) GetType() string
GetType returns the claim's type
func (SavingsClaim) HasRewardIndex ¶
func (c SavingsClaim) HasRewardIndex(denom string) (int64, bool)
HasRewardIndex check if a claim has a reward index for the input denom
func (*SavingsClaim) Marshal ¶
func (m *SavingsClaim) Marshal() (dAtA []byte, err error)
func (*SavingsClaim) MarshalToSizedBuffer ¶
func (m *SavingsClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SavingsClaim) ProtoMessage ¶
func (*SavingsClaim) ProtoMessage()
func (*SavingsClaim) Reset ¶
func (m *SavingsClaim) Reset()
func (*SavingsClaim) Size ¶
func (m *SavingsClaim) Size() (n int)
func (*SavingsClaim) String ¶
func (m *SavingsClaim) String() string
func (*SavingsClaim) Unmarshal ¶
func (m *SavingsClaim) Unmarshal(dAtA []byte) error
func (SavingsClaim) Validate ¶
func (c SavingsClaim) Validate() error
Validate performs a basic check of a SavingsClaim fields
func (*SavingsClaim) XXX_DiscardUnknown ¶
func (m *SavingsClaim) XXX_DiscardUnknown()
func (*SavingsClaim) XXX_Marshal ¶
func (m *SavingsClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SavingsClaim) XXX_Merge ¶
func (m *SavingsClaim) XXX_Merge(src proto.Message)
func (*SavingsClaim) XXX_Size ¶
func (m *SavingsClaim) XXX_Size() int
func (*SavingsClaim) XXX_Unmarshal ¶
func (m *SavingsClaim) XXX_Unmarshal(b []byte) error
type SavingsClaims ¶
type SavingsClaims []SavingsClaim
SavingsClaims slice of SavingsClaim
func (SavingsClaims) Validate ¶
func (cs SavingsClaims) Validate() error
Validate checks if all the claims are valid.
type SavingsKeeper ¶
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 ¶
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 ¶
NewSelection returns a new Selection
func (*Selection) Descriptor ¶
func (*Selection) MarshalToSizedBuffer ¶
func (*Selection) ProtoMessage ¶
func (*Selection) ProtoMessage()
func (*Selection) XXX_DiscardUnknown ¶
func (m *Selection) XXX_DiscardUnknown()
func (*Selection) XXX_Marshal ¶
func (*Selection) XXX_Unmarshal ¶
type Selections ¶
type Selections []Selection
Selections are a list of denom - multiplier pairs that specify what rewards to claim and with what lockups.
func NewSelectionsFromMap ¶
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 ¶
func (ss Selections) Validate() error
Valdate performs basic validaton checks
type StakingKeeper ¶
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) sdk.Int }
StakingKeeper defines the expected staking keeper for module accounts
type SwapClaim ¶
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 ¶
func NewSwapClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) SwapClaim
NewSwapClaim returns a new SwapClaim
func (*SwapClaim) Descriptor ¶
func (SwapClaim) GetOwner ¶
func (c SwapClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (SwapClaim) HasRewardIndex ¶
HasRewardIndex check if a claim has a reward index for the input pool ID.
func (*SwapClaim) MarshalToSizedBuffer ¶
func (*SwapClaim) ProtoMessage ¶
func (*SwapClaim) ProtoMessage()
func (*SwapClaim) XXX_DiscardUnknown ¶
func (m *SwapClaim) XXX_DiscardUnknown()
func (*SwapClaim) XXX_Marshal ¶
func (*SwapClaim) XXX_Unmarshal ¶
type SwapClaims ¶
type SwapClaims []SwapClaim
SwapClaims slice of SwapClaim
func (SwapClaims) Validate ¶
func (cs SwapClaims) Validate() error
Validate checks if all the claims are valid.
type SwapKeeper ¶
type SwapKeeper interface {}
SwapKeeper defines the required methods needed by this modules keeper
type USDXMintingClaim ¶
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 ¶
func NewUSDXMintingClaim(owner sdk.AccAddress, reward sdk.Coin, rewardIndexes RewardIndexes) USDXMintingClaim
NewUSDXMintingClaim returns a new USDXMintingClaim
func (*USDXMintingClaim) Descriptor ¶
func (*USDXMintingClaim) Descriptor() ([]byte, []int)
func (USDXMintingClaim) GetOwner ¶
func (c USDXMintingClaim) GetOwner() sdk.AccAddress
GetOwner returns the claim's owner
func (USDXMintingClaim) GetReward ¶
func (c USDXMintingClaim) GetReward() sdk.Coin
GetReward returns the claim's reward coin
func (USDXMintingClaim) GetType ¶
func (c USDXMintingClaim) GetType() string
GetType returns the claim's type
func (USDXMintingClaim) HasRewardIndex ¶
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 ¶
func (m *USDXMintingClaim) Marshal() (dAtA []byte, err error)
func (*USDXMintingClaim) MarshalToSizedBuffer ¶
func (m *USDXMintingClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*USDXMintingClaim) ProtoMessage ¶
func (*USDXMintingClaim) ProtoMessage()
func (*USDXMintingClaim) Reset ¶
func (m *USDXMintingClaim) Reset()
func (*USDXMintingClaim) Size ¶
func (m *USDXMintingClaim) Size() (n int)
func (*USDXMintingClaim) String ¶
func (m *USDXMintingClaim) String() string
func (*USDXMintingClaim) Unmarshal ¶
func (m *USDXMintingClaim) Unmarshal(dAtA []byte) error
func (USDXMintingClaim) Validate ¶
func (c USDXMintingClaim) Validate() error
Validate performs a basic check of a Claim fields
func (*USDXMintingClaim) XXX_DiscardUnknown ¶
func (m *USDXMintingClaim) XXX_DiscardUnknown()
func (*USDXMintingClaim) XXX_Marshal ¶
func (m *USDXMintingClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*USDXMintingClaim) XXX_Merge ¶
func (m *USDXMintingClaim) XXX_Merge(src proto.Message)
func (*USDXMintingClaim) XXX_Size ¶
func (m *USDXMintingClaim) XXX_Size() int
func (*USDXMintingClaim) XXX_Unmarshal ¶
func (m *USDXMintingClaim) XXX_Unmarshal(b []byte) error
type USDXMintingClaims ¶
type USDXMintingClaims []USDXMintingClaim
USDXMintingClaims slice of USDXMintingClaim
func (USDXMintingClaims) Validate ¶
func (cs USDXMintingClaims) Validate() error
Validate checks if all the claims are valid and there are no duplicated entries.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ClaimDelegatorReward ¶
func (*UnimplementedMsgServer) ClaimDelegatorReward(ctx context.Context, req *MsgClaimDelegatorReward) (*MsgClaimDelegatorRewardResponse, error)
func (*UnimplementedMsgServer) ClaimEarnReward ¶
func (*UnimplementedMsgServer) ClaimEarnReward(ctx context.Context, req *MsgClaimEarnReward) (*MsgClaimEarnRewardResponse, error)
func (*UnimplementedMsgServer) ClaimHardReward ¶
func (*UnimplementedMsgServer) ClaimHardReward(ctx context.Context, req *MsgClaimHardReward) (*MsgClaimHardRewardResponse, error)
func (*UnimplementedMsgServer) ClaimSavingsReward ¶
func (*UnimplementedMsgServer) ClaimSavingsReward(ctx context.Context, req *MsgClaimSavingsReward) (*MsgClaimSavingsRewardResponse, error)
func (*UnimplementedMsgServer) ClaimSwapReward ¶
func (*UnimplementedMsgServer) ClaimSwapReward(ctx context.Context, req *MsgClaimSwapReward) (*MsgClaimSwapRewardResponse, error)
func (*UnimplementedMsgServer) ClaimUSDXMintingReward ¶
func (*UnimplementedMsgServer) ClaimUSDXMintingReward(ctx context.Context, req *MsgClaimUSDXMintingReward) (*MsgClaimUSDXMintingRewardResponse, error)