Documentation
¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type AccumulatedCommission
- func (*AccumulatedCommission) Descriptor() ([]byte, []int)deprecated
- func (x *AccumulatedCommission) GetCommissions() []*DecPool
- func (*AccumulatedCommission) ProtoMessage()
- func (x *AccumulatedCommission) ProtoReflect() protoreflect.Message
- func (x *AccumulatedCommission) Reset()
- func (x *AccumulatedCommission) String() string
- type CurrentRewards
- func (*CurrentRewards) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentRewards) GetPeriod() uint64
- func (x *CurrentRewards) GetRewards() []*DecPool
- func (*CurrentRewards) ProtoMessage()
- func (x *CurrentRewards) ProtoReflect() protoreflect.Message
- func (x *CurrentRewards) Reset()
- func (x *CurrentRewards) String() string
- type CurrentRewardsRecord
- func (*CurrentRewardsRecord) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentRewardsRecord) GetDelegationTargetId() uint32
- func (x *CurrentRewardsRecord) GetRewards() *CurrentRewards
- func (*CurrentRewardsRecord) ProtoMessage()
- func (x *CurrentRewardsRecord) ProtoReflect() protoreflect.Message
- func (x *CurrentRewardsRecord) Reset()
- func (x *CurrentRewardsRecord) String() string
- type DecPool
- type DelegationDelegatorReward
- func (*DelegationDelegatorReward) Descriptor() ([]byte, []int)deprecated
- func (x *DelegationDelegatorReward) GetDelegationTargetId() uint32
- func (x *DelegationDelegatorReward) GetDelegationType() v1.DelegationType
- func (x *DelegationDelegatorReward) GetReward() []*DecPool
- func (*DelegationDelegatorReward) ProtoMessage()
- func (x *DelegationDelegatorReward) ProtoReflect() protoreflect.Message
- func (x *DelegationDelegatorReward) Reset()
- func (x *DelegationDelegatorReward) String() string
- type DelegationTypeRecords
- func (*DelegationTypeRecords) Descriptor() ([]byte, []int)deprecated
- func (x *DelegationTypeRecords) GetCurrentRewards() []*CurrentRewardsRecord
- func (x *DelegationTypeRecords) GetDelegatorStartingInfos() []*DelegatorStartingInfoRecord
- func (x *DelegationTypeRecords) GetHistoricalRewards() []*HistoricalRewardsRecord
- func (x *DelegationTypeRecords) GetOutstandingRewards() []*OutstandingRewardsRecord
- func (*DelegationTypeRecords) ProtoMessage()
- func (x *DelegationTypeRecords) ProtoReflect() protoreflect.Message
- func (x *DelegationTypeRecords) Reset()
- func (x *DelegationTypeRecords) String() string
- type DelegatorStartingInfo
- func (*DelegatorStartingInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DelegatorStartingInfo) GetHeight() uint64
- func (x *DelegatorStartingInfo) GetPreviousPeriod() uint64
- func (x *DelegatorStartingInfo) GetStakes() []*v1beta1.DecCoin
- func (*DelegatorStartingInfo) ProtoMessage()
- func (x *DelegatorStartingInfo) ProtoReflect() protoreflect.Message
- func (x *DelegatorStartingInfo) Reset()
- func (x *DelegatorStartingInfo) String() string
- type DelegatorStartingInfoRecord
- func (*DelegatorStartingInfoRecord) Descriptor() ([]byte, []int)deprecated
- func (x *DelegatorStartingInfoRecord) GetDelegationTargetId() uint32
- func (x *DelegatorStartingInfoRecord) GetDelegatorAddress() string
- func (x *DelegatorStartingInfoRecord) GetStartingInfo() *DelegatorStartingInfo
- func (*DelegatorStartingInfoRecord) ProtoMessage()
- func (x *DelegatorStartingInfoRecord) ProtoReflect() protoreflect.Message
- func (x *DelegatorStartingInfoRecord) Reset()
- func (x *DelegatorStartingInfoRecord) String() string
- type DelegatorWithdrawInfo
- func (*DelegatorWithdrawInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DelegatorWithdrawInfo) GetDelegatorAddress() string
- func (x *DelegatorWithdrawInfo) GetWithdrawAddress() string
- func (*DelegatorWithdrawInfo) ProtoMessage()
- func (x *DelegatorWithdrawInfo) ProtoReflect() protoreflect.Message
- func (x *DelegatorWithdrawInfo) Reset()
- func (x *DelegatorWithdrawInfo) String() string
- type Distribution
- func (*Distribution) Descriptor() ([]byte, []int)deprecated
- func (x *Distribution) GetDelegationType() v1.DelegationType
- func (x *Distribution) GetType_() *anypb.Any
- func (x *Distribution) GetWeight() uint32
- func (*Distribution) ProtoMessage()
- func (x *Distribution) ProtoReflect() protoreflect.Message
- func (x *Distribution) Reset()
- func (x *Distribution) String() string
- type DistributionTypeBasic
- type DistributionTypeEgalitarian
- type DistributionTypeWeighted
- func (*DistributionTypeWeighted) Descriptor() ([]byte, []int)deprecated
- func (x *DistributionTypeWeighted) GetWeights() []*DistributionWeight
- func (*DistributionTypeWeighted) ProtoMessage()
- func (x *DistributionTypeWeighted) ProtoReflect() protoreflect.Message
- func (x *DistributionTypeWeighted) Reset()
- func (x *DistributionTypeWeighted) String() string
- type DistributionWeight
- func (*DistributionWeight) Descriptor() ([]byte, []int)deprecated
- func (x *DistributionWeight) GetDelegationTargetId() uint32
- func (x *DistributionWeight) GetWeight() uint32
- func (*DistributionWeight) ProtoMessage()
- func (x *DistributionWeight) ProtoReflect() protoreflect.Message
- func (x *DistributionWeight) Reset()
- func (x *DistributionWeight) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetDelegatorWithdrawInfos() []*DelegatorWithdrawInfo
- func (x *GenesisState) GetLastRewardsAllocationTime() *timestamppb.Timestamp
- func (x *GenesisState) GetNextRewardsPlanId() uint64
- func (x *GenesisState) GetOperatorAccumulatedCommissions() []*OperatorAccumulatedCommissionRecord
- func (x *GenesisState) GetOperatorsRecords() *DelegationTypeRecords
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetPoolsRecords() *DelegationTypeRecords
- func (x *GenesisState) GetRewardsPlans() []*RewardsPlan
- func (x *GenesisState) GetServicesRecords() *DelegationTypeRecords
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type HistoricalRewards
- func (*HistoricalRewards) Descriptor() ([]byte, []int)deprecated
- func (x *HistoricalRewards) GetCumulativeRewardRatios() []*DecPool
- func (x *HistoricalRewards) GetReferenceCount() uint32
- func (*HistoricalRewards) ProtoMessage()
- func (x *HistoricalRewards) ProtoReflect() protoreflect.Message
- func (x *HistoricalRewards) Reset()
- func (x *HistoricalRewards) String() string
- type HistoricalRewardsRecord
- func (*HistoricalRewardsRecord) Descriptor() ([]byte, []int)deprecated
- func (x *HistoricalRewardsRecord) GetDelegationTargetId() uint32
- func (x *HistoricalRewardsRecord) GetPeriod() uint64
- func (x *HistoricalRewardsRecord) GetRewards() *HistoricalRewards
- func (*HistoricalRewardsRecord) ProtoMessage()
- func (x *HistoricalRewardsRecord) ProtoReflect() protoreflect.Message
- func (x *HistoricalRewardsRecord) Reset()
- func (x *HistoricalRewardsRecord) String() string
- type MsgClient
- type MsgCreateRewardsPlan
- func (*MsgCreateRewardsPlan) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateRewardsPlan) GetAmount() []*v1beta1.Coin
- func (x *MsgCreateRewardsPlan) GetDescription() string
- func (x *MsgCreateRewardsPlan) GetEndTime() *timestamppb.Timestamp
- func (x *MsgCreateRewardsPlan) GetOperatorsDistribution() *Distribution
- func (x *MsgCreateRewardsPlan) GetPoolsDistribution() *Distribution
- func (x *MsgCreateRewardsPlan) GetSender() string
- func (x *MsgCreateRewardsPlan) GetServiceId() uint32
- func (x *MsgCreateRewardsPlan) GetStartTime() *timestamppb.Timestamp
- func (x *MsgCreateRewardsPlan) GetUsersDistribution() *UsersDistribution
- func (*MsgCreateRewardsPlan) ProtoMessage()
- func (x *MsgCreateRewardsPlan) ProtoReflect() protoreflect.Message
- func (x *MsgCreateRewardsPlan) Reset()
- func (x *MsgCreateRewardsPlan) String() string
- type MsgCreateRewardsPlanResponse
- func (*MsgCreateRewardsPlanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateRewardsPlanResponse) GetNewRewardsPlanId() uint64
- func (*MsgCreateRewardsPlanResponse) ProtoMessage()
- func (x *MsgCreateRewardsPlanResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCreateRewardsPlanResponse) Reset()
- func (x *MsgCreateRewardsPlanResponse) String() string
- type MsgServer
- type MsgSetWithdrawAddress
- func (*MsgSetWithdrawAddress) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSetWithdrawAddress) GetSender() string
- func (x *MsgSetWithdrawAddress) GetWithdrawAddress() string
- func (*MsgSetWithdrawAddress) ProtoMessage()
- func (x *MsgSetWithdrawAddress) ProtoReflect() protoreflect.Message
- func (x *MsgSetWithdrawAddress) Reset()
- func (x *MsgSetWithdrawAddress) String() string
- type MsgSetWithdrawAddressResponse
- func (*MsgSetWithdrawAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgSetWithdrawAddressResponse) ProtoMessage()
- func (x *MsgSetWithdrawAddressResponse) ProtoReflect() protoreflect.Message
- func (x *MsgSetWithdrawAddressResponse) Reset()
- func (x *MsgSetWithdrawAddressResponse) String() string
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type MsgWithdrawDelegatorReward
- func (*MsgWithdrawDelegatorReward) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWithdrawDelegatorReward) GetDelegationTargetId() uint32
- func (x *MsgWithdrawDelegatorReward) GetDelegationType() v1.DelegationType
- func (x *MsgWithdrawDelegatorReward) GetDelegatorAddress() string
- func (*MsgWithdrawDelegatorReward) ProtoMessage()
- func (x *MsgWithdrawDelegatorReward) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawDelegatorReward) Reset()
- func (x *MsgWithdrawDelegatorReward) String() string
- type MsgWithdrawDelegatorRewardResponse
- func (*MsgWithdrawDelegatorRewardResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWithdrawDelegatorRewardResponse) GetAmount() []*v1beta1.Coin
- func (*MsgWithdrawDelegatorRewardResponse) ProtoMessage()
- func (x *MsgWithdrawDelegatorRewardResponse) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawDelegatorRewardResponse) Reset()
- func (x *MsgWithdrawDelegatorRewardResponse) String() string
- type MsgWithdrawOperatorCommission
- func (*MsgWithdrawOperatorCommission) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWithdrawOperatorCommission) GetOperatorId() uint32
- func (x *MsgWithdrawOperatorCommission) GetSender() string
- func (*MsgWithdrawOperatorCommission) ProtoMessage()
- func (x *MsgWithdrawOperatorCommission) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawOperatorCommission) Reset()
- func (x *MsgWithdrawOperatorCommission) String() string
- type MsgWithdrawOperatorCommissionResponse
- func (*MsgWithdrawOperatorCommissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWithdrawOperatorCommissionResponse) GetAmount() []*v1beta1.Coin
- func (*MsgWithdrawOperatorCommissionResponse) ProtoMessage()
- func (x *MsgWithdrawOperatorCommissionResponse) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawOperatorCommissionResponse) Reset()
- func (x *MsgWithdrawOperatorCommissionResponse) String() string
- type OperatorAccumulatedCommissionRecord
- func (*OperatorAccumulatedCommissionRecord) Descriptor() ([]byte, []int)deprecated
- func (x *OperatorAccumulatedCommissionRecord) GetAccumulated() *AccumulatedCommission
- func (x *OperatorAccumulatedCommissionRecord) GetOperatorId() uint32
- func (*OperatorAccumulatedCommissionRecord) ProtoMessage()
- func (x *OperatorAccumulatedCommissionRecord) ProtoReflect() protoreflect.Message
- func (x *OperatorAccumulatedCommissionRecord) Reset()
- func (x *OperatorAccumulatedCommissionRecord) String() string
- type OutstandingRewards
- func (*OutstandingRewards) Descriptor() ([]byte, []int)deprecated
- func (x *OutstandingRewards) GetRewards() []*DecPool
- func (*OutstandingRewards) ProtoMessage()
- func (x *OutstandingRewards) ProtoReflect() protoreflect.Message
- func (x *OutstandingRewards) Reset()
- func (x *OutstandingRewards) String() string
- type OutstandingRewardsRecord
- func (*OutstandingRewardsRecord) Descriptor() ([]byte, []int)deprecated
- func (x *OutstandingRewardsRecord) GetDelegationTargetId() uint32
- func (x *OutstandingRewardsRecord) GetOutstandingRewards() []*DecPool
- func (*OutstandingRewardsRecord) ProtoMessage()
- func (x *OutstandingRewardsRecord) ProtoReflect() protoreflect.Message
- func (x *OutstandingRewardsRecord) Reset()
- func (x *OutstandingRewardsRecord) String() string
- type Params
- type Pool
- type QueryClient
- type QueryDelegatorTotalRewardsRequest
- func (*QueryDelegatorTotalRewardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDelegatorTotalRewardsRequest) GetDelegatorAddress() string
- func (*QueryDelegatorTotalRewardsRequest) ProtoMessage()
- func (x *QueryDelegatorTotalRewardsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDelegatorTotalRewardsRequest) Reset()
- func (x *QueryDelegatorTotalRewardsRequest) String() string
- type QueryDelegatorTotalRewardsResponse
- func (*QueryDelegatorTotalRewardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDelegatorTotalRewardsResponse) GetRewards() []*DelegationDelegatorReward
- func (x *QueryDelegatorTotalRewardsResponse) GetTotal() []*DecPool
- func (*QueryDelegatorTotalRewardsResponse) ProtoMessage()
- func (x *QueryDelegatorTotalRewardsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDelegatorTotalRewardsResponse) Reset()
- func (x *QueryDelegatorTotalRewardsResponse) String() string
- type QueryDelegatorWithdrawAddressRequest
- func (*QueryDelegatorWithdrawAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDelegatorWithdrawAddressRequest) GetDelegatorAddress() string
- func (*QueryDelegatorWithdrawAddressRequest) ProtoMessage()
- func (x *QueryDelegatorWithdrawAddressRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDelegatorWithdrawAddressRequest) Reset()
- func (x *QueryDelegatorWithdrawAddressRequest) String() string
- type QueryDelegatorWithdrawAddressResponse
- func (*QueryDelegatorWithdrawAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDelegatorWithdrawAddressResponse) GetWithdrawAddress() string
- func (*QueryDelegatorWithdrawAddressResponse) ProtoMessage()
- func (x *QueryDelegatorWithdrawAddressResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDelegatorWithdrawAddressResponse) Reset()
- func (x *QueryDelegatorWithdrawAddressResponse) String() string
- type QueryOperatorCommissionRequest
- func (*QueryOperatorCommissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorCommissionRequest) GetOperatorId() uint32
- func (*QueryOperatorCommissionRequest) ProtoMessage()
- func (x *QueryOperatorCommissionRequest) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorCommissionRequest) Reset()
- func (x *QueryOperatorCommissionRequest) String() string
- type QueryOperatorCommissionResponse
- func (*QueryOperatorCommissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorCommissionResponse) GetCommission() *AccumulatedCommission
- func (*QueryOperatorCommissionResponse) ProtoMessage()
- func (x *QueryOperatorCommissionResponse) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorCommissionResponse) Reset()
- func (x *QueryOperatorCommissionResponse) String() string
- type QueryOperatorDelegationRewardsRequest
- func (*QueryOperatorDelegationRewardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorDelegationRewardsRequest) GetDelegatorAddress() string
- func (x *QueryOperatorDelegationRewardsRequest) GetOperatorId() uint32
- func (*QueryOperatorDelegationRewardsRequest) ProtoMessage()
- func (x *QueryOperatorDelegationRewardsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorDelegationRewardsRequest) Reset()
- func (x *QueryOperatorDelegationRewardsRequest) String() string
- type QueryOperatorDelegationRewardsResponse
- func (*QueryOperatorDelegationRewardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorDelegationRewardsResponse) GetRewards() []*DecPool
- func (*QueryOperatorDelegationRewardsResponse) ProtoMessage()
- func (x *QueryOperatorDelegationRewardsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorDelegationRewardsResponse) Reset()
- func (x *QueryOperatorDelegationRewardsResponse) String() string
- type QueryOperatorOutstandingRewardsRequest
- func (*QueryOperatorOutstandingRewardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorOutstandingRewardsRequest) GetOperatorId() uint32
- func (*QueryOperatorOutstandingRewardsRequest) ProtoMessage()
- func (x *QueryOperatorOutstandingRewardsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorOutstandingRewardsRequest) Reset()
- func (x *QueryOperatorOutstandingRewardsRequest) String() string
- type QueryOperatorOutstandingRewardsResponse
- func (*QueryOperatorOutstandingRewardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorOutstandingRewardsResponse) GetRewards() *OutstandingRewards
- func (*QueryOperatorOutstandingRewardsResponse) ProtoMessage()
- func (x *QueryOperatorOutstandingRewardsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorOutstandingRewardsResponse) Reset()
- func (x *QueryOperatorOutstandingRewardsResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryPoolDelegationRewardsRequest
- func (*QueryPoolDelegationRewardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPoolDelegationRewardsRequest) GetDelegatorAddress() string
- func (x *QueryPoolDelegationRewardsRequest) GetPoolId() uint32
- func (*QueryPoolDelegationRewardsRequest) ProtoMessage()
- func (x *QueryPoolDelegationRewardsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryPoolDelegationRewardsRequest) Reset()
- func (x *QueryPoolDelegationRewardsRequest) String() string
- type QueryPoolDelegationRewardsResponse
- func (*QueryPoolDelegationRewardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPoolDelegationRewardsResponse) GetRewards() []*DecPool
- func (*QueryPoolDelegationRewardsResponse) ProtoMessage()
- func (x *QueryPoolDelegationRewardsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryPoolDelegationRewardsResponse) Reset()
- func (x *QueryPoolDelegationRewardsResponse) String() string
- type QueryPoolOutstandingRewardsRequest
- func (*QueryPoolOutstandingRewardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPoolOutstandingRewardsRequest) GetPoolId() uint32
- func (*QueryPoolOutstandingRewardsRequest) ProtoMessage()
- func (x *QueryPoolOutstandingRewardsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryPoolOutstandingRewardsRequest) Reset()
- func (x *QueryPoolOutstandingRewardsRequest) String() string
- type QueryPoolOutstandingRewardsResponse
- func (*QueryPoolOutstandingRewardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPoolOutstandingRewardsResponse) GetRewards() *OutstandingRewards
- func (*QueryPoolOutstandingRewardsResponse) ProtoMessage()
- func (x *QueryPoolOutstandingRewardsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryPoolOutstandingRewardsResponse) Reset()
- func (x *QueryPoolOutstandingRewardsResponse) String() string
- type QueryRewardsPlanRequest
- func (*QueryRewardsPlanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRewardsPlanRequest) GetPlanId() uint64
- func (*QueryRewardsPlanRequest) ProtoMessage()
- func (x *QueryRewardsPlanRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRewardsPlanRequest) Reset()
- func (x *QueryRewardsPlanRequest) String() string
- type QueryRewardsPlanResponse
- func (*QueryRewardsPlanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRewardsPlanResponse) GetRewardsPlan() *RewardsPlan
- func (*QueryRewardsPlanResponse) ProtoMessage()
- func (x *QueryRewardsPlanResponse) ProtoReflect() protoreflect.Message
- func (x *QueryRewardsPlanResponse) Reset()
- func (x *QueryRewardsPlanResponse) String() string
- type QueryRewardsPlansRequest
- func (*QueryRewardsPlansRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRewardsPlansRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryRewardsPlansRequest) ProtoMessage()
- func (x *QueryRewardsPlansRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRewardsPlansRequest) Reset()
- func (x *QueryRewardsPlansRequest) String() string
- type QueryRewardsPlansResponse
- func (*QueryRewardsPlansResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRewardsPlansResponse) GetPagination() *v1beta1.PageResponse
- func (x *QueryRewardsPlansResponse) GetRewardsPlans() []*RewardsPlan
- func (*QueryRewardsPlansResponse) ProtoMessage()
- func (x *QueryRewardsPlansResponse) ProtoReflect() protoreflect.Message
- func (x *QueryRewardsPlansResponse) Reset()
- func (x *QueryRewardsPlansResponse) String() string
- type QueryServer
- type QueryServiceDelegationRewardsRequest
- func (*QueryServiceDelegationRewardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryServiceDelegationRewardsRequest) GetDelegatorAddress() string
- func (x *QueryServiceDelegationRewardsRequest) GetServiceId() uint32
- func (*QueryServiceDelegationRewardsRequest) ProtoMessage()
- func (x *QueryServiceDelegationRewardsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryServiceDelegationRewardsRequest) Reset()
- func (x *QueryServiceDelegationRewardsRequest) String() string
- type QueryServiceDelegationRewardsResponse
- func (*QueryServiceDelegationRewardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryServiceDelegationRewardsResponse) GetRewards() []*DecPool
- func (*QueryServiceDelegationRewardsResponse) ProtoMessage()
- func (x *QueryServiceDelegationRewardsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryServiceDelegationRewardsResponse) Reset()
- func (x *QueryServiceDelegationRewardsResponse) String() string
- type QueryServiceOutstandingRewardsRequest
- func (*QueryServiceOutstandingRewardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryServiceOutstandingRewardsRequest) GetServiceId() uint32
- func (*QueryServiceOutstandingRewardsRequest) ProtoMessage()
- func (x *QueryServiceOutstandingRewardsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryServiceOutstandingRewardsRequest) Reset()
- func (x *QueryServiceOutstandingRewardsRequest) String() string
- type QueryServiceOutstandingRewardsResponse
- func (*QueryServiceOutstandingRewardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryServiceOutstandingRewardsResponse) GetRewards() *OutstandingRewards
- func (*QueryServiceOutstandingRewardsResponse) ProtoMessage()
- func (x *QueryServiceOutstandingRewardsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryServiceOutstandingRewardsResponse) Reset()
- func (x *QueryServiceOutstandingRewardsResponse) String() string
- type RewardsPlan
- func (*RewardsPlan) Descriptor() ([]byte, []int)deprecated
- func (x *RewardsPlan) GetAmountPerDay() []*v1beta1.Coin
- func (x *RewardsPlan) GetDescription() string
- func (x *RewardsPlan) GetEndTime() *timestamppb.Timestamp
- func (x *RewardsPlan) GetId() uint64
- func (x *RewardsPlan) GetOperatorsDistribution() *Distribution
- func (x *RewardsPlan) GetPoolsDistribution() *Distribution
- func (x *RewardsPlan) GetRewardsPool() string
- func (x *RewardsPlan) GetServiceId() uint32
- func (x *RewardsPlan) GetStartTime() *timestamppb.Timestamp
- func (x *RewardsPlan) GetUsersDistribution() *UsersDistribution
- func (*RewardsPlan) ProtoMessage()
- func (x *RewardsPlan) ProtoReflect() protoreflect.Message
- func (x *RewardsPlan) Reset()
- func (x *RewardsPlan) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) CreateRewardsPlan(context.Context, *MsgCreateRewardsPlan) (*MsgCreateRewardsPlanResponse, error)
- func (UnimplementedMsgServer) SetWithdrawAddress(context.Context, *MsgSetWithdrawAddress) (*MsgSetWithdrawAddressResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (UnimplementedMsgServer) WithdrawDelegatorReward(context.Context, *MsgWithdrawDelegatorReward) (*MsgWithdrawDelegatorRewardResponse, error)
- func (UnimplementedMsgServer) WithdrawOperatorCommission(context.Context, *MsgWithdrawOperatorCommission) (*MsgWithdrawOperatorCommissionResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) DelegatorTotalRewards(context.Context, *QueryDelegatorTotalRewardsRequest) (*QueryDelegatorTotalRewardsResponse, error)
- func (UnimplementedQueryServer) DelegatorWithdrawAddress(context.Context, *QueryDelegatorWithdrawAddressRequest) (*QueryDelegatorWithdrawAddressResponse, error)
- func (UnimplementedQueryServer) OperatorCommission(context.Context, *QueryOperatorCommissionRequest) (*QueryOperatorCommissionResponse, error)
- func (UnimplementedQueryServer) OperatorDelegationRewards(context.Context, *QueryOperatorDelegationRewardsRequest) (*QueryOperatorDelegationRewardsResponse, error)
- func (UnimplementedQueryServer) OperatorOutstandingRewards(context.Context, *QueryOperatorOutstandingRewardsRequest) (*QueryOperatorOutstandingRewardsResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) PoolDelegationRewards(context.Context, *QueryPoolDelegationRewardsRequest) (*QueryPoolDelegationRewardsResponse, error)
- func (UnimplementedQueryServer) PoolOutstandingRewards(context.Context, *QueryPoolOutstandingRewardsRequest) (*QueryPoolOutstandingRewardsResponse, error)
- func (UnimplementedQueryServer) RewardsPlan(context.Context, *QueryRewardsPlanRequest) (*QueryRewardsPlanResponse, error)
- func (UnimplementedQueryServer) RewardsPlans(context.Context, *QueryRewardsPlansRequest) (*QueryRewardsPlansResponse, error)
- func (UnimplementedQueryServer) ServiceDelegationRewards(context.Context, *QueryServiceDelegationRewardsRequest) (*QueryServiceDelegationRewardsResponse, error)
- func (UnimplementedQueryServer) ServiceOutstandingRewards(context.Context, *QueryServiceOutstandingRewardsRequest) (*QueryServiceOutstandingRewardsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type UsersDistribution
- func (*UsersDistribution) Descriptor() ([]byte, []int)deprecated
- func (x *UsersDistribution) GetType_() *anypb.Any
- func (x *UsersDistribution) GetWeight() uint32
- func (*UsersDistribution) ProtoMessage()
- func (x *UsersDistribution) ProtoReflect() protoreflect.Message
- func (x *UsersDistribution) Reset()
- func (x *UsersDistribution) String() string
- type UsersDistributionTypeBasic
Constants ¶
const ( Msg_CreateRewardsPlan_FullMethodName = "/milkyway.rewards.v1.Msg/CreateRewardsPlan" Msg_SetWithdrawAddress_FullMethodName = "/milkyway.rewards.v1.Msg/SetWithdrawAddress" Msg_WithdrawDelegatorReward_FullMethodName = "/milkyway.rewards.v1.Msg/WithdrawDelegatorReward" Msg_WithdrawOperatorCommission_FullMethodName = "/milkyway.rewards.v1.Msg/WithdrawOperatorCommission" Msg_UpdateParams_FullMethodName = "/milkyway.rewards.v1.Msg/UpdateParams" )
const ( Query_Params_FullMethodName = "/milkyway.rewards.v1.Query/Params" Query_RewardsPlans_FullMethodName = "/milkyway.rewards.v1.Query/RewardsPlans" Query_RewardsPlan_FullMethodName = "/milkyway.rewards.v1.Query/RewardsPlan" Query_PoolOutstandingRewards_FullMethodName = "/milkyway.rewards.v1.Query/PoolOutstandingRewards" Query_OperatorOutstandingRewards_FullMethodName = "/milkyway.rewards.v1.Query/OperatorOutstandingRewards" Query_ServiceOutstandingRewards_FullMethodName = "/milkyway.rewards.v1.Query/ServiceOutstandingRewards" Query_OperatorCommission_FullMethodName = "/milkyway.rewards.v1.Query/OperatorCommission" Query_PoolDelegationRewards_FullMethodName = "/milkyway.rewards.v1.Query/PoolDelegationRewards" Query_OperatorDelegationRewards_FullMethodName = "/milkyway.rewards.v1.Query/OperatorDelegationRewards" Query_ServiceDelegationRewards_FullMethodName = "/milkyway.rewards.v1.Query/ServiceDelegationRewards" Query_DelegatorTotalRewards_FullMethodName = "/milkyway.rewards.v1.Query/DelegatorTotalRewards" Query_DelegatorWithdrawAddress_FullMethodName = "/milkyway.rewards.v1.Query/DelegatorWithdrawAddress" )
Variables ¶
var File_milkyway_rewards_v1_genesis_proto protoreflect.FileDescriptor
var File_milkyway_rewards_v1_messages_proto protoreflect.FileDescriptor
var File_milkyway_rewards_v1_models_proto protoreflect.FileDescriptor
var File_milkyway_rewards_v1_params_proto protoreflect.FileDescriptor
var File_milkyway_rewards_v1_query_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "milkyway.rewards.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRewardsPlan", Handler: _Msg_CreateRewardsPlan_Handler, }, { MethodName: "SetWithdrawAddress", Handler: _Msg_SetWithdrawAddress_Handler, }, { MethodName: "WithdrawDelegatorReward", Handler: _Msg_WithdrawDelegatorReward_Handler, }, { MethodName: "WithdrawOperatorCommission", Handler: _Msg_WithdrawOperatorCommission_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "milkyway/rewards/v1/messages.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "milkyway.rewards.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "RewardsPlans", Handler: _Query_RewardsPlans_Handler, }, { MethodName: "RewardsPlan", Handler: _Query_RewardsPlan_Handler, }, { MethodName: "PoolOutstandingRewards", Handler: _Query_PoolOutstandingRewards_Handler, }, { MethodName: "OperatorOutstandingRewards", Handler: _Query_OperatorOutstandingRewards_Handler, }, { MethodName: "ServiceOutstandingRewards", Handler: _Query_ServiceOutstandingRewards_Handler, }, { MethodName: "OperatorCommission", Handler: _Query_OperatorCommission_Handler, }, { MethodName: "PoolDelegationRewards", Handler: _Query_PoolDelegationRewards_Handler, }, { MethodName: "OperatorDelegationRewards", Handler: _Query_OperatorDelegationRewards_Handler, }, { MethodName: "ServiceDelegationRewards", Handler: _Query_ServiceDelegationRewards_Handler, }, { MethodName: "DelegatorTotalRewards", Handler: _Query_DelegatorTotalRewards_Handler, }, { MethodName: "DelegatorWithdrawAddress", Handler: _Query_DelegatorWithdrawAddress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "milkyway/rewards/v1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type AccumulatedCommission ¶
type AccumulatedCommission struct { Commissions []*DecPool `protobuf:"bytes,1,rep,name=commissions,proto3" json:"commissions,omitempty"` // contains filtered or unexported fields }
AccumulatedCommission represents accumulated commission for a delegation target kept as a running counter, can be withdrawn at any time.
func (*AccumulatedCommission) Descriptor
deprecated
func (*AccumulatedCommission) Descriptor() ([]byte, []int)
Deprecated: Use AccumulatedCommission.ProtoReflect.Descriptor instead.
func (*AccumulatedCommission) GetCommissions ¶
func (x *AccumulatedCommission) GetCommissions() []*DecPool
func (*AccumulatedCommission) ProtoMessage ¶
func (*AccumulatedCommission) ProtoMessage()
func (*AccumulatedCommission) ProtoReflect ¶
func (x *AccumulatedCommission) ProtoReflect() protoreflect.Message
func (*AccumulatedCommission) Reset ¶
func (x *AccumulatedCommission) Reset()
func (*AccumulatedCommission) String ¶
func (x *AccumulatedCommission) String() string
type CurrentRewards ¶
type CurrentRewards struct { Rewards []*DecPool `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` // contains filtered or unexported fields }
CurrentRewards represents current rewards and current period for a delegation target kept as a running counter and incremented each block as long as the delegation target's tokens remain constant.
func (*CurrentRewards) Descriptor
deprecated
func (*CurrentRewards) Descriptor() ([]byte, []int)
Deprecated: Use CurrentRewards.ProtoReflect.Descriptor instead.
func (*CurrentRewards) GetPeriod ¶
func (x *CurrentRewards) GetPeriod() uint64
func (*CurrentRewards) GetRewards ¶
func (x *CurrentRewards) GetRewards() []*DecPool
func (*CurrentRewards) ProtoMessage ¶
func (*CurrentRewards) ProtoMessage()
func (*CurrentRewards) ProtoReflect ¶
func (x *CurrentRewards) ProtoReflect() protoreflect.Message
func (*CurrentRewards) Reset ¶
func (x *CurrentRewards) Reset()
func (*CurrentRewards) String ¶
func (x *CurrentRewards) String() string
type CurrentRewardsRecord ¶
type CurrentRewardsRecord struct { // delegation_target_id is the ID of the delegation target. DelegationTargetId uint32 `protobuf:"varint,1,opt,name=delegation_target_id,json=delegationTargetId,proto3" json:"delegation_target_id,omitempty"` // rewards defines the current rewards of the delegation target. Rewards *CurrentRewards `protobuf:"bytes,2,opt,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
CurrentRewardsRecord is used for import / export via genesis json.
func (*CurrentRewardsRecord) Descriptor
deprecated
func (*CurrentRewardsRecord) Descriptor() ([]byte, []int)
Deprecated: Use CurrentRewardsRecord.ProtoReflect.Descriptor instead.
func (*CurrentRewardsRecord) GetDelegationTargetId ¶
func (x *CurrentRewardsRecord) GetDelegationTargetId() uint32
func (*CurrentRewardsRecord) GetRewards ¶
func (x *CurrentRewardsRecord) GetRewards() *CurrentRewards
func (*CurrentRewardsRecord) ProtoMessage ¶
func (*CurrentRewardsRecord) ProtoMessage()
func (*CurrentRewardsRecord) ProtoReflect ¶
func (x *CurrentRewardsRecord) ProtoReflect() protoreflect.Message
func (*CurrentRewardsRecord) Reset ¶
func (x *CurrentRewardsRecord) Reset()
func (*CurrentRewardsRecord) String ¶
func (x *CurrentRewardsRecord) String() string
type DecPool ¶
type DecPool struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` DecCoins []*v1beta1.DecCoin `protobuf:"bytes,2,rep,name=dec_coins,json=decCoins,proto3" json:"dec_coins,omitempty"` // contains filtered or unexported fields }
DecPool is a DecCoins wrapper with denom which represents the rewards pool for the given denom. It is used to represent the rewards associated with the denom.
func (*DecPool) Descriptor
deprecated
func (*DecPool) GetDecCoins ¶
func (*DecPool) ProtoMessage ¶
func (*DecPool) ProtoMessage()
func (*DecPool) ProtoReflect ¶
func (x *DecPool) ProtoReflect() protoreflect.Message
type DelegationDelegatorReward ¶
type DelegationDelegatorReward struct { DelegationType v1.DelegationType `` /* 146-byte string literal not displayed */ DelegationTargetId uint32 `protobuf:"varint,2,opt,name=delegation_target_id,json=delegationTargetId,proto3" json:"delegation_target_id,omitempty"` Reward []*DecPool `protobuf:"bytes,3,rep,name=reward,proto3" json:"reward,omitempty"` // contains filtered or unexported fields }
DelegationDelegatorReward represents the properties of a delegator's delegation reward. The delegator address implicit in the within the query request.
func (*DelegationDelegatorReward) Descriptor
deprecated
func (*DelegationDelegatorReward) Descriptor() ([]byte, []int)
Deprecated: Use DelegationDelegatorReward.ProtoReflect.Descriptor instead.
func (*DelegationDelegatorReward) GetDelegationTargetId ¶
func (x *DelegationDelegatorReward) GetDelegationTargetId() uint32
func (*DelegationDelegatorReward) GetDelegationType ¶
func (x *DelegationDelegatorReward) GetDelegationType() v1.DelegationType
func (*DelegationDelegatorReward) GetReward ¶
func (x *DelegationDelegatorReward) GetReward() []*DecPool
func (*DelegationDelegatorReward) ProtoMessage ¶
func (*DelegationDelegatorReward) ProtoMessage()
func (*DelegationDelegatorReward) ProtoReflect ¶
func (x *DelegationDelegatorReward) ProtoReflect() protoreflect.Message
func (*DelegationDelegatorReward) Reset ¶
func (x *DelegationDelegatorReward) Reset()
func (*DelegationDelegatorReward) String ¶
func (x *DelegationDelegatorReward) String() string
type DelegationTypeRecords ¶
type DelegationTypeRecords struct { // outstanding_rewards defines the outstanding rewards of all delegation // targets with the same delegation type at genesis. OutstandingRewards []*OutstandingRewardsRecord `protobuf:"bytes,1,rep,name=outstanding_rewards,json=outstandingRewards,proto3" json:"outstanding_rewards,omitempty"` // historical_rewards defines the historical rewards of all delegation targets // with the same delegation type at genesis. HistoricalRewards []*HistoricalRewardsRecord `protobuf:"bytes,2,rep,name=historical_rewards,json=historicalRewards,proto3" json:"historical_rewards,omitempty"` // current_rewards defines the current rewards of all delegation targets with // the same delegation type at genesis. CurrentRewards []*CurrentRewardsRecord `protobuf:"bytes,3,rep,name=current_rewards,json=currentRewards,proto3" json:"current_rewards,omitempty"` // delegator_starting_infos defines the delegator starting infos of all // delegation targets with the same delegation type at genesis. DelegatorStartingInfos []*DelegatorStartingInfoRecord `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
DelegationTypeRecords groups various genesis records under the same type of delegation target.
func (*DelegationTypeRecords) Descriptor
deprecated
func (*DelegationTypeRecords) Descriptor() ([]byte, []int)
Deprecated: Use DelegationTypeRecords.ProtoReflect.Descriptor instead.
func (*DelegationTypeRecords) GetCurrentRewards ¶
func (x *DelegationTypeRecords) GetCurrentRewards() []*CurrentRewardsRecord
func (*DelegationTypeRecords) GetDelegatorStartingInfos ¶
func (x *DelegationTypeRecords) GetDelegatorStartingInfos() []*DelegatorStartingInfoRecord
func (*DelegationTypeRecords) GetHistoricalRewards ¶
func (x *DelegationTypeRecords) GetHistoricalRewards() []*HistoricalRewardsRecord
func (*DelegationTypeRecords) GetOutstandingRewards ¶
func (x *DelegationTypeRecords) GetOutstandingRewards() []*OutstandingRewardsRecord
func (*DelegationTypeRecords) ProtoMessage ¶
func (*DelegationTypeRecords) ProtoMessage()
func (*DelegationTypeRecords) ProtoReflect ¶
func (x *DelegationTypeRecords) ProtoReflect() protoreflect.Message
func (*DelegationTypeRecords) Reset ¶
func (x *DelegationTypeRecords) Reset()
func (*DelegationTypeRecords) String ¶
func (x *DelegationTypeRecords) String() string
type DelegatorStartingInfo ¶
type DelegatorStartingInfo struct { PreviousPeriod uint64 `protobuf:"varint,1,opt,name=previous_period,json=previousPeriod,proto3" json:"previous_period,omitempty"` Stakes []*v1beta1.DecCoin `protobuf:"bytes,2,rep,name=stakes,proto3" json:"stakes,omitempty"` Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
DelegatorStartingInfo represents the starting info for a delegator reward period. It tracks the previous delegation target period, the delegation's amount of staking token, and the creation height (to check later on if any slashes have occurred). NOTE: Even though validators are slashed to whole staking tokens, the delegators within the validator may be left with less than a full token, thus sdk.Dec is used.
func (*DelegatorStartingInfo) Descriptor
deprecated
func (*DelegatorStartingInfo) Descriptor() ([]byte, []int)
Deprecated: Use DelegatorStartingInfo.ProtoReflect.Descriptor instead.
func (*DelegatorStartingInfo) GetHeight ¶
func (x *DelegatorStartingInfo) GetHeight() uint64
func (*DelegatorStartingInfo) GetPreviousPeriod ¶
func (x *DelegatorStartingInfo) GetPreviousPeriod() uint64
func (*DelegatorStartingInfo) GetStakes ¶
func (x *DelegatorStartingInfo) GetStakes() []*v1beta1.DecCoin
func (*DelegatorStartingInfo) ProtoMessage ¶
func (*DelegatorStartingInfo) ProtoMessage()
func (*DelegatorStartingInfo) ProtoReflect ¶
func (x *DelegatorStartingInfo) ProtoReflect() protoreflect.Message
func (*DelegatorStartingInfo) Reset ¶
func (x *DelegatorStartingInfo) Reset()
func (*DelegatorStartingInfo) String ¶
func (x *DelegatorStartingInfo) String() string
type DelegatorStartingInfoRecord ¶
type DelegatorStartingInfoRecord struct { // delegator_address is the address of the delegator. DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // delegation_target_id is the ID of the delegation target. DelegationTargetId uint32 `protobuf:"varint,2,opt,name=delegation_target_id,json=delegationTargetId,proto3" json:"delegation_target_id,omitempty"` // starting_info defines the starting info of a delegator. StartingInfo *DelegatorStartingInfo `protobuf:"bytes,3,opt,name=starting_info,json=startingInfo,proto3" json:"starting_info,omitempty"` // contains filtered or unexported fields }
DelegatorStartingInfoRecord used for import / export via genesis json.
func (*DelegatorStartingInfoRecord) Descriptor
deprecated
func (*DelegatorStartingInfoRecord) Descriptor() ([]byte, []int)
Deprecated: Use DelegatorStartingInfoRecord.ProtoReflect.Descriptor instead.
func (*DelegatorStartingInfoRecord) GetDelegationTargetId ¶
func (x *DelegatorStartingInfoRecord) GetDelegationTargetId() uint32
func (*DelegatorStartingInfoRecord) GetDelegatorAddress ¶
func (x *DelegatorStartingInfoRecord) GetDelegatorAddress() string
func (*DelegatorStartingInfoRecord) GetStartingInfo ¶
func (x *DelegatorStartingInfoRecord) GetStartingInfo() *DelegatorStartingInfo
func (*DelegatorStartingInfoRecord) ProtoMessage ¶
func (*DelegatorStartingInfoRecord) ProtoMessage()
func (*DelegatorStartingInfoRecord) ProtoReflect ¶
func (x *DelegatorStartingInfoRecord) ProtoReflect() protoreflect.Message
func (*DelegatorStartingInfoRecord) Reset ¶
func (x *DelegatorStartingInfoRecord) Reset()
func (*DelegatorStartingInfoRecord) String ¶
func (x *DelegatorStartingInfoRecord) String() string
type DelegatorWithdrawInfo ¶
type DelegatorWithdrawInfo struct { // delegator_address is the address of the delegator. DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // withdraw_address is the address to withdraw the delegation rewards to. WithdrawAddress string `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"` // contains filtered or unexported fields }
DelegatorWithdrawInfo is the address for where delegation rewards are withdrawn to by default this struct is only used at genesis to feed in default withdraw addresses.
func (*DelegatorWithdrawInfo) Descriptor
deprecated
func (*DelegatorWithdrawInfo) Descriptor() ([]byte, []int)
Deprecated: Use DelegatorWithdrawInfo.ProtoReflect.Descriptor instead.
func (*DelegatorWithdrawInfo) GetDelegatorAddress ¶
func (x *DelegatorWithdrawInfo) GetDelegatorAddress() string
func (*DelegatorWithdrawInfo) GetWithdrawAddress ¶
func (x *DelegatorWithdrawInfo) GetWithdrawAddress() string
func (*DelegatorWithdrawInfo) ProtoMessage ¶
func (*DelegatorWithdrawInfo) ProtoMessage()
func (*DelegatorWithdrawInfo) ProtoReflect ¶
func (x *DelegatorWithdrawInfo) ProtoReflect() protoreflect.Message
func (*DelegatorWithdrawInfo) Reset ¶
func (x *DelegatorWithdrawInfo) Reset()
func (*DelegatorWithdrawInfo) String ¶
func (x *DelegatorWithdrawInfo) String() string
type Distribution ¶
type Distribution struct { // DelegationType is the type of delegation target which this distribution // parameters are for. It can be one of DELEGATION_TYPE_POOL and // DELEGATION_TYPE_OPERATOR. DelegationType v1.DelegationType `` /* 146-byte string literal not displayed */ // Weight is the rewards distribution weight among other types of delegation // targets. Weight uint32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"` // Type is one of basic/weighted/egalitarian distributions. Type_ *anypb.Any `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
Distribution represents distribution parameters for restaking pools/operators.
func (*Distribution) Descriptor
deprecated
func (*Distribution) Descriptor() ([]byte, []int)
Deprecated: Use Distribution.ProtoReflect.Descriptor instead.
func (*Distribution) GetDelegationType ¶
func (x *Distribution) GetDelegationType() v1.DelegationType
func (*Distribution) GetType_ ¶
func (x *Distribution) GetType_() *anypb.Any
func (*Distribution) GetWeight ¶
func (x *Distribution) GetWeight() uint32
func (*Distribution) ProtoMessage ¶
func (*Distribution) ProtoMessage()
func (*Distribution) ProtoReflect ¶
func (x *Distribution) ProtoReflect() protoreflect.Message
func (*Distribution) Reset ¶
func (x *Distribution) Reset()
func (*Distribution) String ¶
func (x *Distribution) String() string
type DistributionTypeBasic ¶
type DistributionTypeBasic struct {
// contains filtered or unexported fields
}
DistributionTypeBasic represents the simplest form of distribution. Rewards are allocated to entities based on their delegation values. For example, if there are three operators with delegation values of $1000, $1500, and $2000, their rewards will be distributed in a 2:3:4 ratio.
func (*DistributionTypeBasic) Descriptor
deprecated
func (*DistributionTypeBasic) Descriptor() ([]byte, []int)
Deprecated: Use DistributionTypeBasic.ProtoReflect.Descriptor instead.
func (*DistributionTypeBasic) ProtoMessage ¶
func (*DistributionTypeBasic) ProtoMessage()
func (*DistributionTypeBasic) ProtoReflect ¶
func (x *DistributionTypeBasic) ProtoReflect() protoreflect.Message
func (*DistributionTypeBasic) Reset ¶
func (x *DistributionTypeBasic) Reset()
func (*DistributionTypeBasic) String ¶
func (x *DistributionTypeBasic) String() string
type DistributionTypeEgalitarian ¶
type DistributionTypeEgalitarian struct {
// contains filtered or unexported fields
}
DistributionTypeEgalitarian is a distribution method where all entities receive an equal share of rewards(a.k.a. egalitarian method).
func (*DistributionTypeEgalitarian) Descriptor
deprecated
func (*DistributionTypeEgalitarian) Descriptor() ([]byte, []int)
Deprecated: Use DistributionTypeEgalitarian.ProtoReflect.Descriptor instead.
func (*DistributionTypeEgalitarian) ProtoMessage ¶
func (*DistributionTypeEgalitarian) ProtoMessage()
func (*DistributionTypeEgalitarian) ProtoReflect ¶
func (x *DistributionTypeEgalitarian) ProtoReflect() protoreflect.Message
func (*DistributionTypeEgalitarian) Reset ¶
func (x *DistributionTypeEgalitarian) Reset()
func (*DistributionTypeEgalitarian) String ¶
func (x *DistributionTypeEgalitarian) String() string
type DistributionTypeWeighted ¶
type DistributionTypeWeighted struct { Weights []*DistributionWeight `protobuf:"bytes,1,rep,name=weights,proto3" json:"weights,omitempty"` // contains filtered or unexported fields }
DistributionTypeWeighted is a type of distribution where the reward weights for each entity are explicitly defined. Only the specified delegation targets will receive rewards.
func (*DistributionTypeWeighted) Descriptor
deprecated
func (*DistributionTypeWeighted) Descriptor() ([]byte, []int)
Deprecated: Use DistributionTypeWeighted.ProtoReflect.Descriptor instead.
func (*DistributionTypeWeighted) GetWeights ¶
func (x *DistributionTypeWeighted) GetWeights() []*DistributionWeight
func (*DistributionTypeWeighted) ProtoMessage ¶
func (*DistributionTypeWeighted) ProtoMessage()
func (*DistributionTypeWeighted) ProtoReflect ¶
func (x *DistributionTypeWeighted) ProtoReflect() protoreflect.Message
func (*DistributionTypeWeighted) Reset ¶
func (x *DistributionTypeWeighted) Reset()
func (*DistributionTypeWeighted) String ¶
func (x *DistributionTypeWeighted) String() string
type DistributionWeight ¶
type DistributionWeight struct { DelegationTargetId uint32 `protobuf:"varint,1,opt,name=delegation_target_id,json=delegationTargetId,proto3" json:"delegation_target_id,omitempty"` Weight uint32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"` // contains filtered or unexported fields }
DistributionWeight defines a delegation target and its assigned weight.
func (*DistributionWeight) Descriptor
deprecated
func (*DistributionWeight) Descriptor() ([]byte, []int)
Deprecated: Use DistributionWeight.ProtoReflect.Descriptor instead.
func (*DistributionWeight) GetDelegationTargetId ¶
func (x *DistributionWeight) GetDelegationTargetId() uint32
func (*DistributionWeight) GetWeight ¶
func (x *DistributionWeight) GetWeight() uint32
func (*DistributionWeight) ProtoMessage ¶
func (*DistributionWeight) ProtoMessage()
func (*DistributionWeight) ProtoReflect ¶
func (x *DistributionWeight) ProtoReflect() protoreflect.Message
func (*DistributionWeight) Reset ¶
func (x *DistributionWeight) Reset()
func (*DistributionWeight) String ¶
func (x *DistributionWeight) String() string
type GenesisState ¶
type GenesisState struct { // Params defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // NextRewardsPlanID represents the id to be used when creating the next // rewards plan. NextRewardsPlanId uint64 `protobuf:"varint,2,opt,name=next_rewards_plan_id,json=nextRewardsPlanId,proto3" json:"next_rewards_plan_id,omitempty"` // RewardsPlans defines the list of rewards plans. RewardsPlans []*RewardsPlan `protobuf:"bytes,3,rep,name=rewards_plans,json=rewardsPlans,proto3" json:"rewards_plans,omitempty"` // last_rewards_allocation_time is the last time rewards were allocated. LastRewardsAllocationTime *timestamppb.Timestamp `` /* 140-byte string literal not displayed */ // delegator_withdraw_infos defines the delegator withdraw infos at genesis. DelegatorWithdrawInfos []*DelegatorWithdrawInfo `` /* 129-byte string literal not displayed */ // pools_records defines a group of genesis records of all pools at genesis. PoolsRecords *DelegationTypeRecords `protobuf:"bytes,6,opt,name=pools_records,json=poolsRecords,proto3" json:"pools_records,omitempty"` // operators_records defines a group of genesis records of all operators at // genesis. OperatorsRecords *DelegationTypeRecords `protobuf:"bytes,7,opt,name=operators_records,json=operatorsRecords,proto3" json:"operators_records,omitempty"` // services_records defines a group of genesis records of all services at // genesis. ServicesRecords *DelegationTypeRecords `protobuf:"bytes,8,opt,name=services_records,json=servicesRecords,proto3" json:"services_records,omitempty"` // operator_accumulated_commissions defines the accumulated commissions of all // operators at genesis. OperatorAccumulatedCommissions []*OperatorAccumulatedCommissionRecord `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
GenesisState defines the module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetDelegatorWithdrawInfos ¶
func (x *GenesisState) GetDelegatorWithdrawInfos() []*DelegatorWithdrawInfo
func (*GenesisState) GetLastRewardsAllocationTime ¶
func (x *GenesisState) GetLastRewardsAllocationTime() *timestamppb.Timestamp
func (*GenesisState) GetNextRewardsPlanId ¶
func (x *GenesisState) GetNextRewardsPlanId() uint64
func (*GenesisState) GetOperatorAccumulatedCommissions ¶
func (x *GenesisState) GetOperatorAccumulatedCommissions() []*OperatorAccumulatedCommissionRecord
func (*GenesisState) GetOperatorsRecords ¶
func (x *GenesisState) GetOperatorsRecords() *DelegationTypeRecords
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetPoolsRecords ¶
func (x *GenesisState) GetPoolsRecords() *DelegationTypeRecords
func (*GenesisState) GetRewardsPlans ¶
func (x *GenesisState) GetRewardsPlans() []*RewardsPlan
func (*GenesisState) GetServicesRecords ¶
func (x *GenesisState) GetServicesRecords() *DelegationTypeRecords
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type HistoricalRewards ¶
type HistoricalRewards struct { CumulativeRewardRatios []*DecPool `` /* 129-byte string literal not displayed */ ReferenceCount uint32 `protobuf:"varint,2,opt,name=reference_count,json=referenceCount,proto3" json:"reference_count,omitempty"` // contains filtered or unexported fields }
HistoricalRewards represents historical rewards for a delegation target. Height is implicit within the store key. Cumulative reward ratio is the sum from the zeroeth period until this period of rewards / tokens, per the spec. The reference count indicates the number of objects which might need to reference this historical entry at any point. ReferenceCount =
number of outstanding delegations which ended the associated period (and might need to read that record) + number of slashes which ended the associated period (and might need to read that record) + one per validator for the zeroeth period, set on initialization
func (*HistoricalRewards) Descriptor
deprecated
func (*HistoricalRewards) Descriptor() ([]byte, []int)
Deprecated: Use HistoricalRewards.ProtoReflect.Descriptor instead.
func (*HistoricalRewards) GetCumulativeRewardRatios ¶
func (x *HistoricalRewards) GetCumulativeRewardRatios() []*DecPool
func (*HistoricalRewards) GetReferenceCount ¶
func (x *HistoricalRewards) GetReferenceCount() uint32
func (*HistoricalRewards) ProtoMessage ¶
func (*HistoricalRewards) ProtoMessage()
func (*HistoricalRewards) ProtoReflect ¶
func (x *HistoricalRewards) ProtoReflect() protoreflect.Message
func (*HistoricalRewards) Reset ¶
func (x *HistoricalRewards) Reset()
func (*HistoricalRewards) String ¶
func (x *HistoricalRewards) String() string
type HistoricalRewardsRecord ¶
type HistoricalRewardsRecord struct { // delegation_target_id is the ID of the delegation target. DelegationTargetId uint32 `protobuf:"varint,1,opt,name=delegation_target_id,json=delegationTargetId,proto3" json:"delegation_target_id,omitempty"` // period defines the period the historical rewards apply to. Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` // rewards defines the historical rewards of the delegation target. Rewards *HistoricalRewards `protobuf:"bytes,3,opt,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
HistoricalRewardsRecord is used for import / export via genesis json.
func (*HistoricalRewardsRecord) Descriptor
deprecated
func (*HistoricalRewardsRecord) Descriptor() ([]byte, []int)
Deprecated: Use HistoricalRewardsRecord.ProtoReflect.Descriptor instead.
func (*HistoricalRewardsRecord) GetDelegationTargetId ¶
func (x *HistoricalRewardsRecord) GetDelegationTargetId() uint32
func (*HistoricalRewardsRecord) GetPeriod ¶
func (x *HistoricalRewardsRecord) GetPeriod() uint64
func (*HistoricalRewardsRecord) GetRewards ¶
func (x *HistoricalRewardsRecord) GetRewards() *HistoricalRewards
func (*HistoricalRewardsRecord) ProtoMessage ¶
func (*HistoricalRewardsRecord) ProtoMessage()
func (*HistoricalRewardsRecord) ProtoReflect ¶
func (x *HistoricalRewardsRecord) ProtoReflect() protoreflect.Message
func (*HistoricalRewardsRecord) Reset ¶
func (x *HistoricalRewardsRecord) Reset()
func (*HistoricalRewardsRecord) String ¶
func (x *HistoricalRewardsRecord) String() string
type MsgClient ¶
type MsgClient interface { // CreateRewardsPlan defines the operation for creating a new // rewards plan. CreateRewardsPlan(ctx context.Context, in *MsgCreateRewardsPlan, opts ...grpc.CallOption) (*MsgCreateRewardsPlanResponse, error) // SetWithdrawAddress defines a method to change the withdraw address // for a delegator(or an operator, when withdrawing commission). SetWithdrawAddress(ctx context.Context, in *MsgSetWithdrawAddress, opts ...grpc.CallOption) (*MsgSetWithdrawAddressResponse, error) // WithdrawDelegatorReward defines a method to withdraw rewards of delegator // from a single delegation target. WithdrawDelegatorReward(ctx context.Context, in *MsgWithdrawDelegatorReward, opts ...grpc.CallOption) (*MsgWithdrawDelegatorRewardResponse, error) // WithdrawOperatorCommission defines a method to withdraw the // full commission to the operator. WithdrawOperatorCommission(ctx context.Context, in *MsgWithdrawOperatorCommission, opts ...grpc.CallOption) (*MsgWithdrawOperatorCommissionResponse, error) // UpdateParams defines a (governance) operation for updating the module // parameters. // The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Msg defines the services module's gRPC message service.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgCreateRewardsPlan ¶
type MsgCreateRewardsPlan struct { // Sender is the address of the user creating the rewards plan Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` ServiceId uint32 `protobuf:"varint,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // Amount is the amount of rewards to be distributed. Amount []*v1beta1.Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` // StartTime is the starting time of the plan. StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // EndTime is the ending time of the plan. EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // PoolsDistribution is the rewards distribution parameters for pools. PoolsDistribution *Distribution `protobuf:"bytes,7,opt,name=pools_distribution,json=poolsDistribution,proto3" json:"pools_distribution,omitempty"` // OperatorsDistribution is the rewards distribution parameters for operators. OperatorsDistribution *Distribution `protobuf:"bytes,8,opt,name=operators_distribution,json=operatorsDistribution,proto3" json:"operators_distribution,omitempty"` // UsersDistribution is the rewards distribution parameters for users who // delegated directly to the service. UsersDistribution *UsersDistribution `protobuf:"bytes,9,opt,name=users_distribution,json=usersDistribution,proto3" json:"users_distribution,omitempty"` // contains filtered or unexported fields }
MsgCreateRewardsPlan defines the message structure for the CreateRewardsPlan gRPC service method. It allows an account to create a new rewards plan. It requires a sender address as well as the details of the plan to be created.
func (*MsgCreateRewardsPlan) Descriptor
deprecated
func (*MsgCreateRewardsPlan) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateRewardsPlan.ProtoReflect.Descriptor instead.
func (*MsgCreateRewardsPlan) GetAmount ¶
func (x *MsgCreateRewardsPlan) GetAmount() []*v1beta1.Coin
func (*MsgCreateRewardsPlan) GetDescription ¶
func (x *MsgCreateRewardsPlan) GetDescription() string
func (*MsgCreateRewardsPlan) GetEndTime ¶
func (x *MsgCreateRewardsPlan) GetEndTime() *timestamppb.Timestamp
func (*MsgCreateRewardsPlan) GetOperatorsDistribution ¶
func (x *MsgCreateRewardsPlan) GetOperatorsDistribution() *Distribution
func (*MsgCreateRewardsPlan) GetPoolsDistribution ¶
func (x *MsgCreateRewardsPlan) GetPoolsDistribution() *Distribution
func (*MsgCreateRewardsPlan) GetSender ¶
func (x *MsgCreateRewardsPlan) GetSender() string
func (*MsgCreateRewardsPlan) GetServiceId ¶
func (x *MsgCreateRewardsPlan) GetServiceId() uint32
func (*MsgCreateRewardsPlan) GetStartTime ¶
func (x *MsgCreateRewardsPlan) GetStartTime() *timestamppb.Timestamp
func (*MsgCreateRewardsPlan) GetUsersDistribution ¶
func (x *MsgCreateRewardsPlan) GetUsersDistribution() *UsersDistribution
func (*MsgCreateRewardsPlan) ProtoMessage ¶
func (*MsgCreateRewardsPlan) ProtoMessage()
func (*MsgCreateRewardsPlan) ProtoReflect ¶
func (x *MsgCreateRewardsPlan) ProtoReflect() protoreflect.Message
func (*MsgCreateRewardsPlan) Reset ¶
func (x *MsgCreateRewardsPlan) Reset()
func (*MsgCreateRewardsPlan) String ¶
func (x *MsgCreateRewardsPlan) String() string
type MsgCreateRewardsPlanResponse ¶
type MsgCreateRewardsPlanResponse struct { // NewRewardsPlanID is the ID of the newly created rewards plan NewRewardsPlanId uint64 `protobuf:"varint,1,opt,name=new_rewards_plan_id,json=newRewardsPlanId,proto3" json:"new_rewards_plan_id,omitempty"` // contains filtered or unexported fields }
MsgCreateRewardsPlanResponse is the return value of MsgCreateRewardsPlan. It returns the newly created plan ID.
func (*MsgCreateRewardsPlanResponse) Descriptor
deprecated
func (*MsgCreateRewardsPlanResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateRewardsPlanResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateRewardsPlanResponse) GetNewRewardsPlanId ¶
func (x *MsgCreateRewardsPlanResponse) GetNewRewardsPlanId() uint64
func (*MsgCreateRewardsPlanResponse) ProtoMessage ¶
func (*MsgCreateRewardsPlanResponse) ProtoMessage()
func (*MsgCreateRewardsPlanResponse) ProtoReflect ¶
func (x *MsgCreateRewardsPlanResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateRewardsPlanResponse) Reset ¶
func (x *MsgCreateRewardsPlanResponse) Reset()
func (*MsgCreateRewardsPlanResponse) String ¶
func (x *MsgCreateRewardsPlanResponse) String() string
type MsgServer ¶
type MsgServer interface { // CreateRewardsPlan defines the operation for creating a new // rewards plan. CreateRewardsPlan(context.Context, *MsgCreateRewardsPlan) (*MsgCreateRewardsPlanResponse, error) // SetWithdrawAddress defines a method to change the withdraw address // for a delegator(or an operator, when withdrawing commission). SetWithdrawAddress(context.Context, *MsgSetWithdrawAddress) (*MsgSetWithdrawAddressResponse, error) // WithdrawDelegatorReward defines a method to withdraw rewards of delegator // from a single delegation target. WithdrawDelegatorReward(context.Context, *MsgWithdrawDelegatorReward) (*MsgWithdrawDelegatorRewardResponse, error) // WithdrawOperatorCommission defines a method to withdraw the // full commission to the operator. WithdrawOperatorCommission(context.Context, *MsgWithdrawOperatorCommission) (*MsgWithdrawOperatorCommissionResponse, error) // UpdateParams defines a (governance) operation for updating the module // parameters. // The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.
Msg defines the services module's gRPC message service.
type MsgSetWithdrawAddress ¶
type MsgSetWithdrawAddress struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` WithdrawAddress string `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"` // contains filtered or unexported fields }
MsgSetWithdrawAddress sets the withdraw address for a delegator(or an operator when withdrawing commission).
func (*MsgSetWithdrawAddress) Descriptor
deprecated
func (*MsgSetWithdrawAddress) Descriptor() ([]byte, []int)
Deprecated: Use MsgSetWithdrawAddress.ProtoReflect.Descriptor instead.
func (*MsgSetWithdrawAddress) GetSender ¶
func (x *MsgSetWithdrawAddress) GetSender() string
func (*MsgSetWithdrawAddress) GetWithdrawAddress ¶
func (x *MsgSetWithdrawAddress) GetWithdrawAddress() string
func (*MsgSetWithdrawAddress) ProtoMessage ¶
func (*MsgSetWithdrawAddress) ProtoMessage()
func (*MsgSetWithdrawAddress) ProtoReflect ¶
func (x *MsgSetWithdrawAddress) ProtoReflect() protoreflect.Message
func (*MsgSetWithdrawAddress) Reset ¶
func (x *MsgSetWithdrawAddress) Reset()
func (*MsgSetWithdrawAddress) String ¶
func (x *MsgSetWithdrawAddress) String() string
type MsgSetWithdrawAddressResponse ¶
type MsgSetWithdrawAddressResponse struct {
// contains filtered or unexported fields
}
MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type.
func (*MsgSetWithdrawAddressResponse) Descriptor
deprecated
func (*MsgSetWithdrawAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSetWithdrawAddressResponse.ProtoReflect.Descriptor instead.
func (*MsgSetWithdrawAddressResponse) ProtoMessage ¶
func (*MsgSetWithdrawAddressResponse) ProtoMessage()
func (*MsgSetWithdrawAddressResponse) ProtoReflect ¶
func (x *MsgSetWithdrawAddressResponse) ProtoReflect() protoreflect.Message
func (*MsgSetWithdrawAddressResponse) Reset ¶
func (x *MsgSetWithdrawAddressResponse) Reset()
func (*MsgSetWithdrawAddressResponse) String ¶
func (x *MsgSetWithdrawAddressResponse) String() string
type MsgUpdateParams ¶
type MsgUpdateParams struct { // Authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // Params define the parameters to update. // // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams defines the message structure for the UpdateParams gRPC service method. It allows the authority to update the module parameters.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse is the return value of MsgUpdateParams.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type MsgWithdrawDelegatorReward ¶
type MsgWithdrawDelegatorReward struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` DelegationType v1.DelegationType `` /* 146-byte string literal not displayed */ DelegationTargetId uint32 `protobuf:"varint,3,opt,name=delegation_target_id,json=delegationTargetId,proto3" json:"delegation_target_id,omitempty"` // contains filtered or unexported fields }
MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator from a single delegation target.
func (*MsgWithdrawDelegatorReward) Descriptor
deprecated
func (*MsgWithdrawDelegatorReward) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawDelegatorReward.ProtoReflect.Descriptor instead.
func (*MsgWithdrawDelegatorReward) GetDelegationTargetId ¶
func (x *MsgWithdrawDelegatorReward) GetDelegationTargetId() uint32
func (*MsgWithdrawDelegatorReward) GetDelegationType ¶
func (x *MsgWithdrawDelegatorReward) GetDelegationType() v1.DelegationType
func (*MsgWithdrawDelegatorReward) GetDelegatorAddress ¶
func (x *MsgWithdrawDelegatorReward) GetDelegatorAddress() string
func (*MsgWithdrawDelegatorReward) ProtoMessage ¶
func (*MsgWithdrawDelegatorReward) ProtoMessage()
func (*MsgWithdrawDelegatorReward) ProtoReflect ¶
func (x *MsgWithdrawDelegatorReward) ProtoReflect() protoreflect.Message
func (*MsgWithdrawDelegatorReward) Reset ¶
func (x *MsgWithdrawDelegatorReward) Reset()
func (*MsgWithdrawDelegatorReward) String ¶
func (x *MsgWithdrawDelegatorReward) String() string
type MsgWithdrawDelegatorRewardResponse ¶
type MsgWithdrawDelegatorRewardResponse struct { Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.
func (*MsgWithdrawDelegatorRewardResponse) Descriptor
deprecated
func (*MsgWithdrawDelegatorRewardResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawDelegatorRewardResponse.ProtoReflect.Descriptor instead.
func (*MsgWithdrawDelegatorRewardResponse) GetAmount ¶
func (x *MsgWithdrawDelegatorRewardResponse) GetAmount() []*v1beta1.Coin
func (*MsgWithdrawDelegatorRewardResponse) ProtoMessage ¶
func (*MsgWithdrawDelegatorRewardResponse) ProtoMessage()
func (*MsgWithdrawDelegatorRewardResponse) ProtoReflect ¶
func (x *MsgWithdrawDelegatorRewardResponse) ProtoReflect() protoreflect.Message
func (*MsgWithdrawDelegatorRewardResponse) Reset ¶
func (x *MsgWithdrawDelegatorRewardResponse) Reset()
func (*MsgWithdrawDelegatorRewardResponse) String ¶
func (x *MsgWithdrawDelegatorRewardResponse) String() string
type MsgWithdrawOperatorCommission ¶
type MsgWithdrawOperatorCommission struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
MsgWithdrawOperatorCommission withdraws the full commission to the operator.
func (*MsgWithdrawOperatorCommission) Descriptor
deprecated
func (*MsgWithdrawOperatorCommission) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawOperatorCommission.ProtoReflect.Descriptor instead.
func (*MsgWithdrawOperatorCommission) GetOperatorId ¶
func (x *MsgWithdrawOperatorCommission) GetOperatorId() uint32
func (*MsgWithdrawOperatorCommission) GetSender ¶
func (x *MsgWithdrawOperatorCommission) GetSender() string
func (*MsgWithdrawOperatorCommission) ProtoMessage ¶
func (*MsgWithdrawOperatorCommission) ProtoMessage()
func (*MsgWithdrawOperatorCommission) ProtoReflect ¶
func (x *MsgWithdrawOperatorCommission) ProtoReflect() protoreflect.Message
func (*MsgWithdrawOperatorCommission) Reset ¶
func (x *MsgWithdrawOperatorCommission) Reset()
func (*MsgWithdrawOperatorCommission) String ¶
func (x *MsgWithdrawOperatorCommission) String() string
type MsgWithdrawOperatorCommissionResponse ¶
type MsgWithdrawOperatorCommissionResponse struct { // Since: cosmos-sdk 0.46 Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
MsgWithdrawOperatorCommissionResponse defines the Msg/WithdrawOperatorCommission response type.
func (*MsgWithdrawOperatorCommissionResponse) Descriptor
deprecated
func (*MsgWithdrawOperatorCommissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawOperatorCommissionResponse.ProtoReflect.Descriptor instead.
func (*MsgWithdrawOperatorCommissionResponse) GetAmount ¶
func (x *MsgWithdrawOperatorCommissionResponse) GetAmount() []*v1beta1.Coin
func (*MsgWithdrawOperatorCommissionResponse) ProtoMessage ¶
func (*MsgWithdrawOperatorCommissionResponse) ProtoMessage()
func (*MsgWithdrawOperatorCommissionResponse) ProtoReflect ¶
func (x *MsgWithdrawOperatorCommissionResponse) ProtoReflect() protoreflect.Message
func (*MsgWithdrawOperatorCommissionResponse) Reset ¶
func (x *MsgWithdrawOperatorCommissionResponse) Reset()
func (*MsgWithdrawOperatorCommissionResponse) String ¶
func (x *MsgWithdrawOperatorCommissionResponse) String() string
type OperatorAccumulatedCommissionRecord ¶
type OperatorAccumulatedCommissionRecord struct { OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // accumulated is the accumulated commission of an operator. Accumulated *AccumulatedCommission `protobuf:"bytes,2,opt,name=accumulated,proto3" json:"accumulated,omitempty"` // contains filtered or unexported fields }
func (*OperatorAccumulatedCommissionRecord) Descriptor
deprecated
func (*OperatorAccumulatedCommissionRecord) Descriptor() ([]byte, []int)
Deprecated: Use OperatorAccumulatedCommissionRecord.ProtoReflect.Descriptor instead.
func (*OperatorAccumulatedCommissionRecord) GetAccumulated ¶
func (x *OperatorAccumulatedCommissionRecord) GetAccumulated() *AccumulatedCommission
func (*OperatorAccumulatedCommissionRecord) GetOperatorId ¶
func (x *OperatorAccumulatedCommissionRecord) GetOperatorId() uint32
func (*OperatorAccumulatedCommissionRecord) ProtoMessage ¶
func (*OperatorAccumulatedCommissionRecord) ProtoMessage()
func (*OperatorAccumulatedCommissionRecord) ProtoReflect ¶
func (x *OperatorAccumulatedCommissionRecord) ProtoReflect() protoreflect.Message
func (*OperatorAccumulatedCommissionRecord) Reset ¶
func (x *OperatorAccumulatedCommissionRecord) Reset()
func (*OperatorAccumulatedCommissionRecord) String ¶
func (x *OperatorAccumulatedCommissionRecord) String() string
type OutstandingRewards ¶
type OutstandingRewards struct { Rewards []*DecPool `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
OutstandingRewards represents outstanding (un-withdrawn) rewards for a delegation target inexpensive to track, allows simple sanity checks.
func (*OutstandingRewards) Descriptor
deprecated
func (*OutstandingRewards) Descriptor() ([]byte, []int)
Deprecated: Use OutstandingRewards.ProtoReflect.Descriptor instead.
func (*OutstandingRewards) GetRewards ¶
func (x *OutstandingRewards) GetRewards() []*DecPool
func (*OutstandingRewards) ProtoMessage ¶
func (*OutstandingRewards) ProtoMessage()
func (*OutstandingRewards) ProtoReflect ¶
func (x *OutstandingRewards) ProtoReflect() protoreflect.Message
func (*OutstandingRewards) Reset ¶
func (x *OutstandingRewards) Reset()
func (*OutstandingRewards) String ¶
func (x *OutstandingRewards) String() string
type OutstandingRewardsRecord ¶
type OutstandingRewardsRecord struct { // delegation_target_id is the ID of the delegation target. DelegationTargetId uint32 `protobuf:"varint,1,opt,name=delegation_target_id,json=delegationTargetId,proto3" json:"delegation_target_id,omitempty"` // outstanding_rewards represents the outstanding rewards of the delegation // target. OutstandingRewards []*DecPool `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3" json:"outstanding_rewards,omitempty"` // contains filtered or unexported fields }
OutstandingRewardsRecord is used for import/export via genesis json.
func (*OutstandingRewardsRecord) Descriptor
deprecated
func (*OutstandingRewardsRecord) Descriptor() ([]byte, []int)
Deprecated: Use OutstandingRewardsRecord.ProtoReflect.Descriptor instead.
func (*OutstandingRewardsRecord) GetDelegationTargetId ¶
func (x *OutstandingRewardsRecord) GetDelegationTargetId() uint32
func (*OutstandingRewardsRecord) GetOutstandingRewards ¶
func (x *OutstandingRewardsRecord) GetOutstandingRewards() []*DecPool
func (*OutstandingRewardsRecord) ProtoMessage ¶
func (*OutstandingRewardsRecord) ProtoMessage()
func (*OutstandingRewardsRecord) ProtoReflect ¶
func (x *OutstandingRewardsRecord) ProtoReflect() protoreflect.Message
func (*OutstandingRewardsRecord) Reset ¶
func (x *OutstandingRewardsRecord) Reset()
func (*OutstandingRewardsRecord) String ¶
func (x *OutstandingRewardsRecord) String() string
type Params ¶
type Params struct { // RewardsPlanCreationFee represents the fee that an account must pay in // order to create a rewards plan. // The fee is drawn from the MsgCreateRewardsPlan sender's account and // transferred to the community pool. RewardsPlanCreationFee []*v1beta1.Coin `` /* 131-byte string literal not displayed */ // contains filtered or unexported fields }
Params defines the parameters for the module.
func (*Params) Descriptor
deprecated
func (*Params) GetRewardsPlanCreationFee ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type Pool ¶
type Pool struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Coins []*v1beta1.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins,omitempty"` // contains filtered or unexported fields }
Pool is a Coins wrapper with denom which represents the rewards pool for the given denom. It is used to represent the rewards associated with the denom.
func (*Pool) Descriptor
deprecated
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (*Pool) ProtoReflect ¶
func (x *Pool) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { // Params defines a gRPC query method that returns the parameters of the // module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // RewardsPlans queries all rewards plans. RewardsPlans(ctx context.Context, in *QueryRewardsPlansRequest, opts ...grpc.CallOption) (*QueryRewardsPlansResponse, error) // RewardsPlan queries a specific rewards plan by its ID. RewardsPlan(ctx context.Context, in *QueryRewardsPlanRequest, opts ...grpc.CallOption) (*QueryRewardsPlanResponse, error) // PoolOutstandingRewards queries rewards of a pool. PoolOutstandingRewards(ctx context.Context, in *QueryPoolOutstandingRewardsRequest, opts ...grpc.CallOption) (*QueryPoolOutstandingRewardsResponse, error) // OperatorOutstandingRewards queries rewards of an operator. OperatorOutstandingRewards(ctx context.Context, in *QueryOperatorOutstandingRewardsRequest, opts ...grpc.CallOption) (*QueryOperatorOutstandingRewardsResponse, error) // ServiceOutstandingRewards queries rewards of a service. ServiceOutstandingRewards(ctx context.Context, in *QueryServiceOutstandingRewardsRequest, opts ...grpc.CallOption) (*QueryServiceOutstandingRewardsResponse, error) // OperatorCommission queries accumulated commission for an operator. OperatorCommission(ctx context.Context, in *QueryOperatorCommissionRequest, opts ...grpc.CallOption) (*QueryOperatorCommissionResponse, error) // PoolDelegationRewards queries the total rewards accrued by a pool // delegation. PoolDelegationRewards(ctx context.Context, in *QueryPoolDelegationRewardsRequest, opts ...grpc.CallOption) (*QueryPoolDelegationRewardsResponse, error) // OperatorDelegationRewards queries the total rewards accrued by a operator // delegation. OperatorDelegationRewards(ctx context.Context, in *QueryOperatorDelegationRewardsRequest, opts ...grpc.CallOption) (*QueryOperatorDelegationRewardsResponse, error) // ServiceDelegationRewards queries the total rewards accrued by a service // delegation. ServiceDelegationRewards(ctx context.Context, in *QueryServiceDelegationRewardsRequest, opts ...grpc.CallOption) (*QueryServiceDelegationRewardsResponse, error) // DelegatorTotalRewards queries the total rewards accrued by a single // delegator DelegatorTotalRewards(ctx context.Context, in *QueryDelegatorTotalRewardsRequest, opts ...grpc.CallOption) (*QueryDelegatorTotalRewardsResponse, error) // DelegatorWithdrawAddress queries withdraw address of a delegator. DelegatorWithdrawAddress(ctx context.Context, in *QueryDelegatorWithdrawAddressRequest, opts ...grpc.CallOption) (*QueryDelegatorWithdrawAddressResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Query defines the gRPC querier service.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryDelegatorTotalRewardsRequest ¶
type QueryDelegatorTotalRewardsRequest struct { // delegator_address defines the delegator address to query for. DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // contains filtered or unexported fields }
QueryDelegatorTotalRewardsRequest is the request type for the Query/DelegatorTotalRewards RPC method.
func (*QueryDelegatorTotalRewardsRequest) Descriptor
deprecated
func (*QueryDelegatorTotalRewardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDelegatorTotalRewardsRequest.ProtoReflect.Descriptor instead.
func (*QueryDelegatorTotalRewardsRequest) GetDelegatorAddress ¶
func (x *QueryDelegatorTotalRewardsRequest) GetDelegatorAddress() string
func (*QueryDelegatorTotalRewardsRequest) ProtoMessage ¶
func (*QueryDelegatorTotalRewardsRequest) ProtoMessage()
func (*QueryDelegatorTotalRewardsRequest) ProtoReflect ¶
func (x *QueryDelegatorTotalRewardsRequest) ProtoReflect() protoreflect.Message
func (*QueryDelegatorTotalRewardsRequest) Reset ¶
func (x *QueryDelegatorTotalRewardsRequest) Reset()
func (*QueryDelegatorTotalRewardsRequest) String ¶
func (x *QueryDelegatorTotalRewardsRequest) String() string
type QueryDelegatorTotalRewardsResponse ¶
type QueryDelegatorTotalRewardsResponse struct { // rewards defines all the rewards accrued by a delegator. Rewards []*DelegationDelegatorReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` // total defines the sum of all the rewards. Total []*DecPool `protobuf:"bytes,2,rep,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
QueryDelegatorTotalRewardsResponse is the response type for the Query/DelegatorTotalRewards RPC method.
func (*QueryDelegatorTotalRewardsResponse) Descriptor
deprecated
func (*QueryDelegatorTotalRewardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDelegatorTotalRewardsResponse.ProtoReflect.Descriptor instead.
func (*QueryDelegatorTotalRewardsResponse) GetRewards ¶
func (x *QueryDelegatorTotalRewardsResponse) GetRewards() []*DelegationDelegatorReward
func (*QueryDelegatorTotalRewardsResponse) GetTotal ¶
func (x *QueryDelegatorTotalRewardsResponse) GetTotal() []*DecPool
func (*QueryDelegatorTotalRewardsResponse) ProtoMessage ¶
func (*QueryDelegatorTotalRewardsResponse) ProtoMessage()
func (*QueryDelegatorTotalRewardsResponse) ProtoReflect ¶
func (x *QueryDelegatorTotalRewardsResponse) ProtoReflect() protoreflect.Message
func (*QueryDelegatorTotalRewardsResponse) Reset ¶
func (x *QueryDelegatorTotalRewardsResponse) Reset()
func (*QueryDelegatorTotalRewardsResponse) String ¶
func (x *QueryDelegatorTotalRewardsResponse) String() string
type QueryDelegatorWithdrawAddressRequest ¶
type QueryDelegatorWithdrawAddressRequest struct { // delegator_address defines the delegator address to query for. DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // contains filtered or unexported fields }
QueryDelegatorWithdrawAddressRequest is the request type for the Query/DelegatorWithdrawAddress RPC method.
func (*QueryDelegatorWithdrawAddressRequest) Descriptor
deprecated
func (*QueryDelegatorWithdrawAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDelegatorWithdrawAddressRequest.ProtoReflect.Descriptor instead.
func (*QueryDelegatorWithdrawAddressRequest) GetDelegatorAddress ¶
func (x *QueryDelegatorWithdrawAddressRequest) GetDelegatorAddress() string
func (*QueryDelegatorWithdrawAddressRequest) ProtoMessage ¶
func (*QueryDelegatorWithdrawAddressRequest) ProtoMessage()
func (*QueryDelegatorWithdrawAddressRequest) ProtoReflect ¶
func (x *QueryDelegatorWithdrawAddressRequest) ProtoReflect() protoreflect.Message
func (*QueryDelegatorWithdrawAddressRequest) Reset ¶
func (x *QueryDelegatorWithdrawAddressRequest) Reset()
func (*QueryDelegatorWithdrawAddressRequest) String ¶
func (x *QueryDelegatorWithdrawAddressRequest) String() string
type QueryDelegatorWithdrawAddressResponse ¶
type QueryDelegatorWithdrawAddressResponse struct { // withdraw_address defines the delegator address to query for. WithdrawAddress string `protobuf:"bytes,1,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"` // contains filtered or unexported fields }
QueryDelegatorWithdrawAddressResponse is the response type for the Query/DelegatorWithdrawAddress RPC method.
func (*QueryDelegatorWithdrawAddressResponse) Descriptor
deprecated
func (*QueryDelegatorWithdrawAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDelegatorWithdrawAddressResponse.ProtoReflect.Descriptor instead.
func (*QueryDelegatorWithdrawAddressResponse) GetWithdrawAddress ¶
func (x *QueryDelegatorWithdrawAddressResponse) GetWithdrawAddress() string
func (*QueryDelegatorWithdrawAddressResponse) ProtoMessage ¶
func (*QueryDelegatorWithdrawAddressResponse) ProtoMessage()
func (*QueryDelegatorWithdrawAddressResponse) ProtoReflect ¶
func (x *QueryDelegatorWithdrawAddressResponse) ProtoReflect() protoreflect.Message
func (*QueryDelegatorWithdrawAddressResponse) Reset ¶
func (x *QueryDelegatorWithdrawAddressResponse) Reset()
func (*QueryDelegatorWithdrawAddressResponse) String ¶
func (x *QueryDelegatorWithdrawAddressResponse) String() string
type QueryOperatorCommissionRequest ¶
type QueryOperatorCommissionRequest struct { // operator_id defines the validator address to query for. OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
QueryOperatorCommissionRequest is the request type for the Query/OperatorCommission RPC method
func (*QueryOperatorCommissionRequest) Descriptor
deprecated
func (*QueryOperatorCommissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorCommissionRequest.ProtoReflect.Descriptor instead.
func (*QueryOperatorCommissionRequest) GetOperatorId ¶
func (x *QueryOperatorCommissionRequest) GetOperatorId() uint32
func (*QueryOperatorCommissionRequest) ProtoMessage ¶
func (*QueryOperatorCommissionRequest) ProtoMessage()
func (*QueryOperatorCommissionRequest) ProtoReflect ¶
func (x *QueryOperatorCommissionRequest) ProtoReflect() protoreflect.Message
func (*QueryOperatorCommissionRequest) Reset ¶
func (x *QueryOperatorCommissionRequest) Reset()
func (*QueryOperatorCommissionRequest) String ¶
func (x *QueryOperatorCommissionRequest) String() string
type QueryOperatorCommissionResponse ¶
type QueryOperatorCommissionResponse struct { // commission defines the commission the operator received. Commission *AccumulatedCommission `protobuf:"bytes,1,opt,name=commission,proto3" json:"commission,omitempty"` // contains filtered or unexported fields }
QueryOperatorCommissionResponse is the response type for the Query/OperatorCommission RPC method
func (*QueryOperatorCommissionResponse) Descriptor
deprecated
func (*QueryOperatorCommissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorCommissionResponse.ProtoReflect.Descriptor instead.
func (*QueryOperatorCommissionResponse) GetCommission ¶
func (x *QueryOperatorCommissionResponse) GetCommission() *AccumulatedCommission
func (*QueryOperatorCommissionResponse) ProtoMessage ¶
func (*QueryOperatorCommissionResponse) ProtoMessage()
func (*QueryOperatorCommissionResponse) ProtoReflect ¶
func (x *QueryOperatorCommissionResponse) ProtoReflect() protoreflect.Message
func (*QueryOperatorCommissionResponse) Reset ¶
func (x *QueryOperatorCommissionResponse) Reset()
func (*QueryOperatorCommissionResponse) String ¶
func (x *QueryOperatorCommissionResponse) String() string
type QueryOperatorDelegationRewardsRequest ¶
type QueryOperatorDelegationRewardsRequest struct { // delegator_address defines the delegator address to query for. DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // operator_id defines the operator ID to query for. OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
QueryOperatorDelegationRewardsRequest is the request type for the Query/OperatorDelegationRewards RPC method.
func (*QueryOperatorDelegationRewardsRequest) Descriptor
deprecated
func (*QueryOperatorDelegationRewardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorDelegationRewardsRequest.ProtoReflect.Descriptor instead.
func (*QueryOperatorDelegationRewardsRequest) GetDelegatorAddress ¶
func (x *QueryOperatorDelegationRewardsRequest) GetDelegatorAddress() string
func (*QueryOperatorDelegationRewardsRequest) GetOperatorId ¶
func (x *QueryOperatorDelegationRewardsRequest) GetOperatorId() uint32
func (*QueryOperatorDelegationRewardsRequest) ProtoMessage ¶
func (*QueryOperatorDelegationRewardsRequest) ProtoMessage()
func (*QueryOperatorDelegationRewardsRequest) ProtoReflect ¶
func (x *QueryOperatorDelegationRewardsRequest) ProtoReflect() protoreflect.Message
func (*QueryOperatorDelegationRewardsRequest) Reset ¶
func (x *QueryOperatorDelegationRewardsRequest) Reset()
func (*QueryOperatorDelegationRewardsRequest) String ¶
func (x *QueryOperatorDelegationRewardsRequest) String() string
type QueryOperatorDelegationRewardsResponse ¶
type QueryOperatorDelegationRewardsResponse struct { // rewards defines the rewards accrued by a delegation. Rewards []*DecPool `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
QueryOperatorDelegationRewardsResponse is the response type for the Query/OperatorDelegationRewards RPC method.
func (*QueryOperatorDelegationRewardsResponse) Descriptor
deprecated
func (*QueryOperatorDelegationRewardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorDelegationRewardsResponse.ProtoReflect.Descriptor instead.
func (*QueryOperatorDelegationRewardsResponse) GetRewards ¶
func (x *QueryOperatorDelegationRewardsResponse) GetRewards() []*DecPool
func (*QueryOperatorDelegationRewardsResponse) ProtoMessage ¶
func (*QueryOperatorDelegationRewardsResponse) ProtoMessage()
func (*QueryOperatorDelegationRewardsResponse) ProtoReflect ¶
func (x *QueryOperatorDelegationRewardsResponse) ProtoReflect() protoreflect.Message
func (*QueryOperatorDelegationRewardsResponse) Reset ¶
func (x *QueryOperatorDelegationRewardsResponse) Reset()
func (*QueryOperatorDelegationRewardsResponse) String ¶
func (x *QueryOperatorDelegationRewardsResponse) String() string
type QueryOperatorOutstandingRewardsRequest ¶
type QueryOperatorOutstandingRewardsRequest struct { // operator_id defines the operator ID to query for. OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
QueryOperatorOutstandingRewardsRequest is the request type for the Query/OperatorOutstandingRewards RPC method.
func (*QueryOperatorOutstandingRewardsRequest) Descriptor
deprecated
func (*QueryOperatorOutstandingRewardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorOutstandingRewardsRequest.ProtoReflect.Descriptor instead.
func (*QueryOperatorOutstandingRewardsRequest) GetOperatorId ¶
func (x *QueryOperatorOutstandingRewardsRequest) GetOperatorId() uint32
func (*QueryOperatorOutstandingRewardsRequest) ProtoMessage ¶
func (*QueryOperatorOutstandingRewardsRequest) ProtoMessage()
func (*QueryOperatorOutstandingRewardsRequest) ProtoReflect ¶
func (x *QueryOperatorOutstandingRewardsRequest) ProtoReflect() protoreflect.Message
func (*QueryOperatorOutstandingRewardsRequest) Reset ¶
func (x *QueryOperatorOutstandingRewardsRequest) Reset()
func (*QueryOperatorOutstandingRewardsRequest) String ¶
func (x *QueryOperatorOutstandingRewardsRequest) String() string
type QueryOperatorOutstandingRewardsResponse ¶
type QueryOperatorOutstandingRewardsResponse struct { Rewards *OutstandingRewards `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
QueryOperatorOutstandingRewardsResponse is the response type for the Query/OperatorOutstandingRewards RPC method.
func (*QueryOperatorOutstandingRewardsResponse) Descriptor
deprecated
func (*QueryOperatorOutstandingRewardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorOutstandingRewardsResponse.ProtoReflect.Descriptor instead.
func (*QueryOperatorOutstandingRewardsResponse) GetRewards ¶
func (x *QueryOperatorOutstandingRewardsResponse) GetRewards() *OutstandingRewards
func (*QueryOperatorOutstandingRewardsResponse) ProtoMessage ¶
func (*QueryOperatorOutstandingRewardsResponse) ProtoMessage()
func (*QueryOperatorOutstandingRewardsResponse) ProtoReflect ¶
func (x *QueryOperatorOutstandingRewardsResponse) ProtoReflect() protoreflect.Message
func (*QueryOperatorOutstandingRewardsResponse) Reset ¶
func (x *QueryOperatorOutstandingRewardsResponse) Reset()
func (*QueryOperatorOutstandingRewardsResponse) String ¶
func (x *QueryOperatorOutstandingRewardsResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryPoolDelegationRewardsRequest ¶
type QueryPoolDelegationRewardsRequest struct { // delegator_address defines the delegator address to query for. DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // pool_id defines the pool ID to query for. PoolId uint32 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // contains filtered or unexported fields }
QueryPoolDelegationRewardsRequest is the request type for the Query/PoolDelegationRewards RPC method.
func (*QueryPoolDelegationRewardsRequest) Descriptor
deprecated
func (*QueryPoolDelegationRewardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryPoolDelegationRewardsRequest.ProtoReflect.Descriptor instead.
func (*QueryPoolDelegationRewardsRequest) GetDelegatorAddress ¶
func (x *QueryPoolDelegationRewardsRequest) GetDelegatorAddress() string
func (*QueryPoolDelegationRewardsRequest) GetPoolId ¶
func (x *QueryPoolDelegationRewardsRequest) GetPoolId() uint32
func (*QueryPoolDelegationRewardsRequest) ProtoMessage ¶
func (*QueryPoolDelegationRewardsRequest) ProtoMessage()
func (*QueryPoolDelegationRewardsRequest) ProtoReflect ¶
func (x *QueryPoolDelegationRewardsRequest) ProtoReflect() protoreflect.Message
func (*QueryPoolDelegationRewardsRequest) Reset ¶
func (x *QueryPoolDelegationRewardsRequest) Reset()
func (*QueryPoolDelegationRewardsRequest) String ¶
func (x *QueryPoolDelegationRewardsRequest) String() string
type QueryPoolDelegationRewardsResponse ¶
type QueryPoolDelegationRewardsResponse struct { // rewards defines the rewards accrued by a delegation. Rewards []*DecPool `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
QueryPoolDelegationRewardsResponse is the response type for the Query/PoolDelegationRewards RPC method.
func (*QueryPoolDelegationRewardsResponse) Descriptor
deprecated
func (*QueryPoolDelegationRewardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryPoolDelegationRewardsResponse.ProtoReflect.Descriptor instead.
func (*QueryPoolDelegationRewardsResponse) GetRewards ¶
func (x *QueryPoolDelegationRewardsResponse) GetRewards() []*DecPool
func (*QueryPoolDelegationRewardsResponse) ProtoMessage ¶
func (*QueryPoolDelegationRewardsResponse) ProtoMessage()
func (*QueryPoolDelegationRewardsResponse) ProtoReflect ¶
func (x *QueryPoolDelegationRewardsResponse) ProtoReflect() protoreflect.Message
func (*QueryPoolDelegationRewardsResponse) Reset ¶
func (x *QueryPoolDelegationRewardsResponse) Reset()
func (*QueryPoolDelegationRewardsResponse) String ¶
func (x *QueryPoolDelegationRewardsResponse) String() string
type QueryPoolOutstandingRewardsRequest ¶
type QueryPoolOutstandingRewardsRequest struct { // pool_id defines the pool ID to query for. PoolId uint32 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // contains filtered or unexported fields }
QueryPoolOutstandingRewardsRequest is the request type for the Query/PoolOutstandingRewards RPC method.
func (*QueryPoolOutstandingRewardsRequest) Descriptor
deprecated
func (*QueryPoolOutstandingRewardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryPoolOutstandingRewardsRequest.ProtoReflect.Descriptor instead.
func (*QueryPoolOutstandingRewardsRequest) GetPoolId ¶
func (x *QueryPoolOutstandingRewardsRequest) GetPoolId() uint32
func (*QueryPoolOutstandingRewardsRequest) ProtoMessage ¶
func (*QueryPoolOutstandingRewardsRequest) ProtoMessage()
func (*QueryPoolOutstandingRewardsRequest) ProtoReflect ¶
func (x *QueryPoolOutstandingRewardsRequest) ProtoReflect() protoreflect.Message
func (*QueryPoolOutstandingRewardsRequest) Reset ¶
func (x *QueryPoolOutstandingRewardsRequest) Reset()
func (*QueryPoolOutstandingRewardsRequest) String ¶
func (x *QueryPoolOutstandingRewardsRequest) String() string
type QueryPoolOutstandingRewardsResponse ¶
type QueryPoolOutstandingRewardsResponse struct { Rewards *OutstandingRewards `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
QueryPoolOutstandingRewardsResponse is the response type for the Query/PoolOutstandingRewards RPC method.
func (*QueryPoolOutstandingRewardsResponse) Descriptor
deprecated
func (*QueryPoolOutstandingRewardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryPoolOutstandingRewardsResponse.ProtoReflect.Descriptor instead.
func (*QueryPoolOutstandingRewardsResponse) GetRewards ¶
func (x *QueryPoolOutstandingRewardsResponse) GetRewards() *OutstandingRewards
func (*QueryPoolOutstandingRewardsResponse) ProtoMessage ¶
func (*QueryPoolOutstandingRewardsResponse) ProtoMessage()
func (*QueryPoolOutstandingRewardsResponse) ProtoReflect ¶
func (x *QueryPoolOutstandingRewardsResponse) ProtoReflect() protoreflect.Message
func (*QueryPoolOutstandingRewardsResponse) Reset ¶
func (x *QueryPoolOutstandingRewardsResponse) Reset()
func (*QueryPoolOutstandingRewardsResponse) String ¶
func (x *QueryPoolOutstandingRewardsResponse) String() string
type QueryRewardsPlanRequest ¶
type QueryRewardsPlanRequest struct { PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"` // contains filtered or unexported fields }
QueryRewardsPlanRequest is the request type for the Query/RewardsPlan RPC method.
func (*QueryRewardsPlanRequest) Descriptor
deprecated
func (*QueryRewardsPlanRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRewardsPlanRequest.ProtoReflect.Descriptor instead.
func (*QueryRewardsPlanRequest) GetPlanId ¶
func (x *QueryRewardsPlanRequest) GetPlanId() uint64
func (*QueryRewardsPlanRequest) ProtoMessage ¶
func (*QueryRewardsPlanRequest) ProtoMessage()
func (*QueryRewardsPlanRequest) ProtoReflect ¶
func (x *QueryRewardsPlanRequest) ProtoReflect() protoreflect.Message
func (*QueryRewardsPlanRequest) Reset ¶
func (x *QueryRewardsPlanRequest) Reset()
func (*QueryRewardsPlanRequest) String ¶
func (x *QueryRewardsPlanRequest) String() string
type QueryRewardsPlanResponse ¶
type QueryRewardsPlanResponse struct { RewardsPlan *RewardsPlan `protobuf:"bytes,2,opt,name=rewards_plan,json=rewardsPlan,proto3" json:"rewards_plan,omitempty"` // contains filtered or unexported fields }
QueryRewardsPlanResponse is the response type for the Query/RewardsPlan RPC method.
func (*QueryRewardsPlanResponse) Descriptor
deprecated
func (*QueryRewardsPlanResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryRewardsPlanResponse.ProtoReflect.Descriptor instead.
func (*QueryRewardsPlanResponse) GetRewardsPlan ¶
func (x *QueryRewardsPlanResponse) GetRewardsPlan() *RewardsPlan
func (*QueryRewardsPlanResponse) ProtoMessage ¶
func (*QueryRewardsPlanResponse) ProtoMessage()
func (*QueryRewardsPlanResponse) ProtoReflect ¶
func (x *QueryRewardsPlanResponse) ProtoReflect() protoreflect.Message
func (*QueryRewardsPlanResponse) Reset ¶
func (x *QueryRewardsPlanResponse) Reset()
func (*QueryRewardsPlanResponse) String ¶
func (x *QueryRewardsPlanResponse) String() string
type QueryRewardsPlansRequest ¶
type QueryRewardsPlansRequest struct { // pagination defines an optional pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryRewardsPlansRequest is the request type for the Query/RewardsPlans RPC method.
func (*QueryRewardsPlansRequest) Descriptor
deprecated
func (*QueryRewardsPlansRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRewardsPlansRequest.ProtoReflect.Descriptor instead.
func (*QueryRewardsPlansRequest) GetPagination ¶
func (x *QueryRewardsPlansRequest) GetPagination() *v1beta1.PageRequest
func (*QueryRewardsPlansRequest) ProtoMessage ¶
func (*QueryRewardsPlansRequest) ProtoMessage()
func (*QueryRewardsPlansRequest) ProtoReflect ¶
func (x *QueryRewardsPlansRequest) ProtoReflect() protoreflect.Message
func (*QueryRewardsPlansRequest) Reset ¶
func (x *QueryRewardsPlansRequest) Reset()
func (*QueryRewardsPlansRequest) String ¶
func (x *QueryRewardsPlansRequest) String() string
type QueryRewardsPlansResponse ¶
type QueryRewardsPlansResponse struct { RewardsPlans []*RewardsPlan `protobuf:"bytes,1,rep,name=rewards_plans,json=rewardsPlans,proto3" json:"rewards_plans,omitempty"` // pagination defines the pagination in the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryRewardsPlansResponse is the response type for the Query/RewardsPlans RPC method.
func (*QueryRewardsPlansResponse) Descriptor
deprecated
func (*QueryRewardsPlansResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryRewardsPlansResponse.ProtoReflect.Descriptor instead.
func (*QueryRewardsPlansResponse) GetPagination ¶
func (x *QueryRewardsPlansResponse) GetPagination() *v1beta1.PageResponse
func (*QueryRewardsPlansResponse) GetRewardsPlans ¶
func (x *QueryRewardsPlansResponse) GetRewardsPlans() []*RewardsPlan
func (*QueryRewardsPlansResponse) ProtoMessage ¶
func (*QueryRewardsPlansResponse) ProtoMessage()
func (*QueryRewardsPlansResponse) ProtoReflect ¶
func (x *QueryRewardsPlansResponse) ProtoReflect() protoreflect.Message
func (*QueryRewardsPlansResponse) Reset ¶
func (x *QueryRewardsPlansResponse) Reset()
func (*QueryRewardsPlansResponse) String ¶
func (x *QueryRewardsPlansResponse) String() string
type QueryServer ¶
type QueryServer interface { // Params defines a gRPC query method that returns the parameters of the // module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // RewardsPlans queries all rewards plans. RewardsPlans(context.Context, *QueryRewardsPlansRequest) (*QueryRewardsPlansResponse, error) // RewardsPlan queries a specific rewards plan by its ID. RewardsPlan(context.Context, *QueryRewardsPlanRequest) (*QueryRewardsPlanResponse, error) // PoolOutstandingRewards queries rewards of a pool. PoolOutstandingRewards(context.Context, *QueryPoolOutstandingRewardsRequest) (*QueryPoolOutstandingRewardsResponse, error) // OperatorOutstandingRewards queries rewards of an operator. OperatorOutstandingRewards(context.Context, *QueryOperatorOutstandingRewardsRequest) (*QueryOperatorOutstandingRewardsResponse, error) // ServiceOutstandingRewards queries rewards of a service. ServiceOutstandingRewards(context.Context, *QueryServiceOutstandingRewardsRequest) (*QueryServiceOutstandingRewardsResponse, error) // OperatorCommission queries accumulated commission for an operator. OperatorCommission(context.Context, *QueryOperatorCommissionRequest) (*QueryOperatorCommissionResponse, error) // PoolDelegationRewards queries the total rewards accrued by a pool // delegation. PoolDelegationRewards(context.Context, *QueryPoolDelegationRewardsRequest) (*QueryPoolDelegationRewardsResponse, error) // OperatorDelegationRewards queries the total rewards accrued by a operator // delegation. OperatorDelegationRewards(context.Context, *QueryOperatorDelegationRewardsRequest) (*QueryOperatorDelegationRewardsResponse, error) // ServiceDelegationRewards queries the total rewards accrued by a service // delegation. ServiceDelegationRewards(context.Context, *QueryServiceDelegationRewardsRequest) (*QueryServiceDelegationRewardsResponse, error) // DelegatorTotalRewards queries the total rewards accrued by a single // delegator DelegatorTotalRewards(context.Context, *QueryDelegatorTotalRewardsRequest) (*QueryDelegatorTotalRewardsResponse, error) // DelegatorWithdrawAddress queries withdraw address of a delegator. DelegatorWithdrawAddress(context.Context, *QueryDelegatorWithdrawAddressRequest) (*QueryDelegatorWithdrawAddressResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility.
Query defines the gRPC querier service.
type QueryServiceDelegationRewardsRequest ¶
type QueryServiceDelegationRewardsRequest struct { // delegator_address defines the delegator address to query for. DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // service_id defines the service ID to query for. ServiceId uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // contains filtered or unexported fields }
QueryServiceDelegationRewardsRequest is the request type for the Query/ServiceDelegationRewards RPC method.
func (*QueryServiceDelegationRewardsRequest) Descriptor
deprecated
func (*QueryServiceDelegationRewardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryServiceDelegationRewardsRequest.ProtoReflect.Descriptor instead.
func (*QueryServiceDelegationRewardsRequest) GetDelegatorAddress ¶
func (x *QueryServiceDelegationRewardsRequest) GetDelegatorAddress() string
func (*QueryServiceDelegationRewardsRequest) GetServiceId ¶
func (x *QueryServiceDelegationRewardsRequest) GetServiceId() uint32
func (*QueryServiceDelegationRewardsRequest) ProtoMessage ¶
func (*QueryServiceDelegationRewardsRequest) ProtoMessage()
func (*QueryServiceDelegationRewardsRequest) ProtoReflect ¶
func (x *QueryServiceDelegationRewardsRequest) ProtoReflect() protoreflect.Message
func (*QueryServiceDelegationRewardsRequest) Reset ¶
func (x *QueryServiceDelegationRewardsRequest) Reset()
func (*QueryServiceDelegationRewardsRequest) String ¶
func (x *QueryServiceDelegationRewardsRequest) String() string
type QueryServiceDelegationRewardsResponse ¶
type QueryServiceDelegationRewardsResponse struct { // rewards defines the rewards accrued by a delegation. Rewards []*DecPool `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
QueryServiceDelegationRewardsResponse is the response type for the Query/ServiceDelegationRewards RPC method.
func (*QueryServiceDelegationRewardsResponse) Descriptor
deprecated
func (*QueryServiceDelegationRewardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryServiceDelegationRewardsResponse.ProtoReflect.Descriptor instead.
func (*QueryServiceDelegationRewardsResponse) GetRewards ¶
func (x *QueryServiceDelegationRewardsResponse) GetRewards() []*DecPool
func (*QueryServiceDelegationRewardsResponse) ProtoMessage ¶
func (*QueryServiceDelegationRewardsResponse) ProtoMessage()
func (*QueryServiceDelegationRewardsResponse) ProtoReflect ¶
func (x *QueryServiceDelegationRewardsResponse) ProtoReflect() protoreflect.Message
func (*QueryServiceDelegationRewardsResponse) Reset ¶
func (x *QueryServiceDelegationRewardsResponse) Reset()
func (*QueryServiceDelegationRewardsResponse) String ¶
func (x *QueryServiceDelegationRewardsResponse) String() string
type QueryServiceOutstandingRewardsRequest ¶
type QueryServiceOutstandingRewardsRequest struct { // service_id defines the service ID to query for. ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // contains filtered or unexported fields }
QueryServiceOutstandingRewardsRequest is the request type for the Query/ServiceOutstandingRewards RPC method.
func (*QueryServiceOutstandingRewardsRequest) Descriptor
deprecated
func (*QueryServiceOutstandingRewardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryServiceOutstandingRewardsRequest.ProtoReflect.Descriptor instead.
func (*QueryServiceOutstandingRewardsRequest) GetServiceId ¶
func (x *QueryServiceOutstandingRewardsRequest) GetServiceId() uint32
func (*QueryServiceOutstandingRewardsRequest) ProtoMessage ¶
func (*QueryServiceOutstandingRewardsRequest) ProtoMessage()
func (*QueryServiceOutstandingRewardsRequest) ProtoReflect ¶
func (x *QueryServiceOutstandingRewardsRequest) ProtoReflect() protoreflect.Message
func (*QueryServiceOutstandingRewardsRequest) Reset ¶
func (x *QueryServiceOutstandingRewardsRequest) Reset()
func (*QueryServiceOutstandingRewardsRequest) String ¶
func (x *QueryServiceOutstandingRewardsRequest) String() string
type QueryServiceOutstandingRewardsResponse ¶
type QueryServiceOutstandingRewardsResponse struct { Rewards *OutstandingRewards `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
QueryServiceOutstandingRewardsResponse is the response type for the Query/ServiceOutstandingRewards RPC method.
func (*QueryServiceOutstandingRewardsResponse) Descriptor
deprecated
func (*QueryServiceOutstandingRewardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryServiceOutstandingRewardsResponse.ProtoReflect.Descriptor instead.
func (*QueryServiceOutstandingRewardsResponse) GetRewards ¶
func (x *QueryServiceOutstandingRewardsResponse) GetRewards() *OutstandingRewards
func (*QueryServiceOutstandingRewardsResponse) ProtoMessage ¶
func (*QueryServiceOutstandingRewardsResponse) ProtoMessage()
func (*QueryServiceOutstandingRewardsResponse) ProtoReflect ¶
func (x *QueryServiceOutstandingRewardsResponse) ProtoReflect() protoreflect.Message
func (*QueryServiceOutstandingRewardsResponse) Reset ¶
func (x *QueryServiceOutstandingRewardsResponse) Reset()
func (*QueryServiceOutstandingRewardsResponse) String ¶
func (x *QueryServiceOutstandingRewardsResponse) String() string
type RewardsPlan ¶
type RewardsPlan struct { // ID is the unique identifier of the plan. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Description is the description of the plan. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // ServiceID is the service ID which the plan is related to. ServiceId uint32 `protobuf:"varint,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // AmountPerDay is the amount of rewards to be distributed, per day. // The rewards amount for every block will be calculated based on this. AmountPerDay []*v1beta1.Coin `protobuf:"bytes,4,rep,name=amount_per_day,json=amountPerDay,proto3" json:"amount_per_day,omitempty"` // StartTime is the starting time of the plan. StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // EndTime is the ending time of the plan. EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // RewardsPool is the address where rewards to be distributed are stored. // If the rewards pool doesn't have enough funds to be distributed, then // the rewards allocation for this plan will be skipped. RewardsPool string `protobuf:"bytes,7,opt,name=rewards_pool,json=rewardsPool,proto3" json:"rewards_pool,omitempty"` // PoolsDistribution is the rewards distribution parameters for pools. PoolsDistribution *Distribution `protobuf:"bytes,8,opt,name=pools_distribution,json=poolsDistribution,proto3" json:"pools_distribution,omitempty"` // OperatorsDistribution is the rewards distribution parameters for operators. OperatorsDistribution *Distribution `protobuf:"bytes,9,opt,name=operators_distribution,json=operatorsDistribution,proto3" json:"operators_distribution,omitempty"` // UsersDistribution is the rewards distribution parameters for users. UsersDistribution *UsersDistribution `protobuf:"bytes,10,opt,name=users_distribution,json=usersDistribution,proto3" json:"users_distribution,omitempty"` // contains filtered or unexported fields }
RewardsPlan represents a rewards allocation plan.
func (*RewardsPlan) Descriptor
deprecated
func (*RewardsPlan) Descriptor() ([]byte, []int)
Deprecated: Use RewardsPlan.ProtoReflect.Descriptor instead.
func (*RewardsPlan) GetAmountPerDay ¶
func (x *RewardsPlan) GetAmountPerDay() []*v1beta1.Coin
func (*RewardsPlan) GetDescription ¶
func (x *RewardsPlan) GetDescription() string
func (*RewardsPlan) GetEndTime ¶
func (x *RewardsPlan) GetEndTime() *timestamppb.Timestamp
func (*RewardsPlan) GetId ¶
func (x *RewardsPlan) GetId() uint64
func (*RewardsPlan) GetOperatorsDistribution ¶
func (x *RewardsPlan) GetOperatorsDistribution() *Distribution
func (*RewardsPlan) GetPoolsDistribution ¶
func (x *RewardsPlan) GetPoolsDistribution() *Distribution
func (*RewardsPlan) GetRewardsPool ¶
func (x *RewardsPlan) GetRewardsPool() string
func (*RewardsPlan) GetServiceId ¶
func (x *RewardsPlan) GetServiceId() uint32
func (*RewardsPlan) GetStartTime ¶
func (x *RewardsPlan) GetStartTime() *timestamppb.Timestamp
func (*RewardsPlan) GetUsersDistribution ¶
func (x *RewardsPlan) GetUsersDistribution() *UsersDistribution
func (*RewardsPlan) ProtoMessage ¶
func (*RewardsPlan) ProtoMessage()
func (*RewardsPlan) ProtoReflect ¶
func (x *RewardsPlan) ProtoReflect() protoreflect.Message
func (*RewardsPlan) Reset ¶
func (x *RewardsPlan) Reset()
func (*RewardsPlan) String ¶
func (x *RewardsPlan) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMsgServer) CreateRewardsPlan ¶
func (UnimplementedMsgServer) CreateRewardsPlan(context.Context, *MsgCreateRewardsPlan) (*MsgCreateRewardsPlanResponse, error)
func (UnimplementedMsgServer) SetWithdrawAddress ¶
func (UnimplementedMsgServer) SetWithdrawAddress(context.Context, *MsgSetWithdrawAddress) (*MsgSetWithdrawAddressResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (UnimplementedMsgServer) WithdrawDelegatorReward ¶
func (UnimplementedMsgServer) WithdrawDelegatorReward(context.Context, *MsgWithdrawDelegatorReward) (*MsgWithdrawDelegatorRewardResponse, error)
func (UnimplementedMsgServer) WithdrawOperatorCommission ¶
func (UnimplementedMsgServer) WithdrawOperatorCommission(context.Context, *MsgWithdrawOperatorCommission) (*MsgWithdrawOperatorCommissionResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedQueryServer) DelegatorTotalRewards ¶
func (UnimplementedQueryServer) DelegatorTotalRewards(context.Context, *QueryDelegatorTotalRewardsRequest) (*QueryDelegatorTotalRewardsResponse, error)
func (UnimplementedQueryServer) DelegatorWithdrawAddress ¶
func (UnimplementedQueryServer) DelegatorWithdrawAddress(context.Context, *QueryDelegatorWithdrawAddressRequest) (*QueryDelegatorWithdrawAddressResponse, error)
func (UnimplementedQueryServer) OperatorCommission ¶
func (UnimplementedQueryServer) OperatorCommission(context.Context, *QueryOperatorCommissionRequest) (*QueryOperatorCommissionResponse, error)
func (UnimplementedQueryServer) OperatorDelegationRewards ¶
func (UnimplementedQueryServer) OperatorDelegationRewards(context.Context, *QueryOperatorDelegationRewardsRequest) (*QueryOperatorDelegationRewardsResponse, error)
func (UnimplementedQueryServer) OperatorOutstandingRewards ¶
func (UnimplementedQueryServer) OperatorOutstandingRewards(context.Context, *QueryOperatorOutstandingRewardsRequest) (*QueryOperatorOutstandingRewardsResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) PoolDelegationRewards ¶
func (UnimplementedQueryServer) PoolDelegationRewards(context.Context, *QueryPoolDelegationRewardsRequest) (*QueryPoolDelegationRewardsResponse, error)
func (UnimplementedQueryServer) PoolOutstandingRewards ¶
func (UnimplementedQueryServer) PoolOutstandingRewards(context.Context, *QueryPoolOutstandingRewardsRequest) (*QueryPoolOutstandingRewardsResponse, error)
func (UnimplementedQueryServer) RewardsPlan ¶
func (UnimplementedQueryServer) RewardsPlan(context.Context, *QueryRewardsPlanRequest) (*QueryRewardsPlanResponse, error)
func (UnimplementedQueryServer) RewardsPlans ¶
func (UnimplementedQueryServer) RewardsPlans(context.Context, *QueryRewardsPlansRequest) (*QueryRewardsPlansResponse, error)
func (UnimplementedQueryServer) ServiceDelegationRewards ¶
func (UnimplementedQueryServer) ServiceDelegationRewards(context.Context, *QueryServiceDelegationRewardsRequest) (*QueryServiceDelegationRewardsResponse, error)
func (UnimplementedQueryServer) ServiceOutstandingRewards ¶
func (UnimplementedQueryServer) ServiceOutstandingRewards(context.Context, *QueryServiceOutstandingRewardsRequest) (*QueryServiceOutstandingRewardsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.
type UsersDistribution ¶
type UsersDistribution struct { // Weight is the rewards distribution weight among other types of delegation // targets. Weight uint32 `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"` // Type defines the rewards distribution method. Currently only the basic // distribution is allowed. Type_ *anypb.Any `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
Distribution represents distribution parameters for delegators who directly staked their tokens to the service.
func (*UsersDistribution) Descriptor
deprecated
func (*UsersDistribution) Descriptor() ([]byte, []int)
Deprecated: Use UsersDistribution.ProtoReflect.Descriptor instead.
func (*UsersDistribution) GetType_ ¶
func (x *UsersDistribution) GetType_() *anypb.Any
func (*UsersDistribution) GetWeight ¶
func (x *UsersDistribution) GetWeight() uint32
func (*UsersDistribution) ProtoMessage ¶
func (*UsersDistribution) ProtoMessage()
func (*UsersDistribution) ProtoReflect ¶
func (x *UsersDistribution) ProtoReflect() protoreflect.Message
func (*UsersDistribution) Reset ¶
func (x *UsersDistribution) Reset()
func (*UsersDistribution) String ¶
func (x *UsersDistribution) String() string
type UsersDistributionTypeBasic ¶
type UsersDistributionTypeBasic struct {
// contains filtered or unexported fields
}
UsersDistributionTypeBasic represents the simplest form of distribution. Rewards are allocated to entities based on their delegation values. For example, if there are three users with delegation values of $1000, $1500, and $2000, their rewards will be distributed in a 2:3:4 ratio.
func (*UsersDistributionTypeBasic) Descriptor
deprecated
func (*UsersDistributionTypeBasic) Descriptor() ([]byte, []int)
Deprecated: Use UsersDistributionTypeBasic.ProtoReflect.Descriptor instead.
func (*UsersDistributionTypeBasic) ProtoMessage ¶
func (*UsersDistributionTypeBasic) ProtoMessage()
func (*UsersDistributionTypeBasic) ProtoReflect ¶
func (x *UsersDistributionTypeBasic) ProtoReflect() protoreflect.Message
func (*UsersDistributionTypeBasic) Reset ¶
func (x *UsersDistributionTypeBasic) Reset()
func (*UsersDistributionTypeBasic) String ¶
func (x *UsersDistributionTypeBasic) String() string