Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ElysStakedKey(address string) []byte
- func GetPoolRevenueTrackKey(poolId uint64) string
- func KeyPrefix(p string) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type AccountedPoolKeeper
- type AmmKeeper
- type AprEdenB
- func (*AprEdenB) Descriptor() ([]byte, []int)
- func (m *AprEdenB) Marshal() (dAtA []byte, err error)
- func (m *AprEdenB) MarshalTo(dAtA []byte) (int, error)
- func (m *AprEdenB) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AprEdenB) ProtoMessage()
- func (m *AprEdenB) Reset()
- func (m *AprEdenB) Size() (n int)
- func (m *AprEdenB) String() string
- func (m *AprEdenB) Unmarshal(dAtA []byte) error
- func (m *AprEdenB) XXX_DiscardUnknown()
- func (m *AprEdenB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AprEdenB) XXX_Merge(src proto.Message)
- func (m *AprEdenB) XXX_Size() int
- func (m *AprEdenB) XXX_Unmarshal(b []byte) error
- type AprEdenElys
- func (*AprEdenElys) Descriptor() ([]byte, []int)
- func (m *AprEdenElys) Marshal() (dAtA []byte, err error)
- func (m *AprEdenElys) MarshalTo(dAtA []byte) (int, error)
- func (m *AprEdenElys) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AprEdenElys) ProtoMessage()
- func (m *AprEdenElys) Reset()
- func (m *AprEdenElys) Size() (n int)
- func (m *AprEdenElys) String() string
- func (m *AprEdenElys) Unmarshal(dAtA []byte) error
- func (m *AprEdenElys) XXX_DiscardUnknown()
- func (m *AprEdenElys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AprEdenElys) XXX_Merge(src proto.Message)
- func (m *AprEdenElys) XXX_Size() int
- func (m *AprEdenElys) XXX_Unmarshal(b []byte) error
- type AprUsdc
- func (*AprUsdc) Descriptor() ([]byte, []int)
- func (m *AprUsdc) Marshal() (dAtA []byte, err error)
- func (m *AprUsdc) MarshalTo(dAtA []byte) (int, error)
- func (m *AprUsdc) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AprUsdc) ProtoMessage()
- func (m *AprUsdc) Reset()
- func (m *AprUsdc) Size() (n int)
- func (m *AprUsdc) String() string
- func (m *AprUsdc) Unmarshal(dAtA []byte) error
- func (m *AprUsdc) XXX_DiscardUnknown()
- func (m *AprUsdc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AprUsdc) XXX_Merge(src proto.Message)
- func (m *AprUsdc) XXX_Size() int
- func (m *AprUsdc) XXX_Unmarshal(b []byte) error
- type AssetProfileKeeper
- type BankKeeper
- type CommitmentKeeper
- type DexRewardsTracker
- func (*DexRewardsTracker) Descriptor() ([]byte, []int)
- func (this *DexRewardsTracker) Equal(that interface{}) bool
- func (m *DexRewardsTracker) Marshal() (dAtA []byte, err error)
- func (m *DexRewardsTracker) MarshalTo(dAtA []byte) (int, error)
- func (m *DexRewardsTracker) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DexRewardsTracker) ProtoMessage()
- func (m *DexRewardsTracker) Reset()
- func (m *DexRewardsTracker) Size() (n int)
- func (m *DexRewardsTracker) String() string
- func (m *DexRewardsTracker) Unmarshal(dAtA []byte) error
- func (m *DexRewardsTracker) XXX_DiscardUnknown()
- func (m *DexRewardsTracker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DexRewardsTracker) XXX_Merge(src proto.Message)
- func (m *DexRewardsTracker) XXX_Size() int
- func (m *DexRewardsTracker) XXX_Unmarshal(b []byte) error
- type ElysStaked
- func (*ElysStaked) Descriptor() ([]byte, []int)
- func (this *ElysStaked) Equal(that interface{}) bool
- func (m *ElysStaked) GetAddress() string
- func (m *ElysStaked) Marshal() (dAtA []byte, err error)
- func (m *ElysStaked) MarshalTo(dAtA []byte) (int, error)
- func (m *ElysStaked) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ElysStaked) ProtoMessage()
- func (m *ElysStaked) Reset()
- func (m *ElysStaked) Size() (n int)
- func (m *ElysStaked) String() string
- func (m *ElysStaked) Unmarshal(dAtA []byte) error
- func (m *ElysStaked) XXX_DiscardUnknown()
- func (m *ElysStaked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ElysStaked) XXX_Merge(src proto.Message)
- func (m *ElysStaked) XXX_Size() int
- func (m *ElysStaked) XXX_Unmarshal(b []byte) error
- type EpochsKeeper
- type FeePool
- func (*FeePool) Descriptor() ([]byte, []int)
- func (this *FeePool) Equal(that interface{}) bool
- func (m *FeePool) GetCommunityPool() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *FeePool) Marshal() (dAtA []byte, err error)
- func (m *FeePool) MarshalTo(dAtA []byte) (int, error)
- func (m *FeePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeePool) ProtoMessage()
- func (m *FeePool) Reset()
- func (m *FeePool) Size() (n int)
- func (m *FeePool) String() string
- func (m *FeePool) Unmarshal(dAtA []byte) error
- func (f FeePool) ValidateGenesis() error
- func (m *FeePool) XXX_DiscardUnknown()
- func (m *FeePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeePool) XXX_Merge(src proto.Message)
- func (m *FeePool) XXX_Size() int
- func (m *FeePool) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetFeePool() FeePool
- func (m *GenesisState) GetParams() Params
- 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 IncentiveInfo
- func (*IncentiveInfo) Descriptor() ([]byte, []int)
- func (m *IncentiveInfo) Marshal() (dAtA []byte, err error)
- func (m *IncentiveInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *IncentiveInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IncentiveInfo) ProtoMessage()
- func (m *IncentiveInfo) Reset()
- func (m *IncentiveInfo) Size() (n int)
- func (m *IncentiveInfo) String() string
- func (m *IncentiveInfo) Unmarshal(dAtA []byte) error
- func (m *IncentiveInfo) XXX_DiscardUnknown()
- func (m *IncentiveInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IncentiveInfo) XXX_Merge(src proto.Message)
- func (m *IncentiveInfo) XXX_Size() int
- func (m *IncentiveInfo) XXX_Unmarshal(b []byte) error
- type MsgBeginRedelegate
- func (*MsgBeginRedelegate) Descriptor() ([]byte, []int)
- func (m *MsgBeginRedelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgBeginRedelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBeginRedelegate) ProtoMessage()
- func (m *MsgBeginRedelegate) Reset()
- func (m *MsgBeginRedelegate) Size() (n int)
- func (m *MsgBeginRedelegate) String() string
- func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error
- func (m *MsgBeginRedelegate) XXX_DiscardUnknown()
- func (m *MsgBeginRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBeginRedelegate) XXX_Merge(src proto.Message)
- func (m *MsgBeginRedelegate) XXX_Size() int
- func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error
- type MsgCancelUnbondingDelegation
- func (*MsgCancelUnbondingDelegation) Descriptor() ([]byte, []int)
- func (m *MsgCancelUnbondingDelegation) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelUnbondingDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelUnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelUnbondingDelegation) ProtoMessage()
- func (m *MsgCancelUnbondingDelegation) Reset()
- func (m *MsgCancelUnbondingDelegation) Size() (n int)
- func (m *MsgCancelUnbondingDelegation) String() string
- func (m *MsgCancelUnbondingDelegation) Unmarshal(dAtA []byte) error
- func (m *MsgCancelUnbondingDelegation) XXX_DiscardUnknown()
- func (m *MsgCancelUnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelUnbondingDelegation) XXX_Merge(src proto.Message)
- func (m *MsgCancelUnbondingDelegation) XXX_Size() int
- func (m *MsgCancelUnbondingDelegation) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpdateIncentiveParams
- func (*MsgUpdateIncentiveParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateIncentiveParams) GetAuthority() string
- func (m *MsgUpdateIncentiveParams) GetDistributionInterval() int64
- func (m *MsgUpdateIncentiveParams) GetElysStakeSnapInterval() int64
- func (msg *MsgUpdateIncentiveParams) GetSignBytes() []byte
- func (msg *MsgUpdateIncentiveParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateIncentiveParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateIncentiveParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateIncentiveParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateIncentiveParams) ProtoMessage()
- func (m *MsgUpdateIncentiveParams) Reset()
- func (msg *MsgUpdateIncentiveParams) Route() string
- func (m *MsgUpdateIncentiveParams) Size() (n int)
- func (m *MsgUpdateIncentiveParams) String() string
- func (msg *MsgUpdateIncentiveParams) Type() string
- func (m *MsgUpdateIncentiveParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateIncentiveParams) ValidateBasic() error
- func (m *MsgUpdateIncentiveParams) XXX_DiscardUnknown()
- func (m *MsgUpdateIncentiveParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateIncentiveParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateIncentiveParams) XXX_Size() int
- func (m *MsgUpdateIncentiveParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateIncentiveParamsResponse
- func (*MsgUpdateIncentiveParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateIncentiveParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateIncentiveParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateIncentiveParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateIncentiveParamsResponse) ProtoMessage()
- func (m *MsgUpdateIncentiveParamsResponse) Reset()
- func (m *MsgUpdateIncentiveParamsResponse) Size() (n int)
- func (m *MsgUpdateIncentiveParamsResponse) String() string
- func (m *MsgUpdateIncentiveParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateIncentiveParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateIncentiveParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateIncentiveParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateIncentiveParamsResponse) XXX_Size() int
- func (m *MsgUpdateIncentiveParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdatePoolMultipliers
- func (*MsgUpdatePoolMultipliers) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePoolMultipliers) GetAuthority() string
- func (m *MsgUpdatePoolMultipliers) GetPoolMultipliers() []PoolMultiplier
- func (msg *MsgUpdatePoolMultipliers) GetSignBytes() []byte
- func (msg *MsgUpdatePoolMultipliers) GetSigners() []sdk.AccAddress
- func (m *MsgUpdatePoolMultipliers) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePoolMultipliers) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePoolMultipliers) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePoolMultipliers) ProtoMessage()
- func (m *MsgUpdatePoolMultipliers) Reset()
- func (msg *MsgUpdatePoolMultipliers) Route() string
- func (m *MsgUpdatePoolMultipliers) Size() (n int)
- func (m *MsgUpdatePoolMultipliers) String() string
- func (msg *MsgUpdatePoolMultipliers) Type() string
- func (m *MsgUpdatePoolMultipliers) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdatePoolMultipliers) ValidateBasic() error
- func (m *MsgUpdatePoolMultipliers) XXX_DiscardUnknown()
- func (m *MsgUpdatePoolMultipliers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePoolMultipliers) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePoolMultipliers) XXX_Size() int
- func (m *MsgUpdatePoolMultipliers) XXX_Unmarshal(b []byte) error
- type MsgUpdatePoolMultipliersResponse
- func (*MsgUpdatePoolMultipliersResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePoolMultipliersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePoolMultipliersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePoolMultipliersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePoolMultipliersResponse) ProtoMessage()
- func (m *MsgUpdatePoolMultipliersResponse) Reset()
- func (m *MsgUpdatePoolMultipliersResponse) Size() (n int)
- func (m *MsgUpdatePoolMultipliersResponse) String() string
- func (m *MsgUpdatePoolMultipliersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdatePoolMultipliersResponse) XXX_DiscardUnknown()
- func (m *MsgUpdatePoolMultipliersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePoolMultipliersResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePoolMultipliersResponse) XXX_Size() int
- func (m *MsgUpdatePoolMultipliersResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdrawRewards
- func (*MsgWithdrawRewards) Descriptor() ([]byte, []int)
- func (msg MsgWithdrawRewards) GetSignBytes() []byte
- func (msg MsgWithdrawRewards) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawRewards) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawRewards) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawRewards) ProtoMessage()
- func (m *MsgWithdrawRewards) Reset()
- func (msg MsgWithdrawRewards) Route() string
- func (m *MsgWithdrawRewards) Size() (n int)
- func (m *MsgWithdrawRewards) String() string
- func (msg MsgWithdrawRewards) Type() string
- func (m *MsgWithdrawRewards) Unmarshal(dAtA []byte) error
- func (msg MsgWithdrawRewards) ValidateBasic() error
- func (m *MsgWithdrawRewards) XXX_DiscardUnknown()
- func (m *MsgWithdrawRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawRewards) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawRewards) XXX_Size() int
- func (m *MsgWithdrawRewards) XXX_Unmarshal(b []byte) error
- type MsgWithdrawRewardsResponse
- func (*MsgWithdrawRewardsResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawRewardsResponse) ProtoMessage()
- func (m *MsgWithdrawRewardsResponse) Reset()
- func (m *MsgWithdrawRewardsResponse) Size() (n int)
- func (m *MsgWithdrawRewardsResponse) String() string
- func (m *MsgWithdrawRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawRewardsResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawRewardsResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawRewardsResponse) XXX_Size() int
- func (m *MsgWithdrawRewardsResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdrawValidatorCommission
- func (*MsgWithdrawValidatorCommission) Descriptor() ([]byte, []int)
- func (msg MsgWithdrawValidatorCommission) GetSignBytes() []byte
- func (msg MsgWithdrawValidatorCommission) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawValidatorCommission) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawValidatorCommission) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawValidatorCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawValidatorCommission) ProtoMessage()
- func (m *MsgWithdrawValidatorCommission) Reset()
- func (msg MsgWithdrawValidatorCommission) Route() string
- func (m *MsgWithdrawValidatorCommission) Size() (n int)
- func (m *MsgWithdrawValidatorCommission) String() string
- func (msg MsgWithdrawValidatorCommission) Type() string
- func (m *MsgWithdrawValidatorCommission) Unmarshal(dAtA []byte) error
- func (msg MsgWithdrawValidatorCommission) ValidateBasic() error
- func (m *MsgWithdrawValidatorCommission) XXX_DiscardUnknown()
- func (m *MsgWithdrawValidatorCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawValidatorCommission) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawValidatorCommission) XXX_Size() int
- func (m *MsgWithdrawValidatorCommission) XXX_Unmarshal(b []byte) error
- type MsgWithdrawValidatorCommissionResponse
- func (*MsgWithdrawValidatorCommissionResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawValidatorCommissionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawValidatorCommissionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawValidatorCommissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawValidatorCommissionResponse) ProtoMessage()
- func (m *MsgWithdrawValidatorCommissionResponse) Reset()
- func (m *MsgWithdrawValidatorCommissionResponse) Size() (n int)
- func (m *MsgWithdrawValidatorCommissionResponse) String() string
- func (m *MsgWithdrawValidatorCommissionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawValidatorCommissionResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawValidatorCommissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawValidatorCommissionResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawValidatorCommissionResponse) XXX_Size() int
- func (m *MsgWithdrawValidatorCommissionResponse) XXX_Unmarshal(b []byte) error
- type OracleKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDexRewardsLps() DexRewardsTracker
- func (m *Params) GetDexRewardsStakers() DexRewardsTracker
- func (m *Params) GetDistributionInterval() int64
- func (m *Params) GetElysStakeSnapInterval() int64
- func (m *Params) GetLpIncentives() *IncentiveInfo
- func (m *Params) GetPoolInfos() []PoolInfo
- func (m *Params) GetStakeIncentives() *IncentiveInfo
- 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 (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p 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 PoolInfo
- func (*PoolInfo) Descriptor() ([]byte, []int)
- func (m *PoolInfo) GetPoolId() uint64
- func (m *PoolInfo) GetRewardWallet() string
- func (m *PoolInfo) Marshal() (dAtA []byte, err error)
- func (m *PoolInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolInfo) ProtoMessage()
- func (m *PoolInfo) Reset()
- func (m *PoolInfo) Size() (n int)
- func (m *PoolInfo) String() string
- func (m *PoolInfo) Unmarshal(dAtA []byte) error
- func (m *PoolInfo) XXX_DiscardUnknown()
- func (m *PoolInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolInfo) XXX_Merge(src proto.Message)
- func (m *PoolInfo) XXX_Size() int
- func (m *PoolInfo) XXX_Unmarshal(b []byte) error
- type PoolMultiplier
- func (*PoolMultiplier) Descriptor() ([]byte, []int)
- func (m *PoolMultiplier) GetPoolId() uint64
- func (m *PoolMultiplier) Marshal() (dAtA []byte, err error)
- func (m *PoolMultiplier) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolMultiplier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolMultiplier) ProtoMessage()
- func (m *PoolMultiplier) Reset()
- func (m *PoolMultiplier) Size() (n int)
- func (m *PoolMultiplier) String() string
- func (m *PoolMultiplier) Unmarshal(dAtA []byte) error
- func (m *PoolMultiplier) XXX_DiscardUnknown()
- func (m *PoolMultiplier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolMultiplier) XXX_Merge(src proto.Message)
- func (m *PoolMultiplier) XXX_Size() int
- func (m *PoolMultiplier) XXX_Unmarshal(b []byte) error
- type QueryAprRequest
- func (*QueryAprRequest) Descriptor() ([]byte, []int)
- func (m *QueryAprRequest) GetDenom() string
- func (m *QueryAprRequest) GetWithdrawType() types1.EarnType
- func (m *QueryAprRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAprRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAprRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAprRequest) ProtoMessage()
- func (m *QueryAprRequest) Reset()
- func (m *QueryAprRequest) Size() (n int)
- func (m *QueryAprRequest) String() string
- func (m *QueryAprRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAprRequest) XXX_DiscardUnknown()
- func (m *QueryAprRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAprRequest) XXX_Merge(src proto.Message)
- func (m *QueryAprRequest) XXX_Size() int
- func (m *QueryAprRequest) XXX_Unmarshal(b []byte) error
- type QueryAprResponse
- func (*QueryAprResponse) Descriptor() ([]byte, []int)
- func (m *QueryAprResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAprResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAprResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAprResponse) ProtoMessage()
- func (m *QueryAprResponse) Reset()
- func (m *QueryAprResponse) Size() (n int)
- func (m *QueryAprResponse) String() string
- func (m *QueryAprResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAprResponse) XXX_DiscardUnknown()
- func (m *QueryAprResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAprResponse) XXX_Merge(src proto.Message)
- func (m *QueryAprResponse) XXX_Size() int
- func (m *QueryAprResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCommunityPoolRequest
- func (*QueryCommunityPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryCommunityPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCommunityPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCommunityPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCommunityPoolRequest) ProtoMessage()
- func (m *QueryCommunityPoolRequest) Reset()
- func (m *QueryCommunityPoolRequest) Size() (n int)
- func (m *QueryCommunityPoolRequest) String() string
- func (m *QueryCommunityPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCommunityPoolRequest) XXX_DiscardUnknown()
- func (m *QueryCommunityPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCommunityPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryCommunityPoolRequest) XXX_Size() int
- func (m *QueryCommunityPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryCommunityPoolResponse
- func (*QueryCommunityPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryCommunityPoolResponse) GetPool() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *QueryCommunityPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCommunityPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCommunityPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCommunityPoolResponse) ProtoMessage()
- func (m *QueryCommunityPoolResponse) Reset()
- func (m *QueryCommunityPoolResponse) Size() (n int)
- func (m *QueryCommunityPoolResponse) String() string
- func (m *QueryCommunityPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCommunityPoolResponse) XXX_DiscardUnknown()
- func (m *QueryCommunityPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCommunityPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryCommunityPoolResponse) XXX_Size() int
- func (m *QueryCommunityPoolResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StableStakeKeeper
- type StakingKeeper
- type TokenomicsKeeper
- type TotalCommitmentInfo
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) UpdateIncentiveParams(ctx context.Context, req *MsgUpdateIncentiveParams) (*MsgUpdateIncentiveParamsResponse, error)
- func (*UnimplementedMsgServer) UpdatePoolMultipliers(ctx context.Context, req *MsgUpdatePoolMultipliers) (*MsgUpdatePoolMultipliersResponse, error)
- func (*UnimplementedMsgServer) WithdrawRewards(ctx context.Context, req *MsgWithdrawRewards) (*MsgWithdrawRewardsResponse, error)
- func (*UnimplementedMsgServer) WithdrawValidatorCommission(ctx context.Context, req *MsgWithdrawValidatorCommission) (*MsgWithdrawValidatorCommissionResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Apr(ctx context.Context, req *QueryAprRequest) (*QueryAprResponse, error)
- func (*UnimplementedQueryServer) CommunityPool(ctx context.Context, req *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( EventTypeSetWithdrawAddress = "set_withdraw_address" EventTypeRewards = "rewards" EventTypeCommission = "commission" EventTypeWithdrawRewards = "withdraw_rewards" EventTypeWithdrawCommission = "withdraw_commission" EventTypeProposerReward = "proposer_reward" AttributeKeyWithdrawAddress = "withdraw_address" AttributeKeyValidator = "validator" AttributeValueCategory = ModuleName )
distribution module event types
const ( // ModuleName defines the module name ModuleName = "incentive" // StoreKey defines the primary module store key StoreKey = ModuleName + "_store" // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_incentive" ElysStakedKeyPrefix = "ElysStaked/value/" ElysStakeChangeKeyPrefix = "ElysStakeChanged/value/" // ParamsKey is the prefix to retrieve all Params ParamsKey = "Params/value/" )
const ( TypeMsgWithdrawRewards = "withdraw_reward" TypeMsgWithdrawValidatorCommission = "withdraw_validator_commission" )
distribution message types
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const TypeMsgUpdateIncentiveParams = "update_incentive_params"
const TypeMsgUpdatePoolMultipliers = "update_pool_multipliers"
Variables ¶
var ( ErrInvalidLengthApr = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApr = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupApr = fmt.Errorf("proto: unexpected end of group") )
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthDexRewardsTraker = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDexRewardsTraker = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDexRewardsTraker = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthDistribution = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDistribution = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDistribution = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthElysStaked = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowElysStaked = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupElysStaked = fmt.Errorf("proto: unexpected end of group") )
var ( ErrEmptyDelegatorAddr = errorsmod.Register(ModuleName, 2, "delegator address is empty") ErrEmptyWithdrawAddr = errorsmod.Register(ModuleName, 3, "withdraw address is empty") ErrEmptyValidatorAddr = errorsmod.Register(ModuleName, 4, "validator address is empty") ErrEmptyDelegationDistInfo = errorsmod.Register(ModuleName, 5, "no delegation distribution info") ErrNoValidatorDistInfo = errorsmod.Register(ModuleName, 6, "no validator distribution info") ErrNoValidatorCommission = errorsmod.Register(ModuleName, 7, "no validator commission to withdraw") ErrSetWithdrawAddrDisabled = errorsmod.Register(ModuleName, 8, "set withdraw address disabled") ErrBadDistribution = errorsmod.Register(ModuleName, 9, "community pool does not have sufficient coins to distribute") ErrInvalidProposalAmount = errorsmod.Register(ModuleName, 10, "invalid community pool spend proposal amount") ErrEmptyProposalRecipient = errorsmod.Register(ModuleName, 11, "invalid community pool spend proposal recipient") ErrNoValidatorExists = errorsmod.Register(ModuleName, 12, "validator does not exist") ErrNoDelegationExists = errorsmod.Register(ModuleName, 13, "delegation does not exist") ErrNoInflationaryParams = errorsmod.Register(ModuleName, 14, "no inflationary rewards params") ErrInvalidInflationaryEpochIdentifier = errorsmod.Register(ModuleName, 15, "inflationary inflationary epoch identifier is invalid") )
x/incentive module sentinel errors
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 ( ErrInvalidLengthIncentive = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIncentive = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIncentive = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthPool = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPool = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPool = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var EdenBoostApr = sdk.NewDec(1)
var FeePoolKey = []byte{0x00} // key for global distribution state
Functions ¶
func ElysStakedKey ¶ added in v0.12.0
ElysStakedKey returns the store key to retrieve a ElysStaked from the address fields
func GetPoolRevenueTrackKey ¶
Returns the pool revenue tracking key. Unique per pool per epoch, clean once complete the calculation.
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, name string) types.ModuleAccountI // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 SetModuleAccount(sdk.Context, types.ModuleAccountI) }
AccountKeeper defines the expected account keeper used for simulations (noalias)
type AccountedPoolKeeper ¶ added in v0.11.0
AccountedPoolKeeper
type AmmKeeper ¶
type AmmKeeper interface { // UpdatePoolForSwap takes a pool, sender, and tokenIn, tokenOut amounts // It then updates the pool's balances to the new reserve amounts, and // sends the in tokens from the sender to the pool, and the out tokens from the pool to the sender. UpdatePoolForSwap( ctx sdk.Context, pool ammtypes.Pool, sender sdk.AccAddress, recipient sdk.AccAddress, tokenIn sdk.Coin, tokenOut sdk.Coin, swapFeeIn sdk.Dec, swapFeeOut sdk.Dec, weightBalanceBonus sdk.Dec, ) (math.Int, error) GetBestPoolWithDenoms(ctx sdk.Context, denoms []string) (pool ammtypes.Pool, found bool) // GetPool returns a pool from its index GetPool(sdk.Context, uint64) (ammtypes.Pool, bool) // Get all pools GetAllPool(sdk.Context) []ammtypes.Pool // IterateCommitments iterates over all Commitments and performs a callback. IterateLiquidityPools(sdk.Context, func(ammtypes.Pool) bool) GetPoolSnapshotOrSet(ctx sdk.Context, pool ammtypes.Pool) (val ammtypes.Pool) SwapOutAmtGivenIn( ctx sdk.Context, poolId uint64, oracleKeeper ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec, ) (tokenOut sdk.Coin, slippageAmount sdk.Dec, weightBalanceBonus sdk.Dec, err error) CalcOutAmtGivenIn(ctx sdk.Context, poolId uint64, oracle ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec) (sdk.Coin, error) }
AmmKeeper defines the expected interface needed to swap tokens
type AprEdenB ¶ added in v0.17.0
type AprEdenB struct {
Uedenb github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=uedenb,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"uedenb"`
}
func (*AprEdenB) Descriptor ¶ added in v0.17.0
func (*AprEdenB) MarshalToSizedBuffer ¶ added in v0.17.0
func (*AprEdenB) ProtoMessage ¶ added in v0.17.0
func (*AprEdenB) ProtoMessage()
func (*AprEdenB) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *AprEdenB) XXX_DiscardUnknown()
func (*AprEdenB) XXX_Marshal ¶ added in v0.17.0
func (*AprEdenB) XXX_Unmarshal ¶ added in v0.17.0
type AprEdenElys ¶ added in v0.17.0
type AprEdenElys struct { Uusdc github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=uusdc,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"uusdc"` Ueden github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=ueden,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"ueden"` Uedenb github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=uedenb,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"uedenb"` }
func (*AprEdenElys) Descriptor ¶ added in v0.17.0
func (*AprEdenElys) Descriptor() ([]byte, []int)
func (*AprEdenElys) Marshal ¶ added in v0.17.0
func (m *AprEdenElys) Marshal() (dAtA []byte, err error)
func (*AprEdenElys) MarshalTo ¶ added in v0.17.0
func (m *AprEdenElys) MarshalTo(dAtA []byte) (int, error)
func (*AprEdenElys) MarshalToSizedBuffer ¶ added in v0.17.0
func (m *AprEdenElys) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AprEdenElys) ProtoMessage ¶ added in v0.17.0
func (*AprEdenElys) ProtoMessage()
func (*AprEdenElys) Reset ¶ added in v0.17.0
func (m *AprEdenElys) Reset()
func (*AprEdenElys) Size ¶ added in v0.17.0
func (m *AprEdenElys) Size() (n int)
func (*AprEdenElys) String ¶ added in v0.17.0
func (m *AprEdenElys) String() string
func (*AprEdenElys) Unmarshal ¶ added in v0.17.0
func (m *AprEdenElys) Unmarshal(dAtA []byte) error
func (*AprEdenElys) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *AprEdenElys) XXX_DiscardUnknown()
func (*AprEdenElys) XXX_Marshal ¶ added in v0.17.0
func (m *AprEdenElys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AprEdenElys) XXX_Merge ¶ added in v0.17.0
func (m *AprEdenElys) XXX_Merge(src proto.Message)
func (*AprEdenElys) XXX_Size ¶ added in v0.17.0
func (m *AprEdenElys) XXX_Size() int
func (*AprEdenElys) XXX_Unmarshal ¶ added in v0.17.0
func (m *AprEdenElys) XXX_Unmarshal(b []byte) error
type AprUsdc ¶ added in v0.17.0
type AprUsdc struct { Uusdc github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=uusdc,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"uusdc"` Ueden github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=ueden,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"ueden"` }
func (*AprUsdc) Descriptor ¶ added in v0.17.0
func (*AprUsdc) MarshalToSizedBuffer ¶ added in v0.17.0
func (*AprUsdc) ProtoMessage ¶ added in v0.17.0
func (*AprUsdc) ProtoMessage()
func (*AprUsdc) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *AprUsdc) XXX_DiscardUnknown()
func (*AprUsdc) XXX_Marshal ¶ added in v0.17.0
func (*AprUsdc) XXX_Unmarshal ¶ added in v0.17.0
type AssetProfileKeeper ¶ added in v0.15.0
type AssetProfileKeeper interface {
GetEntry(ctx sdk.Context, baseDenom string) (val aptypes.Entry, found bool)
}
AssetProfileKeeper defines the expected interface needed to retrieve denom info
type BankKeeper ¶
type BankKeeper interface { GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error BlockedAddr(addr sdk.AccAddress) bool BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type CommitmentKeeper ¶
type CommitmentKeeper interface { // Initiate commitment according to standard staking BeforeDelegationCreated(sdk.Context, string, string) error // Iterate all commitment IterateCommitments(sdk.Context, func(ctypes.Commitments) (stop bool)) // Update commitment SetCommitments(sdk.Context, ctypes.Commitments) // Get commitment GetCommitments(sdk.Context, string) ctypes.Commitments // Update commitments for claim reward operation RecordClaimReward(sdk.Context, string, string, math.Int, ctypes.EarnType) error // Update commitments for validator commission RecordWithdrawValidatorCommission(sdk.Context, string, string, string, math.Int) error // Burn eden boost BurnEdenBoost(ctx sdk.Context, creator string, denom string, amount math.Int) (ctypes.Commitments, error) }
CommitmentKeeper
type DexRewardsTracker ¶ added in v0.17.0
type DexRewardsTracker struct { // Number of blocks since start of epoch (distribution epoch) NumBlocks github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */ // Accumulated amount at distribution epoch - recalculated at every distribution epoch Amount github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"amount"` // Accumulated rewards tracked by other (when it's for staking, from lp, if it's for lp, from staking) AmountCollectedByOtherTracker github_com_cosmos_cosmos_sdk_types.Dec `` /* 194-byte string literal not displayed */ }
DexRewardsTracker is used for tracking rewards for stakers and LPs, all amount here is in USDC
func (*DexRewardsTracker) Descriptor ¶ added in v0.17.0
func (*DexRewardsTracker) Descriptor() ([]byte, []int)
func (*DexRewardsTracker) Equal ¶ added in v0.17.0
func (this *DexRewardsTracker) Equal(that interface{}) bool
func (*DexRewardsTracker) Marshal ¶ added in v0.17.0
func (m *DexRewardsTracker) Marshal() (dAtA []byte, err error)
func (*DexRewardsTracker) MarshalTo ¶ added in v0.17.0
func (m *DexRewardsTracker) MarshalTo(dAtA []byte) (int, error)
func (*DexRewardsTracker) MarshalToSizedBuffer ¶ added in v0.17.0
func (m *DexRewardsTracker) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DexRewardsTracker) ProtoMessage ¶ added in v0.17.0
func (*DexRewardsTracker) ProtoMessage()
func (*DexRewardsTracker) Reset ¶ added in v0.17.0
func (m *DexRewardsTracker) Reset()
func (*DexRewardsTracker) Size ¶ added in v0.17.0
func (m *DexRewardsTracker) Size() (n int)
func (*DexRewardsTracker) String ¶ added in v0.17.0
func (m *DexRewardsTracker) String() string
func (*DexRewardsTracker) Unmarshal ¶ added in v0.17.0
func (m *DexRewardsTracker) Unmarshal(dAtA []byte) error
func (*DexRewardsTracker) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *DexRewardsTracker) XXX_DiscardUnknown()
func (*DexRewardsTracker) XXX_Marshal ¶ added in v0.17.0
func (m *DexRewardsTracker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DexRewardsTracker) XXX_Merge ¶ added in v0.17.0
func (m *DexRewardsTracker) XXX_Merge(src proto.Message)
func (*DexRewardsTracker) XXX_Size ¶ added in v0.17.0
func (m *DexRewardsTracker) XXX_Size() int
func (*DexRewardsTracker) XXX_Unmarshal ¶ added in v0.17.0
func (m *DexRewardsTracker) XXX_Unmarshal(b []byte) error
type ElysStaked ¶ added in v0.12.0
type ElysStaked struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` }
Elys staked amount is tracked because EdenBoost has to be burnt when unstake ELYS event happens, and there's no way to track staked amount change from staking hook and this struct is added.
func (*ElysStaked) Descriptor ¶ added in v0.12.0
func (*ElysStaked) Descriptor() ([]byte, []int)
func (*ElysStaked) Equal ¶ added in v0.12.0
func (this *ElysStaked) Equal(that interface{}) bool
func (*ElysStaked) GetAddress ¶ added in v0.12.0
func (m *ElysStaked) GetAddress() string
func (*ElysStaked) Marshal ¶ added in v0.12.0
func (m *ElysStaked) Marshal() (dAtA []byte, err error)
func (*ElysStaked) MarshalTo ¶ added in v0.12.0
func (m *ElysStaked) MarshalTo(dAtA []byte) (int, error)
func (*ElysStaked) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *ElysStaked) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ElysStaked) ProtoMessage ¶ added in v0.12.0
func (*ElysStaked) ProtoMessage()
func (*ElysStaked) Reset ¶ added in v0.12.0
func (m *ElysStaked) Reset()
func (*ElysStaked) Size ¶ added in v0.12.0
func (m *ElysStaked) Size() (n int)
func (*ElysStaked) String ¶ added in v0.12.0
func (m *ElysStaked) String() string
func (*ElysStaked) Unmarshal ¶ added in v0.12.0
func (m *ElysStaked) Unmarshal(dAtA []byte) error
func (*ElysStaked) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *ElysStaked) XXX_DiscardUnknown()
func (*ElysStaked) XXX_Marshal ¶ added in v0.12.0
func (m *ElysStaked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ElysStaked) XXX_Merge ¶ added in v0.12.0
func (m *ElysStaked) XXX_Merge(src proto.Message)
func (*ElysStaked) XXX_Size ¶ added in v0.12.0
func (m *ElysStaked) XXX_Size() int
func (*ElysStaked) XXX_Unmarshal ¶ added in v0.12.0
func (m *ElysStaked) XXX_Unmarshal(b []byte) error
type EpochsKeeper ¶ added in v0.17.0
type EpochsKeeper interface {
GetEpochInfo(ctx sdk.Context, identifier string) (epochstypes.EpochInfo, bool)
}
EpochsKeeper defines the expected epochs keeper used for simulations (noalias)
type FeePool ¶
type FeePool struct {
CommunityPool github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 147-byte string literal not displayed */
}
FeePool is the global fee pool for distribution.
func (*FeePool) Descriptor ¶
func (*FeePool) GetCommunityPool ¶
func (m *FeePool) GetCommunityPool() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*FeePool) MarshalToSizedBuffer ¶
func (*FeePool) ProtoMessage ¶
func (*FeePool) ProtoMessage()
func (FeePool) ValidateGenesis ¶
ValidateGenesis validates the fee pool for a genesis state
func (*FeePool) XXX_DiscardUnknown ¶
func (m *FeePool) XXX_DiscardUnknown()
func (*FeePool) XXX_Marshal ¶
func (*FeePool) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // fee_pool defines the fee pool at genesis. FeePool FeePool `protobuf:"bytes,2,opt,name=fee_pool,json=feePool,proto3" json:"fee_pool"` }
GenesisState defines the incentive module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func NewGenesisState ¶
func NewGenesisState( params Params, fp FeePool, ) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetFeePool ¶
func (m *GenesisState) GetFeePool() FeePool
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
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 genesis state validation returning an error upon any failure.
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 IncentiveInfo ¶
type IncentiveInfo struct { // reward amount in eden for 1 year EdenAmountPerYear github_com_cosmos_cosmos_sdk_types.Int `` /* 156-byte string literal not displayed */ // starting block height of the distribution DistributionStartBlock github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */ // distribution duration - block number per year TotalBlocksPerYear github_com_cosmos_cosmos_sdk_types.Int `` /* 159-byte string literal not displayed */ // we set block count in 24 hrs EpochNumBlocks github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */ // maximum eden allocation per day that won't exceed 30% apr MaxEdenPerAllocation github_com_cosmos_cosmos_sdk_types.Int `` /* 165-byte string literal not displayed */ // number of block intervals that distribute rewards, set from params.distribution_interval DistributionEpochInBlocks github_com_cosmos_cosmos_sdk_types.Int `` /* 180-byte string literal not displayed */ // current epoch in block number CurrentEpochInBlocks github_com_cosmos_cosmos_sdk_types.Int `` /* 165-byte string literal not displayed */ }
Incentive Info
func (*IncentiveInfo) Descriptor ¶
func (*IncentiveInfo) Descriptor() ([]byte, []int)
func (*IncentiveInfo) Marshal ¶
func (m *IncentiveInfo) Marshal() (dAtA []byte, err error)
func (*IncentiveInfo) MarshalToSizedBuffer ¶
func (m *IncentiveInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IncentiveInfo) ProtoMessage ¶
func (*IncentiveInfo) ProtoMessage()
func (*IncentiveInfo) Reset ¶
func (m *IncentiveInfo) Reset()
func (*IncentiveInfo) Size ¶
func (m *IncentiveInfo) Size() (n int)
func (*IncentiveInfo) String ¶
func (m *IncentiveInfo) String() string
func (*IncentiveInfo) Unmarshal ¶
func (m *IncentiveInfo) Unmarshal(dAtA []byte) error
func (*IncentiveInfo) XXX_DiscardUnknown ¶
func (m *IncentiveInfo) XXX_DiscardUnknown()
func (*IncentiveInfo) XXX_Marshal ¶
func (m *IncentiveInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IncentiveInfo) XXX_Merge ¶
func (m *IncentiveInfo) XXX_Merge(src proto.Message)
func (*IncentiveInfo) XXX_Size ¶
func (m *IncentiveInfo) XXX_Size() int
func (*IncentiveInfo) XXX_Unmarshal ¶
func (m *IncentiveInfo) XXX_Unmarshal(b []byte) error
type MsgBeginRedelegate ¶ added in v0.19.0
type MsgBeginRedelegate struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"` ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"` Amount types1.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"` }
func (*MsgBeginRedelegate) Descriptor ¶ added in v0.19.0
func (*MsgBeginRedelegate) Descriptor() ([]byte, []int)
func (*MsgBeginRedelegate) Marshal ¶ added in v0.19.0
func (m *MsgBeginRedelegate) Marshal() (dAtA []byte, err error)
func (*MsgBeginRedelegate) MarshalTo ¶ added in v0.19.0
func (m *MsgBeginRedelegate) MarshalTo(dAtA []byte) (int, error)
func (*MsgBeginRedelegate) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBeginRedelegate) ProtoMessage ¶ added in v0.19.0
func (*MsgBeginRedelegate) ProtoMessage()
func (*MsgBeginRedelegate) Reset ¶ added in v0.19.0
func (m *MsgBeginRedelegate) Reset()
func (*MsgBeginRedelegate) Size ¶ added in v0.19.0
func (m *MsgBeginRedelegate) Size() (n int)
func (*MsgBeginRedelegate) String ¶ added in v0.19.0
func (m *MsgBeginRedelegate) String() string
func (*MsgBeginRedelegate) Unmarshal ¶ added in v0.19.0
func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error
func (*MsgBeginRedelegate) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgBeginRedelegate) XXX_DiscardUnknown()
func (*MsgBeginRedelegate) XXX_Marshal ¶ added in v0.19.0
func (m *MsgBeginRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBeginRedelegate) XXX_Merge ¶ added in v0.19.0
func (m *MsgBeginRedelegate) XXX_Merge(src proto.Message)
func (*MsgBeginRedelegate) XXX_Size ¶ added in v0.19.0
func (m *MsgBeginRedelegate) XXX_Size() int
func (*MsgBeginRedelegate) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error
type MsgCancelUnbondingDelegation ¶ added in v0.19.0
type MsgCancelUnbondingDelegation struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` // amount is always less than or equal to unbonding delegation entry balance Amount types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` // creation_height is the height which the unbonding took place. CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"` }
func (*MsgCancelUnbondingDelegation) Descriptor ¶ added in v0.19.0
func (*MsgCancelUnbondingDelegation) Descriptor() ([]byte, []int)
func (*MsgCancelUnbondingDelegation) Marshal ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) Marshal() (dAtA []byte, err error)
func (*MsgCancelUnbondingDelegation) MarshalTo ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelUnbondingDelegation) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelUnbondingDelegation) ProtoMessage ¶ added in v0.19.0
func (*MsgCancelUnbondingDelegation) ProtoMessage()
func (*MsgCancelUnbondingDelegation) Reset ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) Reset()
func (*MsgCancelUnbondingDelegation) Size ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) Size() (n int)
func (*MsgCancelUnbondingDelegation) String ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) String() string
func (*MsgCancelUnbondingDelegation) Unmarshal ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) Unmarshal(dAtA []byte) error
func (*MsgCancelUnbondingDelegation) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) XXX_DiscardUnknown()
func (*MsgCancelUnbondingDelegation) XXX_Marshal ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelUnbondingDelegation) XXX_Merge ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) XXX_Merge(src proto.Message)
func (*MsgCancelUnbondingDelegation) XXX_Size ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) XXX_Size() int
func (*MsgCancelUnbondingDelegation) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // WithdrawDelegatorReward defines a method to withdraw rewards of delegator // from a single validator. WithdrawRewards(ctx context.Context, in *MsgWithdrawRewards, opts ...grpc.CallOption) (*MsgWithdrawRewardsResponse, error) // WithdrawValidatorCommission defines a method to withdraw the // full commission to the validator address. WithdrawValidatorCommission(ctx context.Context, in *MsgWithdrawValidatorCommission, opts ...grpc.CallOption) (*MsgWithdrawValidatorCommissionResponse, error) UpdateIncentiveParams(ctx context.Context, in *MsgUpdateIncentiveParams, opts ...grpc.CallOption) (*MsgUpdateIncentiveParamsResponse, error) UpdatePoolMultipliers(ctx context.Context, in *MsgUpdatePoolMultipliers, opts ...grpc.CallOption) (*MsgUpdatePoolMultipliersResponse, 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 { // WithdrawDelegatorReward defines a method to withdraw rewards of delegator // from a single validator. WithdrawRewards(context.Context, *MsgWithdrawRewards) (*MsgWithdrawRewardsResponse, error) // WithdrawValidatorCommission defines a method to withdraw the // full commission to the validator address. WithdrawValidatorCommission(context.Context, *MsgWithdrawValidatorCommission) (*MsgWithdrawValidatorCommissionResponse, error) UpdateIncentiveParams(context.Context, *MsgUpdateIncentiveParams) (*MsgUpdateIncentiveParamsResponse, error) UpdatePoolMultipliers(context.Context, *MsgUpdatePoolMultipliers) (*MsgUpdatePoolMultipliersResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateIncentiveParams ¶ added in v0.18.0
type MsgUpdateIncentiveParams struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` RewardPortionForLps github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ RewardPortionForStakers github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-byte string literal not displayed */ ElysStakeSnapInterval int64 `protobuf:"varint,4,opt,name=elysStakeSnapInterval,proto3" json:"elysStakeSnapInterval,omitempty"` MaxEdenRewardAprStakers github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-byte string literal not displayed */ MaxEdenRewardAprLps github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ DistributionInterval int64 `protobuf:"varint,7,opt,name=distributionInterval,proto3" json:"distributionInterval,omitempty"` }
func NewMsgUpdateIncentiveParams ¶ added in v0.18.0
func (*MsgUpdateIncentiveParams) Descriptor ¶ added in v0.18.0
func (*MsgUpdateIncentiveParams) Descriptor() ([]byte, []int)
func (*MsgUpdateIncentiveParams) GetAuthority ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) GetAuthority() string
func (*MsgUpdateIncentiveParams) GetDistributionInterval ¶ added in v0.29.0
func (m *MsgUpdateIncentiveParams) GetDistributionInterval() int64
func (*MsgUpdateIncentiveParams) GetElysStakeSnapInterval ¶ added in v0.29.0
func (m *MsgUpdateIncentiveParams) GetElysStakeSnapInterval() int64
func (*MsgUpdateIncentiveParams) GetSignBytes ¶ added in v0.18.0
func (msg *MsgUpdateIncentiveParams) GetSignBytes() []byte
func (*MsgUpdateIncentiveParams) GetSigners ¶ added in v0.18.0
func (msg *MsgUpdateIncentiveParams) GetSigners() []sdk.AccAddress
func (*MsgUpdateIncentiveParams) Marshal ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateIncentiveParams) MarshalTo ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateIncentiveParams) MarshalToSizedBuffer ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateIncentiveParams) ProtoMessage ¶ added in v0.18.0
func (*MsgUpdateIncentiveParams) ProtoMessage()
func (*MsgUpdateIncentiveParams) Reset ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) Reset()
func (*MsgUpdateIncentiveParams) Route ¶ added in v0.18.0
func (msg *MsgUpdateIncentiveParams) Route() string
func (*MsgUpdateIncentiveParams) Size ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) Size() (n int)
func (*MsgUpdateIncentiveParams) String ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) String() string
func (*MsgUpdateIncentiveParams) Type ¶ added in v0.18.0
func (msg *MsgUpdateIncentiveParams) Type() string
func (*MsgUpdateIncentiveParams) Unmarshal ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateIncentiveParams) ValidateBasic ¶ added in v0.18.0
func (msg *MsgUpdateIncentiveParams) ValidateBasic() error
func (*MsgUpdateIncentiveParams) XXX_DiscardUnknown ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) XXX_DiscardUnknown()
func (*MsgUpdateIncentiveParams) XXX_Marshal ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateIncentiveParams) XXX_Merge ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) XXX_Merge(src proto.Message)
func (*MsgUpdateIncentiveParams) XXX_Size ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) XXX_Size() int
func (*MsgUpdateIncentiveParams) XXX_Unmarshal ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParams) XXX_Unmarshal(b []byte) error
type MsgUpdateIncentiveParamsResponse ¶ added in v0.18.0
type MsgUpdateIncentiveParamsResponse struct { }
func (*MsgUpdateIncentiveParamsResponse) Descriptor ¶ added in v0.18.0
func (*MsgUpdateIncentiveParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateIncentiveParamsResponse) Marshal ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateIncentiveParamsResponse) MarshalTo ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateIncentiveParamsResponse) MarshalToSizedBuffer ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateIncentiveParamsResponse) ProtoMessage ¶ added in v0.18.0
func (*MsgUpdateIncentiveParamsResponse) ProtoMessage()
func (*MsgUpdateIncentiveParamsResponse) Reset ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) Reset()
func (*MsgUpdateIncentiveParamsResponse) Size ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) Size() (n int)
func (*MsgUpdateIncentiveParamsResponse) String ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) String() string
func (*MsgUpdateIncentiveParamsResponse) Unmarshal ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateIncentiveParamsResponse) XXX_DiscardUnknown ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateIncentiveParamsResponse) XXX_Marshal ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateIncentiveParamsResponse) XXX_Merge ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateIncentiveParamsResponse) XXX_Size ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) XXX_Size() int
func (*MsgUpdateIncentiveParamsResponse) XXX_Unmarshal ¶ added in v0.18.0
func (m *MsgUpdateIncentiveParamsResponse) XXX_Unmarshal(b []byte) error
type MsgUpdatePoolMultipliers ¶ added in v0.25.0
type MsgUpdatePoolMultipliers struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` PoolMultipliers []PoolMultiplier `protobuf:"bytes,2,rep,name=pool_multipliers,json=poolMultipliers,proto3" json:"pool_multipliers"` }
func NewMsgUpdatePoolMultipliers ¶ added in v0.25.0
func NewMsgUpdatePoolMultipliers(creator string, multipliers []PoolMultiplier) *MsgUpdatePoolMultipliers
func (*MsgUpdatePoolMultipliers) Descriptor ¶ added in v0.25.0
func (*MsgUpdatePoolMultipliers) Descriptor() ([]byte, []int)
func (*MsgUpdatePoolMultipliers) GetAuthority ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) GetAuthority() string
func (*MsgUpdatePoolMultipliers) GetPoolMultipliers ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) GetPoolMultipliers() []PoolMultiplier
func (*MsgUpdatePoolMultipliers) GetSignBytes ¶ added in v0.25.0
func (msg *MsgUpdatePoolMultipliers) GetSignBytes() []byte
func (*MsgUpdatePoolMultipliers) GetSigners ¶ added in v0.25.0
func (msg *MsgUpdatePoolMultipliers) GetSigners() []sdk.AccAddress
func (*MsgUpdatePoolMultipliers) Marshal ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePoolMultipliers) MarshalTo ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePoolMultipliers) MarshalToSizedBuffer ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePoolMultipliers) ProtoMessage ¶ added in v0.25.0
func (*MsgUpdatePoolMultipliers) ProtoMessage()
func (*MsgUpdatePoolMultipliers) Reset ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) Reset()
func (*MsgUpdatePoolMultipliers) Route ¶ added in v0.25.0
func (msg *MsgUpdatePoolMultipliers) Route() string
func (*MsgUpdatePoolMultipliers) Size ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) Size() (n int)
func (*MsgUpdatePoolMultipliers) String ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) String() string
func (*MsgUpdatePoolMultipliers) Type ¶ added in v0.25.0
func (msg *MsgUpdatePoolMultipliers) Type() string
func (*MsgUpdatePoolMultipliers) Unmarshal ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) Unmarshal(dAtA []byte) error
func (*MsgUpdatePoolMultipliers) ValidateBasic ¶ added in v0.25.0
func (msg *MsgUpdatePoolMultipliers) ValidateBasic() error
func (*MsgUpdatePoolMultipliers) XXX_DiscardUnknown ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) XXX_DiscardUnknown()
func (*MsgUpdatePoolMultipliers) XXX_Marshal ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePoolMultipliers) XXX_Merge ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) XXX_Merge(src proto.Message)
func (*MsgUpdatePoolMultipliers) XXX_Size ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) XXX_Size() int
func (*MsgUpdatePoolMultipliers) XXX_Unmarshal ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliers) XXX_Unmarshal(b []byte) error
type MsgUpdatePoolMultipliersResponse ¶ added in v0.25.0
type MsgUpdatePoolMultipliersResponse struct { }
func (*MsgUpdatePoolMultipliersResponse) Descriptor ¶ added in v0.25.0
func (*MsgUpdatePoolMultipliersResponse) Descriptor() ([]byte, []int)
func (*MsgUpdatePoolMultipliersResponse) Marshal ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePoolMultipliersResponse) MarshalTo ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePoolMultipliersResponse) MarshalToSizedBuffer ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePoolMultipliersResponse) ProtoMessage ¶ added in v0.25.0
func (*MsgUpdatePoolMultipliersResponse) ProtoMessage()
func (*MsgUpdatePoolMultipliersResponse) Reset ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) Reset()
func (*MsgUpdatePoolMultipliersResponse) Size ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) Size() (n int)
func (*MsgUpdatePoolMultipliersResponse) String ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) String() string
func (*MsgUpdatePoolMultipliersResponse) Unmarshal ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdatePoolMultipliersResponse) XXX_DiscardUnknown ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) XXX_DiscardUnknown()
func (*MsgUpdatePoolMultipliersResponse) XXX_Marshal ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePoolMultipliersResponse) XXX_Merge ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) XXX_Merge(src proto.Message)
func (*MsgUpdatePoolMultipliersResponse) XXX_Size ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) XXX_Size() int
func (*MsgUpdatePoolMultipliersResponse) XXX_Unmarshal ¶ added in v0.25.0
func (m *MsgUpdatePoolMultipliersResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawRewards ¶
type MsgWithdrawRewards struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` WithdrawType types.EarnType `` /* 128-byte string literal not displayed */ }
MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator from a single validator.
func NewMsgWithdrawRewards ¶
func NewMsgWithdrawRewards(delAddr sdk.AccAddress, earnType commitmenttypes.EarnType) *MsgWithdrawRewards
func (*MsgWithdrawRewards) Descriptor ¶
func (*MsgWithdrawRewards) Descriptor() ([]byte, []int)
func (MsgWithdrawRewards) GetSignBytes ¶
func (msg MsgWithdrawRewards) GetSignBytes() []byte
get the bytes for the message signer to sign on
func (MsgWithdrawRewards) GetSigners ¶
func (msg MsgWithdrawRewards) GetSigners() []sdk.AccAddress
Return address that must sign over msg.GetSignBytes()
func (*MsgWithdrawRewards) Marshal ¶
func (m *MsgWithdrawRewards) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawRewards) MarshalTo ¶
func (m *MsgWithdrawRewards) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawRewards) MarshalToSizedBuffer ¶
func (m *MsgWithdrawRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawRewards) ProtoMessage ¶
func (*MsgWithdrawRewards) ProtoMessage()
func (*MsgWithdrawRewards) Reset ¶
func (m *MsgWithdrawRewards) Reset()
func (MsgWithdrawRewards) Route ¶
func (msg MsgWithdrawRewards) Route() string
func (*MsgWithdrawRewards) Size ¶
func (m *MsgWithdrawRewards) Size() (n int)
func (*MsgWithdrawRewards) String ¶
func (m *MsgWithdrawRewards) String() string
func (MsgWithdrawRewards) Type ¶
func (msg MsgWithdrawRewards) Type() string
func (*MsgWithdrawRewards) Unmarshal ¶
func (m *MsgWithdrawRewards) Unmarshal(dAtA []byte) error
func (MsgWithdrawRewards) ValidateBasic ¶
func (msg MsgWithdrawRewards) ValidateBasic() error
quick validity check
func (*MsgWithdrawRewards) XXX_DiscardUnknown ¶
func (m *MsgWithdrawRewards) XXX_DiscardUnknown()
func (*MsgWithdrawRewards) XXX_Marshal ¶
func (m *MsgWithdrawRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawRewards) XXX_Merge ¶
func (m *MsgWithdrawRewards) XXX_Merge(src proto.Message)
func (*MsgWithdrawRewards) XXX_Size ¶
func (m *MsgWithdrawRewards) XXX_Size() int
func (*MsgWithdrawRewards) XXX_Unmarshal ¶
func (m *MsgWithdrawRewards) XXX_Unmarshal(b []byte) error
type MsgWithdrawRewardsResponse ¶
type MsgWithdrawRewardsResponse struct { }
MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.
func (*MsgWithdrawRewardsResponse) Descriptor ¶
func (*MsgWithdrawRewardsResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawRewardsResponse) Marshal ¶
func (m *MsgWithdrawRewardsResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawRewardsResponse) MarshalTo ¶
func (m *MsgWithdrawRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawRewardsResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawRewardsResponse) ProtoMessage ¶
func (*MsgWithdrawRewardsResponse) ProtoMessage()
func (*MsgWithdrawRewardsResponse) Reset ¶
func (m *MsgWithdrawRewardsResponse) Reset()
func (*MsgWithdrawRewardsResponse) Size ¶
func (m *MsgWithdrawRewardsResponse) Size() (n int)
func (*MsgWithdrawRewardsResponse) String ¶
func (m *MsgWithdrawRewardsResponse) String() string
func (*MsgWithdrawRewardsResponse) Unmarshal ¶
func (m *MsgWithdrawRewardsResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawRewardsResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawRewardsResponse) XXX_DiscardUnknown()
func (*MsgWithdrawRewardsResponse) XXX_Marshal ¶
func (m *MsgWithdrawRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawRewardsResponse) XXX_Merge ¶
func (m *MsgWithdrawRewardsResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawRewardsResponse) XXX_Size ¶
func (m *MsgWithdrawRewardsResponse) XXX_Size() int
func (*MsgWithdrawRewardsResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawRewardsResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawValidatorCommission ¶
type MsgWithdrawValidatorCommission struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` }
MsgWithdrawValidatorCommission withdraws the full commission to the validator address.
func NewMsgWithdrawValidatorCommission ¶
func NewMsgWithdrawValidatorCommission(delAddr sdk.AccAddress, valAddr sdk.ValAddress) *MsgWithdrawValidatorCommission
func (*MsgWithdrawValidatorCommission) Descriptor ¶
func (*MsgWithdrawValidatorCommission) Descriptor() ([]byte, []int)
func (MsgWithdrawValidatorCommission) GetSignBytes ¶
func (msg MsgWithdrawValidatorCommission) GetSignBytes() []byte
get the bytes for the message signer to sign on
func (MsgWithdrawValidatorCommission) GetSigners ¶
func (msg MsgWithdrawValidatorCommission) GetSigners() []sdk.AccAddress
Return address that must sign over msg.GetSignBytes()
func (*MsgWithdrawValidatorCommission) Marshal ¶
func (m *MsgWithdrawValidatorCommission) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawValidatorCommission) MarshalTo ¶
func (m *MsgWithdrawValidatorCommission) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawValidatorCommission) MarshalToSizedBuffer ¶
func (m *MsgWithdrawValidatorCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawValidatorCommission) ProtoMessage ¶
func (*MsgWithdrawValidatorCommission) ProtoMessage()
func (*MsgWithdrawValidatorCommission) Reset ¶
func (m *MsgWithdrawValidatorCommission) Reset()
func (MsgWithdrawValidatorCommission) Route ¶
func (msg MsgWithdrawValidatorCommission) Route() string
func (*MsgWithdrawValidatorCommission) Size ¶
func (m *MsgWithdrawValidatorCommission) Size() (n int)
func (*MsgWithdrawValidatorCommission) String ¶
func (m *MsgWithdrawValidatorCommission) String() string
func (MsgWithdrawValidatorCommission) Type ¶
func (msg MsgWithdrawValidatorCommission) Type() string
func (*MsgWithdrawValidatorCommission) Unmarshal ¶
func (m *MsgWithdrawValidatorCommission) Unmarshal(dAtA []byte) error
func (MsgWithdrawValidatorCommission) ValidateBasic ¶
func (msg MsgWithdrawValidatorCommission) ValidateBasic() error
quick validity check
func (*MsgWithdrawValidatorCommission) XXX_DiscardUnknown ¶
func (m *MsgWithdrawValidatorCommission) XXX_DiscardUnknown()
func (*MsgWithdrawValidatorCommission) XXX_Marshal ¶
func (m *MsgWithdrawValidatorCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawValidatorCommission) XXX_Merge ¶
func (m *MsgWithdrawValidatorCommission) XXX_Merge(src proto.Message)
func (*MsgWithdrawValidatorCommission) XXX_Size ¶
func (m *MsgWithdrawValidatorCommission) XXX_Size() int
func (*MsgWithdrawValidatorCommission) XXX_Unmarshal ¶
func (m *MsgWithdrawValidatorCommission) XXX_Unmarshal(b []byte) error
type MsgWithdrawValidatorCommissionResponse ¶
type MsgWithdrawValidatorCommissionResponse struct { }
MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type.
func (*MsgWithdrawValidatorCommissionResponse) Descriptor ¶
func (*MsgWithdrawValidatorCommissionResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawValidatorCommissionResponse) Marshal ¶
func (m *MsgWithdrawValidatorCommissionResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawValidatorCommissionResponse) MarshalTo ¶
func (m *MsgWithdrawValidatorCommissionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawValidatorCommissionResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawValidatorCommissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawValidatorCommissionResponse) ProtoMessage ¶
func (*MsgWithdrawValidatorCommissionResponse) ProtoMessage()
func (*MsgWithdrawValidatorCommissionResponse) Reset ¶
func (m *MsgWithdrawValidatorCommissionResponse) Reset()
func (*MsgWithdrawValidatorCommissionResponse) Size ¶
func (m *MsgWithdrawValidatorCommissionResponse) Size() (n int)
func (*MsgWithdrawValidatorCommissionResponse) String ¶
func (m *MsgWithdrawValidatorCommissionResponse) String() string
func (*MsgWithdrawValidatorCommissionResponse) Unmarshal ¶
func (m *MsgWithdrawValidatorCommissionResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawValidatorCommissionResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawValidatorCommissionResponse) XXX_DiscardUnknown()
func (*MsgWithdrawValidatorCommissionResponse) XXX_Marshal ¶
func (m *MsgWithdrawValidatorCommissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawValidatorCommissionResponse) XXX_Merge ¶
func (m *MsgWithdrawValidatorCommissionResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawValidatorCommissionResponse) XXX_Size ¶
func (m *MsgWithdrawValidatorCommissionResponse) XXX_Size() int
func (*MsgWithdrawValidatorCommissionResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawValidatorCommissionResponse) XXX_Unmarshal(b []byte) error
type OracleKeeper ¶
type OracleKeeper interface { GetAssetPrice(ctx sdk.Context, asset string) (oracletypes.Price, bool) GetAssetPriceFromDenom(ctx sdk.Context, denom string) sdk.Dec GetPriceFeeder(ctx sdk.Context, feeder string) (val oracletypes.PriceFeeder, found bool) }
OracleKeeper defines the expected interface needed to retrieve price info
type Params ¶
type Params struct { LpIncentives *IncentiveInfo `protobuf:"bytes,1,opt,name=lp_incentives,json=lpIncentives,proto3" json:"lp_incentives,omitempty"` StakeIncentives *IncentiveInfo `protobuf:"bytes,2,opt,name=stake_incentives,json=stakeIncentives,proto3" json:"stake_incentives,omitempty"` // Dex revenue percent for lps, `100 - reward_portion_for_lps - reward_portion_for_stakers = revenue percent for protocol`. RewardPortionForLps github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ // Dex revenue percent for lps, `100 - reward_portion_for_lps - reward_portion_for_stakers = revenue percent for protocol`. RewardPortionForStakers github_com_cosmos_cosmos_sdk_types.Dec `` /* 174-byte string literal not displayed */ // Pool information // poolId, reward wallet, **multiplier**, dex rewards given PoolInfos []PoolInfo `protobuf:"bytes,5,rep,name=pool_infos,json=poolInfos,proto3" json:"pool_infos"` // Number of blocks to update elys staked amount for delegators ElysStakeSnapInterval int64 `` /* 129-byte string literal not displayed */ // Tracking dex rewards given to stakers DexRewardsStakers DexRewardsTracker `protobuf:"bytes,7,opt,name=dex_rewards_stakers,json=dexRewardsStakers,proto3" json:"dex_rewards_stakers"` // Tracking dex rewards given to LPs DexRewardsLps DexRewardsTracker `protobuf:"bytes,8,opt,name=dex_rewards_lps,json=dexRewardsLps,proto3" json:"dex_rewards_lps"` // Maximum eden reward apr for stakers - [0 - 0.3] MaxEdenRewardAprStakers github_com_cosmos_cosmos_sdk_types.Dec `` /* 176-byte string literal not displayed */ // Maximum eden reward apr for lps - [0 - 0.3] MaxEdenRewardAprLps github_com_cosmos_cosmos_sdk_types.Dec `` /* 165-byte string literal not displayed */ // Distribution interval in blocks - number of blocks on distribution epoch DistributionInterval int64 `protobuf:"varint,11,opt,name=distribution_interval,json=distributionInterval,proto3" json:"distribution_interval,omitempty"` }
Params defines the parameters for the module.
func NewParams ¶
func NewParams( lpIncentives *IncentiveInfo, stkIncentives *IncentiveInfo, rewardPortionForLps sdk.Dec, rewardPortionForStakers sdk.Dec, poolInfos []PoolInfo, elysStakeSnapInterval int64, dexRewardsStakers DexRewardsTracker, dexRewardsLps DexRewardsTracker, maxEdenRewardAprStakers sdk.Dec, maxEdenRewardAprLps sdk.Dec, distributionInterval int64, ) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetDexRewardsLps ¶ added in v0.17.0
func (m *Params) GetDexRewardsLps() DexRewardsTracker
func (*Params) GetDexRewardsStakers ¶ added in v0.17.0
func (m *Params) GetDexRewardsStakers() DexRewardsTracker
func (*Params) GetDistributionInterval ¶ added in v0.29.0
func (*Params) GetElysStakeSnapInterval ¶ added in v0.29.0
func (*Params) GetLpIncentives ¶
func (m *Params) GetLpIncentives() *IncentiveInfo
func (*Params) GetPoolInfos ¶
func (*Params) GetStakeIncentives ¶
func (m *Params) GetStakeIncentives() *IncentiveInfo
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PoolInfo ¶
type PoolInfo struct { // reward amount PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // reward wallet address RewardWallet string `protobuf:"bytes,2,opt,name=reward_wallet,json=rewardWallet,proto3" json:"reward_wallet,omitempty"` // multiplier for lp rewards Multiplier github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=multiplier,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"multiplier"` // Block number since the creation of PoolInfo NumBlocks github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */ // Total dex rewards given DexRewardAmountGiven github_com_cosmos_cosmos_sdk_types.Dec `` /* 165-byte string literal not displayed */ // Total eden rewards given EdenRewardAmountGiven github_com_cosmos_cosmos_sdk_types.Int `` /* 168-byte string literal not displayed */ // Eden APR, updated at every distribution EdenApr github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=eden_apr,json=edenApr,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"eden_apr"` // Dex APR, updated at every distribution DexApr github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,8,opt,name=dex_apr,json=dexApr,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"dex_apr"` }
Pool Info
func (*PoolInfo) Descriptor ¶
func (*PoolInfo) GetRewardWallet ¶
func (*PoolInfo) MarshalToSizedBuffer ¶
func (*PoolInfo) ProtoMessage ¶
func (*PoolInfo) ProtoMessage()
func (*PoolInfo) XXX_DiscardUnknown ¶
func (m *PoolInfo) XXX_DiscardUnknown()
func (*PoolInfo) XXX_Marshal ¶
func (*PoolInfo) XXX_Unmarshal ¶
type PoolMultiplier ¶ added in v0.25.0
type PoolMultiplier struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` Multiplier github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=multiplier,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"multiplier"` }
func (*PoolMultiplier) Descriptor ¶ added in v0.25.0
func (*PoolMultiplier) Descriptor() ([]byte, []int)
func (*PoolMultiplier) GetPoolId ¶ added in v0.25.0
func (m *PoolMultiplier) GetPoolId() uint64
func (*PoolMultiplier) Marshal ¶ added in v0.25.0
func (m *PoolMultiplier) Marshal() (dAtA []byte, err error)
func (*PoolMultiplier) MarshalTo ¶ added in v0.25.0
func (m *PoolMultiplier) MarshalTo(dAtA []byte) (int, error)
func (*PoolMultiplier) MarshalToSizedBuffer ¶ added in v0.25.0
func (m *PoolMultiplier) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PoolMultiplier) ProtoMessage ¶ added in v0.25.0
func (*PoolMultiplier) ProtoMessage()
func (*PoolMultiplier) Reset ¶ added in v0.25.0
func (m *PoolMultiplier) Reset()
func (*PoolMultiplier) Size ¶ added in v0.25.0
func (m *PoolMultiplier) Size() (n int)
func (*PoolMultiplier) String ¶ added in v0.25.0
func (m *PoolMultiplier) String() string
func (*PoolMultiplier) Unmarshal ¶ added in v0.25.0
func (m *PoolMultiplier) Unmarshal(dAtA []byte) error
func (*PoolMultiplier) XXX_DiscardUnknown ¶ added in v0.25.0
func (m *PoolMultiplier) XXX_DiscardUnknown()
func (*PoolMultiplier) XXX_Marshal ¶ added in v0.25.0
func (m *PoolMultiplier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PoolMultiplier) XXX_Merge ¶ added in v0.25.0
func (m *PoolMultiplier) XXX_Merge(src proto.Message)
func (*PoolMultiplier) XXX_Size ¶ added in v0.25.0
func (m *PoolMultiplier) XXX_Size() int
func (*PoolMultiplier) XXX_Unmarshal ¶ added in v0.25.0
func (m *PoolMultiplier) XXX_Unmarshal(b []byte) error
type QueryAprRequest ¶ added in v0.17.0
type QueryAprRequest struct { WithdrawType types1.EarnType `` /* 128-byte string literal not displayed */ Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
func (*QueryAprRequest) Descriptor ¶ added in v0.17.0
func (*QueryAprRequest) Descriptor() ([]byte, []int)
func (*QueryAprRequest) GetDenom ¶ added in v0.17.0
func (m *QueryAprRequest) GetDenom() string
func (*QueryAprRequest) GetWithdrawType ¶ added in v0.17.0
func (m *QueryAprRequest) GetWithdrawType() types1.EarnType
func (*QueryAprRequest) Marshal ¶ added in v0.17.0
func (m *QueryAprRequest) Marshal() (dAtA []byte, err error)
func (*QueryAprRequest) MarshalTo ¶ added in v0.17.0
func (m *QueryAprRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAprRequest) MarshalToSizedBuffer ¶ added in v0.17.0
func (m *QueryAprRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAprRequest) ProtoMessage ¶ added in v0.17.0
func (*QueryAprRequest) ProtoMessage()
func (*QueryAprRequest) Reset ¶ added in v0.17.0
func (m *QueryAprRequest) Reset()
func (*QueryAprRequest) Size ¶ added in v0.17.0
func (m *QueryAprRequest) Size() (n int)
func (*QueryAprRequest) String ¶ added in v0.17.0
func (m *QueryAprRequest) String() string
func (*QueryAprRequest) Unmarshal ¶ added in v0.17.0
func (m *QueryAprRequest) Unmarshal(dAtA []byte) error
func (*QueryAprRequest) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *QueryAprRequest) XXX_DiscardUnknown()
func (*QueryAprRequest) XXX_Marshal ¶ added in v0.17.0
func (m *QueryAprRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAprRequest) XXX_Merge ¶ added in v0.17.0
func (m *QueryAprRequest) XXX_Merge(src proto.Message)
func (*QueryAprRequest) XXX_Size ¶ added in v0.17.0
func (m *QueryAprRequest) XXX_Size() int
func (*QueryAprRequest) XXX_Unmarshal ¶ added in v0.17.0
func (m *QueryAprRequest) XXX_Unmarshal(b []byte) error
type QueryAprResponse ¶ added in v0.17.0
type QueryAprResponse struct {
Apr github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=apr,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"apr"`
}
func (*QueryAprResponse) Descriptor ¶ added in v0.17.0
func (*QueryAprResponse) Descriptor() ([]byte, []int)
func (*QueryAprResponse) Marshal ¶ added in v0.17.0
func (m *QueryAprResponse) Marshal() (dAtA []byte, err error)
func (*QueryAprResponse) MarshalTo ¶ added in v0.17.0
func (m *QueryAprResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAprResponse) MarshalToSizedBuffer ¶ added in v0.17.0
func (m *QueryAprResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAprResponse) ProtoMessage ¶ added in v0.17.0
func (*QueryAprResponse) ProtoMessage()
func (*QueryAprResponse) Reset ¶ added in v0.17.0
func (m *QueryAprResponse) Reset()
func (*QueryAprResponse) Size ¶ added in v0.17.0
func (m *QueryAprResponse) Size() (n int)
func (*QueryAprResponse) String ¶ added in v0.17.0
func (m *QueryAprResponse) String() string
func (*QueryAprResponse) Unmarshal ¶ added in v0.17.0
func (m *QueryAprResponse) Unmarshal(dAtA []byte) error
func (*QueryAprResponse) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *QueryAprResponse) XXX_DiscardUnknown()
func (*QueryAprResponse) XXX_Marshal ¶ added in v0.17.0
func (m *QueryAprResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAprResponse) XXX_Merge ¶ added in v0.17.0
func (m *QueryAprResponse) XXX_Merge(src proto.Message)
func (*QueryAprResponse) XXX_Size ¶ added in v0.17.0
func (m *QueryAprResponse) XXX_Size() int
func (*QueryAprResponse) XXX_Unmarshal ¶ added in v0.17.0
func (m *QueryAprResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of CommunityPool items. CommunityPool(ctx context.Context, in *QueryCommunityPoolRequest, opts ...grpc.CallOption) (*QueryCommunityPoolResponse, error) // Calculate APR Apr(ctx context.Context, in *QueryAprRequest, opts ...grpc.CallOption) (*QueryAprResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryCommunityPoolRequest ¶
type QueryCommunityPoolRequest struct { }
func (*QueryCommunityPoolRequest) Descriptor ¶
func (*QueryCommunityPoolRequest) Descriptor() ([]byte, []int)
func (*QueryCommunityPoolRequest) Marshal ¶
func (m *QueryCommunityPoolRequest) Marshal() (dAtA []byte, err error)
func (*QueryCommunityPoolRequest) MarshalTo ¶
func (m *QueryCommunityPoolRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCommunityPoolRequest) MarshalToSizedBuffer ¶
func (m *QueryCommunityPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCommunityPoolRequest) ProtoMessage ¶
func (*QueryCommunityPoolRequest) ProtoMessage()
func (*QueryCommunityPoolRequest) Reset ¶
func (m *QueryCommunityPoolRequest) Reset()
func (*QueryCommunityPoolRequest) Size ¶
func (m *QueryCommunityPoolRequest) Size() (n int)
func (*QueryCommunityPoolRequest) String ¶
func (m *QueryCommunityPoolRequest) String() string
func (*QueryCommunityPoolRequest) Unmarshal ¶
func (m *QueryCommunityPoolRequest) Unmarshal(dAtA []byte) error
func (*QueryCommunityPoolRequest) XXX_DiscardUnknown ¶
func (m *QueryCommunityPoolRequest) XXX_DiscardUnknown()
func (*QueryCommunityPoolRequest) XXX_Marshal ¶
func (m *QueryCommunityPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCommunityPoolRequest) XXX_Merge ¶
func (m *QueryCommunityPoolRequest) XXX_Merge(src proto.Message)
func (*QueryCommunityPoolRequest) XXX_Size ¶
func (m *QueryCommunityPoolRequest) XXX_Size() int
func (*QueryCommunityPoolRequest) XXX_Unmarshal ¶
func (m *QueryCommunityPoolRequest) XXX_Unmarshal(b []byte) error
type QueryCommunityPoolResponse ¶
type QueryCommunityPoolResponse struct { // pool defines community pool's coins. Pool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=pool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"pool"` }
func (*QueryCommunityPoolResponse) Descriptor ¶
func (*QueryCommunityPoolResponse) Descriptor() ([]byte, []int)
func (*QueryCommunityPoolResponse) GetPool ¶
func (m *QueryCommunityPoolResponse) GetPool() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*QueryCommunityPoolResponse) Marshal ¶
func (m *QueryCommunityPoolResponse) Marshal() (dAtA []byte, err error)
func (*QueryCommunityPoolResponse) MarshalTo ¶
func (m *QueryCommunityPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCommunityPoolResponse) MarshalToSizedBuffer ¶
func (m *QueryCommunityPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCommunityPoolResponse) ProtoMessage ¶
func (*QueryCommunityPoolResponse) ProtoMessage()
func (*QueryCommunityPoolResponse) Reset ¶
func (m *QueryCommunityPoolResponse) Reset()
func (*QueryCommunityPoolResponse) Size ¶
func (m *QueryCommunityPoolResponse) Size() (n int)
func (*QueryCommunityPoolResponse) String ¶
func (m *QueryCommunityPoolResponse) String() string
func (*QueryCommunityPoolResponse) Unmarshal ¶
func (m *QueryCommunityPoolResponse) Unmarshal(dAtA []byte) error
func (*QueryCommunityPoolResponse) XXX_DiscardUnknown ¶
func (m *QueryCommunityPoolResponse) XXX_DiscardUnknown()
func (*QueryCommunityPoolResponse) XXX_Marshal ¶
func (m *QueryCommunityPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCommunityPoolResponse) XXX_Merge ¶
func (m *QueryCommunityPoolResponse) XXX_Merge(src proto.Message)
func (*QueryCommunityPoolResponse) XXX_Size ¶
func (m *QueryCommunityPoolResponse) XXX_Size() int
func (*QueryCommunityPoolResponse) XXX_Unmarshal ¶
func (m *QueryCommunityPoolResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of CommunityPool items. CommunityPool(context.Context, *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error) // Calculate APR Apr(context.Context, *QueryAprRequest) (*QueryAprResponse, error) }
QueryServer is the server API for Query service.
type StableStakeKeeper ¶ added in v0.17.0
type StableStakeKeeper interface { GetParams(ctx sdk.Context) (params stabletypes.Params) BorrowRatio(goCtx context.Context, req *stabletypes.QueryBorrowRatioRequest) (*stabletypes.QueryBorrowRatioResponse, error) }
StableStakeKeeper defines the expected epochs keeper used for simulations (noalias)
type StakingKeeper ¶
type StakingKeeper interface { TotalBondedTokens(sdk.Context) math.Int // total bonded tokens within the validator set // iterate through all delegations from one delegator by validator-AccAddress, // execute func for each validator IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, fn func(index int64, delegation stakingtypes.DelegationI) (stop bool)) // get a particular validator by operator address Validator(sdk.Context, sdk.ValAddress) stakingtypes.ValidatorI // GetDelegatorDelegations returns a given amount of all the delegations from a delegator. GetDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (delegations []stakingtypes.Delegation) // get a particular validator by consensus address ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingtypes.ValidatorI // Delegation allows for getting a particular delegation for a given validator // and delegator outside the scope of the staking module. Delegation(sdk.Context, sdk.AccAddress, sdk.ValAddress) stakingtypes.DelegationI }
Staking keeper
type TokenomicsKeeper ¶ added in v0.18.0
type TokenomicsKeeper interface {
GetAllTimeBasedInflation(ctx sdk.Context) (list []tokenomictypes.TimeBasedInflation)
}
TokenomicsKeeper defines the expected tokenomics keeper used for simulations (noalias)
type TotalCommitmentInfo ¶
type TotalCommitmentInfo struct { // Total Elys staked TotalElysBonded math.Int // Total Eden + Eden boost committed TotalEdenEdenBoostCommitted math.Int // Gas fees collected and DEX revenus TotalFeesCollected sdk.Coins // Total Lp Token committed TotalLpTokensCommitted map[string]math.Int // Revenue tracking per pool, key => (poolId) PoolRevenueTrack map[string]sdk.Dec }
TotalCommitmentInfo Stores the
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateIncentiveParams ¶ added in v0.18.0
func (*UnimplementedMsgServer) UpdateIncentiveParams(ctx context.Context, req *MsgUpdateIncentiveParams) (*MsgUpdateIncentiveParamsResponse, error)
func (*UnimplementedMsgServer) UpdatePoolMultipliers ¶ added in v0.25.0
func (*UnimplementedMsgServer) UpdatePoolMultipliers(ctx context.Context, req *MsgUpdatePoolMultipliers) (*MsgUpdatePoolMultipliersResponse, error)
func (*UnimplementedMsgServer) WithdrawRewards ¶
func (*UnimplementedMsgServer) WithdrawRewards(ctx context.Context, req *MsgWithdrawRewards) (*MsgWithdrawRewardsResponse, error)
func (*UnimplementedMsgServer) WithdrawValidatorCommission ¶
func (*UnimplementedMsgServer) WithdrawValidatorCommission(ctx context.Context, req *MsgWithdrawValidatorCommission) (*MsgWithdrawValidatorCommissionResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Apr ¶ added in v0.27.0
func (*UnimplementedQueryServer) Apr(ctx context.Context, req *QueryAprRequest) (*QueryAprResponse, error)
func (*UnimplementedQueryServer) CommunityPool ¶
func (*UnimplementedQueryServer) CommunityPool(ctx context.Context, req *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Source Files ¶
- apr.pb.go
- codec.go
- dex_rewards_traker.pb.go
- distribution.pb.go
- elys_staked.pb.go
- errors.go
- events.go
- expected_keepers.go
- feel_pool.go
- genesis.go
- genesis.pb.go
- incentive.pb.go
- keys.go
- message_update_incentive_params.go
- message_update_pool_multipliers.go
- msg.go
- params.go
- params.pb.go
- pool.pb.go
- query.pb.go
- query.pb.gw.go
- tx.pb.go
- types.go