types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 39 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TypeEvtWithdrawReward = "withdraw_reward"
	TypeEvtBurnEdenB      = "burn_edenB"

	AttributeDelegatorAddress = "delegator_address"
	AttributeValidatorAddress = "validator_address"
	AttributeAmount           = "amount"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "estaking"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	LegacyElysStakedKeyPrefix      = "ElysStaked/value/"
	LegacyElysStakeChangeKeyPrefix = "ElysStakeChanged/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrInvalidLengthDexRewardsTracker        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDexRewardsTracker          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDexRewardsTracker = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthElysStaked        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowElysStaked          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupElysStaked = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthIncentive        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIncentive          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIncentive = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ElysStakedKeyPrefix      = []byte{0x01}
	ElysStakeChangeKeyPrefix = []byte{0x02}
	ParamsKeyPrefix          = []byte{0x03}
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrNoInflationaryParams = errorsmod.Register(ModuleName, 14, "no inflationary rewards params")
)

x/estaking module sentinel errors

Functions

func GetElysStakeChangeKey added in v0.42.0

func GetElysStakeChangeKey(acc sdk.AccAddress) []byte

func GetElysStakedKey added in v0.42.0

func GetElysStakedKey(acc sdk.AccAddress) []byte

func LegacyElysStakedKey added in v0.42.0

func LegacyElysStakedKey(address string) []byte

remove after migration

func LegacyKeyPrefix added in v0.42.0

func LegacyKeyPrefix(p string) []byte

remove after migration

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v0.50.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type AssetProfileKeeper

type AssetProfileKeeper interface {
	// SetEntry set a specific entry in the store from its index
	SetEntry(ctx sdk.Context, entry assetprofiletypes.Entry)
	// GetEntry returns a entry from its index
	GetEntry(ctx sdk.Context, baseDenom string) (val assetprofiletypes.Entry, found bool)
	// GetEntryByDenom returns a entry from its denom value
	GetEntryByDenom(ctx sdk.Context, denom string) (val assetprofiletypes.Entry, found bool)
	// GetUsdcDenom returns USDC denom
	GetUsdcDenom(ctx sdk.Context) (string, bool)
}

AssetProfileKeeper defines the expected interfaces

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CommitmentKeeper

type CommitmentKeeper interface {
	GetCommitments(ctx sdk.Context, creator sdk.AccAddress) commitmenttypes.Commitments
	GetParams(ctx sdk.Context) commitmenttypes.Params
	GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins
	MintCoins(goCtx context.Context, moduleName string, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx context.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	SetCommitments(sdk.Context, commitmenttypes.Commitments)
	BurnEdenBoost(ctx sdk.Context, creator sdk.AccAddress, denom string, amount math.Int) error
	ClaimVesting(ctx sdk.Context, msg *commitmenttypes.MsgClaimVesting) (*commitmenttypes.MsgClaimVestingResponse, error)
	ProcessTokenVesting(ctx sdk.Context, denom string, amount math.Int, creator sdk.AccAddress) error
}

type DelegationDelegatorReward

type DelegationDelegatorReward struct {
	ValidatorAddress string                                   `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Reward           github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward"`
}

func (*DelegationDelegatorReward) Descriptor

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

func (*DelegationDelegatorReward) GetReward

func (*DelegationDelegatorReward) GetValidatorAddress

func (m *DelegationDelegatorReward) GetValidatorAddress() string

func (*DelegationDelegatorReward) Marshal

func (m *DelegationDelegatorReward) Marshal() (dAtA []byte, err error)

func (*DelegationDelegatorReward) MarshalTo

func (m *DelegationDelegatorReward) MarshalTo(dAtA []byte) (int, error)

func (*DelegationDelegatorReward) MarshalToSizedBuffer

func (m *DelegationDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DelegationDelegatorReward) ProtoMessage

func (*DelegationDelegatorReward) ProtoMessage()

func (*DelegationDelegatorReward) Reset

func (m *DelegationDelegatorReward) Reset()

func (*DelegationDelegatorReward) Size

func (m *DelegationDelegatorReward) Size() (n int)

func (*DelegationDelegatorReward) String

func (m *DelegationDelegatorReward) String() string

func (*DelegationDelegatorReward) Unmarshal

func (m *DelegationDelegatorReward) Unmarshal(dAtA []byte) error

func (*DelegationDelegatorReward) XXX_DiscardUnknown

func (m *DelegationDelegatorReward) XXX_DiscardUnknown()

func (*DelegationDelegatorReward) XXX_Marshal

func (m *DelegationDelegatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegationDelegatorReward) XXX_Merge

func (m *DelegationDelegatorReward) XXX_Merge(src proto.Message)

func (*DelegationDelegatorReward) XXX_Size

func (m *DelegationDelegatorReward) XXX_Size() int

func (*DelegationDelegatorReward) XXX_Unmarshal

func (m *DelegationDelegatorReward) XXX_Unmarshal(b []byte) error

type DexRewardsTracker

type DexRewardsTracker struct {
	// Number of blocks since start of epoch (distribution epoch)
	NumBlocks 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 cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"amount"`
}

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

func (*DexRewardsTracker) Descriptor

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

func (*DexRewardsTracker) Equal

func (this *DexRewardsTracker) Equal(that interface{}) bool

func (*DexRewardsTracker) GetNumBlocks added in v0.45.0

func (m *DexRewardsTracker) GetNumBlocks() int64

func (*DexRewardsTracker) Marshal

func (m *DexRewardsTracker) Marshal() (dAtA []byte, err error)

func (*DexRewardsTracker) MarshalTo

func (m *DexRewardsTracker) MarshalTo(dAtA []byte) (int, error)

func (*DexRewardsTracker) MarshalToSizedBuffer

func (m *DexRewardsTracker) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DexRewardsTracker) ProtoMessage

func (*DexRewardsTracker) ProtoMessage()

func (*DexRewardsTracker) Reset

func (m *DexRewardsTracker) Reset()

func (*DexRewardsTracker) Size

func (m *DexRewardsTracker) Size() (n int)

func (*DexRewardsTracker) String

func (m *DexRewardsTracker) String() string

func (*DexRewardsTracker) Unmarshal

func (m *DexRewardsTracker) Unmarshal(dAtA []byte) error

func (*DexRewardsTracker) XXX_DiscardUnknown

func (m *DexRewardsTracker) XXX_DiscardUnknown()

func (*DexRewardsTracker) XXX_Marshal

func (m *DexRewardsTracker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DexRewardsTracker) XXX_Merge

func (m *DexRewardsTracker) XXX_Merge(src proto.Message)

func (*DexRewardsTracker) XXX_Size

func (m *DexRewardsTracker) XXX_Size() int

func (*DexRewardsTracker) XXX_Unmarshal

func (m *DexRewardsTracker) XXX_Unmarshal(b []byte) error

type DistrKeeper

type DistrKeeper interface {
	WithdrawDelegationRewards(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
	IncrementValidatorPeriod(ctx context.Context, val stakingtypes.ValidatorI) (uint64, error)
	CalculateDelegationRewards(ctx context.Context, val stakingtypes.ValidatorI, del stakingtypes.DelegationI, endingPeriod uint64) (rewards sdk.DecCoins, err error)
	GetDelegatorStartingInfo(ctx context.Context, val sdk.ValAddress, del sdk.AccAddress) (period disttypes.DelegatorStartingInfo, err error)
}

type ElysStaked

type ElysStaked struct {
	Address string                `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Amount  cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"`
}

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

func (*ElysStaked) Descriptor

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

func (*ElysStaked) Equal

func (this *ElysStaked) Equal(that interface{}) bool

func (ElysStaked) GetAccountAddress added in v0.42.0

func (e ElysStaked) GetAccountAddress() sdk.AccAddress

func (*ElysStaked) GetAddress

func (m *ElysStaked) GetAddress() string

func (*ElysStaked) Marshal

func (m *ElysStaked) Marshal() (dAtA []byte, err error)

func (*ElysStaked) MarshalTo

func (m *ElysStaked) MarshalTo(dAtA []byte) (int, error)

func (*ElysStaked) MarshalToSizedBuffer

func (m *ElysStaked) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ElysStaked) ProtoMessage

func (*ElysStaked) ProtoMessage()

func (*ElysStaked) Reset

func (m *ElysStaked) Reset()

func (*ElysStaked) Size

func (m *ElysStaked) Size() (n int)

func (*ElysStaked) String

func (m *ElysStaked) String() string

func (*ElysStaked) Unmarshal

func (m *ElysStaked) Unmarshal(dAtA []byte) error

func (*ElysStaked) XXX_DiscardUnknown

func (m *ElysStaked) XXX_DiscardUnknown()

func (*ElysStaked) XXX_Marshal

func (m *ElysStaked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ElysStaked) XXX_Merge

func (m *ElysStaked) XXX_Merge(src proto.Message)

func (*ElysStaked) XXX_Size

func (m *ElysStaked) XXX_Size() int

func (*ElysStaked) XXX_Unmarshal

func (m *ElysStaked) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	Params           Params       `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	StakingSnapshots []ElysStaked `protobuf:"bytes,2,rep,name=staking_snapshots,json=stakingSnapshots,proto3" json:"staking_snapshots"`
}

GenesisState defines the estaking module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetStakingSnapshots

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

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type IncentiveInfo

type IncentiveInfo struct {
	// reward amount in eden for 1 year
	EdenAmountPerYear cosmossdk_io_math.Int `` /* 139-byte string literal not displayed */
	// blocks distributed
	BlocksDistributed int64 `protobuf:"varint,2,opt,name=blocks_distributed,json=blocksDistributed,proto3" json:"blocks_distributed,omitempty"`
}

func (*IncentiveInfo) Descriptor

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

func (*IncentiveInfo) GetBlocksDistributed added in v0.45.0

func (m *IncentiveInfo) GetBlocksDistributed() int64

func (*IncentiveInfo) Marshal

func (m *IncentiveInfo) Marshal() (dAtA []byte, err error)

func (*IncentiveInfo) MarshalTo

func (m *IncentiveInfo) MarshalTo(dAtA []byte) (int, error)

func (*IncentiveInfo) MarshalToSizedBuffer

func (m *IncentiveInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IncentiveInfo) ProtoMessage

func (*IncentiveInfo) ProtoMessage()

func (*IncentiveInfo) Reset

func (m *IncentiveInfo) Reset()

func (*IncentiveInfo) Size

func (m *IncentiveInfo) Size() (n int)

func (*IncentiveInfo) String

func (m *IncentiveInfo) String() string

func (*IncentiveInfo) Unmarshal

func (m *IncentiveInfo) Unmarshal(dAtA []byte) error

func (*IncentiveInfo) XXX_DiscardUnknown

func (m *IncentiveInfo) XXX_DiscardUnknown()

func (*IncentiveInfo) XXX_Marshal

func (m *IncentiveInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IncentiveInfo) XXX_Merge

func (m *IncentiveInfo) XXX_Merge(src proto.Message)

func (*IncentiveInfo) XXX_Size

func (m *IncentiveInfo) XXX_Size() int

func (*IncentiveInfo) XXX_Unmarshal

func (m *IncentiveInfo) XXX_Unmarshal(b []byte) error

type LegacyParams added in v0.45.0

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 cosmossdk_io_math.LegacyDec `` /* 165-byte string literal not displayed */
	EdenBoostApr            cosmossdk_io_math.LegacyDec `` /* 128-byte string literal not displayed */
	// Tracking dex rewards given to stakers
	DexRewardsStakers DexRewardsTracker `protobuf:"bytes,6,opt,name=dex_rewards_stakers,json=dexRewardsStakers,proto3" json:"dex_rewards_stakers"`
}

func (*LegacyParams) Descriptor added in v0.45.0

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

func (*LegacyParams) GetDexRewardsStakers added in v0.45.0

func (m *LegacyParams) GetDexRewardsStakers() DexRewardsTracker

func (*LegacyParams) GetEdenCommitVal added in v0.45.0

func (m *LegacyParams) GetEdenCommitVal() string

func (*LegacyParams) GetEdenbCommitVal added in v0.45.0

func (m *LegacyParams) GetEdenbCommitVal() string

func (*LegacyParams) GetStakeIncentives added in v0.45.0

func (m *LegacyParams) GetStakeIncentives() *IncentiveInfo

func (*LegacyParams) Marshal added in v0.45.0

func (m *LegacyParams) Marshal() (dAtA []byte, err error)

func (*LegacyParams) MarshalTo added in v0.45.0

func (m *LegacyParams) MarshalTo(dAtA []byte) (int, error)

func (*LegacyParams) MarshalToSizedBuffer added in v0.45.0

func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LegacyParams) ProtoMessage added in v0.45.0

func (*LegacyParams) ProtoMessage()

func (*LegacyParams) Reset added in v0.45.0

func (m *LegacyParams) Reset()

func (*LegacyParams) Size added in v0.45.0

func (m *LegacyParams) Size() (n int)

func (*LegacyParams) String added in v0.45.0

func (m *LegacyParams) String() string

func (*LegacyParams) Unmarshal added in v0.45.0

func (m *LegacyParams) Unmarshal(dAtA []byte) error

func (*LegacyParams) XXX_DiscardUnknown added in v0.45.0

func (m *LegacyParams) XXX_DiscardUnknown()

func (*LegacyParams) XXX_Marshal added in v0.45.0

func (m *LegacyParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LegacyParams) XXX_Merge added in v0.45.0

func (m *LegacyParams) XXX_Merge(src proto.Message)

func (*LegacyParams) XXX_Size added in v0.45.0

func (m *LegacyParams) XXX_Size() int

func (*LegacyParams) XXX_Unmarshal added in v0.45.0

func (m *LegacyParams) XXX_Unmarshal(b []byte) error

type MsgClient

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

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

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

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Params    Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal

func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParams) MarshalTo

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParams) MarshalToSizedBuffer

func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

func (m *MsgUpdateParams) Size() (n int)

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error

func (*MsgUpdateParams) ValidateBasic

func (msg *MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParams) XXX_Merge

func (m *MsgUpdateParams) XXX_Merge(src proto.Message)

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsResponse) XXX_Merge

func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type MsgWithdrawAllRewards

type MsgWithdrawAllRewards struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

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

func (*MsgWithdrawAllRewards) Descriptor

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

func (*MsgWithdrawAllRewards) GetDelegatorAddress

func (m *MsgWithdrawAllRewards) GetDelegatorAddress() string

func (*MsgWithdrawAllRewards) Marshal

func (m *MsgWithdrawAllRewards) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawAllRewards) MarshalTo

func (m *MsgWithdrawAllRewards) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawAllRewards) MarshalToSizedBuffer

func (m *MsgWithdrawAllRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawAllRewards) ProtoMessage

func (*MsgWithdrawAllRewards) ProtoMessage()

func (*MsgWithdrawAllRewards) Reset

func (m *MsgWithdrawAllRewards) Reset()

func (*MsgWithdrawAllRewards) Size

func (m *MsgWithdrawAllRewards) Size() (n int)

func (*MsgWithdrawAllRewards) String

func (m *MsgWithdrawAllRewards) String() string

func (*MsgWithdrawAllRewards) Unmarshal

func (m *MsgWithdrawAllRewards) Unmarshal(dAtA []byte) error

func (*MsgWithdrawAllRewards) ValidateBasic

func (msg *MsgWithdrawAllRewards) ValidateBasic() error

func (*MsgWithdrawAllRewards) XXX_DiscardUnknown

func (m *MsgWithdrawAllRewards) XXX_DiscardUnknown()

func (*MsgWithdrawAllRewards) XXX_Marshal

func (m *MsgWithdrawAllRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawAllRewards) XXX_Merge

func (m *MsgWithdrawAllRewards) XXX_Merge(src proto.Message)

func (*MsgWithdrawAllRewards) XXX_Size

func (m *MsgWithdrawAllRewards) XXX_Size() int

func (*MsgWithdrawAllRewards) XXX_Unmarshal

func (m *MsgWithdrawAllRewards) XXX_Unmarshal(b []byte) error

type MsgWithdrawAllRewardsResponse

type MsgWithdrawAllRewardsResponse struct {
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgWithdrawAllRewardsResponse defines the Msg/WithdrawAllRewards response type.

func (*MsgWithdrawAllRewardsResponse) Descriptor

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

func (*MsgWithdrawAllRewardsResponse) GetAmount

func (*MsgWithdrawAllRewardsResponse) Marshal

func (m *MsgWithdrawAllRewardsResponse) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawAllRewardsResponse) MarshalTo

func (m *MsgWithdrawAllRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawAllRewardsResponse) MarshalToSizedBuffer

func (m *MsgWithdrawAllRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawAllRewardsResponse) ProtoMessage

func (*MsgWithdrawAllRewardsResponse) ProtoMessage()

func (*MsgWithdrawAllRewardsResponse) Reset

func (m *MsgWithdrawAllRewardsResponse) Reset()

func (*MsgWithdrawAllRewardsResponse) Size

func (m *MsgWithdrawAllRewardsResponse) Size() (n int)

func (*MsgWithdrawAllRewardsResponse) String

func (*MsgWithdrawAllRewardsResponse) Unmarshal

func (m *MsgWithdrawAllRewardsResponse) Unmarshal(dAtA []byte) error

func (*MsgWithdrawAllRewardsResponse) XXX_DiscardUnknown

func (m *MsgWithdrawAllRewardsResponse) XXX_DiscardUnknown()

func (*MsgWithdrawAllRewardsResponse) XXX_Marshal

func (m *MsgWithdrawAllRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawAllRewardsResponse) XXX_Merge

func (m *MsgWithdrawAllRewardsResponse) XXX_Merge(src proto.Message)

func (*MsgWithdrawAllRewardsResponse) XXX_Size

func (m *MsgWithdrawAllRewardsResponse) XXX_Size() int

func (*MsgWithdrawAllRewardsResponse) XXX_Unmarshal

func (m *MsgWithdrawAllRewardsResponse) XXX_Unmarshal(b []byte) error

type MsgWithdrawElysStakingRewards

type MsgWithdrawElysStakingRewards struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

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

func (*MsgWithdrawElysStakingRewards) Descriptor

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

func (*MsgWithdrawElysStakingRewards) GetDelegatorAddress

func (m *MsgWithdrawElysStakingRewards) GetDelegatorAddress() string

func (*MsgWithdrawElysStakingRewards) Marshal

func (m *MsgWithdrawElysStakingRewards) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawElysStakingRewards) MarshalTo

func (m *MsgWithdrawElysStakingRewards) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawElysStakingRewards) MarshalToSizedBuffer

func (m *MsgWithdrawElysStakingRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawElysStakingRewards) ProtoMessage

func (*MsgWithdrawElysStakingRewards) ProtoMessage()

func (*MsgWithdrawElysStakingRewards) Reset

func (m *MsgWithdrawElysStakingRewards) Reset()

func (*MsgWithdrawElysStakingRewards) Size

func (m *MsgWithdrawElysStakingRewards) Size() (n int)

func (*MsgWithdrawElysStakingRewards) String

func (*MsgWithdrawElysStakingRewards) Unmarshal

func (m *MsgWithdrawElysStakingRewards) Unmarshal(dAtA []byte) error

func (*MsgWithdrawElysStakingRewards) ValidateBasic

func (msg *MsgWithdrawElysStakingRewards) ValidateBasic() error

func (*MsgWithdrawElysStakingRewards) XXX_DiscardUnknown

func (m *MsgWithdrawElysStakingRewards) XXX_DiscardUnknown()

func (*MsgWithdrawElysStakingRewards) XXX_Marshal

func (m *MsgWithdrawElysStakingRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawElysStakingRewards) XXX_Merge

func (m *MsgWithdrawElysStakingRewards) XXX_Merge(src proto.Message)

func (*MsgWithdrawElysStakingRewards) XXX_Size

func (m *MsgWithdrawElysStakingRewards) XXX_Size() int

func (*MsgWithdrawElysStakingRewards) XXX_Unmarshal

func (m *MsgWithdrawElysStakingRewards) XXX_Unmarshal(b []byte) error

type MsgWithdrawElysStakingRewardsResponse

type MsgWithdrawElysStakingRewardsResponse struct {
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgWithdrawElysStakingRewards defines the Msg/WithdrawElysStakingRewards response type.

func (*MsgWithdrawElysStakingRewardsResponse) Descriptor

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

func (*MsgWithdrawElysStakingRewardsResponse) GetAmount

func (*MsgWithdrawElysStakingRewardsResponse) Marshal

func (m *MsgWithdrawElysStakingRewardsResponse) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawElysStakingRewardsResponse) MarshalTo

func (m *MsgWithdrawElysStakingRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawElysStakingRewardsResponse) MarshalToSizedBuffer

func (m *MsgWithdrawElysStakingRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawElysStakingRewardsResponse) ProtoMessage

func (*MsgWithdrawElysStakingRewardsResponse) ProtoMessage()

func (*MsgWithdrawElysStakingRewardsResponse) Reset

func (*MsgWithdrawElysStakingRewardsResponse) Size

func (*MsgWithdrawElysStakingRewardsResponse) String

func (*MsgWithdrawElysStakingRewardsResponse) Unmarshal

func (m *MsgWithdrawElysStakingRewardsResponse) Unmarshal(dAtA []byte) error

func (*MsgWithdrawElysStakingRewardsResponse) XXX_DiscardUnknown

func (m *MsgWithdrawElysStakingRewardsResponse) XXX_DiscardUnknown()

func (*MsgWithdrawElysStakingRewardsResponse) XXX_Marshal

func (m *MsgWithdrawElysStakingRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawElysStakingRewardsResponse) XXX_Merge

func (*MsgWithdrawElysStakingRewardsResponse) XXX_Size

func (*MsgWithdrawElysStakingRewardsResponse) XXX_Unmarshal

func (m *MsgWithdrawElysStakingRewardsResponse) XXX_Unmarshal(b []byte) error

type MsgWithdrawReward

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

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

func (*MsgWithdrawReward) Descriptor

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

func (*MsgWithdrawReward) GetDelegatorAddress

func (m *MsgWithdrawReward) GetDelegatorAddress() string

func (*MsgWithdrawReward) GetValidatorAddress

func (m *MsgWithdrawReward) GetValidatorAddress() string

func (*MsgWithdrawReward) Marshal

func (m *MsgWithdrawReward) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawReward) MarshalTo

func (m *MsgWithdrawReward) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawReward) MarshalToSizedBuffer

func (m *MsgWithdrawReward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawReward) ProtoMessage

func (*MsgWithdrawReward) ProtoMessage()

func (*MsgWithdrawReward) Reset

func (m *MsgWithdrawReward) Reset()

func (*MsgWithdrawReward) Size

func (m *MsgWithdrawReward) Size() (n int)

func (*MsgWithdrawReward) String

func (m *MsgWithdrawReward) String() string

func (*MsgWithdrawReward) Unmarshal

func (m *MsgWithdrawReward) Unmarshal(dAtA []byte) error

func (*MsgWithdrawReward) ValidateBasic

func (msg *MsgWithdrawReward) ValidateBasic() error

func (*MsgWithdrawReward) XXX_DiscardUnknown

func (m *MsgWithdrawReward) XXX_DiscardUnknown()

func (*MsgWithdrawReward) XXX_Marshal

func (m *MsgWithdrawReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawReward) XXX_Merge

func (m *MsgWithdrawReward) XXX_Merge(src proto.Message)

func (*MsgWithdrawReward) XXX_Size

func (m *MsgWithdrawReward) XXX_Size() int

func (*MsgWithdrawReward) XXX_Unmarshal

func (m *MsgWithdrawReward) XXX_Unmarshal(b []byte) error

type MsgWithdrawRewardResponse

type MsgWithdrawRewardResponse struct {
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgWithdrawRewardResponse defines the Msg/WithdrawDelegatorReward response type.

func (*MsgWithdrawRewardResponse) Descriptor

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

func (*MsgWithdrawRewardResponse) GetAmount

func (*MsgWithdrawRewardResponse) Marshal

func (m *MsgWithdrawRewardResponse) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawRewardResponse) MarshalTo

func (m *MsgWithdrawRewardResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawRewardResponse) MarshalToSizedBuffer

func (m *MsgWithdrawRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawRewardResponse) ProtoMessage

func (*MsgWithdrawRewardResponse) ProtoMessage()

func (*MsgWithdrawRewardResponse) Reset

func (m *MsgWithdrawRewardResponse) Reset()

func (*MsgWithdrawRewardResponse) Size

func (m *MsgWithdrawRewardResponse) Size() (n int)

func (*MsgWithdrawRewardResponse) String

func (m *MsgWithdrawRewardResponse) String() string

func (*MsgWithdrawRewardResponse) Unmarshal

func (m *MsgWithdrawRewardResponse) Unmarshal(dAtA []byte) error

func (*MsgWithdrawRewardResponse) XXX_DiscardUnknown

func (m *MsgWithdrawRewardResponse) XXX_DiscardUnknown()

func (*MsgWithdrawRewardResponse) XXX_Marshal

func (m *MsgWithdrawRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawRewardResponse) XXX_Merge

func (m *MsgWithdrawRewardResponse) XXX_Merge(src proto.Message)

func (*MsgWithdrawRewardResponse) XXX_Size

func (m *MsgWithdrawRewardResponse) XXX_Size() int

func (*MsgWithdrawRewardResponse) XXX_Unmarshal

func (m *MsgWithdrawRewardResponse) XXX_Unmarshal(b []byte) error

type ParameterKeeper

type ParameterKeeper interface {
	GetParams(ctx sdk.Context) (params parametertypes.Params)
}

type Params

type Params struct {
	StakeIncentives *IncentiveInfo `protobuf:"bytes,1,opt,name=stake_incentives,json=stakeIncentives,proto3" json:"stake_incentives,omitempty"`
	EdenCommitVal   string         `protobuf:"bytes,2,opt,name=eden_commit_val,json=edenCommitVal,proto3" json:"eden_commit_val,omitempty"`
	EdenbCommitVal  string         `protobuf:"bytes,3,opt,name=edenb_commit_val,json=edenbCommitVal,proto3" json:"edenb_commit_val,omitempty"`
	// Maximum eden reward apr for stakers - [0 - 0.3]
	MaxEdenRewardAprStakers        cosmossdk_io_math.LegacyDec `` /* 165-byte string literal not displayed */
	EdenBoostApr                   cosmossdk_io_math.LegacyDec `` /* 128-byte string literal not displayed */
	ProviderVestingEpochIdentifier string                      `` /* 155-byte string literal not displayed */
	ProviderStakingRewardsPortion  cosmossdk_io_math.LegacyDec `` /* 181-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func (*Params) Descriptor

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

func (*Params) GetEdenCommitVal

func (m *Params) GetEdenCommitVal() string

func (*Params) GetEdenbCommitVal

func (m *Params) GetEdenbCommitVal() string

func (*Params) GetProviderVestingEpochIdentifier added in v0.54.0

func (m *Params) GetProviderVestingEpochIdentifier() string

func (*Params) GetStakeIncentives

func (m *Params) GetStakeIncentives() *IncentiveInfo

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryClient

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

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryInvariantRequest added in v0.32.0

type QueryInvariantRequest struct {
}

func (*QueryInvariantRequest) Descriptor added in v0.32.0

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

func (*QueryInvariantRequest) Marshal added in v0.32.0

func (m *QueryInvariantRequest) Marshal() (dAtA []byte, err error)

func (*QueryInvariantRequest) MarshalTo added in v0.32.0

func (m *QueryInvariantRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryInvariantRequest) MarshalToSizedBuffer added in v0.32.0

func (m *QueryInvariantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryInvariantRequest) ProtoMessage added in v0.32.0

func (*QueryInvariantRequest) ProtoMessage()

func (*QueryInvariantRequest) Reset added in v0.32.0

func (m *QueryInvariantRequest) Reset()

func (*QueryInvariantRequest) Size added in v0.32.0

func (m *QueryInvariantRequest) Size() (n int)

func (*QueryInvariantRequest) String added in v0.32.0

func (m *QueryInvariantRequest) String() string

func (*QueryInvariantRequest) Unmarshal added in v0.32.0

func (m *QueryInvariantRequest) Unmarshal(dAtA []byte) error

func (*QueryInvariantRequest) XXX_DiscardUnknown added in v0.32.0

func (m *QueryInvariantRequest) XXX_DiscardUnknown()

func (*QueryInvariantRequest) XXX_Marshal added in v0.32.0

func (m *QueryInvariantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryInvariantRequest) XXX_Merge added in v0.32.0

func (m *QueryInvariantRequest) XXX_Merge(src proto.Message)

func (*QueryInvariantRequest) XXX_Size added in v0.32.0

func (m *QueryInvariantRequest) XXX_Size() int

func (*QueryInvariantRequest) XXX_Unmarshal added in v0.32.0

func (m *QueryInvariantRequest) XXX_Unmarshal(b []byte) error

type QueryInvariantResponse added in v0.32.0

type QueryInvariantResponse struct {
	TotalBonded              cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=total_bonded,json=totalBonded,proto3,customtype=cosmossdk.io/math.Int" json:"total_bonded"`
	BondedValidatorTokensSum cosmossdk_io_math.Int `` /* 160-byte string literal not displayed */
}

func (*QueryInvariantResponse) Descriptor added in v0.32.0

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

func (*QueryInvariantResponse) Marshal added in v0.32.0

func (m *QueryInvariantResponse) Marshal() (dAtA []byte, err error)

func (*QueryInvariantResponse) MarshalTo added in v0.32.0

func (m *QueryInvariantResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryInvariantResponse) MarshalToSizedBuffer added in v0.32.0

func (m *QueryInvariantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryInvariantResponse) ProtoMessage added in v0.32.0

func (*QueryInvariantResponse) ProtoMessage()

func (*QueryInvariantResponse) Reset added in v0.32.0

func (m *QueryInvariantResponse) Reset()

func (*QueryInvariantResponse) Size added in v0.32.0

func (m *QueryInvariantResponse) Size() (n int)

func (*QueryInvariantResponse) String added in v0.32.0

func (m *QueryInvariantResponse) String() string

func (*QueryInvariantResponse) Unmarshal added in v0.32.0

func (m *QueryInvariantResponse) Unmarshal(dAtA []byte) error

func (*QueryInvariantResponse) XXX_DiscardUnknown added in v0.32.0

func (m *QueryInvariantResponse) XXX_DiscardUnknown()

func (*QueryInvariantResponse) XXX_Marshal added in v0.32.0

func (m *QueryInvariantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryInvariantResponse) XXX_Merge added in v0.32.0

func (m *QueryInvariantResponse) XXX_Merge(src proto.Message)

func (*QueryInvariantResponse) XXX_Size added in v0.32.0

func (m *QueryInvariantResponse) XXX_Size() int

func (*QueryInvariantResponse) XXX_Unmarshal added in v0.32.0

func (m *QueryInvariantResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryRewardsRequest

type QueryRewardsRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryRewardsRequest) Descriptor

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

func (*QueryRewardsRequest) GetAddress

func (m *QueryRewardsRequest) GetAddress() string

func (*QueryRewardsRequest) Marshal

func (m *QueryRewardsRequest) Marshal() (dAtA []byte, err error)

func (*QueryRewardsRequest) MarshalTo

func (m *QueryRewardsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryRewardsRequest) MarshalToSizedBuffer

func (m *QueryRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRewardsRequest) ProtoMessage

func (*QueryRewardsRequest) ProtoMessage()

func (*QueryRewardsRequest) Reset

func (m *QueryRewardsRequest) Reset()

func (*QueryRewardsRequest) Size

func (m *QueryRewardsRequest) Size() (n int)

func (*QueryRewardsRequest) String

func (m *QueryRewardsRequest) String() string

func (*QueryRewardsRequest) Unmarshal

func (m *QueryRewardsRequest) Unmarshal(dAtA []byte) error

func (*QueryRewardsRequest) XXX_DiscardUnknown

func (m *QueryRewardsRequest) XXX_DiscardUnknown()

func (*QueryRewardsRequest) XXX_Marshal

func (m *QueryRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryRewardsRequest) XXX_Merge

func (m *QueryRewardsRequest) XXX_Merge(src proto.Message)

func (*QueryRewardsRequest) XXX_Size

func (m *QueryRewardsRequest) XXX_Size() int

func (*QueryRewardsRequest) XXX_Unmarshal

func (m *QueryRewardsRequest) XXX_Unmarshal(b []byte) error

type QueryRewardsResponse

type QueryRewardsResponse struct {
	// rewards defines all the rewards accrued by a delegator.
	Rewards []DelegationDelegatorReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"`
	// total defines the sum of all the rewards.
	Total github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total"`
}

func (*QueryRewardsResponse) Descriptor

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

func (*QueryRewardsResponse) GetRewards

func (*QueryRewardsResponse) GetTotal

func (*QueryRewardsResponse) Marshal

func (m *QueryRewardsResponse) Marshal() (dAtA []byte, err error)

func (*QueryRewardsResponse) MarshalTo

func (m *QueryRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryRewardsResponse) MarshalToSizedBuffer

func (m *QueryRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRewardsResponse) ProtoMessage

func (*QueryRewardsResponse) ProtoMessage()

func (*QueryRewardsResponse) Reset

func (m *QueryRewardsResponse) Reset()

func (*QueryRewardsResponse) Size

func (m *QueryRewardsResponse) Size() (n int)

func (*QueryRewardsResponse) String

func (m *QueryRewardsResponse) String() string

func (*QueryRewardsResponse) Unmarshal

func (m *QueryRewardsResponse) Unmarshal(dAtA []byte) error

func (*QueryRewardsResponse) XXX_DiscardUnknown

func (m *QueryRewardsResponse) XXX_DiscardUnknown()

func (*QueryRewardsResponse) XXX_Marshal

func (m *QueryRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryRewardsResponse) XXX_Merge

func (m *QueryRewardsResponse) XXX_Merge(src proto.Message)

func (*QueryRewardsResponse) XXX_Size

func (m *QueryRewardsResponse) XXX_Size() int

func (*QueryRewardsResponse) XXX_Unmarshal

func (m *QueryRewardsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

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

QueryServer is the server API for Query service.

type TokenomicsKeeper

type TokenomicsKeeper interface {
	GetAllTimeBasedInflation(ctx sdk.Context) (list []tokenomictypes.TimeBasedInflation)
}

TokenomicsKeeper defines the expected tokenomics keeper used for simulations (noalias)

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) WithdrawAllRewards

func (*UnimplementedMsgServer) WithdrawElysStakingRewards

func (*UnimplementedMsgServer) WithdrawReward

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Invariant added in v0.32.0

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Rewards

Jump to

Keyboard shortcuts

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