Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ElysStakedKey(address string) []byte
- 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 AssetProfileKeeper
- type BankKeeper
- type CommitmentKeeper
- type DelegationDelegatorReward
- func (*DelegationDelegatorReward) Descriptor() ([]byte, []int)
- func (m *DelegationDelegatorReward) GetReward() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *DelegationDelegatorReward) GetValidatorAddress() string
- func (m *DelegationDelegatorReward) Marshal() (dAtA []byte, err error)
- func (m *DelegationDelegatorReward) MarshalTo(dAtA []byte) (int, error)
- func (m *DelegationDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelegationDelegatorReward) ProtoMessage()
- func (m *DelegationDelegatorReward) Reset()
- func (m *DelegationDelegatorReward) Size() (n int)
- func (m *DelegationDelegatorReward) String() string
- func (m *DelegationDelegatorReward) Unmarshal(dAtA []byte) error
- func (m *DelegationDelegatorReward) XXX_DiscardUnknown()
- func (m *DelegationDelegatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelegationDelegatorReward) XXX_Merge(src proto.Message)
- func (m *DelegationDelegatorReward) XXX_Size() int
- func (m *DelegationDelegatorReward) XXX_Unmarshal(b []byte) error
- 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 DistrKeeper
- 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 GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetStakingSnapshots() []ElysStaked
- 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 MsgClient
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (msg *MsgUpdateParams) GetSignBytes() []byte
- func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (msg *MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (msg *MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdrawAllRewards
- func (*MsgWithdrawAllRewards) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawAllRewards) GetDelegatorAddress() string
- func (msg *MsgWithdrawAllRewards) GetSignBytes() []byte
- func (msg *MsgWithdrawAllRewards) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawAllRewards) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawAllRewards) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawAllRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawAllRewards) ProtoMessage()
- func (m *MsgWithdrawAllRewards) Reset()
- func (msg *MsgWithdrawAllRewards) Route() string
- func (m *MsgWithdrawAllRewards) Size() (n int)
- func (m *MsgWithdrawAllRewards) String() string
- func (msg *MsgWithdrawAllRewards) Type() string
- func (m *MsgWithdrawAllRewards) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawAllRewards) ValidateBasic() error
- func (m *MsgWithdrawAllRewards) XXX_DiscardUnknown()
- func (m *MsgWithdrawAllRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawAllRewards) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawAllRewards) XXX_Size() int
- func (m *MsgWithdrawAllRewards) XXX_Unmarshal(b []byte) error
- type MsgWithdrawAllRewardsResponse
- func (*MsgWithdrawAllRewardsResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawAllRewardsResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgWithdrawAllRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawAllRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawAllRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawAllRewardsResponse) ProtoMessage()
- func (m *MsgWithdrawAllRewardsResponse) Reset()
- func (m *MsgWithdrawAllRewardsResponse) Size() (n int)
- func (m *MsgWithdrawAllRewardsResponse) String() string
- func (m *MsgWithdrawAllRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawAllRewardsResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawAllRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawAllRewardsResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawAllRewardsResponse) XXX_Size() int
- func (m *MsgWithdrawAllRewardsResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdrawElysStakingRewards
- func (*MsgWithdrawElysStakingRewards) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawElysStakingRewards) GetDelegatorAddress() string
- func (msg *MsgWithdrawElysStakingRewards) GetSignBytes() []byte
- func (msg *MsgWithdrawElysStakingRewards) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawElysStakingRewards) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawElysStakingRewards) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawElysStakingRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawElysStakingRewards) ProtoMessage()
- func (m *MsgWithdrawElysStakingRewards) Reset()
- func (msg *MsgWithdrawElysStakingRewards) Route() string
- func (m *MsgWithdrawElysStakingRewards) Size() (n int)
- func (m *MsgWithdrawElysStakingRewards) String() string
- func (msg *MsgWithdrawElysStakingRewards) Type() string
- func (m *MsgWithdrawElysStakingRewards) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawElysStakingRewards) ValidateBasic() error
- func (m *MsgWithdrawElysStakingRewards) XXX_DiscardUnknown()
- func (m *MsgWithdrawElysStakingRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawElysStakingRewards) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawElysStakingRewards) XXX_Size() int
- func (m *MsgWithdrawElysStakingRewards) XXX_Unmarshal(b []byte) error
- type MsgWithdrawElysStakingRewardsResponse
- func (*MsgWithdrawElysStakingRewardsResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawElysStakingRewardsResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgWithdrawElysStakingRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawElysStakingRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawElysStakingRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawElysStakingRewardsResponse) ProtoMessage()
- func (m *MsgWithdrawElysStakingRewardsResponse) Reset()
- func (m *MsgWithdrawElysStakingRewardsResponse) Size() (n int)
- func (m *MsgWithdrawElysStakingRewardsResponse) String() string
- func (m *MsgWithdrawElysStakingRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawElysStakingRewardsResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawElysStakingRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawElysStakingRewardsResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawElysStakingRewardsResponse) XXX_Size() int
- func (m *MsgWithdrawElysStakingRewardsResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdrawReward
- func (*MsgWithdrawReward) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawReward) GetDelegatorAddress() string
- func (msg *MsgWithdrawReward) GetSignBytes() []byte
- func (msg *MsgWithdrawReward) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawReward) GetValidatorAddress() string
- func (m *MsgWithdrawReward) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawReward) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawReward) ProtoMessage()
- func (m *MsgWithdrawReward) Reset()
- func (msg *MsgWithdrawReward) Route() string
- func (m *MsgWithdrawReward) Size() (n int)
- func (m *MsgWithdrawReward) String() string
- func (msg *MsgWithdrawReward) Type() string
- func (m *MsgWithdrawReward) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawReward) ValidateBasic() error
- func (m *MsgWithdrawReward) XXX_DiscardUnknown()
- func (m *MsgWithdrawReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawReward) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawReward) XXX_Size() int
- func (m *MsgWithdrawReward) XXX_Unmarshal(b []byte) error
- type MsgWithdrawRewardResponse
- func (*MsgWithdrawRewardResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawRewardResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgWithdrawRewardResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawRewardResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawRewardResponse) ProtoMessage()
- func (m *MsgWithdrawRewardResponse) Reset()
- func (m *MsgWithdrawRewardResponse) Size() (n int)
- func (m *MsgWithdrawRewardResponse) String() string
- func (m *MsgWithdrawRewardResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawRewardResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawRewardResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawRewardResponse) XXX_Size() int
- func (m *MsgWithdrawRewardResponse) XXX_Unmarshal(b []byte) error
- type ParameterKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDexRewardsStakers() DexRewardsTracker
- func (m *Params) GetEdenCommitVal() string
- func (m *Params) GetEdenbCommitVal() string
- 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 QueryClient
- type QueryInvariantRequest
- func (*QueryInvariantRequest) Descriptor() ([]byte, []int)
- func (m *QueryInvariantRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryInvariantRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInvariantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInvariantRequest) ProtoMessage()
- func (m *QueryInvariantRequest) Reset()
- func (m *QueryInvariantRequest) Size() (n int)
- func (m *QueryInvariantRequest) String() string
- func (m *QueryInvariantRequest) Unmarshal(dAtA []byte) error
- func (m *QueryInvariantRequest) XXX_DiscardUnknown()
- func (m *QueryInvariantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInvariantRequest) XXX_Merge(src proto.Message)
- func (m *QueryInvariantRequest) XXX_Size() int
- func (m *QueryInvariantRequest) XXX_Unmarshal(b []byte) error
- type QueryInvariantResponse
- func (*QueryInvariantResponse) Descriptor() ([]byte, []int)
- func (m *QueryInvariantResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInvariantResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInvariantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInvariantResponse) ProtoMessage()
- func (m *QueryInvariantResponse) Reset()
- func (m *QueryInvariantResponse) Size() (n int)
- func (m *QueryInvariantResponse) String() string
- func (m *QueryInvariantResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInvariantResponse) XXX_DiscardUnknown()
- func (m *QueryInvariantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInvariantResponse) XXX_Merge(src proto.Message)
- func (m *QueryInvariantResponse) XXX_Size() int
- func (m *QueryInvariantResponse) 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 QueryRewardsRequest
- func (*QueryRewardsRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardsRequest) GetAddress() string
- func (m *QueryRewardsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsRequest) ProtoMessage()
- func (m *QueryRewardsRequest) Reset()
- func (m *QueryRewardsRequest) Size() (n int)
- func (m *QueryRewardsRequest) String() string
- func (m *QueryRewardsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsRequest) XXX_DiscardUnknown()
- func (m *QueryRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardsRequest) XXX_Size() int
- func (m *QueryRewardsRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardsResponse
- func (*QueryRewardsResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsResponse) GetRewards() []DelegationDelegatorReward
- func (m *QueryRewardsResponse) GetTotal() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsResponse) ProtoMessage()
- func (m *QueryRewardsResponse) Reset()
- func (m *QueryRewardsResponse) Size() (n int)
- func (m *QueryRewardsResponse) String() string
- func (m *QueryRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsResponse) XXX_Size() int
- func (m *QueryRewardsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StakingKeeper
- type TokenomicsKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) WithdrawAllRewards(ctx context.Context, req *MsgWithdrawAllRewards) (*MsgWithdrawAllRewardsResponse, error)
- func (*UnimplementedMsgServer) WithdrawElysStakingRewards(ctx context.Context, req *MsgWithdrawElysStakingRewards) (*MsgWithdrawElysStakingRewardsResponse, error)
- func (*UnimplementedMsgServer) WithdrawReward(ctx context.Context, req *MsgWithdrawReward) (*MsgWithdrawRewardResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Invariant(ctx context.Context, req *QueryInvariantRequest) (*QueryInvariantResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Rewards(ctx context.Context, req *QueryRewardsRequest) (*QueryRewardsResponse, error)
Constants ¶
const ( TypeEvtWithdrawReward = "withdraw_reward" AttributeDelegatorAddress = "delegator_address" AttributeValidatorAddress = "validator_address" AttributeAmount = "amount" )
const ( // ModuleName defines the module name ModuleName = "estaking" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_estaking" // ParamsKey is the prefix to retrieve all Params ParamsKey = "Params/value/" ElysStakedKeyPrefix = "ElysStaked/value/" ElysStakeChangeKeyPrefix = "ElysStakeChanged/value/" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const TypeMsgUpdateParams = "update_params"
const TypeMsgWithdrawAllRewards = "withdraw_all_rewards"
const TypeMsgWithdrawElysStakingRewards = "withdraw_elys_staking_rewards"
const TypeMsgWithdrawReward = "withdraw_reward"
Variables ¶
var ( ErrInvalidLengthDexRewardsTracker = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDexRewardsTracker = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDexRewardsTracker = 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 ( 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 ( 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 (
ErrNoInflationaryParams = errorsmod.Register(ModuleName, 14, "no inflationary rewards params")
)
x/estaking module sentinel errors
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func ElysStakedKey ¶
ElysStakedKey returns the store key to retrieve a ElysStaked from the address fields
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 ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type AssetProfileKeeper ¶
type AssetProfileKeeper interface { // SetEntry set a specific entry in the store from its index SetEntry(ctx sdk.Context, entry assetprofiletypes.Entry) // GetEntry returns a entry from its index GetEntry(ctx sdk.Context, baseDenom string) (val assetprofiletypes.Entry, found bool) // GetEntryByDenom returns a entry from its denom value GetEntryByDenom(ctx sdk.Context, denom string) (val assetprofiletypes.Entry, found bool) // GetUsdcDenom returns USDC denom GetUsdcDenom(ctx sdk.Context) (string, bool) }
AssetProfileKeeper defines the expected interfaces
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type CommitmentKeeper ¶
type CommitmentKeeper interface { GetCommitments(ctx sdk.Context, creator string) commitmenttypes.Commitments GetParams(ctx sdk.Context) commitmenttypes.Params GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error SetCommitments(sdk.Context, commitmenttypes.Commitments) BurnEdenBoost(ctx sdk.Context, creator string, denom string, amount math.Int) error }
type DelegationDelegatorReward ¶
type DelegationDelegatorReward struct { ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Reward github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward"` }
func (*DelegationDelegatorReward) Descriptor ¶
func (*DelegationDelegatorReward) Descriptor() ([]byte, []int)
func (*DelegationDelegatorReward) GetReward ¶
func (m *DelegationDelegatorReward) GetReward() github_com_cosmos_cosmos_sdk_types.Coins
func (*DelegationDelegatorReward) GetValidatorAddress ¶
func (m *DelegationDelegatorReward) GetValidatorAddress() string
func (*DelegationDelegatorReward) Marshal ¶
func (m *DelegationDelegatorReward) Marshal() (dAtA []byte, err error)
func (*DelegationDelegatorReward) MarshalTo ¶
func (m *DelegationDelegatorReward) MarshalTo(dAtA []byte) (int, error)
func (*DelegationDelegatorReward) MarshalToSizedBuffer ¶
func (m *DelegationDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegationDelegatorReward) ProtoMessage ¶
func (*DelegationDelegatorReward) ProtoMessage()
func (*DelegationDelegatorReward) Reset ¶
func (m *DelegationDelegatorReward) Reset()
func (*DelegationDelegatorReward) Size ¶
func (m *DelegationDelegatorReward) Size() (n int)
func (*DelegationDelegatorReward) String ¶
func (m *DelegationDelegatorReward) String() string
func (*DelegationDelegatorReward) Unmarshal ¶
func (m *DelegationDelegatorReward) Unmarshal(dAtA []byte) error
func (*DelegationDelegatorReward) XXX_DiscardUnknown ¶
func (m *DelegationDelegatorReward) XXX_DiscardUnknown()
func (*DelegationDelegatorReward) XXX_Marshal ¶
func (m *DelegationDelegatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegationDelegatorReward) XXX_Merge ¶
func (m *DelegationDelegatorReward) XXX_Merge(src proto.Message)
func (*DelegationDelegatorReward) XXX_Size ¶
func (m *DelegationDelegatorReward) XXX_Size() int
func (*DelegationDelegatorReward) XXX_Unmarshal ¶
func (m *DelegationDelegatorReward) XXX_Unmarshal(b []byte) error
type DexRewardsTracker ¶
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"` }
DexRewardsTracker is used for tracking rewards for stakers and LPs, all amount here is in USDC
func (*DexRewardsTracker) Descriptor ¶
func (*DexRewardsTracker) Descriptor() ([]byte, []int)
func (*DexRewardsTracker) Equal ¶
func (this *DexRewardsTracker) Equal(that interface{}) bool
func (*DexRewardsTracker) Marshal ¶
func (m *DexRewardsTracker) Marshal() (dAtA []byte, err error)
func (*DexRewardsTracker) MarshalTo ¶
func (m *DexRewardsTracker) MarshalTo(dAtA []byte) (int, error)
func (*DexRewardsTracker) MarshalToSizedBuffer ¶
func (m *DexRewardsTracker) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DexRewardsTracker) ProtoMessage ¶
func (*DexRewardsTracker) ProtoMessage()
func (*DexRewardsTracker) Reset ¶
func (m *DexRewardsTracker) Reset()
func (*DexRewardsTracker) Size ¶
func (m *DexRewardsTracker) Size() (n int)
func (*DexRewardsTracker) String ¶
func (m *DexRewardsTracker) String() string
func (*DexRewardsTracker) Unmarshal ¶
func (m *DexRewardsTracker) Unmarshal(dAtA []byte) error
func (*DexRewardsTracker) XXX_DiscardUnknown ¶
func (m *DexRewardsTracker) XXX_DiscardUnknown()
func (*DexRewardsTracker) XXX_Marshal ¶
func (m *DexRewardsTracker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DexRewardsTracker) XXX_Merge ¶
func (m *DexRewardsTracker) XXX_Merge(src proto.Message)
func (*DexRewardsTracker) XXX_Size ¶
func (m *DexRewardsTracker) XXX_Size() int
func (*DexRewardsTracker) XXX_Unmarshal ¶
func (m *DexRewardsTracker) XXX_Unmarshal(b []byte) error
type DistrKeeper ¶
type DistrKeeper interface { WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error) IncrementValidatorPeriod(ctx sdk.Context, val stakingtypes.ValidatorI) uint64 CalculateDelegationRewards(ctx sdk.Context, val stakingtypes.ValidatorI, del stakingtypes.DelegationI, endingPeriod uint64) (rewards sdk.DecCoins) }
type ElysStaked ¶
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 ¶
func (*ElysStaked) Descriptor() ([]byte, []int)
func (*ElysStaked) Equal ¶
func (this *ElysStaked) Equal(that interface{}) bool
func (*ElysStaked) GetAddress ¶
func (m *ElysStaked) GetAddress() string
func (*ElysStaked) Marshal ¶
func (m *ElysStaked) Marshal() (dAtA []byte, err error)
func (*ElysStaked) MarshalToSizedBuffer ¶
func (m *ElysStaked) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ElysStaked) ProtoMessage ¶
func (*ElysStaked) ProtoMessage()
func (*ElysStaked) Reset ¶
func (m *ElysStaked) Reset()
func (*ElysStaked) Size ¶
func (m *ElysStaked) Size() (n int)
func (*ElysStaked) String ¶
func (m *ElysStaked) String() string
func (*ElysStaked) Unmarshal ¶
func (m *ElysStaked) Unmarshal(dAtA []byte) error
func (*ElysStaked) XXX_DiscardUnknown ¶
func (m *ElysStaked) XXX_DiscardUnknown()
func (*ElysStaked) XXX_Marshal ¶
func (m *ElysStaked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ElysStaked) XXX_Merge ¶
func (m *ElysStaked) XXX_Merge(src proto.Message)
func (*ElysStaked) XXX_Size ¶
func (m *ElysStaked) XXX_Size() int
func (*ElysStaked) XXX_Unmarshal ¶
func (m *ElysStaked) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` StakingSnapshots []ElysStaked `protobuf:"bytes,2,rep,name=staking_snapshots,json=stakingSnapshots,proto3" json:"staking_snapshots"` }
GenesisState defines the estaking module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetStakingSnapshots ¶
func (m *GenesisState) GetStakingSnapshots() []ElysStaked
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 */ // blocks distributed BlocksDistributed github_com_cosmos_cosmos_sdk_types.Int `` /* 152-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 MsgClient ¶
type MsgClient interface { // UpdateParams defines a governance operation for updating the x/distribution // module parameters. The authority is defined in the keeper. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // WithdrawReward defines a method to withdraw rewards of delegator from a single validator. WithdrawReward(ctx context.Context, in *MsgWithdrawReward, opts ...grpc.CallOption) (*MsgWithdrawRewardResponse, error) // WithdrawElysStakingRewards defines a method to withdraw rewards of delegator from all the validators. WithdrawElysStakingRewards(ctx context.Context, in *MsgWithdrawElysStakingRewards, opts ...grpc.CallOption) (*MsgWithdrawElysStakingRewardsResponse, error) // WithdrawAllRewards defines a method to withdraw rewards of delegator from all the validators and Eden/EdenB commitment. WithdrawAllRewards(ctx context.Context, in *MsgWithdrawAllRewards, opts ...grpc.CallOption) (*MsgWithdrawAllRewardsResponse, 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 { // UpdateParams defines a governance operation for updating the x/distribution // module parameters. The authority is defined in the keeper. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // WithdrawReward defines a method to withdraw rewards of delegator from a single validator. WithdrawReward(context.Context, *MsgWithdrawReward) (*MsgWithdrawRewardResponse, error) // WithdrawElysStakingRewards defines a method to withdraw rewards of delegator from all the validators. WithdrawElysStakingRewards(context.Context, *MsgWithdrawElysStakingRewards) (*MsgWithdrawElysStakingRewardsResponse, error) // WithdrawAllRewards defines a method to withdraw rewards of delegator from all the validators and Eden/EdenB commitment. WithdrawAllRewards(context.Context, *MsgWithdrawAllRewards) (*MsgWithdrawAllRewardsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) GetSignBytes ¶
func (msg *MsgUpdateParams) GetSignBytes() []byte
func (*MsgUpdateParams) GetSigners ¶
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Route ¶
func (msg *MsgUpdateParams) Route() string
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Type ¶
func (msg *MsgUpdateParams) Type() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (msg *MsgUpdateParams) ValidateBasic() error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawAllRewards ¶
type MsgWithdrawAllRewards struct {
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}
MsgWithdrawAllRewards represents delegation withdrawal to a delegator from all the validators and Eden/EdenB commitment.
func (*MsgWithdrawAllRewards) Descriptor ¶
func (*MsgWithdrawAllRewards) Descriptor() ([]byte, []int)
func (*MsgWithdrawAllRewards) GetDelegatorAddress ¶
func (m *MsgWithdrawAllRewards) GetDelegatorAddress() string
func (*MsgWithdrawAllRewards) GetSignBytes ¶
func (msg *MsgWithdrawAllRewards) GetSignBytes() []byte
func (*MsgWithdrawAllRewards) GetSigners ¶
func (msg *MsgWithdrawAllRewards) GetSigners() []sdk.AccAddress
func (*MsgWithdrawAllRewards) Marshal ¶
func (m *MsgWithdrawAllRewards) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawAllRewards) MarshalTo ¶
func (m *MsgWithdrawAllRewards) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawAllRewards) MarshalToSizedBuffer ¶
func (m *MsgWithdrawAllRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawAllRewards) ProtoMessage ¶
func (*MsgWithdrawAllRewards) ProtoMessage()
func (*MsgWithdrawAllRewards) Reset ¶
func (m *MsgWithdrawAllRewards) Reset()
func (*MsgWithdrawAllRewards) Route ¶
func (msg *MsgWithdrawAllRewards) Route() string
func (*MsgWithdrawAllRewards) Size ¶
func (m *MsgWithdrawAllRewards) Size() (n int)
func (*MsgWithdrawAllRewards) String ¶
func (m *MsgWithdrawAllRewards) String() string
func (*MsgWithdrawAllRewards) Type ¶
func (msg *MsgWithdrawAllRewards) Type() string
func (*MsgWithdrawAllRewards) Unmarshal ¶
func (m *MsgWithdrawAllRewards) Unmarshal(dAtA []byte) error
func (*MsgWithdrawAllRewards) ValidateBasic ¶
func (msg *MsgWithdrawAllRewards) ValidateBasic() error
func (*MsgWithdrawAllRewards) XXX_DiscardUnknown ¶
func (m *MsgWithdrawAllRewards) XXX_DiscardUnknown()
func (*MsgWithdrawAllRewards) XXX_Marshal ¶
func (m *MsgWithdrawAllRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawAllRewards) XXX_Merge ¶
func (m *MsgWithdrawAllRewards) XXX_Merge(src proto.Message)
func (*MsgWithdrawAllRewards) XXX_Size ¶
func (m *MsgWithdrawAllRewards) XXX_Size() int
func (*MsgWithdrawAllRewards) XXX_Unmarshal ¶
func (m *MsgWithdrawAllRewards) XXX_Unmarshal(b []byte) error
type MsgWithdrawAllRewardsResponse ¶
type MsgWithdrawAllRewardsResponse struct {
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}
MsgWithdrawAllRewardsResponse defines the Msg/WithdrawAllRewards response type.
func (*MsgWithdrawAllRewardsResponse) Descriptor ¶
func (*MsgWithdrawAllRewardsResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawAllRewardsResponse) GetAmount ¶
func (m *MsgWithdrawAllRewardsResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgWithdrawAllRewardsResponse) Marshal ¶
func (m *MsgWithdrawAllRewardsResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawAllRewardsResponse) MarshalTo ¶
func (m *MsgWithdrawAllRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawAllRewardsResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawAllRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawAllRewardsResponse) ProtoMessage ¶
func (*MsgWithdrawAllRewardsResponse) ProtoMessage()
func (*MsgWithdrawAllRewardsResponse) Reset ¶
func (m *MsgWithdrawAllRewardsResponse) Reset()
func (*MsgWithdrawAllRewardsResponse) Size ¶
func (m *MsgWithdrawAllRewardsResponse) Size() (n int)
func (*MsgWithdrawAllRewardsResponse) String ¶
func (m *MsgWithdrawAllRewardsResponse) String() string
func (*MsgWithdrawAllRewardsResponse) Unmarshal ¶
func (m *MsgWithdrawAllRewardsResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawAllRewardsResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawAllRewardsResponse) XXX_DiscardUnknown()
func (*MsgWithdrawAllRewardsResponse) XXX_Marshal ¶
func (m *MsgWithdrawAllRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawAllRewardsResponse) XXX_Merge ¶
func (m *MsgWithdrawAllRewardsResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawAllRewardsResponse) XXX_Size ¶
func (m *MsgWithdrawAllRewardsResponse) XXX_Size() int
func (*MsgWithdrawAllRewardsResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawAllRewardsResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawElysStakingRewards ¶
type MsgWithdrawElysStakingRewards struct {
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}
MsgWithdrawElysStakingRewards represents delegation withdrawal to a delegator from all the validators.
func (*MsgWithdrawElysStakingRewards) Descriptor ¶
func (*MsgWithdrawElysStakingRewards) Descriptor() ([]byte, []int)
func (*MsgWithdrawElysStakingRewards) GetDelegatorAddress ¶
func (m *MsgWithdrawElysStakingRewards) GetDelegatorAddress() string
func (*MsgWithdrawElysStakingRewards) GetSignBytes ¶
func (msg *MsgWithdrawElysStakingRewards) GetSignBytes() []byte
func (*MsgWithdrawElysStakingRewards) GetSigners ¶
func (msg *MsgWithdrawElysStakingRewards) GetSigners() []sdk.AccAddress
func (*MsgWithdrawElysStakingRewards) Marshal ¶
func (m *MsgWithdrawElysStakingRewards) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawElysStakingRewards) MarshalTo ¶
func (m *MsgWithdrawElysStakingRewards) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawElysStakingRewards) MarshalToSizedBuffer ¶
func (m *MsgWithdrawElysStakingRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawElysStakingRewards) ProtoMessage ¶
func (*MsgWithdrawElysStakingRewards) ProtoMessage()
func (*MsgWithdrawElysStakingRewards) Reset ¶
func (m *MsgWithdrawElysStakingRewards) Reset()
func (*MsgWithdrawElysStakingRewards) Route ¶
func (msg *MsgWithdrawElysStakingRewards) Route() string
func (*MsgWithdrawElysStakingRewards) Size ¶
func (m *MsgWithdrawElysStakingRewards) Size() (n int)
func (*MsgWithdrawElysStakingRewards) String ¶
func (m *MsgWithdrawElysStakingRewards) String() string
func (*MsgWithdrawElysStakingRewards) Type ¶
func (msg *MsgWithdrawElysStakingRewards) Type() string
func (*MsgWithdrawElysStakingRewards) Unmarshal ¶
func (m *MsgWithdrawElysStakingRewards) Unmarshal(dAtA []byte) error
func (*MsgWithdrawElysStakingRewards) ValidateBasic ¶
func (msg *MsgWithdrawElysStakingRewards) ValidateBasic() error
func (*MsgWithdrawElysStakingRewards) XXX_DiscardUnknown ¶
func (m *MsgWithdrawElysStakingRewards) XXX_DiscardUnknown()
func (*MsgWithdrawElysStakingRewards) XXX_Marshal ¶
func (m *MsgWithdrawElysStakingRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawElysStakingRewards) XXX_Merge ¶
func (m *MsgWithdrawElysStakingRewards) XXX_Merge(src proto.Message)
func (*MsgWithdrawElysStakingRewards) XXX_Size ¶
func (m *MsgWithdrawElysStakingRewards) XXX_Size() int
func (*MsgWithdrawElysStakingRewards) XXX_Unmarshal ¶
func (m *MsgWithdrawElysStakingRewards) XXX_Unmarshal(b []byte) error
type MsgWithdrawElysStakingRewardsResponse ¶
type MsgWithdrawElysStakingRewardsResponse struct {
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}
MsgWithdrawElysStakingRewards defines the Msg/WithdrawElysStakingRewards response type.
func (*MsgWithdrawElysStakingRewardsResponse) Descriptor ¶
func (*MsgWithdrawElysStakingRewardsResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawElysStakingRewardsResponse) GetAmount ¶
func (m *MsgWithdrawElysStakingRewardsResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgWithdrawElysStakingRewardsResponse) Marshal ¶
func (m *MsgWithdrawElysStakingRewardsResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawElysStakingRewardsResponse) MarshalTo ¶
func (m *MsgWithdrawElysStakingRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawElysStakingRewardsResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawElysStakingRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawElysStakingRewardsResponse) ProtoMessage ¶
func (*MsgWithdrawElysStakingRewardsResponse) ProtoMessage()
func (*MsgWithdrawElysStakingRewardsResponse) Reset ¶
func (m *MsgWithdrawElysStakingRewardsResponse) Reset()
func (*MsgWithdrawElysStakingRewardsResponse) Size ¶
func (m *MsgWithdrawElysStakingRewardsResponse) Size() (n int)
func (*MsgWithdrawElysStakingRewardsResponse) String ¶
func (m *MsgWithdrawElysStakingRewardsResponse) String() string
func (*MsgWithdrawElysStakingRewardsResponse) Unmarshal ¶
func (m *MsgWithdrawElysStakingRewardsResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawElysStakingRewardsResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawElysStakingRewardsResponse) XXX_DiscardUnknown()
func (*MsgWithdrawElysStakingRewardsResponse) XXX_Marshal ¶
func (m *MsgWithdrawElysStakingRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawElysStakingRewardsResponse) XXX_Merge ¶
func (m *MsgWithdrawElysStakingRewardsResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawElysStakingRewardsResponse) XXX_Size ¶
func (m *MsgWithdrawElysStakingRewardsResponse) XXX_Size() int
func (*MsgWithdrawElysStakingRewardsResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawElysStakingRewardsResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawReward ¶
type MsgWithdrawReward 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"` }
MsgWithdrawReward represents delegation withdrawal to a delegator from a single validator.
func (*MsgWithdrawReward) Descriptor ¶
func (*MsgWithdrawReward) Descriptor() ([]byte, []int)
func (*MsgWithdrawReward) GetDelegatorAddress ¶
func (m *MsgWithdrawReward) GetDelegatorAddress() string
func (*MsgWithdrawReward) GetSignBytes ¶
func (msg *MsgWithdrawReward) GetSignBytes() []byte
func (*MsgWithdrawReward) GetSigners ¶
func (msg *MsgWithdrawReward) GetSigners() []sdk.AccAddress
func (*MsgWithdrawReward) GetValidatorAddress ¶
func (m *MsgWithdrawReward) GetValidatorAddress() string
func (*MsgWithdrawReward) Marshal ¶
func (m *MsgWithdrawReward) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawReward) MarshalTo ¶
func (m *MsgWithdrawReward) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawReward) MarshalToSizedBuffer ¶
func (m *MsgWithdrawReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawReward) ProtoMessage ¶
func (*MsgWithdrawReward) ProtoMessage()
func (*MsgWithdrawReward) Reset ¶
func (m *MsgWithdrawReward) Reset()
func (*MsgWithdrawReward) Route ¶
func (msg *MsgWithdrawReward) Route() string
func (*MsgWithdrawReward) Size ¶
func (m *MsgWithdrawReward) Size() (n int)
func (*MsgWithdrawReward) String ¶
func (m *MsgWithdrawReward) String() string
func (*MsgWithdrawReward) Type ¶
func (msg *MsgWithdrawReward) Type() string
func (*MsgWithdrawReward) Unmarshal ¶
func (m *MsgWithdrawReward) Unmarshal(dAtA []byte) error
func (*MsgWithdrawReward) ValidateBasic ¶
func (msg *MsgWithdrawReward) ValidateBasic() error
func (*MsgWithdrawReward) XXX_DiscardUnknown ¶
func (m *MsgWithdrawReward) XXX_DiscardUnknown()
func (*MsgWithdrawReward) XXX_Marshal ¶
func (m *MsgWithdrawReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawReward) XXX_Merge ¶
func (m *MsgWithdrawReward) XXX_Merge(src proto.Message)
func (*MsgWithdrawReward) XXX_Size ¶
func (m *MsgWithdrawReward) XXX_Size() int
func (*MsgWithdrawReward) XXX_Unmarshal ¶
func (m *MsgWithdrawReward) XXX_Unmarshal(b []byte) error
type MsgWithdrawRewardResponse ¶
type MsgWithdrawRewardResponse struct {
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}
MsgWithdrawRewardResponse defines the Msg/WithdrawDelegatorReward response type.
func (*MsgWithdrawRewardResponse) Descriptor ¶
func (*MsgWithdrawRewardResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawRewardResponse) GetAmount ¶
func (m *MsgWithdrawRewardResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgWithdrawRewardResponse) Marshal ¶
func (m *MsgWithdrawRewardResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawRewardResponse) MarshalTo ¶
func (m *MsgWithdrawRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawRewardResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawRewardResponse) ProtoMessage ¶
func (*MsgWithdrawRewardResponse) ProtoMessage()
func (*MsgWithdrawRewardResponse) Reset ¶
func (m *MsgWithdrawRewardResponse) Reset()
func (*MsgWithdrawRewardResponse) Size ¶
func (m *MsgWithdrawRewardResponse) Size() (n int)
func (*MsgWithdrawRewardResponse) String ¶
func (m *MsgWithdrawRewardResponse) String() string
func (*MsgWithdrawRewardResponse) Unmarshal ¶
func (m *MsgWithdrawRewardResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawRewardResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawRewardResponse) XXX_DiscardUnknown()
func (*MsgWithdrawRewardResponse) XXX_Marshal ¶
func (m *MsgWithdrawRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawRewardResponse) XXX_Merge ¶
func (m *MsgWithdrawRewardResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawRewardResponse) XXX_Size ¶
func (m *MsgWithdrawRewardResponse) XXX_Size() int
func (*MsgWithdrawRewardResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawRewardResponse) XXX_Unmarshal(b []byte) error
type ParameterKeeper ¶
type ParameterKeeper interface {
GetParams(ctx sdk.Context) (params parametertypes.Params)
}
type Params ¶
type Params struct { StakeIncentives *IncentiveInfo `protobuf:"bytes,1,opt,name=stake_incentives,json=stakeIncentives,proto3" json:"stake_incentives,omitempty"` EdenCommitVal string `protobuf:"bytes,2,opt,name=eden_commit_val,json=edenCommitVal,proto3" json:"eden_commit_val,omitempty"` EdenbCommitVal string `protobuf:"bytes,3,opt,name=edenb_commit_val,json=edenbCommitVal,proto3" json:"edenb_commit_val,omitempty"` // Maximum eden reward apr for stakers - [0 - 0.3] MaxEdenRewardAprStakers github_com_cosmos_cosmos_sdk_types.Dec `` /* 176-byte string literal not displayed */ EdenBoostApr github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-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"` }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetDexRewardsStakers ¶
func (m *Params) GetDexRewardsStakers() DexRewardsTracker
func (*Params) GetEdenCommitVal ¶
func (*Params) GetEdenbCommitVal ¶
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 QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Rewards queries the total rewards accrued by a delegation Rewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error) // Invariant queries the invariant values Invariant(ctx context.Context, in *QueryInvariantRequest, opts ...grpc.CallOption) (*QueryInvariantResponse, 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 QueryInvariantRequest ¶ added in v0.32.0
type QueryInvariantRequest struct { }
func (*QueryInvariantRequest) Descriptor ¶ added in v0.32.0
func (*QueryInvariantRequest) Descriptor() ([]byte, []int)
func (*QueryInvariantRequest) Marshal ¶ added in v0.32.0
func (m *QueryInvariantRequest) Marshal() (dAtA []byte, err error)
func (*QueryInvariantRequest) MarshalTo ¶ added in v0.32.0
func (m *QueryInvariantRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryInvariantRequest) MarshalToSizedBuffer ¶ added in v0.32.0
func (m *QueryInvariantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInvariantRequest) ProtoMessage ¶ added in v0.32.0
func (*QueryInvariantRequest) ProtoMessage()
func (*QueryInvariantRequest) Reset ¶ added in v0.32.0
func (m *QueryInvariantRequest) Reset()
func (*QueryInvariantRequest) Size ¶ added in v0.32.0
func (m *QueryInvariantRequest) Size() (n int)
func (*QueryInvariantRequest) String ¶ added in v0.32.0
func (m *QueryInvariantRequest) String() string
func (*QueryInvariantRequest) Unmarshal ¶ added in v0.32.0
func (m *QueryInvariantRequest) Unmarshal(dAtA []byte) error
func (*QueryInvariantRequest) XXX_DiscardUnknown ¶ added in v0.32.0
func (m *QueryInvariantRequest) XXX_DiscardUnknown()
func (*QueryInvariantRequest) XXX_Marshal ¶ added in v0.32.0
func (m *QueryInvariantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInvariantRequest) XXX_Merge ¶ added in v0.32.0
func (m *QueryInvariantRequest) XXX_Merge(src proto.Message)
func (*QueryInvariantRequest) XXX_Size ¶ added in v0.32.0
func (m *QueryInvariantRequest) XXX_Size() int
func (*QueryInvariantRequest) XXX_Unmarshal ¶ added in v0.32.0
func (m *QueryInvariantRequest) XXX_Unmarshal(b []byte) error
type QueryInvariantResponse ¶ added in v0.32.0
type QueryInvariantResponse struct { TotalBonded github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */ BondedValidatorTokensSum github_com_cosmos_cosmos_sdk_types.Int `` /* 177-byte string literal not displayed */ }
func (*QueryInvariantResponse) Descriptor ¶ added in v0.32.0
func (*QueryInvariantResponse) Descriptor() ([]byte, []int)
func (*QueryInvariantResponse) Marshal ¶ added in v0.32.0
func (m *QueryInvariantResponse) Marshal() (dAtA []byte, err error)
func (*QueryInvariantResponse) MarshalTo ¶ added in v0.32.0
func (m *QueryInvariantResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInvariantResponse) MarshalToSizedBuffer ¶ added in v0.32.0
func (m *QueryInvariantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInvariantResponse) ProtoMessage ¶ added in v0.32.0
func (*QueryInvariantResponse) ProtoMessage()
func (*QueryInvariantResponse) Reset ¶ added in v0.32.0
func (m *QueryInvariantResponse) Reset()
func (*QueryInvariantResponse) Size ¶ added in v0.32.0
func (m *QueryInvariantResponse) Size() (n int)
func (*QueryInvariantResponse) String ¶ added in v0.32.0
func (m *QueryInvariantResponse) String() string
func (*QueryInvariantResponse) Unmarshal ¶ added in v0.32.0
func (m *QueryInvariantResponse) Unmarshal(dAtA []byte) error
func (*QueryInvariantResponse) XXX_DiscardUnknown ¶ added in v0.32.0
func (m *QueryInvariantResponse) XXX_DiscardUnknown()
func (*QueryInvariantResponse) XXX_Marshal ¶ added in v0.32.0
func (m *QueryInvariantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInvariantResponse) XXX_Merge ¶ added in v0.32.0
func (m *QueryInvariantResponse) XXX_Merge(src proto.Message)
func (*QueryInvariantResponse) XXX_Size ¶ added in v0.32.0
func (m *QueryInvariantResponse) XXX_Size() int
func (*QueryInvariantResponse) XXX_Unmarshal ¶ added in v0.32.0
func (m *QueryInvariantResponse) 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 QueryRewardsRequest ¶
type QueryRewardsRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*QueryRewardsRequest) Descriptor ¶
func (*QueryRewardsRequest) Descriptor() ([]byte, []int)
func (*QueryRewardsRequest) GetAddress ¶
func (m *QueryRewardsRequest) GetAddress() string
func (*QueryRewardsRequest) Marshal ¶
func (m *QueryRewardsRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardsRequest) MarshalTo ¶
func (m *QueryRewardsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsRequest) MarshalToSizedBuffer ¶
func (m *QueryRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsRequest) ProtoMessage ¶
func (*QueryRewardsRequest) ProtoMessage()
func (*QueryRewardsRequest) Reset ¶
func (m *QueryRewardsRequest) Reset()
func (*QueryRewardsRequest) Size ¶
func (m *QueryRewardsRequest) Size() (n int)
func (*QueryRewardsRequest) String ¶
func (m *QueryRewardsRequest) String() string
func (*QueryRewardsRequest) Unmarshal ¶
func (m *QueryRewardsRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardsRequest) XXX_DiscardUnknown ¶
func (m *QueryRewardsRequest) XXX_DiscardUnknown()
func (*QueryRewardsRequest) XXX_Marshal ¶
func (m *QueryRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsRequest) XXX_Merge ¶
func (m *QueryRewardsRequest) XXX_Merge(src proto.Message)
func (*QueryRewardsRequest) XXX_Size ¶
func (m *QueryRewardsRequest) XXX_Size() int
func (*QueryRewardsRequest) XXX_Unmarshal ¶
func (m *QueryRewardsRequest) XXX_Unmarshal(b []byte) error
type QueryRewardsResponse ¶
type QueryRewardsResponse struct { // rewards defines all the rewards accrued by a delegator. Rewards []DelegationDelegatorReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` // total defines the sum of all the rewards. Total github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total"` }
func (*QueryRewardsResponse) Descriptor ¶
func (*QueryRewardsResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsResponse) GetRewards ¶
func (m *QueryRewardsResponse) GetRewards() []DelegationDelegatorReward
func (*QueryRewardsResponse) GetTotal ¶
func (m *QueryRewardsResponse) GetTotal() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryRewardsResponse) Marshal ¶
func (m *QueryRewardsResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsResponse) MarshalTo ¶
func (m *QueryRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsResponse) MarshalToSizedBuffer ¶
func (m *QueryRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsResponse) ProtoMessage ¶
func (*QueryRewardsResponse) ProtoMessage()
func (*QueryRewardsResponse) Reset ¶
func (m *QueryRewardsResponse) Reset()
func (*QueryRewardsResponse) Size ¶
func (m *QueryRewardsResponse) Size() (n int)
func (*QueryRewardsResponse) String ¶
func (m *QueryRewardsResponse) String() string
func (*QueryRewardsResponse) Unmarshal ¶
func (m *QueryRewardsResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsResponse) XXX_DiscardUnknown ¶
func (m *QueryRewardsResponse) XXX_DiscardUnknown()
func (*QueryRewardsResponse) XXX_Marshal ¶
func (m *QueryRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsResponse) XXX_Merge ¶
func (m *QueryRewardsResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsResponse) XXX_Size ¶
func (m *QueryRewardsResponse) XXX_Size() int
func (*QueryRewardsResponse) XXX_Unmarshal ¶
func (m *QueryRewardsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Rewards queries the total rewards accrued by a delegation Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error) // Invariant queries the invariant values Invariant(context.Context, *QueryInvariantRequest) (*QueryInvariantResponse, error) }
QueryServer is the server API for Query service.
type StakingKeeper ¶
type StakingKeeper interface { // iterate through validators by operator address, execute func for each validator IterateValidators(sdk.Context, func(index int64, validator stakingtypes.ValidatorI) (stop bool)) Validator(sdk.Context, sdk.ValAddress) stakingtypes.ValidatorI // get a particular validator by operator address ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingtypes.ValidatorI // get a particular validator by consensus address // 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 IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, fn func(index int64, delegation stakingtypes.DelegationI) (stop bool)) GetAllSDKDelegations(ctx sdk.Context) []stakingtypes.Delegation GetAllValidators(ctx sdk.Context) (validators []stakingtypes.Validator) GetAllDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress) []stakingtypes.Delegation }
StakingKeeper expected staking keeper (noalias)
type TokenomicsKeeper ¶
type TokenomicsKeeper interface {
GetAllTimeBasedInflation(ctx sdk.Context) (list []tokenomictypes.TimeBasedInflation)
}
TokenomicsKeeper defines the expected tokenomics keeper used for simulations (noalias)
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) WithdrawAllRewards ¶
func (*UnimplementedMsgServer) WithdrawAllRewards(ctx context.Context, req *MsgWithdrawAllRewards) (*MsgWithdrawAllRewardsResponse, error)
func (*UnimplementedMsgServer) WithdrawElysStakingRewards ¶
func (*UnimplementedMsgServer) WithdrawElysStakingRewards(ctx context.Context, req *MsgWithdrawElysStakingRewards) (*MsgWithdrawElysStakingRewardsResponse, error)
func (*UnimplementedMsgServer) WithdrawReward ¶
func (*UnimplementedMsgServer) WithdrawReward(ctx context.Context, req *MsgWithdrawReward) (*MsgWithdrawRewardResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Invariant ¶ added in v0.32.0
func (*UnimplementedQueryServer) Invariant(ctx context.Context, req *QueryInvariantRequest) (*QueryInvariantResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Rewards ¶
func (*UnimplementedQueryServer) Rewards(ctx context.Context, req *QueryRewardsRequest) (*QueryRewardsResponse, error)