Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func DelegationKey(provider, delegator string) collections.Pair[string, string]
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- 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 BankKeeper
- type Delegation
- func (delegation *Delegation) AddAmount(amount sdk.Coin)
- func (*Delegation) Descriptor() ([]byte, []int)
- func (delegation *Delegation) Equal(other *Delegation) bool
- func (m *Delegation) GetAmount() types.Coin
- func (m *Delegation) GetDelegator() string
- func (m *Delegation) GetProvider() string
- func (m *Delegation) GetTimestamp() int64
- func (delegation *Delegation) IsFirstWeekPassed(currentTimestamp int64) bool
- func (delegation *Delegation) IsZero() bool
- func (m *Delegation) Marshal() (dAtA []byte, err error)
- func (m *Delegation) MarshalTo(dAtA []byte) (int, error)
- func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Delegation) ProtoMessage()
- func (m *Delegation) Reset()
- func (m *Delegation) Size() (n int)
- func (m *Delegation) String() string
- func (delegation *Delegation) SubAmount(amount sdk.Coin)
- func (m *Delegation) Unmarshal(dAtA []byte) error
- func (m *Delegation) XXX_DiscardUnknown()
- func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Delegation) XXX_Merge(src proto.Message)
- func (m *Delegation) XXX_Size() int
- func (m *Delegation) XXX_Unmarshal(b []byte) error
- type DelegationIndexes
- type Delegator
- func (delegator *Delegator) AddProvider(provider string) bool
- func (delegator *Delegator) DelProvider(provider string)
- func (*Delegator) Descriptor() ([]byte, []int)
- func (m *Delegator) GetProviders() []string
- func (delegator *Delegator) IsEmpty() bool
- func (m *Delegator) Marshal() (dAtA []byte, err error)
- func (m *Delegator) MarshalTo(dAtA []byte) (int, error)
- func (m *Delegator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Delegator) ProtoMessage()
- func (m *Delegator) Reset()
- func (m *Delegator) Size() (n int)
- func (m *Delegator) String() string
- func (m *Delegator) Unmarshal(dAtA []byte) error
- func (m *Delegator) XXX_DiscardUnknown()
- func (m *Delegator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Delegator) XXX_Merge(src proto.Message)
- func (m *Delegator) XXX_Size() int
- func (m *Delegator) XXX_Unmarshal(b []byte) error
- type DelegatorReward
- func (*DelegatorReward) Descriptor() ([]byte, []int)
- func (m *DelegatorReward) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *DelegatorReward) GetDelegator() string
- func (m *DelegatorReward) GetProvider() string
- func (m *DelegatorReward) Marshal() (dAtA []byte, err error)
- func (m *DelegatorReward) MarshalTo(dAtA []byte) (int, error)
- func (m *DelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelegatorReward) ProtoMessage()
- func (m *DelegatorReward) Reset()
- func (m *DelegatorReward) Size() (n int)
- func (m *DelegatorReward) String() string
- func (m *DelegatorReward) Unmarshal(dAtA []byte) error
- func (m *DelegatorReward) XXX_DiscardUnknown()
- func (m *DelegatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelegatorReward) XXX_Merge(src proto.Message)
- func (m *DelegatorReward) XXX_Size() int
- func (m *DelegatorReward) XXX_Unmarshal(b []byte) error
- type DelegatorRewardInfo
- func (*DelegatorRewardInfo) Descriptor() ([]byte, []int)
- func (m *DelegatorRewardInfo) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *DelegatorRewardInfo) GetProvider() string
- func (m *DelegatorRewardInfo) Marshal() (dAtA []byte, err error)
- func (m *DelegatorRewardInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *DelegatorRewardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelegatorRewardInfo) ProtoMessage()
- func (m *DelegatorRewardInfo) Reset()
- func (m *DelegatorRewardInfo) Size() (n int)
- func (m *DelegatorRewardInfo) String() string
- func (m *DelegatorRewardInfo) Unmarshal(dAtA []byte) error
- func (m *DelegatorRewardInfo) XXX_DiscardUnknown()
- func (m *DelegatorRewardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelegatorRewardInfo) XXX_Merge(src proto.Message)
- func (m *DelegatorRewardInfo) XXX_Size() int
- func (m *DelegatorRewardInfo) XXX_Unmarshal(b []byte) error
- type EpochstorageKeeper
- type FixationStoreKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDelegations() []Delegation
- func (m *GenesisState) GetDelegatorRewardList() []DelegatorReward
- 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 MsgClaimRewards
- func (*MsgClaimRewards) Descriptor() ([]byte, []int)
- func (m *MsgClaimRewards) GetCreator() string
- func (m *MsgClaimRewards) GetProvider() string
- func (msg *MsgClaimRewards) GetSignBytes() []byte
- func (msg *MsgClaimRewards) GetSigners() []sdk.AccAddress
- func (m *MsgClaimRewards) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimRewards) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimRewards) ProtoMessage()
- func (m *MsgClaimRewards) Reset()
- func (msg *MsgClaimRewards) Route() string
- func (m *MsgClaimRewards) Size() (n int)
- func (m *MsgClaimRewards) String() string
- func (msg *MsgClaimRewards) Type() string
- func (m *MsgClaimRewards) Unmarshal(dAtA []byte) error
- func (msg *MsgClaimRewards) ValidateBasic() error
- func (m *MsgClaimRewards) XXX_DiscardUnknown()
- func (m *MsgClaimRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimRewards) XXX_Merge(src proto.Message)
- func (m *MsgClaimRewards) XXX_Size() int
- func (m *MsgClaimRewards) XXX_Unmarshal(b []byte) error
- type MsgClaimRewardsResponse
- func (*MsgClaimRewardsResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimRewardsResponse) ProtoMessage()
- func (m *MsgClaimRewardsResponse) Reset()
- func (m *MsgClaimRewardsResponse) Size() (n int)
- func (m *MsgClaimRewardsResponse) String() string
- func (m *MsgClaimRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimRewardsResponse) XXX_DiscardUnknown()
- func (m *MsgClaimRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimRewardsResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimRewardsResponse) XXX_Size() int
- func (m *MsgClaimRewardsResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDelegate
- func (*MsgDelegate) Descriptor() ([]byte, []int)
- func (m *MsgDelegate) GetAmount() types.Coin
- func (m *MsgDelegate) GetChainID() string
- func (m *MsgDelegate) GetCreator() string
- func (m *MsgDelegate) GetProvider() string
- func (msg *MsgDelegate) GetSignBytes() []byte
- func (msg *MsgDelegate) GetSigners() []sdk.AccAddress
- func (m *MsgDelegate) GetValidator() string
- func (m *MsgDelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgDelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDelegate) ProtoMessage()
- func (m *MsgDelegate) Reset()
- func (msg *MsgDelegate) Route() string
- func (m *MsgDelegate) Size() (n int)
- func (m *MsgDelegate) String() string
- func (msg *MsgDelegate) Type() string
- func (m *MsgDelegate) Unmarshal(dAtA []byte) error
- func (msg *MsgDelegate) ValidateBasic() error
- func (m *MsgDelegate) XXX_DiscardUnknown()
- func (m *MsgDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDelegate) XXX_Merge(src proto.Message)
- func (m *MsgDelegate) XXX_Size() int
- func (m *MsgDelegate) XXX_Unmarshal(b []byte) error
- type MsgDelegateResponse
- func (*MsgDelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgDelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDelegateResponse) ProtoMessage()
- func (m *MsgDelegateResponse) Reset()
- func (m *MsgDelegateResponse) Size() (n int)
- func (m *MsgDelegateResponse) String() string
- func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDelegateResponse) XXX_DiscardUnknown()
- func (m *MsgDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgDelegateResponse) XXX_Size() int
- func (m *MsgDelegateResponse) XXX_Unmarshal(b []byte) error
- type MsgRedelegate
- func (*MsgRedelegate) Descriptor() ([]byte, []int)
- func (m *MsgRedelegate) GetAmount() types.Coin
- func (m *MsgRedelegate) GetCreator() string
- func (m *MsgRedelegate) GetFromChainID() string
- func (m *MsgRedelegate) GetFromProvider() string
- func (msg *MsgRedelegate) GetSignBytes() []byte
- func (msg *MsgRedelegate) GetSigners() []sdk.AccAddress
- func (m *MsgRedelegate) GetToChainID() string
- func (m *MsgRedelegate) GetToProvider() string
- func (m *MsgRedelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgRedelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRedelegate) ProtoMessage()
- func (m *MsgRedelegate) Reset()
- func (msg *MsgRedelegate) Route() string
- func (m *MsgRedelegate) Size() (n int)
- func (m *MsgRedelegate) String() string
- func (msg *MsgRedelegate) Type() string
- func (m *MsgRedelegate) Unmarshal(dAtA []byte) error
- func (msg *MsgRedelegate) ValidateBasic() error
- func (m *MsgRedelegate) XXX_DiscardUnknown()
- func (m *MsgRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRedelegate) XXX_Merge(src proto.Message)
- func (m *MsgRedelegate) XXX_Size() int
- func (m *MsgRedelegate) XXX_Unmarshal(b []byte) error
- type MsgRedelegateResponse
- func (*MsgRedelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgRedelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRedelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRedelegateResponse) ProtoMessage()
- func (m *MsgRedelegateResponse) Reset()
- func (m *MsgRedelegateResponse) Size() (n int)
- func (m *MsgRedelegateResponse) String() string
- func (m *MsgRedelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRedelegateResponse) XXX_DiscardUnknown()
- func (m *MsgRedelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRedelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgRedelegateResponse) XXX_Size() int
- func (m *MsgRedelegateResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUnbond
- func (*MsgUnbond) Descriptor() ([]byte, []int)
- func (m *MsgUnbond) GetAmount() types.Coin
- func (m *MsgUnbond) GetChainID() string
- func (m *MsgUnbond) GetCreator() string
- func (m *MsgUnbond) GetProvider() string
- func (msg *MsgUnbond) GetSignBytes() []byte
- func (msg *MsgUnbond) GetSigners() []sdk.AccAddress
- func (m *MsgUnbond) GetValidator() string
- func (m *MsgUnbond) Marshal() (dAtA []byte, err error)
- func (m *MsgUnbond) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnbond) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnbond) ProtoMessage()
- func (m *MsgUnbond) Reset()
- func (msg *MsgUnbond) Route() string
- func (m *MsgUnbond) Size() (n int)
- func (m *MsgUnbond) String() string
- func (msg *MsgUnbond) Type() string
- func (m *MsgUnbond) Unmarshal(dAtA []byte) error
- func (msg *MsgUnbond) ValidateBasic() error
- func (m *MsgUnbond) XXX_DiscardUnknown()
- func (m *MsgUnbond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnbond) XXX_Merge(src proto.Message)
- func (m *MsgUnbond) XXX_Size() int
- func (m *MsgUnbond) XXX_Unmarshal(b []byte) error
- type MsgUnbondResponse
- func (*MsgUnbondResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnbondResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnbondResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnbondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnbondResponse) ProtoMessage()
- func (m *MsgUnbondResponse) Reset()
- func (m *MsgUnbondResponse) Size() (n int)
- func (m *MsgUnbondResponse) String() string
- func (m *MsgUnbondResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnbondResponse) XXX_DiscardUnknown()
- func (m *MsgUnbondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnbondResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnbondResponse) XXX_Size() int
- func (m *MsgUnbondResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetMinSelfDelegation() types.Coin
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (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 QueryDelegatorProvidersRequest
- func (*QueryDelegatorProvidersRequest) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorProvidersRequest) GetDelegator() string
- func (m *QueryDelegatorProvidersRequest) GetWithPending() bool
- func (m *QueryDelegatorProvidersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorProvidersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorProvidersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorProvidersRequest) ProtoMessage()
- func (m *QueryDelegatorProvidersRequest) Reset()
- func (m *QueryDelegatorProvidersRequest) Size() (n int)
- func (m *QueryDelegatorProvidersRequest) String() string
- func (m *QueryDelegatorProvidersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorProvidersRequest) XXX_DiscardUnknown()
- func (m *QueryDelegatorProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorProvidersRequest) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorProvidersRequest) XXX_Size() int
- func (m *QueryDelegatorProvidersRequest) XXX_Unmarshal(b []byte) error
- type QueryDelegatorProvidersResponse
- func (*QueryDelegatorProvidersResponse) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorProvidersResponse) GetDelegations() []Delegation
- func (m *QueryDelegatorProvidersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorProvidersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorProvidersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorProvidersResponse) ProtoMessage()
- func (m *QueryDelegatorProvidersResponse) Reset()
- func (m *QueryDelegatorProvidersResponse) Size() (n int)
- func (m *QueryDelegatorProvidersResponse) String() string
- func (m *QueryDelegatorProvidersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorProvidersResponse) XXX_DiscardUnknown()
- func (m *QueryDelegatorProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorProvidersResponse) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorProvidersResponse) XXX_Size() int
- func (m *QueryDelegatorProvidersResponse) XXX_Unmarshal(b []byte) error
- type QueryDelegatorRewardsRequest
- func (*QueryDelegatorRewardsRequest) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorRewardsRequest) GetChainId() string
- func (m *QueryDelegatorRewardsRequest) GetDelegator() string
- func (m *QueryDelegatorRewardsRequest) GetProvider() string
- func (m *QueryDelegatorRewardsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorRewardsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorRewardsRequest) ProtoMessage()
- func (m *QueryDelegatorRewardsRequest) Reset()
- func (m *QueryDelegatorRewardsRequest) Size() (n int)
- func (m *QueryDelegatorRewardsRequest) String() string
- func (m *QueryDelegatorRewardsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorRewardsRequest) XXX_DiscardUnknown()
- func (m *QueryDelegatorRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorRewardsRequest) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorRewardsRequest) XXX_Size() int
- func (m *QueryDelegatorRewardsRequest) XXX_Unmarshal(b []byte) error
- type QueryDelegatorRewardsResponse
- func (*QueryDelegatorRewardsResponse) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorRewardsResponse) GetRewards() []DelegatorRewardInfo
- func (m *QueryDelegatorRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorRewardsResponse) ProtoMessage()
- func (m *QueryDelegatorRewardsResponse) Reset()
- func (m *QueryDelegatorRewardsResponse) Size() (n int)
- func (m *QueryDelegatorRewardsResponse) String() string
- func (m *QueryDelegatorRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorRewardsResponse) XXX_DiscardUnknown()
- func (m *QueryDelegatorRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorRewardsResponse) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorRewardsResponse) XXX_Size() int
- func (m *QueryDelegatorRewardsResponse) 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 QueryProviderDelegatorsRequest
- func (*QueryProviderDelegatorsRequest) Descriptor() ([]byte, []int)
- func (m *QueryProviderDelegatorsRequest) GetProvider() string
- func (m *QueryProviderDelegatorsRequest) GetWithPending() bool
- func (m *QueryProviderDelegatorsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderDelegatorsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderDelegatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderDelegatorsRequest) ProtoMessage()
- func (m *QueryProviderDelegatorsRequest) Reset()
- func (m *QueryProviderDelegatorsRequest) Size() (n int)
- func (m *QueryProviderDelegatorsRequest) String() string
- func (m *QueryProviderDelegatorsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProviderDelegatorsRequest) XXX_DiscardUnknown()
- func (m *QueryProviderDelegatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderDelegatorsRequest) XXX_Merge(src proto.Message)
- func (m *QueryProviderDelegatorsRequest) XXX_Size() int
- func (m *QueryProviderDelegatorsRequest) XXX_Unmarshal(b []byte) error
- type QueryProviderDelegatorsResponse
- func (*QueryProviderDelegatorsResponse) Descriptor() ([]byte, []int)
- func (m *QueryProviderDelegatorsResponse) GetDelegations() []Delegation
- func (m *QueryProviderDelegatorsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderDelegatorsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderDelegatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderDelegatorsResponse) ProtoMessage()
- func (m *QueryProviderDelegatorsResponse) Reset()
- func (m *QueryProviderDelegatorsResponse) Size() (n int)
- func (m *QueryProviderDelegatorsResponse) String() string
- func (m *QueryProviderDelegatorsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProviderDelegatorsResponse) XXX_DiscardUnknown()
- func (m *QueryProviderDelegatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderDelegatorsResponse) XXX_Merge(src proto.Message)
- func (m *QueryProviderDelegatorsResponse) XXX_Size() int
- func (m *QueryProviderDelegatorsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SlashedValidators
- func (*SlashedValidators) Descriptor() ([]byte, []int)
- func (m *SlashedValidators) GetValidators() []string
- func (m *SlashedValidators) Marshal() (dAtA []byte, err error)
- func (m *SlashedValidators) MarshalTo(dAtA []byte) (int, error)
- func (m *SlashedValidators) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SlashedValidators) ProtoMessage()
- func (m *SlashedValidators) Reset()
- func (m *SlashedValidators) Size() (n int)
- func (m *SlashedValidators) String() string
- func (m *SlashedValidators) Unmarshal(dAtA []byte) error
- func (m *SlashedValidators) XXX_DiscardUnknown()
- func (m *SlashedValidators) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SlashedValidators) XXX_Merge(src proto.Message)
- func (m *SlashedValidators) XXX_Size() int
- func (m *SlashedValidators) XXX_Unmarshal(b []byte) error
- type SpecKeeper
- type StakingKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ClaimRewards(ctx context.Context, req *MsgClaimRewards) (*MsgClaimRewardsResponse, error)
- func (*UnimplementedMsgServer) Delegate(ctx context.Context, req *MsgDelegate) (*MsgDelegateResponse, error)
- func (*UnimplementedMsgServer) Redelegate(ctx context.Context, req *MsgRedelegate) (*MsgRedelegateResponse, error)
- func (*UnimplementedMsgServer) Unbond(ctx context.Context, req *MsgUnbond) (*MsgUnbondResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) DelegatorProviders(ctx context.Context, req *QueryDelegatorProvidersRequest) (*QueryDelegatorProvidersResponse, error)
- func (*UnimplementedQueryServer) DelegatorRewards(ctx context.Context, req *QueryDelegatorRewardsRequest) (*QueryDelegatorRewardsResponse, error)
- func (*UnimplementedQueryServer) DelegatorRewardsList(ctx context.Context, req *QueryDelegatorRewardsRequest) (*QueryDelegatorRewardsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) ProviderDelegators(ctx context.Context, req *QueryProviderDelegatorsRequest) (*QueryProviderDelegatorsResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "dualstaking" // 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_dualstaking" // DisableDualstakingHooks prefix DisableDualstakingHookPrefix = "disable-dualstaking-hooks" // SlashedValidators prefix SlashedValidatorsPrefix = "slashed-validators" )
const ( DelegateEventName = "delegate_to_provider" UnbondingEventName = "unbond_from_provider" RedelegateEventName = "redelegate_between_providers" ClaimRewardsEventName = "delegator_claim_rewards" ContributorRewardEventName = "contributor_rewards" ValidatorSlashEventName = "validator_slash" FreezeFromUnbond = "freeze_from_unbond" UnstakeFromUnbond = "unstake_from_unbond" ProviderRewardEventName = "provider_reward" DelegatorRewardEventName = "delegator_reward" )
const ( NotBondedPoolName = "not_bonded_dualstaking_pool" BondedPoolName = "bonded_dualstaking_pool" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const TypeMsgClaimRewards = "claim_rewards"
const TypeMsgDelegate = "delegate"
const TypeMsgRedelegate = "redelegate"
const TypeMsgUnbond = "unbond"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewAminoCodec(Amino) )
var ( ErrInvalidLengthDelegate = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDelegate = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDelegate = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthDelegatorReward = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDelegatorReward = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDelegatorReward = fmt.Errorf("proto: unexpected end of group") )
var ( ErrDelegationNotFound = sdkerrors.Register(ModuleName, 1001, "delegation not found") ErrInsufficientDelegation = sdkerrors.Register(ModuleName, 1002, "invalid delegation amount") ErrBadDelegationAmount = sdkerrors.Register(ModuleName, 1003, "invalid delegation amount") ErrUnbondingInProgress = sdkerrors.Register(ModuleName, 1004, "unbonding already exists (same block)") ErrCalculatingProviderReward = sdkerrors.Register(ModuleName, 1005, "provider reward calculation failed") )
x/dualstaking 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 ( DelegationsPrefix = collections.NewPrefix([]byte("Delegations/")) RewardPrefix = collections.NewPrefix([]byte("Rewards/")) )
var ( KeyMinSelfDelegation = []byte("MinSelfDelegation") DefaultMinSelfDelegation sdk.Coin = sdk.NewCoin(commontypes.TokenDenom, sdk.NewInt(100000000)) // 100 lava = 100,000,000 ulava )
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 DelegationIndexPrefix = collections.NewPrefix(1)
Functions ¶
func DelegationKey ¶
func DelegationKey(provider, delegator string) collections.Pair[string, string]
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
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 { GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI }
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
type BankKeeper interface { BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin MintCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type Delegation ¶
type Delegation struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` Delegator string `protobuf:"bytes,3,opt,name=delegator,proto3" json:"delegator,omitempty"` Amount types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"` Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func NewDelegation ¶
func NewDelegation(delegator, provider string, blockTime time.Time, tokenDenom string) Delegation
func (*Delegation) AddAmount ¶
func (delegation *Delegation) AddAmount(amount sdk.Coin)
func (*Delegation) Descriptor ¶
func (*Delegation) Descriptor() ([]byte, []int)
func (*Delegation) Equal ¶
func (delegation *Delegation) Equal(other *Delegation) bool
func (*Delegation) GetAmount ¶
func (m *Delegation) GetAmount() types.Coin
func (*Delegation) GetDelegator ¶
func (m *Delegation) GetDelegator() string
func (*Delegation) GetProvider ¶
func (m *Delegation) GetProvider() string
func (*Delegation) GetTimestamp ¶
func (m *Delegation) GetTimestamp() int64
func (*Delegation) IsFirstWeekPassed ¶
func (delegation *Delegation) IsFirstWeekPassed(currentTimestamp int64) bool
func (*Delegation) IsZero ¶
func (delegation *Delegation) IsZero() bool
func (*Delegation) Marshal ¶
func (m *Delegation) Marshal() (dAtA []byte, err error)
func (*Delegation) MarshalToSizedBuffer ¶
func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Delegation) ProtoMessage ¶
func (*Delegation) ProtoMessage()
func (*Delegation) Reset ¶
func (m *Delegation) Reset()
func (*Delegation) Size ¶
func (m *Delegation) Size() (n int)
func (*Delegation) String ¶
func (m *Delegation) String() string
func (*Delegation) SubAmount ¶
func (delegation *Delegation) SubAmount(amount sdk.Coin)
func (*Delegation) Unmarshal ¶
func (m *Delegation) Unmarshal(dAtA []byte) error
func (*Delegation) XXX_DiscardUnknown ¶
func (m *Delegation) XXX_DiscardUnknown()
func (*Delegation) XXX_Marshal ¶
func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Delegation) XXX_Merge ¶
func (m *Delegation) XXX_Merge(src proto.Message)
func (*Delegation) XXX_Size ¶
func (m *Delegation) XXX_Size() int
func (*Delegation) XXX_Unmarshal ¶
func (m *Delegation) XXX_Unmarshal(b []byte) error
type DelegationIndexes ¶
type DelegationIndexes struct {
ReverseIndex *indexes.ReversePair[string, string, Delegation]
}
func NewDelegationIndexes ¶
func NewDelegationIndexes(sb *collections.SchemaBuilder) DelegationIndexes
func (DelegationIndexes) IndexesList ¶
func (a DelegationIndexes) IndexesList() []collections.Index[collections.Pair[string, string], Delegation]
type Delegator ¶
type Delegator struct {
Providers []string `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
}
func NewDelegator ¶
func (*Delegator) AddProvider ¶
func (*Delegator) DelProvider ¶
func (*Delegator) Descriptor ¶
func (*Delegator) GetProviders ¶
func (*Delegator) MarshalToSizedBuffer ¶
func (*Delegator) ProtoMessage ¶
func (*Delegator) ProtoMessage()
func (*Delegator) XXX_DiscardUnknown ¶
func (m *Delegator) XXX_DiscardUnknown()
func (*Delegator) XXX_Marshal ¶
func (*Delegator) XXX_Unmarshal ¶
type DelegatorReward ¶
type DelegatorReward struct { Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
func (*DelegatorReward) Descriptor ¶
func (*DelegatorReward) Descriptor() ([]byte, []int)
func (*DelegatorReward) GetAmount ¶
func (m *DelegatorReward) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*DelegatorReward) GetDelegator ¶
func (m *DelegatorReward) GetDelegator() string
func (*DelegatorReward) GetProvider ¶
func (m *DelegatorReward) GetProvider() string
func (*DelegatorReward) Marshal ¶
func (m *DelegatorReward) Marshal() (dAtA []byte, err error)
func (*DelegatorReward) MarshalToSizedBuffer ¶
func (m *DelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegatorReward) ProtoMessage ¶
func (*DelegatorReward) ProtoMessage()
func (*DelegatorReward) Reset ¶
func (m *DelegatorReward) Reset()
func (*DelegatorReward) Size ¶
func (m *DelegatorReward) Size() (n int)
func (*DelegatorReward) String ¶
func (m *DelegatorReward) String() string
func (*DelegatorReward) Unmarshal ¶
func (m *DelegatorReward) Unmarshal(dAtA []byte) error
func (*DelegatorReward) XXX_DiscardUnknown ¶
func (m *DelegatorReward) XXX_DiscardUnknown()
func (*DelegatorReward) XXX_Marshal ¶
func (m *DelegatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegatorReward) XXX_Merge ¶
func (m *DelegatorReward) XXX_Merge(src proto.Message)
func (*DelegatorReward) XXX_Size ¶
func (m *DelegatorReward) XXX_Size() int
func (*DelegatorReward) XXX_Unmarshal ¶
func (m *DelegatorReward) XXX_Unmarshal(b []byte) error
type DelegatorRewardInfo ¶
type DelegatorRewardInfo struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
func (*DelegatorRewardInfo) Descriptor ¶
func (*DelegatorRewardInfo) Descriptor() ([]byte, []int)
func (*DelegatorRewardInfo) GetAmount ¶
func (m *DelegatorRewardInfo) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*DelegatorRewardInfo) GetProvider ¶
func (m *DelegatorRewardInfo) GetProvider() string
func (*DelegatorRewardInfo) Marshal ¶
func (m *DelegatorRewardInfo) Marshal() (dAtA []byte, err error)
func (*DelegatorRewardInfo) MarshalTo ¶
func (m *DelegatorRewardInfo) MarshalTo(dAtA []byte) (int, error)
func (*DelegatorRewardInfo) MarshalToSizedBuffer ¶
func (m *DelegatorRewardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegatorRewardInfo) ProtoMessage ¶
func (*DelegatorRewardInfo) ProtoMessage()
func (*DelegatorRewardInfo) Reset ¶
func (m *DelegatorRewardInfo) Reset()
func (*DelegatorRewardInfo) Size ¶
func (m *DelegatorRewardInfo) Size() (n int)
func (*DelegatorRewardInfo) String ¶
func (m *DelegatorRewardInfo) String() string
func (*DelegatorRewardInfo) Unmarshal ¶
func (m *DelegatorRewardInfo) Unmarshal(dAtA []byte) error
func (*DelegatorRewardInfo) XXX_DiscardUnknown ¶
func (m *DelegatorRewardInfo) XXX_DiscardUnknown()
func (*DelegatorRewardInfo) XXX_Marshal ¶
func (m *DelegatorRewardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegatorRewardInfo) XXX_Merge ¶
func (m *DelegatorRewardInfo) XXX_Merge(src proto.Message)
func (*DelegatorRewardInfo) XXX_Size ¶
func (m *DelegatorRewardInfo) XXX_Size() int
func (*DelegatorRewardInfo) XXX_Unmarshal ¶
func (m *DelegatorRewardInfo) XXX_Unmarshal(b []byte) error
type EpochstorageKeeper ¶
type EpochstorageKeeper interface { GetStakeEntryCurrent(ctx sdk.Context, chainID string, address string) (value epochstoragetypes.StakeEntry, found bool) SetStakeEntryCurrent(ctx sdk.Context, stakeEntry epochstoragetypes.StakeEntry) GetEpochStartForBlock(ctx sdk.Context, block uint64) (epochStart, blockInEpoch uint64, err error) GetCurrentNextEpoch(ctx sdk.Context) (nextEpoch uint64) RemoveStakeEntryCurrent(ctx sdk.Context, chainID string, address string) GetStakeEntry(ctx sdk.Context, epoch uint64, chainID string, provider string) (val epochstoragetypes.StakeEntry, found bool) GetMetadata(ctx sdk.Context, provider string) (epochstoragetypes.ProviderMetadata, error) SetMetadata(ctx sdk.Context, metadata epochstoragetypes.ProviderMetadata) }
type FixationStoreKeeper ¶
type FixationStoreKeeper interface {
NewFixationStore(storeKey storetypes.StoreKey, prefix string) *fixationstoretypes.FixationStore
}
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` DelegatorRewardList []DelegatorReward `protobuf:"bytes,5,rep,name=delegator_reward_list,json=delegatorRewardList,proto3" json:"delegator_reward_list"` Delegations []Delegation `protobuf:"bytes,6,rep,name=Delegations,proto3" json:"Delegations"` }
GenesisState defines the dualstaking 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) GetDelegations ¶
func (m *GenesisState) GetDelegations() []Delegation
func (*GenesisState) GetDelegatorRewardList ¶
func (m *GenesisState) GetDelegatorRewardList() []DelegatorReward
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 MsgClaimRewards ¶
type MsgClaimRewards struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` }
func NewMsgClaimRewards ¶
func NewMsgClaimRewards(delegator string, provider string) *MsgClaimRewards
func (*MsgClaimRewards) Descriptor ¶
func (*MsgClaimRewards) Descriptor() ([]byte, []int)
func (*MsgClaimRewards) GetCreator ¶
func (m *MsgClaimRewards) GetCreator() string
func (*MsgClaimRewards) GetProvider ¶
func (m *MsgClaimRewards) GetProvider() string
func (*MsgClaimRewards) GetSignBytes ¶
func (msg *MsgClaimRewards) GetSignBytes() []byte
func (*MsgClaimRewards) GetSigners ¶
func (msg *MsgClaimRewards) GetSigners() []sdk.AccAddress
func (*MsgClaimRewards) Marshal ¶
func (m *MsgClaimRewards) Marshal() (dAtA []byte, err error)
func (*MsgClaimRewards) MarshalToSizedBuffer ¶
func (m *MsgClaimRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimRewards) ProtoMessage ¶
func (*MsgClaimRewards) ProtoMessage()
func (*MsgClaimRewards) Reset ¶
func (m *MsgClaimRewards) Reset()
func (*MsgClaimRewards) Route ¶
func (msg *MsgClaimRewards) Route() string
func (*MsgClaimRewards) Size ¶
func (m *MsgClaimRewards) Size() (n int)
func (*MsgClaimRewards) String ¶
func (m *MsgClaimRewards) String() string
func (*MsgClaimRewards) Type ¶
func (msg *MsgClaimRewards) Type() string
func (*MsgClaimRewards) Unmarshal ¶
func (m *MsgClaimRewards) Unmarshal(dAtA []byte) error
func (*MsgClaimRewards) ValidateBasic ¶
func (msg *MsgClaimRewards) ValidateBasic() error
func (*MsgClaimRewards) XXX_DiscardUnknown ¶
func (m *MsgClaimRewards) XXX_DiscardUnknown()
func (*MsgClaimRewards) XXX_Marshal ¶
func (m *MsgClaimRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimRewards) XXX_Merge ¶
func (m *MsgClaimRewards) XXX_Merge(src proto.Message)
func (*MsgClaimRewards) XXX_Size ¶
func (m *MsgClaimRewards) XXX_Size() int
func (*MsgClaimRewards) XXX_Unmarshal ¶
func (m *MsgClaimRewards) XXX_Unmarshal(b []byte) error
type MsgClaimRewardsResponse ¶
type MsgClaimRewardsResponse struct { }
func (*MsgClaimRewardsResponse) Descriptor ¶
func (*MsgClaimRewardsResponse) Descriptor() ([]byte, []int)
func (*MsgClaimRewardsResponse) Marshal ¶
func (m *MsgClaimRewardsResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimRewardsResponse) MarshalTo ¶
func (m *MsgClaimRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimRewardsResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimRewardsResponse) ProtoMessage ¶
func (*MsgClaimRewardsResponse) ProtoMessage()
func (*MsgClaimRewardsResponse) Reset ¶
func (m *MsgClaimRewardsResponse) Reset()
func (*MsgClaimRewardsResponse) Size ¶
func (m *MsgClaimRewardsResponse) Size() (n int)
func (*MsgClaimRewardsResponse) String ¶
func (m *MsgClaimRewardsResponse) String() string
func (*MsgClaimRewardsResponse) Unmarshal ¶
func (m *MsgClaimRewardsResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimRewardsResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimRewardsResponse) XXX_DiscardUnknown()
func (*MsgClaimRewardsResponse) XXX_Marshal ¶
func (m *MsgClaimRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimRewardsResponse) XXX_Merge ¶
func (m *MsgClaimRewardsResponse) XXX_Merge(src proto.Message)
func (*MsgClaimRewardsResponse) XXX_Size ¶
func (m *MsgClaimRewardsResponse) XXX_Size() int
func (*MsgClaimRewardsResponse) XXX_Unmarshal ¶
func (m *MsgClaimRewardsResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error) Redelegate(ctx context.Context, in *MsgRedelegate, opts ...grpc.CallOption) (*MsgRedelegateResponse, error) Unbond(ctx context.Context, in *MsgUnbond, opts ...grpc.CallOption) (*MsgUnbondResponse, error) ClaimRewards(ctx context.Context, in *MsgClaimRewards, opts ...grpc.CallOption) (*MsgClaimRewardsResponse, 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 MsgDelegate ¶
type MsgDelegate struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Validator string `protobuf:"bytes,5,opt,name=validator,proto3" json:"validator,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` ChainID string `protobuf:"bytes,3,opt,name=chainID,proto3" json:"chainID,omitempty"` Amount types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"` }
func NewMsgDelegate ¶
func (*MsgDelegate) Descriptor ¶
func (*MsgDelegate) Descriptor() ([]byte, []int)
func (*MsgDelegate) GetAmount ¶
func (m *MsgDelegate) GetAmount() types.Coin
func (*MsgDelegate) GetChainID ¶
func (m *MsgDelegate) GetChainID() string
func (*MsgDelegate) GetCreator ¶
func (m *MsgDelegate) GetCreator() string
func (*MsgDelegate) GetProvider ¶
func (m *MsgDelegate) GetProvider() string
func (*MsgDelegate) GetSignBytes ¶
func (msg *MsgDelegate) GetSignBytes() []byte
func (*MsgDelegate) GetSigners ¶
func (msg *MsgDelegate) GetSigners() []sdk.AccAddress
func (*MsgDelegate) GetValidator ¶
func (m *MsgDelegate) GetValidator() string
func (*MsgDelegate) Marshal ¶
func (m *MsgDelegate) Marshal() (dAtA []byte, err error)
func (*MsgDelegate) MarshalToSizedBuffer ¶
func (m *MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDelegate) ProtoMessage ¶
func (*MsgDelegate) ProtoMessage()
func (*MsgDelegate) Reset ¶
func (m *MsgDelegate) Reset()
func (*MsgDelegate) Route ¶
func (msg *MsgDelegate) Route() string
func (*MsgDelegate) Size ¶
func (m *MsgDelegate) Size() (n int)
func (*MsgDelegate) String ¶
func (m *MsgDelegate) String() string
func (*MsgDelegate) Type ¶
func (msg *MsgDelegate) Type() string
func (*MsgDelegate) Unmarshal ¶
func (m *MsgDelegate) Unmarshal(dAtA []byte) error
func (*MsgDelegate) ValidateBasic ¶
func (msg *MsgDelegate) ValidateBasic() error
func (*MsgDelegate) XXX_DiscardUnknown ¶
func (m *MsgDelegate) XXX_DiscardUnknown()
func (*MsgDelegate) XXX_Marshal ¶
func (m *MsgDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDelegate) XXX_Merge ¶
func (m *MsgDelegate) XXX_Merge(src proto.Message)
func (*MsgDelegate) XXX_Size ¶
func (m *MsgDelegate) XXX_Size() int
func (*MsgDelegate) XXX_Unmarshal ¶
func (m *MsgDelegate) XXX_Unmarshal(b []byte) error
type MsgDelegateResponse ¶
type MsgDelegateResponse struct { }
func (*MsgDelegateResponse) Descriptor ¶
func (*MsgDelegateResponse) Descriptor() ([]byte, []int)
func (*MsgDelegateResponse) Marshal ¶
func (m *MsgDelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgDelegateResponse) MarshalTo ¶
func (m *MsgDelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDelegateResponse) MarshalToSizedBuffer ¶
func (m *MsgDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDelegateResponse) ProtoMessage ¶
func (*MsgDelegateResponse) ProtoMessage()
func (*MsgDelegateResponse) Reset ¶
func (m *MsgDelegateResponse) Reset()
func (*MsgDelegateResponse) Size ¶
func (m *MsgDelegateResponse) Size() (n int)
func (*MsgDelegateResponse) String ¶
func (m *MsgDelegateResponse) String() string
func (*MsgDelegateResponse) Unmarshal ¶
func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgDelegateResponse) XXX_DiscardUnknown ¶
func (m *MsgDelegateResponse) XXX_DiscardUnknown()
func (*MsgDelegateResponse) XXX_Marshal ¶
func (m *MsgDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDelegateResponse) XXX_Merge ¶
func (m *MsgDelegateResponse) XXX_Merge(src proto.Message)
func (*MsgDelegateResponse) XXX_Size ¶
func (m *MsgDelegateResponse) XXX_Size() int
func (*MsgDelegateResponse) XXX_Unmarshal ¶
func (m *MsgDelegateResponse) XXX_Unmarshal(b []byte) error
type MsgRedelegate ¶
type MsgRedelegate struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` FromProvider string `protobuf:"bytes,2,opt,name=from_provider,json=fromProvider,proto3" json:"from_provider,omitempty"` ToProvider string `protobuf:"bytes,3,opt,name=to_provider,json=toProvider,proto3" json:"to_provider,omitempty"` FromChainID string `protobuf:"bytes,4,opt,name=from_chainID,json=fromChainID,proto3" json:"from_chainID,omitempty"` ToChainID string `protobuf:"bytes,5,opt,name=to_chainID,json=toChainID,proto3" json:"to_chainID,omitempty"` Amount types.Coin `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount"` }
func NewMsgRedelegate ¶
func (*MsgRedelegate) Descriptor ¶
func (*MsgRedelegate) Descriptor() ([]byte, []int)
func (*MsgRedelegate) GetAmount ¶
func (m *MsgRedelegate) GetAmount() types.Coin
func (*MsgRedelegate) GetCreator ¶
func (m *MsgRedelegate) GetCreator() string
func (*MsgRedelegate) GetFromChainID ¶
func (m *MsgRedelegate) GetFromChainID() string
func (*MsgRedelegate) GetFromProvider ¶
func (m *MsgRedelegate) GetFromProvider() string
func (*MsgRedelegate) GetSignBytes ¶
func (msg *MsgRedelegate) GetSignBytes() []byte
func (*MsgRedelegate) GetSigners ¶
func (msg *MsgRedelegate) GetSigners() []sdk.AccAddress
func (*MsgRedelegate) GetToChainID ¶
func (m *MsgRedelegate) GetToChainID() string
func (*MsgRedelegate) GetToProvider ¶
func (m *MsgRedelegate) GetToProvider() string
func (*MsgRedelegate) Marshal ¶
func (m *MsgRedelegate) Marshal() (dAtA []byte, err error)
func (*MsgRedelegate) MarshalToSizedBuffer ¶
func (m *MsgRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRedelegate) ProtoMessage ¶
func (*MsgRedelegate) ProtoMessage()
func (*MsgRedelegate) Reset ¶
func (m *MsgRedelegate) Reset()
func (*MsgRedelegate) Route ¶
func (msg *MsgRedelegate) Route() string
func (*MsgRedelegate) Size ¶
func (m *MsgRedelegate) Size() (n int)
func (*MsgRedelegate) String ¶
func (m *MsgRedelegate) String() string
func (*MsgRedelegate) Type ¶
func (msg *MsgRedelegate) Type() string
func (*MsgRedelegate) Unmarshal ¶
func (m *MsgRedelegate) Unmarshal(dAtA []byte) error
func (*MsgRedelegate) ValidateBasic ¶
func (msg *MsgRedelegate) ValidateBasic() error
func (*MsgRedelegate) XXX_DiscardUnknown ¶
func (m *MsgRedelegate) XXX_DiscardUnknown()
func (*MsgRedelegate) XXX_Marshal ¶
func (m *MsgRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRedelegate) XXX_Merge ¶
func (m *MsgRedelegate) XXX_Merge(src proto.Message)
func (*MsgRedelegate) XXX_Size ¶
func (m *MsgRedelegate) XXX_Size() int
func (*MsgRedelegate) XXX_Unmarshal ¶
func (m *MsgRedelegate) XXX_Unmarshal(b []byte) error
type MsgRedelegateResponse ¶
type MsgRedelegateResponse struct { }
func (*MsgRedelegateResponse) Descriptor ¶
func (*MsgRedelegateResponse) Descriptor() ([]byte, []int)
func (*MsgRedelegateResponse) Marshal ¶
func (m *MsgRedelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgRedelegateResponse) MarshalTo ¶
func (m *MsgRedelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRedelegateResponse) MarshalToSizedBuffer ¶
func (m *MsgRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRedelegateResponse) ProtoMessage ¶
func (*MsgRedelegateResponse) ProtoMessage()
func (*MsgRedelegateResponse) Reset ¶
func (m *MsgRedelegateResponse) Reset()
func (*MsgRedelegateResponse) Size ¶
func (m *MsgRedelegateResponse) Size() (n int)
func (*MsgRedelegateResponse) String ¶
func (m *MsgRedelegateResponse) String() string
func (*MsgRedelegateResponse) Unmarshal ¶
func (m *MsgRedelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgRedelegateResponse) XXX_DiscardUnknown ¶
func (m *MsgRedelegateResponse) XXX_DiscardUnknown()
func (*MsgRedelegateResponse) XXX_Marshal ¶
func (m *MsgRedelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRedelegateResponse) XXX_Merge ¶
func (m *MsgRedelegateResponse) XXX_Merge(src proto.Message)
func (*MsgRedelegateResponse) XXX_Size ¶
func (m *MsgRedelegateResponse) XXX_Size() int
func (*MsgRedelegateResponse) XXX_Unmarshal ¶
func (m *MsgRedelegateResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { Delegate(context.Context, *MsgDelegate) (*MsgDelegateResponse, error) Redelegate(context.Context, *MsgRedelegate) (*MsgRedelegateResponse, error) Unbond(context.Context, *MsgUnbond) (*MsgUnbondResponse, error) ClaimRewards(context.Context, *MsgClaimRewards) (*MsgClaimRewardsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUnbond ¶
type MsgUnbond struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Validator string `protobuf:"bytes,5,opt,name=validator,proto3" json:"validator,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` ChainID string `protobuf:"bytes,3,opt,name=chainID,proto3" json:"chainID,omitempty"` Amount types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"` }
func NewMsgUnbond ¶
func (*MsgUnbond) Descriptor ¶
func (*MsgUnbond) GetChainID ¶
func (*MsgUnbond) GetCreator ¶
func (*MsgUnbond) GetProvider ¶
func (*MsgUnbond) GetSignBytes ¶
func (*MsgUnbond) GetSigners ¶
func (msg *MsgUnbond) GetSigners() []sdk.AccAddress
func (*MsgUnbond) GetValidator ¶
func (*MsgUnbond) MarshalToSizedBuffer ¶
func (*MsgUnbond) ProtoMessage ¶
func (*MsgUnbond) ProtoMessage()
func (*MsgUnbond) ValidateBasic ¶
func (*MsgUnbond) XXX_DiscardUnknown ¶
func (m *MsgUnbond) XXX_DiscardUnknown()
func (*MsgUnbond) XXX_Marshal ¶
func (*MsgUnbond) XXX_Unmarshal ¶
type MsgUnbondResponse ¶
type MsgUnbondResponse struct { }
func (*MsgUnbondResponse) Descriptor ¶
func (*MsgUnbondResponse) Descriptor() ([]byte, []int)
func (*MsgUnbondResponse) Marshal ¶
func (m *MsgUnbondResponse) Marshal() (dAtA []byte, err error)
func (*MsgUnbondResponse) MarshalTo ¶
func (m *MsgUnbondResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnbondResponse) MarshalToSizedBuffer ¶
func (m *MsgUnbondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnbondResponse) ProtoMessage ¶
func (*MsgUnbondResponse) ProtoMessage()
func (*MsgUnbondResponse) Reset ¶
func (m *MsgUnbondResponse) Reset()
func (*MsgUnbondResponse) Size ¶
func (m *MsgUnbondResponse) Size() (n int)
func (*MsgUnbondResponse) String ¶
func (m *MsgUnbondResponse) String() string
func (*MsgUnbondResponse) Unmarshal ¶
func (m *MsgUnbondResponse) Unmarshal(dAtA []byte) error
func (*MsgUnbondResponse) XXX_DiscardUnknown ¶
func (m *MsgUnbondResponse) XXX_DiscardUnknown()
func (*MsgUnbondResponse) XXX_Marshal ¶
func (m *MsgUnbondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnbondResponse) XXX_Merge ¶
func (m *MsgUnbondResponse) XXX_Merge(src proto.Message)
func (*MsgUnbondResponse) XXX_Size ¶
func (m *MsgUnbondResponse) XXX_Size() int
func (*MsgUnbondResponse) XXX_Unmarshal ¶
func (m *MsgUnbondResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct {
MinSelfDelegation types.Coin `protobuf:"bytes,1,opt,name=min_self_delegation,json=minSelfDelegation,proto3" json:"min_self_delegation"`
}
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetMinSelfDelegation ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
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) // Queries a delegator for all its providers. DelegatorProviders(ctx context.Context, in *QueryDelegatorProvidersRequest, opts ...grpc.CallOption) (*QueryDelegatorProvidersResponse, error) // Queries a provider for all its delegators. ProviderDelegators(ctx context.Context, in *QueryProviderDelegatorsRequest, opts ...grpc.CallOption) (*QueryProviderDelegatorsResponse, error) // Queries a the unclaimed rewards of a delegator. DelegatorRewards(ctx context.Context, in *QueryDelegatorRewardsRequest, opts ...grpc.CallOption) (*QueryDelegatorRewardsResponse, error) // Queries a the unclaimed rewards of a delegator. DelegatorRewardsList(ctx context.Context, in *QueryDelegatorRewardsRequest, opts ...grpc.CallOption) (*QueryDelegatorRewardsResponse, 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 QueryDelegatorProvidersRequest ¶
type QueryDelegatorProvidersRequest struct { Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"` WithPending bool `protobuf:"varint,2,opt,name=with_pending,json=withPending,proto3" json:"with_pending,omitempty"` }
func (*QueryDelegatorProvidersRequest) Descriptor ¶
func (*QueryDelegatorProvidersRequest) Descriptor() ([]byte, []int)
func (*QueryDelegatorProvidersRequest) GetDelegator ¶
func (m *QueryDelegatorProvidersRequest) GetDelegator() string
func (*QueryDelegatorProvidersRequest) GetWithPending ¶
func (m *QueryDelegatorProvidersRequest) GetWithPending() bool
func (*QueryDelegatorProvidersRequest) Marshal ¶
func (m *QueryDelegatorProvidersRequest) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorProvidersRequest) MarshalTo ¶
func (m *QueryDelegatorProvidersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorProvidersRequest) MarshalToSizedBuffer ¶
func (m *QueryDelegatorProvidersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorProvidersRequest) ProtoMessage ¶
func (*QueryDelegatorProvidersRequest) ProtoMessage()
func (*QueryDelegatorProvidersRequest) Reset ¶
func (m *QueryDelegatorProvidersRequest) Reset()
func (*QueryDelegatorProvidersRequest) Size ¶
func (m *QueryDelegatorProvidersRequest) Size() (n int)
func (*QueryDelegatorProvidersRequest) String ¶
func (m *QueryDelegatorProvidersRequest) String() string
func (*QueryDelegatorProvidersRequest) Unmarshal ¶
func (m *QueryDelegatorProvidersRequest) Unmarshal(dAtA []byte) error
func (*QueryDelegatorProvidersRequest) XXX_DiscardUnknown ¶
func (m *QueryDelegatorProvidersRequest) XXX_DiscardUnknown()
func (*QueryDelegatorProvidersRequest) XXX_Marshal ¶
func (m *QueryDelegatorProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorProvidersRequest) XXX_Merge ¶
func (m *QueryDelegatorProvidersRequest) XXX_Merge(src proto.Message)
func (*QueryDelegatorProvidersRequest) XXX_Size ¶
func (m *QueryDelegatorProvidersRequest) XXX_Size() int
func (*QueryDelegatorProvidersRequest) XXX_Unmarshal ¶
func (m *QueryDelegatorProvidersRequest) XXX_Unmarshal(b []byte) error
type QueryDelegatorProvidersResponse ¶
type QueryDelegatorProvidersResponse struct {
Delegations []Delegation `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
}
func (*QueryDelegatorProvidersResponse) Descriptor ¶
func (*QueryDelegatorProvidersResponse) Descriptor() ([]byte, []int)
func (*QueryDelegatorProvidersResponse) GetDelegations ¶
func (m *QueryDelegatorProvidersResponse) GetDelegations() []Delegation
func (*QueryDelegatorProvidersResponse) Marshal ¶
func (m *QueryDelegatorProvidersResponse) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorProvidersResponse) MarshalTo ¶
func (m *QueryDelegatorProvidersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorProvidersResponse) MarshalToSizedBuffer ¶
func (m *QueryDelegatorProvidersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorProvidersResponse) ProtoMessage ¶
func (*QueryDelegatorProvidersResponse) ProtoMessage()
func (*QueryDelegatorProvidersResponse) Reset ¶
func (m *QueryDelegatorProvidersResponse) Reset()
func (*QueryDelegatorProvidersResponse) Size ¶
func (m *QueryDelegatorProvidersResponse) Size() (n int)
func (*QueryDelegatorProvidersResponse) String ¶
func (m *QueryDelegatorProvidersResponse) String() string
func (*QueryDelegatorProvidersResponse) Unmarshal ¶
func (m *QueryDelegatorProvidersResponse) Unmarshal(dAtA []byte) error
func (*QueryDelegatorProvidersResponse) XXX_DiscardUnknown ¶
func (m *QueryDelegatorProvidersResponse) XXX_DiscardUnknown()
func (*QueryDelegatorProvidersResponse) XXX_Marshal ¶
func (m *QueryDelegatorProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorProvidersResponse) XXX_Merge ¶
func (m *QueryDelegatorProvidersResponse) XXX_Merge(src proto.Message)
func (*QueryDelegatorProvidersResponse) XXX_Size ¶
func (m *QueryDelegatorProvidersResponse) XXX_Size() int
func (*QueryDelegatorProvidersResponse) XXX_Unmarshal ¶
func (m *QueryDelegatorProvidersResponse) XXX_Unmarshal(b []byte) error
type QueryDelegatorRewardsRequest ¶
type QueryDelegatorRewardsRequest struct { Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` }
func (*QueryDelegatorRewardsRequest) Descriptor ¶
func (*QueryDelegatorRewardsRequest) Descriptor() ([]byte, []int)
func (*QueryDelegatorRewardsRequest) GetChainId ¶
func (m *QueryDelegatorRewardsRequest) GetChainId() string
func (*QueryDelegatorRewardsRequest) GetDelegator ¶
func (m *QueryDelegatorRewardsRequest) GetDelegator() string
func (*QueryDelegatorRewardsRequest) GetProvider ¶
func (m *QueryDelegatorRewardsRequest) GetProvider() string
func (*QueryDelegatorRewardsRequest) Marshal ¶
func (m *QueryDelegatorRewardsRequest) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorRewardsRequest) MarshalTo ¶
func (m *QueryDelegatorRewardsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorRewardsRequest) MarshalToSizedBuffer ¶
func (m *QueryDelegatorRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorRewardsRequest) ProtoMessage ¶
func (*QueryDelegatorRewardsRequest) ProtoMessage()
func (*QueryDelegatorRewardsRequest) Reset ¶
func (m *QueryDelegatorRewardsRequest) Reset()
func (*QueryDelegatorRewardsRequest) Size ¶
func (m *QueryDelegatorRewardsRequest) Size() (n int)
func (*QueryDelegatorRewardsRequest) String ¶
func (m *QueryDelegatorRewardsRequest) String() string
func (*QueryDelegatorRewardsRequest) Unmarshal ¶
func (m *QueryDelegatorRewardsRequest) Unmarshal(dAtA []byte) error
func (*QueryDelegatorRewardsRequest) XXX_DiscardUnknown ¶
func (m *QueryDelegatorRewardsRequest) XXX_DiscardUnknown()
func (*QueryDelegatorRewardsRequest) XXX_Marshal ¶
func (m *QueryDelegatorRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorRewardsRequest) XXX_Merge ¶
func (m *QueryDelegatorRewardsRequest) XXX_Merge(src proto.Message)
func (*QueryDelegatorRewardsRequest) XXX_Size ¶
func (m *QueryDelegatorRewardsRequest) XXX_Size() int
func (*QueryDelegatorRewardsRequest) XXX_Unmarshal ¶
func (m *QueryDelegatorRewardsRequest) XXX_Unmarshal(b []byte) error
type QueryDelegatorRewardsResponse ¶
type QueryDelegatorRewardsResponse struct {
Rewards []DelegatorRewardInfo `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"`
}
func (*QueryDelegatorRewardsResponse) Descriptor ¶
func (*QueryDelegatorRewardsResponse) Descriptor() ([]byte, []int)
func (*QueryDelegatorRewardsResponse) GetRewards ¶
func (m *QueryDelegatorRewardsResponse) GetRewards() []DelegatorRewardInfo
func (*QueryDelegatorRewardsResponse) Marshal ¶
func (m *QueryDelegatorRewardsResponse) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorRewardsResponse) MarshalTo ¶
func (m *QueryDelegatorRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorRewardsResponse) MarshalToSizedBuffer ¶
func (m *QueryDelegatorRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorRewardsResponse) ProtoMessage ¶
func (*QueryDelegatorRewardsResponse) ProtoMessage()
func (*QueryDelegatorRewardsResponse) Reset ¶
func (m *QueryDelegatorRewardsResponse) Reset()
func (*QueryDelegatorRewardsResponse) Size ¶
func (m *QueryDelegatorRewardsResponse) Size() (n int)
func (*QueryDelegatorRewardsResponse) String ¶
func (m *QueryDelegatorRewardsResponse) String() string
func (*QueryDelegatorRewardsResponse) Unmarshal ¶
func (m *QueryDelegatorRewardsResponse) Unmarshal(dAtA []byte) error
func (*QueryDelegatorRewardsResponse) XXX_DiscardUnknown ¶
func (m *QueryDelegatorRewardsResponse) XXX_DiscardUnknown()
func (*QueryDelegatorRewardsResponse) XXX_Marshal ¶
func (m *QueryDelegatorRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorRewardsResponse) XXX_Merge ¶
func (m *QueryDelegatorRewardsResponse) XXX_Merge(src proto.Message)
func (*QueryDelegatorRewardsResponse) XXX_Size ¶
func (m *QueryDelegatorRewardsResponse) XXX_Size() int
func (*QueryDelegatorRewardsResponse) XXX_Unmarshal ¶
func (m *QueryDelegatorRewardsResponse) 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 QueryProviderDelegatorsRequest ¶
type QueryProviderDelegatorsRequest struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` WithPending bool `protobuf:"varint,2,opt,name=with_pending,json=withPending,proto3" json:"with_pending,omitempty"` }
func (*QueryProviderDelegatorsRequest) Descriptor ¶
func (*QueryProviderDelegatorsRequest) Descriptor() ([]byte, []int)
func (*QueryProviderDelegatorsRequest) GetProvider ¶
func (m *QueryProviderDelegatorsRequest) GetProvider() string
func (*QueryProviderDelegatorsRequest) GetWithPending ¶
func (m *QueryProviderDelegatorsRequest) GetWithPending() bool
func (*QueryProviderDelegatorsRequest) Marshal ¶
func (m *QueryProviderDelegatorsRequest) Marshal() (dAtA []byte, err error)
func (*QueryProviderDelegatorsRequest) MarshalTo ¶
func (m *QueryProviderDelegatorsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProviderDelegatorsRequest) MarshalToSizedBuffer ¶
func (m *QueryProviderDelegatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProviderDelegatorsRequest) ProtoMessage ¶
func (*QueryProviderDelegatorsRequest) ProtoMessage()
func (*QueryProviderDelegatorsRequest) Reset ¶
func (m *QueryProviderDelegatorsRequest) Reset()
func (*QueryProviderDelegatorsRequest) Size ¶
func (m *QueryProviderDelegatorsRequest) Size() (n int)
func (*QueryProviderDelegatorsRequest) String ¶
func (m *QueryProviderDelegatorsRequest) String() string
func (*QueryProviderDelegatorsRequest) Unmarshal ¶
func (m *QueryProviderDelegatorsRequest) Unmarshal(dAtA []byte) error
func (*QueryProviderDelegatorsRequest) XXX_DiscardUnknown ¶
func (m *QueryProviderDelegatorsRequest) XXX_DiscardUnknown()
func (*QueryProviderDelegatorsRequest) XXX_Marshal ¶
func (m *QueryProviderDelegatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProviderDelegatorsRequest) XXX_Merge ¶
func (m *QueryProviderDelegatorsRequest) XXX_Merge(src proto.Message)
func (*QueryProviderDelegatorsRequest) XXX_Size ¶
func (m *QueryProviderDelegatorsRequest) XXX_Size() int
func (*QueryProviderDelegatorsRequest) XXX_Unmarshal ¶
func (m *QueryProviderDelegatorsRequest) XXX_Unmarshal(b []byte) error
type QueryProviderDelegatorsResponse ¶
type QueryProviderDelegatorsResponse struct {
Delegations []Delegation `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
}
func (*QueryProviderDelegatorsResponse) Descriptor ¶
func (*QueryProviderDelegatorsResponse) Descriptor() ([]byte, []int)
func (*QueryProviderDelegatorsResponse) GetDelegations ¶
func (m *QueryProviderDelegatorsResponse) GetDelegations() []Delegation
func (*QueryProviderDelegatorsResponse) Marshal ¶
func (m *QueryProviderDelegatorsResponse) Marshal() (dAtA []byte, err error)
func (*QueryProviderDelegatorsResponse) MarshalTo ¶
func (m *QueryProviderDelegatorsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProviderDelegatorsResponse) MarshalToSizedBuffer ¶
func (m *QueryProviderDelegatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProviderDelegatorsResponse) ProtoMessage ¶
func (*QueryProviderDelegatorsResponse) ProtoMessage()
func (*QueryProviderDelegatorsResponse) Reset ¶
func (m *QueryProviderDelegatorsResponse) Reset()
func (*QueryProviderDelegatorsResponse) Size ¶
func (m *QueryProviderDelegatorsResponse) Size() (n int)
func (*QueryProviderDelegatorsResponse) String ¶
func (m *QueryProviderDelegatorsResponse) String() string
func (*QueryProviderDelegatorsResponse) Unmarshal ¶
func (m *QueryProviderDelegatorsResponse) Unmarshal(dAtA []byte) error
func (*QueryProviderDelegatorsResponse) XXX_DiscardUnknown ¶
func (m *QueryProviderDelegatorsResponse) XXX_DiscardUnknown()
func (*QueryProviderDelegatorsResponse) XXX_Marshal ¶
func (m *QueryProviderDelegatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProviderDelegatorsResponse) XXX_Merge ¶
func (m *QueryProviderDelegatorsResponse) XXX_Merge(src proto.Message)
func (*QueryProviderDelegatorsResponse) XXX_Size ¶
func (m *QueryProviderDelegatorsResponse) XXX_Size() int
func (*QueryProviderDelegatorsResponse) XXX_Unmarshal ¶
func (m *QueryProviderDelegatorsResponse) 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 delegator for all its providers. DelegatorProviders(context.Context, *QueryDelegatorProvidersRequest) (*QueryDelegatorProvidersResponse, error) // Queries a provider for all its delegators. ProviderDelegators(context.Context, *QueryProviderDelegatorsRequest) (*QueryProviderDelegatorsResponse, error) // Queries a the unclaimed rewards of a delegator. DelegatorRewards(context.Context, *QueryDelegatorRewardsRequest) (*QueryDelegatorRewardsResponse, error) // Queries a the unclaimed rewards of a delegator. DelegatorRewardsList(context.Context, *QueryDelegatorRewardsRequest) (*QueryDelegatorRewardsResponse, error) }
QueryServer is the server API for Query service.
type SlashedValidators ¶
type SlashedValidators struct {
Validators []string `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
}
SlashedValidators defines the a list of slashed validators.
func (*SlashedValidators) Descriptor ¶
func (*SlashedValidators) Descriptor() ([]byte, []int)
func (*SlashedValidators) GetValidators ¶
func (m *SlashedValidators) GetValidators() []string
func (*SlashedValidators) Marshal ¶
func (m *SlashedValidators) Marshal() (dAtA []byte, err error)
func (*SlashedValidators) MarshalTo ¶
func (m *SlashedValidators) MarshalTo(dAtA []byte) (int, error)
func (*SlashedValidators) MarshalToSizedBuffer ¶
func (m *SlashedValidators) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SlashedValidators) ProtoMessage ¶
func (*SlashedValidators) ProtoMessage()
func (*SlashedValidators) Reset ¶
func (m *SlashedValidators) Reset()
func (*SlashedValidators) Size ¶
func (m *SlashedValidators) Size() (n int)
func (*SlashedValidators) String ¶
func (m *SlashedValidators) String() string
func (*SlashedValidators) Unmarshal ¶
func (m *SlashedValidators) Unmarshal(dAtA []byte) error
func (*SlashedValidators) XXX_DiscardUnknown ¶
func (m *SlashedValidators) XXX_DiscardUnknown()
func (*SlashedValidators) XXX_Marshal ¶
func (m *SlashedValidators) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SlashedValidators) XXX_Merge ¶
func (m *SlashedValidators) XXX_Merge(src proto.Message)
func (*SlashedValidators) XXX_Size ¶
func (m *SlashedValidators) XXX_Size() int
func (*SlashedValidators) XXX_Unmarshal ¶
func (m *SlashedValidators) XXX_Unmarshal(b []byte) error
type SpecKeeper ¶
type SpecKeeper interface { IsSpecFoundAndActive(ctx sdk.Context, chainID string) (active bool, found bool, providerType spectypes.Spec_ProvidersTypes) GetContributorReward(ctx sdk.Context, chainId string) (contributors []sdk.AccAddress, percentage math.LegacyDec) GetSpec(ctx sdk.Context, index string) (val spectypes.Spec, found bool) GetAllChainIDs(ctx sdk.Context) (chainIDs []string) GetMinStake(ctx sdk.Context, chainID string) sdk.Coin }
type StakingKeeper ¶
type StakingKeeper interface { ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingtypes.ValidatorI UnbondingTime(ctx sdk.Context) time.Duration GetAllDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress) []stakingtypes.Delegation GetDelegatorValidator(ctx sdk.Context, delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) (validator stakingtypes.Validator, err error) GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation stakingtypes.Delegation, found bool) GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool) GetValidatorDelegations(ctx sdk.Context, valAddr sdk.ValAddress) (delegations []stakingtypes.Delegation) BondDenom(ctx sdk.Context) string ValidateUnbondAmount(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt math.Int) (shares sdk.Dec, err error) Undelegate(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, sharesAmount sdk.Dec) (time.Time, error) Delegate(ctx sdk.Context, delAddr sdk.AccAddress, bondAmt math.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool) (newShares sdk.Dec, err error) GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator GetAllValidators(ctx sdk.Context) (validators []stakingtypes.Validator) }
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ClaimRewards ¶
func (*UnimplementedMsgServer) ClaimRewards(ctx context.Context, req *MsgClaimRewards) (*MsgClaimRewardsResponse, error)
func (*UnimplementedMsgServer) Delegate ¶
func (*UnimplementedMsgServer) Delegate(ctx context.Context, req *MsgDelegate) (*MsgDelegateResponse, error)
func (*UnimplementedMsgServer) Redelegate ¶
func (*UnimplementedMsgServer) Redelegate(ctx context.Context, req *MsgRedelegate) (*MsgRedelegateResponse, error)
func (*UnimplementedMsgServer) Unbond ¶
func (*UnimplementedMsgServer) Unbond(ctx context.Context, req *MsgUnbond) (*MsgUnbondResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) DelegatorProviders ¶
func (*UnimplementedQueryServer) DelegatorProviders(ctx context.Context, req *QueryDelegatorProvidersRequest) (*QueryDelegatorProvidersResponse, error)
func (*UnimplementedQueryServer) DelegatorRewards ¶
func (*UnimplementedQueryServer) DelegatorRewards(ctx context.Context, req *QueryDelegatorRewardsRequest) (*QueryDelegatorRewardsResponse, error)
func (*UnimplementedQueryServer) DelegatorRewardsList ¶
func (*UnimplementedQueryServer) DelegatorRewardsList(ctx context.Context, req *QueryDelegatorRewardsRequest) (*QueryDelegatorRewardsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) ProviderDelegators ¶
func (*UnimplementedQueryServer) ProviderDelegators(ctx context.Context, req *QueryProviderDelegatorsRequest) (*QueryProviderDelegatorsResponse, error)