types

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeSetWithdrawAddress = "set_withdraw_address"
	EventTypeRewards            = "rewards"
	EventTypeCommission         = "commission"
	EventTypeWithdrawRewards    = "withdraw_rewards"
	EventTypeWithdrawCommission = "withdraw_commission"
	EventTypeProposerReward     = "proposer_reward"

	AttributeKeyWithdrawAddress = "withdraw_address"
	AttributeKeyValidator       = "validator"

	AttributeValueCategory = ModuleName
)

distribution module event types

View Source
const (
	// ModuleName defines the module name
	ModuleName = "incentive"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName + "_store"

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_incentive"
)
View Source
const (
	TypeMsgWithdrawRewards             = "withdraw_reward"
	TypeMsgWithdrawValidatorCommission = "withdraw_validator_commission"
)

distribution message types

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const (
	ProposalTypeUpdatePoolMultipliers string = "ProposalUpdatePoolMultipliers"
)

Variables

View Source
var (
	ErrInvalidLengthDistribution        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDistribution          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDistribution = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrEmptyDelegatorAddr      = sdkerrors.Register(ModuleName, 2, "delegator address is empty")
	ErrEmptyWithdrawAddr       = sdkerrors.Register(ModuleName, 3, "withdraw address is empty")
	ErrEmptyValidatorAddr      = sdkerrors.Register(ModuleName, 4, "validator address is empty")
	ErrEmptyDelegationDistInfo = sdkerrors.Register(ModuleName, 5, "no delegation distribution info")
	ErrNoValidatorDistInfo     = sdkerrors.Register(ModuleName, 6, "no validator distribution info")
	ErrNoValidatorCommission   = sdkerrors.Register(ModuleName, 7, "no validator commission to withdraw")
	ErrSetWithdrawAddrDisabled = sdkerrors.Register(ModuleName, 8, "set withdraw address disabled")
	ErrBadDistribution         = sdkerrors.Register(ModuleName, 9, "community pool does not have sufficient coins to distribute")
	ErrInvalidProposalAmount   = sdkerrors.Register(ModuleName, 10, "invalid community pool spend proposal amount")
	ErrEmptyProposalRecipient  = sdkerrors.Register(ModuleName, 11, "invalid community pool spend proposal recipient")
	ErrNoValidatorExists       = sdkerrors.Register(ModuleName, 12, "validator does not exist")
	ErrNoDelegationExists      = sdkerrors.Register(ModuleName, 13, "delegation does not exist")
)

x/incentive module sentinel errors

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 (
	ParamStoreKeyCommunityTax        = []byte("communitytax")
	ParamStoreKeyWithdrawAddrEnabled = []byte("withdrawaddrenabled")
	ParamStoreKeyRewardPortionForLps = []byte("rewardportionforlps")
	ParamStoreKeyLPIncentives        = []byte("lpincentives")
	ParamStoreKeyStkIncentives       = []byte("stkincentives")
	ParamStoreKeyPoolInfos           = []byte("poolinfos")
)

Parameter keys

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 (
	ErrInvalidLengthPool        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPool          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPool = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = 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 (
	FeePoolKey = []byte{0x00} // key for global distribution state
)

Functions

func GetPoolRevenueTrackKey

func GetPoolRevenueTrackKey(poolId uint64) string

Returns the pool revenue tracking key. Unique per pool per epoch, clean once complete the calculation.

func KeyPrefix

func KeyPrefix(p string) []byte

func NewProposalUpdatePoolMultipliers

func NewProposalUpdatePoolMultipliers(
	title, description string,
	poolMultipliers []PoolMultipliers,
) gov.Content

NewProposalAddAssetInfo creates a new ProposalAddAssetInfo instance

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

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

	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, name string) types.ModuleAccountI

	// TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862
	SetModuleAccount(sdk.Context, types.ModuleAccountI)
}

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

type AmmKeeper

type AmmKeeper interface {
	// UpdatePoolForSwap takes a pool, sender, and tokenIn, tokenOut amounts
	// It then updates the pool's balances to the new reserve amounts, and
	// sends the in tokens from the sender to the pool, and the out tokens from the pool to the sender.
	UpdatePoolForSwap(
		ctx sdk.Context,
		pool ammtypes.Pool,
		sender sdk.AccAddress,
		tokenIn sdk.Coin,
		tokenOut sdk.Coin,
		swapFeeIn sdk.Dec,
		swapFeeOut sdk.Dec,
		weightBalanceBonus sdk.Dec,
	) (error, sdk.Int)
	// Get pool Ids that contains the denom in pool assets
	GetAllPoolIdsWithDenom(sdk.Context, string) []uint64
	// GetPool returns a pool from its index
	GetPool(sdk.Context, uint64) (ammtypes.Pool, bool)
	// Get all pools
	GetAllPool(sdk.Context) []ammtypes.Pool
	// IterateCommitments iterates over all Commitments and performs a callback.
	IterateLiquidityPools(sdk.Context, func(ammtypes.Pool) bool)
}

AmmKeeper defines the expected interface needed to swap tokens

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin

	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error

	BlockedAddr(addr sdk.AccAddress) bool
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CommitmentKeeper

type CommitmentKeeper interface {
	// Iterate all commitment
	IterateCommitments(sdk.Context, func(ctypes.Commitments) (stop bool))
	// Initiate commitment according to standard staking
	StandardStakingToken(sdk.Context, string, string, string) error
	// Update commitment
	SetCommitments(sdk.Context, ctypes.Commitments)
	// Get commitment
	GetCommitments(sdk.Context, string) (ctypes.Commitments, bool)
	// Withdraw tokens
	ProcessWithdrawTokens(sdk.Context, string, string, sdk.Int) error
	// Withdraw validator commission
	ProcessWithdrawValidatorCommission(sdk.Context, string, string, string, sdk.Int) error
	// Withdraw tokens - only USDC
	ProcessWithdrawUSDC(ctx sdk.Context, creator string, denom string, amount sdk.Int) error
}

CommitmentKeeper

type FeePool

type FeePool struct {
	CommunityPool github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 147-byte string literal not displayed */
}

FeePool is the global fee pool for distribution.

func InitialFeePool

func InitialFeePool() FeePool

zero fee pool

func (*FeePool) Descriptor

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

func (*FeePool) Equal

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

func (*FeePool) GetCommunityPool

func (m *FeePool) GetCommunityPool() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*FeePool) Marshal

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

func (*FeePool) MarshalTo

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

func (*FeePool) MarshalToSizedBuffer

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

func (*FeePool) ProtoMessage

func (*FeePool) ProtoMessage()

func (*FeePool) Reset

func (m *FeePool) Reset()

func (*FeePool) Size

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

func (*FeePool) String

func (m *FeePool) String() string

func (*FeePool) Unmarshal

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

func (FeePool) ValidateGenesis

func (f FeePool) ValidateGenesis() error

ValidateGenesis validates the fee pool for a genesis state

func (*FeePool) XXX_DiscardUnknown

func (m *FeePool) XXX_DiscardUnknown()

func (*FeePool) XXX_Marshal

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

func (*FeePool) XXX_Merge

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

func (*FeePool) XXX_Size

func (m *FeePool) XXX_Size() int

func (*FeePool) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// fee_pool defines the fee pool at genesis.
	FeePool FeePool `protobuf:"bytes,2,opt,name=fee_pool,json=feePool,proto3" json:"fee_pool"`
}

GenesisState defines the incentive module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func NewGenesisState

func NewGenesisState(
	params Params, fp FeePool,
) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetFeePool

func (m *GenesisState) GetFeePool() FeePool

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	// epoch identifier
	EpochIdentifier string `protobuf:"bytes,2,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"`
	// start_time of the distribution
	StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	// distribution duration
	NumEpochs    int64 `protobuf:"varint,4,opt,name=num_epochs,json=numEpochs,proto3" json:"num_epochs,omitempty"`
	CurrentEpoch int64 `protobuf:"varint,5,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"`
	EdenBoostApr int64 `protobuf:"varint,6,opt,name=eden_boost_apr,json=edenBoostApr,proto3" json:"eden_boost_apr,omitempty"`
}

Incentive Info

func (*IncentiveInfo) Descriptor

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

func (*IncentiveInfo) GetCurrentEpoch

func (m *IncentiveInfo) GetCurrentEpoch() int64

func (*IncentiveInfo) GetEdenBoostApr

func (m *IncentiveInfo) GetEdenBoostApr() int64

func (*IncentiveInfo) GetEpochIdentifier

func (m *IncentiveInfo) GetEpochIdentifier() string

func (*IncentiveInfo) GetNumEpochs

func (m *IncentiveInfo) GetNumEpochs() int64

func (*IncentiveInfo) GetStartTime

func (m *IncentiveInfo) GetStartTime() time.Time

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 MsgClient

type MsgClient interface {
	// WithdrawDelegatorReward defines a method to withdraw rewards of delegator
	// from a single validator.
	WithdrawRewards(ctx context.Context, in *MsgWithdrawRewards, opts ...grpc.CallOption) (*MsgWithdrawRewardsResponse, error)
	// WithdrawValidatorCommission defines a method to withdraw the
	// full commission to the validator address.
	WithdrawValidatorCommission(ctx context.Context, in *MsgWithdrawValidatorCommission, opts ...grpc.CallOption) (*MsgWithdrawValidatorCommissionResponse, 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 {
	// WithdrawDelegatorReward defines a method to withdraw rewards of delegator
	// from a single validator.
	WithdrawRewards(context.Context, *MsgWithdrawRewards) (*MsgWithdrawRewardsResponse, error)
	// WithdrawValidatorCommission defines a method to withdraw the
	// full commission to the validator address.
	WithdrawValidatorCommission(context.Context, *MsgWithdrawValidatorCommission) (*MsgWithdrawValidatorCommissionResponse, error)
}

MsgServer is the server API for Msg service.

type MsgWithdrawRewards

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

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

func NewMsgWithdrawRewards

func NewMsgWithdrawRewards(delAddr sdk.AccAddress) *MsgWithdrawRewards

func (*MsgWithdrawRewards) Descriptor

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

func (MsgWithdrawRewards) GetSignBytes

func (msg MsgWithdrawRewards) GetSignBytes() []byte

get the bytes for the message signer to sign on

func (MsgWithdrawRewards) GetSigners

func (msg MsgWithdrawRewards) GetSigners() []sdk.AccAddress

Return address that must sign over msg.GetSignBytes()

func (*MsgWithdrawRewards) Marshal

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

func (*MsgWithdrawRewards) MarshalTo

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

func (*MsgWithdrawRewards) MarshalToSizedBuffer

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

func (*MsgWithdrawRewards) ProtoMessage

func (*MsgWithdrawRewards) ProtoMessage()

func (*MsgWithdrawRewards) Reset

func (m *MsgWithdrawRewards) Reset()

func (MsgWithdrawRewards) Route

func (msg MsgWithdrawRewards) Route() string

func (*MsgWithdrawRewards) Size

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

func (*MsgWithdrawRewards) String

func (m *MsgWithdrawRewards) String() string

func (MsgWithdrawRewards) Type

func (msg MsgWithdrawRewards) Type() string

func (*MsgWithdrawRewards) Unmarshal

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

func (MsgWithdrawRewards) ValidateBasic

func (msg MsgWithdrawRewards) ValidateBasic() error

quick validity check

func (*MsgWithdrawRewards) XXX_DiscardUnknown

func (m *MsgWithdrawRewards) XXX_DiscardUnknown()

func (*MsgWithdrawRewards) XXX_Marshal

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

func (*MsgWithdrawRewards) XXX_Merge

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

func (*MsgWithdrawRewards) XXX_Size

func (m *MsgWithdrawRewards) XXX_Size() int

func (*MsgWithdrawRewards) XXX_Unmarshal

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

type MsgWithdrawRewardsResponse

type MsgWithdrawRewardsResponse struct {
}

MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.

func (*MsgWithdrawRewardsResponse) Descriptor

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

func (*MsgWithdrawRewardsResponse) Marshal

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

func (*MsgWithdrawRewardsResponse) MarshalTo

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

func (*MsgWithdrawRewardsResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawRewardsResponse) ProtoMessage

func (*MsgWithdrawRewardsResponse) ProtoMessage()

func (*MsgWithdrawRewardsResponse) Reset

func (m *MsgWithdrawRewardsResponse) Reset()

func (*MsgWithdrawRewardsResponse) Size

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

func (*MsgWithdrawRewardsResponse) String

func (m *MsgWithdrawRewardsResponse) String() string

func (*MsgWithdrawRewardsResponse) Unmarshal

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

func (*MsgWithdrawRewardsResponse) XXX_DiscardUnknown

func (m *MsgWithdrawRewardsResponse) XXX_DiscardUnknown()

func (*MsgWithdrawRewardsResponse) XXX_Marshal

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

func (*MsgWithdrawRewardsResponse) XXX_Merge

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

func (*MsgWithdrawRewardsResponse) XXX_Size

func (m *MsgWithdrawRewardsResponse) XXX_Size() int

func (*MsgWithdrawRewardsResponse) XXX_Unmarshal

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

type MsgWithdrawValidatorCommission

type MsgWithdrawValidatorCommission 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"`
}

MsgWithdrawValidatorCommission withdraws the full commission to the validator address.

func NewMsgWithdrawValidatorCommission

func NewMsgWithdrawValidatorCommission(delAddr sdk.AccAddress, valAddr sdk.ValAddress) *MsgWithdrawValidatorCommission

func (*MsgWithdrawValidatorCommission) Descriptor

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

func (MsgWithdrawValidatorCommission) GetSignBytes

func (msg MsgWithdrawValidatorCommission) GetSignBytes() []byte

get the bytes for the message signer to sign on

func (MsgWithdrawValidatorCommission) GetSigners

func (msg MsgWithdrawValidatorCommission) GetSigners() []sdk.AccAddress

Return address that must sign over msg.GetSignBytes()

func (*MsgWithdrawValidatorCommission) Marshal

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

func (*MsgWithdrawValidatorCommission) MarshalTo

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

func (*MsgWithdrawValidatorCommission) MarshalToSizedBuffer

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

func (*MsgWithdrawValidatorCommission) ProtoMessage

func (*MsgWithdrawValidatorCommission) ProtoMessage()

func (*MsgWithdrawValidatorCommission) Reset

func (m *MsgWithdrawValidatorCommission) Reset()

func (MsgWithdrawValidatorCommission) Route

func (*MsgWithdrawValidatorCommission) Size

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

func (*MsgWithdrawValidatorCommission) String

func (MsgWithdrawValidatorCommission) Type

func (*MsgWithdrawValidatorCommission) Unmarshal

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

func (MsgWithdrawValidatorCommission) ValidateBasic

func (msg MsgWithdrawValidatorCommission) ValidateBasic() error

quick validity check

func (*MsgWithdrawValidatorCommission) XXX_DiscardUnknown

func (m *MsgWithdrawValidatorCommission) XXX_DiscardUnknown()

func (*MsgWithdrawValidatorCommission) XXX_Marshal

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

func (*MsgWithdrawValidatorCommission) XXX_Merge

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

func (*MsgWithdrawValidatorCommission) XXX_Size

func (m *MsgWithdrawValidatorCommission) XXX_Size() int

func (*MsgWithdrawValidatorCommission) XXX_Unmarshal

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

type MsgWithdrawValidatorCommissionResponse

type MsgWithdrawValidatorCommissionResponse struct {
}

MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type.

func (*MsgWithdrawValidatorCommissionResponse) Descriptor

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

func (*MsgWithdrawValidatorCommissionResponse) Marshal

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

func (*MsgWithdrawValidatorCommissionResponse) MarshalTo

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

func (*MsgWithdrawValidatorCommissionResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawValidatorCommissionResponse) ProtoMessage

func (*MsgWithdrawValidatorCommissionResponse) Reset

func (*MsgWithdrawValidatorCommissionResponse) Size

func (*MsgWithdrawValidatorCommissionResponse) String

func (*MsgWithdrawValidatorCommissionResponse) Unmarshal

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

func (*MsgWithdrawValidatorCommissionResponse) XXX_DiscardUnknown

func (m *MsgWithdrawValidatorCommissionResponse) XXX_DiscardUnknown()

func (*MsgWithdrawValidatorCommissionResponse) XXX_Marshal

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

func (*MsgWithdrawValidatorCommissionResponse) XXX_Merge

func (*MsgWithdrawValidatorCommissionResponse) XXX_Size

func (*MsgWithdrawValidatorCommissionResponse) XXX_Unmarshal

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

type OracleKeeper

type OracleKeeper interface {
	GetAssetPriceFromDenom(ctx sdk.Context, denom string) sdk.Dec
}

OracleKeeper defines the expected interface needed to retrieve price info

type Params

type Params struct {
	LpIncentives        []IncentiveInfo                        `protobuf:"bytes,1,rep,name=lp_incentives,json=lpIncentives,proto3" json:"lp_incentives"`
	StakeIncentives     []IncentiveInfo                        `protobuf:"bytes,2,rep,name=stake_incentives,json=stakeIncentives,proto3" json:"stake_incentives"`
	CommunityTax        github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */
	WithdrawAddrEnabled bool                                   `protobuf:"varint,4,opt,name=withdraw_addr_enabled,json=withdrawAddrEnabled,proto3" json:"withdraw_addr_enabled,omitempty"`
	// Dex revenue percent for lps, 100 - reward_portion_for_lps = revenue percent for stakers.
	RewardPortionForLps github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */
	// Pool information
	// poolId, reward wallet, mulitplier
	PoolInfos []PoolInfo `protobuf:"bytes,6,rep,name=pool_infos,json=poolInfos,proto3" json:"pool_infos"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetLpIncentives

func (m *Params) GetLpIncentives() []IncentiveInfo

func (*Params) GetPoolInfos

func (m *Params) GetPoolInfos() []PoolInfo

func (*Params) GetStakeIncentives

func (m *Params) GetStakeIncentives() []IncentiveInfo

func (*Params) GetWithdrawAddrEnabled

func (m *Params) GetWithdrawAddrEnabled() bool

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) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

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 (p Params) String() string

String implements the Stringer interface.

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) ValidateBasic

func (p Params) ValidateBasic() error

ValidateBasic performs basic validation on distribution parameters.

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 PoolInfo

type PoolInfo struct {
	// reward amount
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// reward wallet address
	RewardWallet string `protobuf:"bytes,2,opt,name=reward_wallet,json=rewardWallet,proto3" json:"reward_wallet,omitempty"`
	// multiplier for lp rewards
	Multiplier github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=multiplier,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"multiplier"`
}

Pool Info

func (*PoolInfo) Descriptor

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

func (*PoolInfo) GetPoolId

func (m *PoolInfo) GetPoolId() uint64

func (*PoolInfo) GetRewardWallet

func (m *PoolInfo) GetRewardWallet() string

func (*PoolInfo) Marshal

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

func (*PoolInfo) MarshalTo

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

func (*PoolInfo) MarshalToSizedBuffer

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

func (*PoolInfo) ProtoMessage

func (*PoolInfo) ProtoMessage()

func (*PoolInfo) Reset

func (m *PoolInfo) Reset()

func (*PoolInfo) Size

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

func (*PoolInfo) String

func (m *PoolInfo) String() string

func (*PoolInfo) Unmarshal

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

func (*PoolInfo) XXX_DiscardUnknown

func (m *PoolInfo) XXX_DiscardUnknown()

func (*PoolInfo) XXX_Marshal

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

func (*PoolInfo) XXX_Merge

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

func (*PoolInfo) XXX_Size

func (m *PoolInfo) XXX_Size() int

func (*PoolInfo) XXX_Unmarshal

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

type PoolMultipliers

type PoolMultipliers struct {
	PoolId     uint64                                 `protobuf:"varint,1,opt,name=poolId,proto3" json:"poolId,omitempty"`
	Multiplier github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=multiplier,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"multiplier"`
}

func (*PoolMultipliers) Descriptor

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

func (*PoolMultipliers) GetPoolId

func (m *PoolMultipliers) GetPoolId() uint64

func (*PoolMultipliers) Marshal

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

func (*PoolMultipliers) MarshalTo

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

func (*PoolMultipliers) MarshalToSizedBuffer

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

func (*PoolMultipliers) ProtoMessage

func (*PoolMultipliers) ProtoMessage()

func (*PoolMultipliers) Reset

func (m *PoolMultipliers) Reset()

func (*PoolMultipliers) Size

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

func (*PoolMultipliers) String

func (m *PoolMultipliers) String() string

func (*PoolMultipliers) Unmarshal

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

func (*PoolMultipliers) XXX_DiscardUnknown

func (m *PoolMultipliers) XXX_DiscardUnknown()

func (*PoolMultipliers) XXX_Marshal

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

func (*PoolMultipliers) XXX_Merge

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

func (*PoolMultipliers) XXX_Size

func (m *PoolMultipliers) XXX_Size() int

func (*PoolMultipliers) XXX_Unmarshal

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

type ProposalUpdatePoolMultipliers

type ProposalUpdatePoolMultipliers struct {
	Title           string            `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description     string            `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	PoolMultipliers []PoolMultipliers `protobuf:"bytes,3,rep,name=poolMultipliers,proto3" json:"poolMultipliers"`
}

func (*ProposalUpdatePoolMultipliers) Descriptor

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

func (*ProposalUpdatePoolMultipliers) GetDescription

func (m *ProposalUpdatePoolMultipliers) GetDescription() string

func (*ProposalUpdatePoolMultipliers) GetPoolMultipliers

func (m *ProposalUpdatePoolMultipliers) GetPoolMultipliers() []PoolMultipliers

func (*ProposalUpdatePoolMultipliers) GetTitle

func (m *ProposalUpdatePoolMultipliers) GetTitle() string

func (*ProposalUpdatePoolMultipliers) Marshal

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

func (*ProposalUpdatePoolMultipliers) MarshalTo

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

func (*ProposalUpdatePoolMultipliers) MarshalToSizedBuffer

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

func (*ProposalUpdatePoolMultipliers) ProposalRoute

func (sup *ProposalUpdatePoolMultipliers) ProposalRoute() string

ProposalRoute gets the proposal's router key

func (*ProposalUpdatePoolMultipliers) ProposalType

func (sup *ProposalUpdatePoolMultipliers) ProposalType() string

ProposalType is "SoftwareUpgrade"

func (*ProposalUpdatePoolMultipliers) ProtoMessage

func (*ProposalUpdatePoolMultipliers) ProtoMessage()

func (*ProposalUpdatePoolMultipliers) Reset

func (m *ProposalUpdatePoolMultipliers) Reset()

func (*ProposalUpdatePoolMultipliers) Size

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

func (*ProposalUpdatePoolMultipliers) String

func (*ProposalUpdatePoolMultipliers) Unmarshal

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

func (*ProposalUpdatePoolMultipliers) ValidateBasic

func (sup *ProposalUpdatePoolMultipliers) ValidateBasic() error

ValidateBasic validates the proposal

func (*ProposalUpdatePoolMultipliers) XXX_DiscardUnknown

func (m *ProposalUpdatePoolMultipliers) XXX_DiscardUnknown()

func (*ProposalUpdatePoolMultipliers) XXX_Marshal

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

func (*ProposalUpdatePoolMultipliers) XXX_Merge

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

func (*ProposalUpdatePoolMultipliers) XXX_Size

func (m *ProposalUpdatePoolMultipliers) XXX_Size() int

func (*ProposalUpdatePoolMultipliers) XXX_Unmarshal

func (m *ProposalUpdatePoolMultipliers) 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)
	// Queries a list of CommunityPool items.
	CommunityPool(ctx context.Context, in *QueryCommunityPoolRequest, opts ...grpc.CallOption) (*QueryCommunityPoolResponse, 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 QueryCommunityPoolRequest

type QueryCommunityPoolRequest struct {
}

func (*QueryCommunityPoolRequest) Descriptor

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

func (*QueryCommunityPoolRequest) Marshal

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

func (*QueryCommunityPoolRequest) MarshalTo

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

func (*QueryCommunityPoolRequest) MarshalToSizedBuffer

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

func (*QueryCommunityPoolRequest) ProtoMessage

func (*QueryCommunityPoolRequest) ProtoMessage()

func (*QueryCommunityPoolRequest) Reset

func (m *QueryCommunityPoolRequest) Reset()

func (*QueryCommunityPoolRequest) Size

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

func (*QueryCommunityPoolRequest) String

func (m *QueryCommunityPoolRequest) String() string

func (*QueryCommunityPoolRequest) Unmarshal

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

func (*QueryCommunityPoolRequest) XXX_DiscardUnknown

func (m *QueryCommunityPoolRequest) XXX_DiscardUnknown()

func (*QueryCommunityPoolRequest) XXX_Marshal

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

func (*QueryCommunityPoolRequest) XXX_Merge

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

func (*QueryCommunityPoolRequest) XXX_Size

func (m *QueryCommunityPoolRequest) XXX_Size() int

func (*QueryCommunityPoolRequest) XXX_Unmarshal

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

type QueryCommunityPoolResponse

type QueryCommunityPoolResponse struct {
	// pool defines community pool's coins.
	Pool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=pool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"pool"`
}

func (*QueryCommunityPoolResponse) Descriptor

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

func (*QueryCommunityPoolResponse) GetPool

func (*QueryCommunityPoolResponse) Marshal

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

func (*QueryCommunityPoolResponse) MarshalTo

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

func (*QueryCommunityPoolResponse) MarshalToSizedBuffer

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

func (*QueryCommunityPoolResponse) ProtoMessage

func (*QueryCommunityPoolResponse) ProtoMessage()

func (*QueryCommunityPoolResponse) Reset

func (m *QueryCommunityPoolResponse) Reset()

func (*QueryCommunityPoolResponse) Size

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

func (*QueryCommunityPoolResponse) String

func (m *QueryCommunityPoolResponse) String() string

func (*QueryCommunityPoolResponse) Unmarshal

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

func (*QueryCommunityPoolResponse) XXX_DiscardUnknown

func (m *QueryCommunityPoolResponse) XXX_DiscardUnknown()

func (*QueryCommunityPoolResponse) XXX_Marshal

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

func (*QueryCommunityPoolResponse) XXX_Merge

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

func (*QueryCommunityPoolResponse) XXX_Size

func (m *QueryCommunityPoolResponse) XXX_Size() int

func (*QueryCommunityPoolResponse) XXX_Unmarshal

func (m *QueryCommunityPoolResponse) 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 QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of CommunityPool items.
	CommunityPool(context.Context, *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error)
}

QueryServer is the server API for Query service.

type StakingKeeper

type StakingKeeper interface {
	TotalBondedTokens(sdk.Context) sdk.Int // total bonded tokens within the validator set
	// iterate through all delegations from one delegator by validator-AccAddress,
	// execute func for each validator
	IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, fn func(index int64, delegation stakingtypes.DelegationI) (stop bool))
	// get a particular validator by operator address
	Validator(sdk.Context, sdk.ValAddress) stakingtypes.ValidatorI
	// GetDelegatorDelegations returns a given amount of all the delegations from a delegator.
	GetDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (delegations []stakingtypes.Delegation)
	// get a particular validator by consensus address
	ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingtypes.ValidatorI
	// Delegation allows for getting a particular delegation for a given validator
	// and delegator outside the scope of the staking module.
	Delegation(sdk.Context, sdk.AccAddress, sdk.ValAddress) stakingtypes.DelegationI
}

Staking keeper

type TotalCommitmentInfo

type TotalCommitmentInfo struct {
	// Total Elys staked
	TotalElysBonded sdk.Int
	// Total Eden + Eden boost committed
	TotalEdenEdenBoostCommitted sdk.Int
	// Gas fees collected and DEX revenus
	TotalFeesCollected sdk.Coins
	// Total Lp Token committed
	TotalLpTokensCommitted map[string]sdk.Int
	// Revenue tracking per pool, key => (poolId)
	PoolRevenueTrack map[string]sdk.Dec
}

TotalCommitmentInfo Stores the

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) WithdrawRewards

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CommunityPool

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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