estaking

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

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.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_elys_estaking_dex_rewards_tracker_proto protoreflect.FileDescriptor
View Source
var File_elys_estaking_elys_staked_proto protoreflect.FileDescriptor
View Source
var File_elys_estaking_genesis_proto protoreflect.FileDescriptor
View Source
var File_elys_estaking_incentive_proto protoreflect.FileDescriptor
View Source
var File_elys_estaking_params_proto protoreflect.FileDescriptor
View Source
var File_elys_estaking_query_proto protoreflect.FileDescriptor
View Source
var File_elys_estaking_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "elys.estaking.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "WithdrawReward",
			Handler:    _Msg_WithdrawReward_Handler,
		},
		{
			MethodName: "WithdrawElysStakingRewards",
			Handler:    _Msg_WithdrawElysStakingRewards_Handler,
		},
		{
			MethodName: "WithdrawAllRewards",
			Handler:    _Msg_WithdrawAllRewards_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "elys/estaking/tx.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)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "elys.estaking.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Rewards",
			Handler:    _Query_Rewards_Handler,
		},
		{
			MethodName: "Invariant",
			Handler:    _Query_Invariant_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "elys/estaking/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 DelegationDelegatorReward

type DelegationDelegatorReward struct {
	ValidatorAddress string          `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Reward           []*v1beta1.Coin `protobuf:"bytes,2,rep,name=reward,proto3" json:"reward,omitempty"`
	// contains filtered or unexported fields
}

func (*DelegationDelegatorReward) Descriptor deprecated

func (*DelegationDelegatorReward) Descriptor() ([]byte, []int)

Deprecated: Use DelegationDelegatorReward.ProtoReflect.Descriptor instead.

func (*DelegationDelegatorReward) GetReward

func (x *DelegationDelegatorReward) GetReward() []*v1beta1.Coin

func (*DelegationDelegatorReward) GetValidatorAddress

func (x *DelegationDelegatorReward) GetValidatorAddress() string

func (*DelegationDelegatorReward) ProtoMessage

func (*DelegationDelegatorReward) ProtoMessage()

func (*DelegationDelegatorReward) ProtoReflect

func (*DelegationDelegatorReward) Reset

func (x *DelegationDelegatorReward) Reset()

func (*DelegationDelegatorReward) String

func (x *DelegationDelegatorReward) String() string

type DexRewardsTracker

type DexRewardsTracker struct {

	// Number of blocks since start of epoch (distribution epoch)
	NumBlocks int64 `protobuf:"varint,1,opt,name=num_blocks,json=numBlocks,proto3" json:"num_blocks,omitempty"`
	// Accumulated amount at distribution epoch - recalculated at every
	// distribution epoch
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

DexRewardsTracker is used for tracking rewards for stakers and LPs, all amount here is in USDC

func (*DexRewardsTracker) Descriptor deprecated

func (*DexRewardsTracker) Descriptor() ([]byte, []int)

Deprecated: Use DexRewardsTracker.ProtoReflect.Descriptor instead.

func (*DexRewardsTracker) GetAmount

func (x *DexRewardsTracker) GetAmount() string

func (*DexRewardsTracker) GetNumBlocks

func (x *DexRewardsTracker) GetNumBlocks() int64

func (*DexRewardsTracker) ProtoMessage

func (*DexRewardsTracker) ProtoMessage()

func (*DexRewardsTracker) ProtoReflect

func (x *DexRewardsTracker) ProtoReflect() protoreflect.Message

func (*DexRewardsTracker) Reset

func (x *DexRewardsTracker) Reset()

func (*DexRewardsTracker) String

func (x *DexRewardsTracker) String() string

type ElysStaked

type ElysStaked struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Amount  string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Elys staked amount is tracked because EdenBoost has to be burnt when unstake ELYS event happens, and there's no way to track staked amount change from staking hook and this struct is added.

func (*ElysStaked) Descriptor deprecated

func (*ElysStaked) Descriptor() ([]byte, []int)

Deprecated: Use ElysStaked.ProtoReflect.Descriptor instead.

func (*ElysStaked) GetAddress

func (x *ElysStaked) GetAddress() string

func (*ElysStaked) GetAmount

func (x *ElysStaked) GetAmount() string

func (*ElysStaked) ProtoMessage

func (*ElysStaked) ProtoMessage()

func (*ElysStaked) ProtoReflect

func (x *ElysStaked) ProtoReflect() protoreflect.Message

func (*ElysStaked) Reset

func (x *ElysStaked) Reset()

func (*ElysStaked) String

func (x *ElysStaked) String() string

type GenesisState

type GenesisState struct {
	Params           *Params       `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	StakingSnapshots []*ElysStaked `protobuf:"bytes,2,rep,name=staking_snapshots,json=stakingSnapshots,proto3" json:"staking_snapshots,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the estaking module's genesis state.

func (*GenesisState) Descriptor deprecated

func (*GenesisState) Descriptor() ([]byte, []int)

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetStakingSnapshots

func (x *GenesisState) GetStakingSnapshots() []*ElysStaked

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 IncentiveInfo

type IncentiveInfo struct {

	// reward amount in eden for 1 year
	EdenAmountPerYear string `protobuf:"bytes,1,opt,name=eden_amount_per_year,json=edenAmountPerYear,proto3" json:"eden_amount_per_year,omitempty"`
	// blocks distributed
	BlocksDistributed int64 `protobuf:"varint,2,opt,name=blocks_distributed,json=blocksDistributed,proto3" json:"blocks_distributed,omitempty"`
	// contains filtered or unexported fields
}

func (*IncentiveInfo) Descriptor deprecated

func (*IncentiveInfo) Descriptor() ([]byte, []int)

Deprecated: Use IncentiveInfo.ProtoReflect.Descriptor instead.

func (*IncentiveInfo) GetBlocksDistributed

func (x *IncentiveInfo) GetBlocksDistributed() int64

func (*IncentiveInfo) GetEdenAmountPerYear

func (x *IncentiveInfo) GetEdenAmountPerYear() string

func (*IncentiveInfo) ProtoMessage

func (*IncentiveInfo) ProtoMessage()

func (*IncentiveInfo) ProtoReflect

func (x *IncentiveInfo) ProtoReflect() protoreflect.Message

func (*IncentiveInfo) Reset

func (x *IncentiveInfo) Reset()

func (*IncentiveInfo) String

func (x *IncentiveInfo) String() string

type LegacyParams

type LegacyParams struct {
	StakeIncentives *IncentiveInfo `protobuf:"bytes,1,opt,name=stake_incentives,json=stakeIncentives,proto3" json:"stake_incentives,omitempty"`
	EdenCommitVal   string         `protobuf:"bytes,2,opt,name=eden_commit_val,json=edenCommitVal,proto3" json:"eden_commit_val,omitempty"`
	EdenbCommitVal  string         `protobuf:"bytes,3,opt,name=edenb_commit_val,json=edenbCommitVal,proto3" json:"edenb_commit_val,omitempty"`
	// Maximum eden reward apr for stakers - [0 - 0.3]
	MaxEdenRewardAprStakers string `` /* 136-byte string literal not displayed */
	EdenBoostApr            string `protobuf:"bytes,5,opt,name=eden_boost_apr,json=edenBoostApr,proto3" json:"eden_boost_apr,omitempty"`
	// Tracking dex rewards given to stakers
	DexRewardsStakers *DexRewardsTracker `protobuf:"bytes,6,opt,name=dex_rewards_stakers,json=dexRewardsStakers,proto3" json:"dex_rewards_stakers,omitempty"`
	// contains filtered or unexported fields
}

func (*LegacyParams) Descriptor deprecated

func (*LegacyParams) Descriptor() ([]byte, []int)

Deprecated: Use LegacyParams.ProtoReflect.Descriptor instead.

func (*LegacyParams) GetDexRewardsStakers

func (x *LegacyParams) GetDexRewardsStakers() *DexRewardsTracker

func (*LegacyParams) GetEdenBoostApr

func (x *LegacyParams) GetEdenBoostApr() string

func (*LegacyParams) GetEdenCommitVal

func (x *LegacyParams) GetEdenCommitVal() string

func (*LegacyParams) GetEdenbCommitVal

func (x *LegacyParams) GetEdenbCommitVal() string

func (*LegacyParams) GetMaxEdenRewardAprStakers

func (x *LegacyParams) GetMaxEdenRewardAprStakers() string

func (*LegacyParams) GetStakeIncentives

func (x *LegacyParams) GetStakeIncentives() *IncentiveInfo

func (*LegacyParams) ProtoMessage

func (*LegacyParams) ProtoMessage()

func (*LegacyParams) ProtoReflect

func (x *LegacyParams) ProtoReflect() protoreflect.Message

func (*LegacyParams) Reset

func (x *LegacyParams) Reset()

func (*LegacyParams) String

func (x *LegacyParams) String() string

type MsgClient

type MsgClient interface {
	// UpdateParams defines a governance operation for updating the x/distribution
	// module parameters. The authority is defined in the keeper.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// WithdrawReward defines a method to withdraw rewards of delegator from a
	// single validator.
	WithdrawReward(ctx context.Context, in *MsgWithdrawReward, opts ...grpc.CallOption) (*MsgWithdrawRewardResponse, error)
	// WithdrawElysStakingRewards defines a method to withdraw rewards of
	// delegator from all the validators.
	WithdrawElysStakingRewards(ctx context.Context, in *MsgWithdrawElysStakingRewards, opts ...grpc.CallOption) (*MsgWithdrawElysStakingRewardsResponse, error)
	// WithdrawAllRewards defines a method to withdraw rewards of delegator from
	// all the validators and Eden/EdenB commitment.
	WithdrawAllRewards(ctx context.Context, in *MsgWithdrawAllRewards, opts ...grpc.CallOption) (*MsgWithdrawAllRewardsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

type MsgServer interface {
	// UpdateParams defines a governance operation for updating the x/distribution
	// module parameters. The authority is defined in the keeper.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// WithdrawReward defines a method to withdraw rewards of delegator from a
	// single validator.
	WithdrawReward(context.Context, *MsgWithdrawReward) (*MsgWithdrawRewardResponse, error)
	// WithdrawElysStakingRewards defines a method to withdraw rewards of
	// delegator from all the validators.
	WithdrawElysStakingRewards(context.Context, *MsgWithdrawElysStakingRewards) (*MsgWithdrawElysStakingRewardsResponse, error)
	// WithdrawAllRewards defines a method to withdraw rewards of delegator from
	// all the validators and Eden/EdenB commitment.
	WithdrawAllRewards(context.Context, *MsgWithdrawAllRewards) (*MsgWithdrawAllRewardsResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgUpdateParams

type MsgUpdateParams struct {
	Authority string  `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Params    *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

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 defines the response structure for executing a MsgUpdateParams message.

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 MsgWithdrawAllRewards

type MsgWithdrawAllRewards struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// contains filtered or unexported fields
}

MsgWithdrawAllRewards represents delegation withdrawal to a delegator from all the validators and Eden/EdenB commitment.

func (*MsgWithdrawAllRewards) Descriptor deprecated

func (*MsgWithdrawAllRewards) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawAllRewards.ProtoReflect.Descriptor instead.

func (*MsgWithdrawAllRewards) GetDelegatorAddress

func (x *MsgWithdrawAllRewards) GetDelegatorAddress() string

func (*MsgWithdrawAllRewards) ProtoMessage

func (*MsgWithdrawAllRewards) ProtoMessage()

func (*MsgWithdrawAllRewards) ProtoReflect

func (x *MsgWithdrawAllRewards) ProtoReflect() protoreflect.Message

func (*MsgWithdrawAllRewards) Reset

func (x *MsgWithdrawAllRewards) Reset()

func (*MsgWithdrawAllRewards) String

func (x *MsgWithdrawAllRewards) String() string

type MsgWithdrawAllRewardsResponse

type MsgWithdrawAllRewardsResponse struct {
	Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgWithdrawAllRewardsResponse defines the Msg/WithdrawAllRewards response type.

func (*MsgWithdrawAllRewardsResponse) Descriptor deprecated

func (*MsgWithdrawAllRewardsResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawAllRewardsResponse.ProtoReflect.Descriptor instead.

func (*MsgWithdrawAllRewardsResponse) GetAmount

func (x *MsgWithdrawAllRewardsResponse) GetAmount() []*v1beta1.Coin

func (*MsgWithdrawAllRewardsResponse) ProtoMessage

func (*MsgWithdrawAllRewardsResponse) ProtoMessage()

func (*MsgWithdrawAllRewardsResponse) ProtoReflect

func (*MsgWithdrawAllRewardsResponse) Reset

func (x *MsgWithdrawAllRewardsResponse) Reset()

func (*MsgWithdrawAllRewardsResponse) String

type MsgWithdrawElysStakingRewards

type MsgWithdrawElysStakingRewards struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// contains filtered or unexported fields
}

MsgWithdrawElysStakingRewards represents delegation withdrawal to a delegator from all the validators.

func (*MsgWithdrawElysStakingRewards) Descriptor deprecated

func (*MsgWithdrawElysStakingRewards) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawElysStakingRewards.ProtoReflect.Descriptor instead.

func (*MsgWithdrawElysStakingRewards) GetDelegatorAddress

func (x *MsgWithdrawElysStakingRewards) GetDelegatorAddress() string

func (*MsgWithdrawElysStakingRewards) ProtoMessage

func (*MsgWithdrawElysStakingRewards) ProtoMessage()

func (*MsgWithdrawElysStakingRewards) ProtoReflect

func (*MsgWithdrawElysStakingRewards) Reset

func (x *MsgWithdrawElysStakingRewards) Reset()

func (*MsgWithdrawElysStakingRewards) String

type MsgWithdrawElysStakingRewardsResponse

type MsgWithdrawElysStakingRewardsResponse struct {
	Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgWithdrawElysStakingRewards defines the Msg/WithdrawElysStakingRewards response type.

func (*MsgWithdrawElysStakingRewardsResponse) Descriptor deprecated

func (*MsgWithdrawElysStakingRewardsResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawElysStakingRewardsResponse.ProtoReflect.Descriptor instead.

func (*MsgWithdrawElysStakingRewardsResponse) GetAmount

func (*MsgWithdrawElysStakingRewardsResponse) ProtoMessage

func (*MsgWithdrawElysStakingRewardsResponse) ProtoMessage()

func (*MsgWithdrawElysStakingRewardsResponse) ProtoReflect

func (*MsgWithdrawElysStakingRewardsResponse) Reset

func (*MsgWithdrawElysStakingRewardsResponse) String

type MsgWithdrawReward

type MsgWithdrawReward struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// contains filtered or unexported fields
}

MsgWithdrawReward represents delegation withdrawal to a delegator from a single validator.

func (*MsgWithdrawReward) Descriptor deprecated

func (*MsgWithdrawReward) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawReward.ProtoReflect.Descriptor instead.

func (*MsgWithdrawReward) GetDelegatorAddress

func (x *MsgWithdrawReward) GetDelegatorAddress() string

func (*MsgWithdrawReward) GetValidatorAddress

func (x *MsgWithdrawReward) GetValidatorAddress() string

func (*MsgWithdrawReward) ProtoMessage

func (*MsgWithdrawReward) ProtoMessage()

func (*MsgWithdrawReward) ProtoReflect

func (x *MsgWithdrawReward) ProtoReflect() protoreflect.Message

func (*MsgWithdrawReward) Reset

func (x *MsgWithdrawReward) Reset()

func (*MsgWithdrawReward) String

func (x *MsgWithdrawReward) String() string

type MsgWithdrawRewardResponse

type MsgWithdrawRewardResponse struct {
	Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgWithdrawRewardResponse defines the Msg/WithdrawDelegatorReward response type.

func (*MsgWithdrawRewardResponse) Descriptor deprecated

func (*MsgWithdrawRewardResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawRewardResponse.ProtoReflect.Descriptor instead.

func (*MsgWithdrawRewardResponse) GetAmount

func (x *MsgWithdrawRewardResponse) GetAmount() []*v1beta1.Coin

func (*MsgWithdrawRewardResponse) ProtoMessage

func (*MsgWithdrawRewardResponse) ProtoMessage()

func (*MsgWithdrawRewardResponse) ProtoReflect

func (*MsgWithdrawRewardResponse) Reset

func (x *MsgWithdrawRewardResponse) Reset()

func (*MsgWithdrawRewardResponse) String

func (x *MsgWithdrawRewardResponse) String() string

type Params

type Params struct {
	StakeIncentives *IncentiveInfo `protobuf:"bytes,1,opt,name=stake_incentives,json=stakeIncentives,proto3" json:"stake_incentives,omitempty"`
	EdenCommitVal   string         `protobuf:"bytes,2,opt,name=eden_commit_val,json=edenCommitVal,proto3" json:"eden_commit_val,omitempty"`
	EdenbCommitVal  string         `protobuf:"bytes,3,opt,name=edenb_commit_val,json=edenbCommitVal,proto3" json:"edenb_commit_val,omitempty"`
	// Maximum eden reward apr for stakers - [0 - 0.3]
	MaxEdenRewardAprStakers        string `` /* 136-byte string literal not displayed */
	EdenBoostApr                   string `protobuf:"bytes,5,opt,name=eden_boost_apr,json=edenBoostApr,proto3" json:"eden_boost_apr,omitempty"`
	ProviderVestingEpochIdentifier string `` /* 155-byte string literal not displayed */
	ProviderStakingRewardsPortion  string `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

func (*Params) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetEdenBoostApr

func (x *Params) GetEdenBoostApr() string

func (*Params) GetEdenCommitVal

func (x *Params) GetEdenCommitVal() string

func (*Params) GetEdenbCommitVal

func (x *Params) GetEdenbCommitVal() string

func (*Params) GetMaxEdenRewardAprStakers

func (x *Params) GetMaxEdenRewardAprStakers() string

func (*Params) GetProviderStakingRewardsPortion added in v0.54.0

func (x *Params) GetProviderStakingRewardsPortion() string

func (*Params) GetProviderVestingEpochIdentifier added in v0.54.0

func (x *Params) GetProviderVestingEpochIdentifier() string

func (*Params) GetStakeIncentives

func (x *Params) GetStakeIncentives() *IncentiveInfo

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Rewards queries the total rewards accrued by a delegation
	Rewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error)
	// Invariant queries the invariant values
	Invariant(ctx context.Context, in *QueryInvariantRequest, opts ...grpc.CallOption) (*QueryInvariantResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryInvariantRequest

type QueryInvariantRequest struct {
	// contains filtered or unexported fields
}

func (*QueryInvariantRequest) Descriptor deprecated

func (*QueryInvariantRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryInvariantRequest.ProtoReflect.Descriptor instead.

func (*QueryInvariantRequest) ProtoMessage

func (*QueryInvariantRequest) ProtoMessage()

func (*QueryInvariantRequest) ProtoReflect

func (x *QueryInvariantRequest) ProtoReflect() protoreflect.Message

func (*QueryInvariantRequest) Reset

func (x *QueryInvariantRequest) Reset()

func (*QueryInvariantRequest) String

func (x *QueryInvariantRequest) String() string

type QueryInvariantResponse

type QueryInvariantResponse struct {
	TotalBonded              string `protobuf:"bytes,1,opt,name=total_bonded,json=totalBonded,proto3" json:"total_bonded,omitempty"`
	BondedValidatorTokensSum string `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*QueryInvariantResponse) Descriptor deprecated

func (*QueryInvariantResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryInvariantResponse.ProtoReflect.Descriptor instead.

func (*QueryInvariantResponse) GetBondedValidatorTokensSum

func (x *QueryInvariantResponse) GetBondedValidatorTokensSum() string

func (*QueryInvariantResponse) GetTotalBonded

func (x *QueryInvariantResponse) GetTotalBonded() string

func (*QueryInvariantResponse) ProtoMessage

func (*QueryInvariantResponse) ProtoMessage()

func (*QueryInvariantResponse) ProtoReflect

func (x *QueryInvariantResponse) ProtoReflect() protoreflect.Message

func (*QueryInvariantResponse) Reset

func (x *QueryInvariantResponse) Reset()

func (*QueryInvariantResponse) String

func (x *QueryInvariantResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is 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 holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is 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 QueryRewardsRequest

type QueryRewardsRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRewardsRequest) Descriptor deprecated

func (*QueryRewardsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryRewardsRequest.ProtoReflect.Descriptor instead.

func (*QueryRewardsRequest) GetAddress

func (x *QueryRewardsRequest) GetAddress() string

func (*QueryRewardsRequest) ProtoMessage

func (*QueryRewardsRequest) ProtoMessage()

func (*QueryRewardsRequest) ProtoReflect

func (x *QueryRewardsRequest) ProtoReflect() protoreflect.Message

func (*QueryRewardsRequest) Reset

func (x *QueryRewardsRequest) Reset()

func (*QueryRewardsRequest) String

func (x *QueryRewardsRequest) String() string

type QueryRewardsResponse

type QueryRewardsResponse struct {

	// rewards defines all the rewards accrued by a delegator.
	Rewards []*DelegationDelegatorReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"`
	// total defines the sum of all the rewards.
	Total []*v1beta1.Coin `protobuf:"bytes,2,rep,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRewardsResponse) Descriptor deprecated

func (*QueryRewardsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryRewardsResponse.ProtoReflect.Descriptor instead.

func (*QueryRewardsResponse) GetRewards

func (*QueryRewardsResponse) GetTotal

func (x *QueryRewardsResponse) GetTotal() []*v1beta1.Coin

func (*QueryRewardsResponse) ProtoMessage

func (*QueryRewardsResponse) ProtoMessage()

func (*QueryRewardsResponse) ProtoReflect

func (x *QueryRewardsResponse) ProtoReflect() protoreflect.Message

func (*QueryRewardsResponse) Reset

func (x *QueryRewardsResponse) Reset()

func (*QueryRewardsResponse) String

func (x *QueryRewardsResponse) String() string

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Rewards queries the total rewards accrued by a delegation
	Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error)
	// Invariant queries the invariant values
	Invariant(context.Context, *QueryInvariantRequest) (*QueryInvariantResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) UpdateParams

func (UnimplementedMsgServer) WithdrawReward

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Invariant

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Rewards

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL