types

package
v0.0.0-...-1329066 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

NOTE: Usage of x/params to manage parameters is deprecated in favor of x/gov controlled execution of MsgUpdateParams messages. These types remains solely for migration purposes and will be removed in a future release.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName                       = "emissions"
	UndistributedObserverRewardsPool = ModuleName + "Observers"
	UndistributedTSSRewardsPool      = ModuleName + "Tss"

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

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey              = "mem_emissions"
	WithdrawableEmissionsKey = "WithdrawableEmissions-value-"
	ParamsKey                = "Params-value-"
)
View Source
const (
	EmissionsTrackerKey              = "EmissionsTracker-value-"
	ParamValidatorEmissionPercentage = "ValidatorEmissionPercentage"
	ParamObserverEmissionPercentage  = "ObserverEmissionPercentage"
	ParamTssSignerEmissionPercentage = "SignerEmissionPercentage"
	ParamObserverSlashAmount         = "ObserverSlashAmount"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default emissions global index

View Source
const MsgUpdateParamsType = "update_params"
View Source
const MsgWithdrawEmissionType = "withdraw_emission"

Variables

View Source
var (
	ErrEmissionsNotFound                   = errorsmod.Register(ModuleName, 1000, "emissions not found")
	ErrUnableToWithdrawEmissions           = errorsmod.Register(ModuleName, 1002, "unable to withdraw emissions")
	ErrInvalidAddress                      = errorsmod.Register(ModuleName, 1003, "invalid address")
	ErrRewardsPoolDoesNotHaveEnoughBalance = errorsmod.Register(
		ModuleName,
		1004,
		"rewards pool does not have enough balance",
	)
	ErrInvalidAmount     = errorsmod.Register(ModuleName, 1005, "invalid amount")
	ErrUnableToSetParams = errorsmod.Register(ModuleName, 1006, "unable to set params")
	ErrMigrationFailed   = errorsmod.Register(ModuleName, 1007, "migration failed")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = 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 (
	EmissionsModuleAddress                  = authtypes.NewModuleAddress(ModuleName)
	UndistributedObserverRewardsPoolAddress = authtypes.NewModuleAddress(UndistributedObserverRewardsPool)
	UndistributedTssRewardsPoolAddress      = authtypes.NewModuleAddress(UndistributedTSSRewardsPool)
	// BlockReward is an initial block reward amount when emissions module was initialized.
	// The current value can be obtained from by querying the params
	BlockReward = sdk.MustNewDecFromStr("9620949074074074074.074070733466756687")
	// ObserverSlashAmount is the amount of tokens to be slashed from observer in case of incorrect vote
	// by default it is set to 0.1 ZETA
	ObserverSlashAmount = sdkmath.NewInt(100000000000000000)

	// BallotMaturityBlocks is amount of blocks needed for ballot to mature
	// by default is set to 100
	BallotMaturityBlocks = 100
)
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 (
	ErrInvalidLengthWithdrawableEmissions        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWithdrawableEmissions          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWithdrawableEmissions = fmt.Errorf("proto: unexpected end of group")
)
View Source
var EmissionType_name = map[int32]string{
	0: "Slash",
	1: "Rewards",
}
View Source
var EmissionType_value = map[string]int32{
	"Slash":   0,
	"Rewards": 1,
}

Functions

func EmitObserverEmissions

func EmitObserverEmissions(ctx sdk.Context, em []*ObserverEmission)

func EmitValidatorEmissions

func EmitValidatorEmissions(
	ctx sdk.Context,
	bondFactor, reservesFactor, durationsFactor, validatorRewards, observerRewards, tssRewards string,
)

func GetRewardsDistributions

func GetRewardsDistributions(params Params) (sdkmath.Int, sdkmath.Int, sdkmath.Int)

GetRewardsDistributions returns the current distribution of rewards for validators, observers and TSS signers If the percentage is not set, it returns 0

func KeyPrefix

func KeyPrefix(p string) []byte

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI
}

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

type BankKeeper

type BankKeeper interface {
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(
		ctx sdk.Context,
		senderModule string,
		recipientAddr sdk.AccAddress,
		amt sdk.Coins,
	) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
}

BankKeeper defines the expected interface needed to retrieve account balances.

type EmissionType

type EmissionType int32
const (
	EmissionType_Slash   EmissionType = 0
	EmissionType_Rewards EmissionType = 1
)

func (EmissionType) EnumDescriptor

func (EmissionType) EnumDescriptor() ([]byte, []int)

func (EmissionType) String

func (x EmissionType) String() string

type EventBlockEmissions

type EventBlockEmissions struct {
	MsgTypeUrl               string `protobuf:"bytes,1,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	BondFactor               string `protobuf:"bytes,2,opt,name=bond_factor,json=bondFactor,proto3" json:"bond_factor,omitempty"`
	ReservesFactor           string `protobuf:"bytes,3,opt,name=reserves_factor,json=reservesFactor,proto3" json:"reserves_factor,omitempty"`
	DurationFactor           string `protobuf:"bytes,4,opt,name=duration_factor,json=durationFactor,proto3" json:"duration_factor,omitempty"`
	ValidatorRewardsForBlock string `` /* 137-byte string literal not displayed */
	ObserverRewardsForBlock  string `` /* 134-byte string literal not displayed */
	TssRewardsForBlock       string `protobuf:"bytes,7,opt,name=tss_rewards_for_block,json=tssRewardsForBlock,proto3" json:"tss_rewards_for_block,omitempty"`
}

func (*EventBlockEmissions) Descriptor

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

func (*EventBlockEmissions) GetBondFactor

func (m *EventBlockEmissions) GetBondFactor() string

func (*EventBlockEmissions) GetDurationFactor

func (m *EventBlockEmissions) GetDurationFactor() string

func (*EventBlockEmissions) GetMsgTypeUrl

func (m *EventBlockEmissions) GetMsgTypeUrl() string

func (*EventBlockEmissions) GetObserverRewardsForBlock

func (m *EventBlockEmissions) GetObserverRewardsForBlock() string

func (*EventBlockEmissions) GetReservesFactor

func (m *EventBlockEmissions) GetReservesFactor() string

func (*EventBlockEmissions) GetTssRewardsForBlock

func (m *EventBlockEmissions) GetTssRewardsForBlock() string

func (*EventBlockEmissions) GetValidatorRewardsForBlock

func (m *EventBlockEmissions) GetValidatorRewardsForBlock() string

func (*EventBlockEmissions) Marshal

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

func (*EventBlockEmissions) MarshalTo

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

func (*EventBlockEmissions) MarshalToSizedBuffer

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

func (*EventBlockEmissions) ProtoMessage

func (*EventBlockEmissions) ProtoMessage()

func (*EventBlockEmissions) Reset

func (m *EventBlockEmissions) Reset()

func (*EventBlockEmissions) Size

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

func (*EventBlockEmissions) String

func (m *EventBlockEmissions) String() string

func (*EventBlockEmissions) Unmarshal

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

func (*EventBlockEmissions) XXX_DiscardUnknown

func (m *EventBlockEmissions) XXX_DiscardUnknown()

func (*EventBlockEmissions) XXX_Marshal

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

func (*EventBlockEmissions) XXX_Merge

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

func (*EventBlockEmissions) XXX_Size

func (m *EventBlockEmissions) XXX_Size() int

func (*EventBlockEmissions) XXX_Unmarshal

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

type EventObserverEmissions

type EventObserverEmissions struct {
	MsgTypeUrl string              `protobuf:"bytes,1,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	Emissions  []*ObserverEmission `protobuf:"bytes,2,rep,name=emissions,proto3" json:"emissions,omitempty"`
}

func (*EventObserverEmissions) Descriptor

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

func (*EventObserverEmissions) GetEmissions

func (m *EventObserverEmissions) GetEmissions() []*ObserverEmission

func (*EventObserverEmissions) GetMsgTypeUrl

func (m *EventObserverEmissions) GetMsgTypeUrl() string

func (*EventObserverEmissions) Marshal

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

func (*EventObserverEmissions) MarshalTo

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

func (*EventObserverEmissions) MarshalToSizedBuffer

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

func (*EventObserverEmissions) ProtoMessage

func (*EventObserverEmissions) ProtoMessage()

func (*EventObserverEmissions) Reset

func (m *EventObserverEmissions) Reset()

func (*EventObserverEmissions) Size

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

func (*EventObserverEmissions) String

func (m *EventObserverEmissions) String() string

func (*EventObserverEmissions) Unmarshal

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

func (*EventObserverEmissions) XXX_DiscardUnknown

func (m *EventObserverEmissions) XXX_DiscardUnknown()

func (*EventObserverEmissions) XXX_Marshal

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

func (*EventObserverEmissions) XXX_Merge

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

func (*EventObserverEmissions) XXX_Size

func (m *EventObserverEmissions) XXX_Size() int

func (*EventObserverEmissions) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params                Params                  `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	WithdrawableEmissions []WithdrawableEmissions `protobuf:"bytes,2,rep,name=withdrawableEmissions,proto3" json:"withdrawableEmissions"`
}

GenesisState defines the emissions module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default emissions genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetWithdrawableEmissions

func (m *GenesisState) GetWithdrawableEmissions() []WithdrawableEmissions

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 LegacyParams

type LegacyParams struct {
	MaxBondFactor               string                                 `protobuf:"bytes,1,opt,name=max_bond_factor,json=maxBondFactor,proto3" json:"max_bond_factor,omitempty"`
	MinBondFactor               string                                 `protobuf:"bytes,2,opt,name=min_bond_factor,json=minBondFactor,proto3" json:"min_bond_factor,omitempty"`
	AvgBlockTime                string                                 `protobuf:"bytes,3,opt,name=avg_block_time,json=avgBlockTime,proto3" json:"avg_block_time,omitempty"`
	TargetBondRatio             string                                 `protobuf:"bytes,4,opt,name=target_bond_ratio,json=targetBondRatio,proto3" json:"target_bond_ratio,omitempty"`
	ValidatorEmissionPercentage string                                 `` /* 144-byte string literal not displayed */
	ObserverEmissionPercentage  string                                 `` /* 141-byte string literal not displayed */
	TssSignerEmissionPercentage string                                 `` /* 146-byte string literal not displayed */
	DurationFactorConstant      string                                 `` /* 129-byte string literal not displayed */
	ObserverSlashAmount         github_com_cosmos_cosmos_sdk_types.Int `` /* 160-byte string literal not displayed */
	BallotMaturityBlocks        int64                                  `protobuf:"varint,10,opt,name=ballot_maturity_blocks,json=ballotMaturityBlocks,proto3" json:"ballot_maturity_blocks,omitempty"`
}

Deprecated (v20): Do not use. Use Params Instead

func (*LegacyParams) Descriptor

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

func (*LegacyParams) GetAvgBlockTime

func (m *LegacyParams) GetAvgBlockTime() string

func (*LegacyParams) GetBallotMaturityBlocks

func (m *LegacyParams) GetBallotMaturityBlocks() int64

func (*LegacyParams) GetDurationFactorConstant

func (m *LegacyParams) GetDurationFactorConstant() string

func (*LegacyParams) GetMaxBondFactor

func (m *LegacyParams) GetMaxBondFactor() string

func (*LegacyParams) GetMinBondFactor

func (m *LegacyParams) GetMinBondFactor() string

func (*LegacyParams) GetObserverEmissionPercentage

func (m *LegacyParams) GetObserverEmissionPercentage() string

func (*LegacyParams) GetTargetBondRatio

func (m *LegacyParams) GetTargetBondRatio() string

func (*LegacyParams) GetTssSignerEmissionPercentage

func (m *LegacyParams) GetTssSignerEmissionPercentage() string

func (*LegacyParams) GetValidatorEmissionPercentage

func (m *LegacyParams) GetValidatorEmissionPercentage() string

func (*LegacyParams) Marshal

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

func (*LegacyParams) MarshalTo

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

func (*LegacyParams) MarshalToSizedBuffer

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

func (*LegacyParams) ProtoMessage

func (*LegacyParams) ProtoMessage()

func (*LegacyParams) Reset

func (m *LegacyParams) Reset()

func (*LegacyParams) Size

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

func (*LegacyParams) String

func (m *LegacyParams) String() string

func (*LegacyParams) Unmarshal

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

func (*LegacyParams) XXX_DiscardUnknown

func (m *LegacyParams) XXX_DiscardUnknown()

func (*LegacyParams) XXX_Marshal

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

func (*LegacyParams) XXX_Merge

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

func (*LegacyParams) XXX_Size

func (m *LegacyParams) XXX_Size() int

func (*LegacyParams) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	WithdrawEmission(ctx context.Context, in *MsgWithdrawEmission, opts ...grpc.CallOption) (*MsgWithdrawEmissionResponse, 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(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	WithdrawEmission(context.Context, *MsgWithdrawEmission) (*MsgWithdrawEmissionResponse, 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"`
}

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

func (m *MsgUpdateParams) GetSignBytes() []byte

func (*MsgUpdateParams) GetSigners

func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress

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

func (m *MsgUpdateParams) Route() string

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Type

func (m *MsgUpdateParams) Type() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (m *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 {
}

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 MsgWithdrawEmission

type MsgWithdrawEmission struct {
	Creator string                                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Amount  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func NewMsgWithdrawEmissions

func NewMsgWithdrawEmissions(creator string, amount sdkmath.Int) *MsgWithdrawEmission

func (*MsgWithdrawEmission) Descriptor

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

func (*MsgWithdrawEmission) GetCreator

func (m *MsgWithdrawEmission) GetCreator() string

func (*MsgWithdrawEmission) GetSignBytes

func (msg *MsgWithdrawEmission) GetSignBytes() []byte

func (*MsgWithdrawEmission) GetSigners

func (msg *MsgWithdrawEmission) GetSigners() []sdk.AccAddress

func (*MsgWithdrawEmission) Marshal

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

func (*MsgWithdrawEmission) MarshalTo

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

func (*MsgWithdrawEmission) MarshalToSizedBuffer

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

func (*MsgWithdrawEmission) ProtoMessage

func (*MsgWithdrawEmission) ProtoMessage()

func (*MsgWithdrawEmission) Reset

func (m *MsgWithdrawEmission) Reset()

func (*MsgWithdrawEmission) Route

func (msg *MsgWithdrawEmission) Route() string

func (*MsgWithdrawEmission) Size

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

func (*MsgWithdrawEmission) String

func (m *MsgWithdrawEmission) String() string

func (*MsgWithdrawEmission) Type

func (msg *MsgWithdrawEmission) Type() string

func (*MsgWithdrawEmission) Unmarshal

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

func (*MsgWithdrawEmission) ValidateBasic

func (msg *MsgWithdrawEmission) ValidateBasic() error

func (*MsgWithdrawEmission) XXX_DiscardUnknown

func (m *MsgWithdrawEmission) XXX_DiscardUnknown()

func (*MsgWithdrawEmission) XXX_Marshal

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

func (*MsgWithdrawEmission) XXX_Merge

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

func (*MsgWithdrawEmission) XXX_Size

func (m *MsgWithdrawEmission) XXX_Size() int

func (*MsgWithdrawEmission) XXX_Unmarshal

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

type MsgWithdrawEmissionResponse

type MsgWithdrawEmissionResponse struct {
}

func (*MsgWithdrawEmissionResponse) Descriptor

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

func (*MsgWithdrawEmissionResponse) Marshal

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

func (*MsgWithdrawEmissionResponse) MarshalTo

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

func (*MsgWithdrawEmissionResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawEmissionResponse) ProtoMessage

func (*MsgWithdrawEmissionResponse) ProtoMessage()

func (*MsgWithdrawEmissionResponse) Reset

func (m *MsgWithdrawEmissionResponse) Reset()

func (*MsgWithdrawEmissionResponse) Size

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

func (*MsgWithdrawEmissionResponse) String

func (m *MsgWithdrawEmissionResponse) String() string

func (*MsgWithdrawEmissionResponse) Unmarshal

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

func (*MsgWithdrawEmissionResponse) XXX_DiscardUnknown

func (m *MsgWithdrawEmissionResponse) XXX_DiscardUnknown()

func (*MsgWithdrawEmissionResponse) XXX_Marshal

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

func (*MsgWithdrawEmissionResponse) XXX_Merge

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

func (*MsgWithdrawEmissionResponse) XXX_Size

func (m *MsgWithdrawEmissionResponse) XXX_Size() int

func (*MsgWithdrawEmissionResponse) XXX_Unmarshal

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

type ObserverEmission

type ObserverEmission struct {
	EmissionType    EmissionType                           `` /* 145-byte string literal not displayed */
	ObserverAddress string                                 `protobuf:"bytes,2,opt,name=observer_address,json=observerAddress,proto3" json:"observer_address,omitempty"`
	Amount          github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func (*ObserverEmission) Descriptor

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

func (*ObserverEmission) GetEmissionType

func (m *ObserverEmission) GetEmissionType() EmissionType

func (*ObserverEmission) GetObserverAddress

func (m *ObserverEmission) GetObserverAddress() string

func (*ObserverEmission) Marshal

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

func (*ObserverEmission) MarshalTo

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

func (*ObserverEmission) MarshalToSizedBuffer

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

func (*ObserverEmission) ProtoMessage

func (*ObserverEmission) ProtoMessage()

func (*ObserverEmission) Reset

func (m *ObserverEmission) Reset()

func (*ObserverEmission) Size

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

func (*ObserverEmission) String

func (m *ObserverEmission) String() string

func (*ObserverEmission) Unmarshal

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

func (*ObserverEmission) XXX_DiscardUnknown

func (m *ObserverEmission) XXX_DiscardUnknown()

func (*ObserverEmission) XXX_Marshal

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

func (*ObserverEmission) XXX_Merge

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

func (*ObserverEmission) XXX_Size

func (m *ObserverEmission) XXX_Size() int

func (*ObserverEmission) XXX_Unmarshal

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

type ObserverKeeper

type ObserverKeeper interface {
	GetBallot(ctx sdk.Context, index string) (val observertypes.Ballot, found bool)
	GetMaturedBallots(ctx sdk.Context, maturityBlocks int64) (val observertypes.BallotListForHeight, found bool)
}

type Params

type Params struct {
	ValidatorEmissionPercentage string                                 `` /* 144-byte string literal not displayed */
	ObserverEmissionPercentage  string                                 `` /* 141-byte string literal not displayed */
	TssSignerEmissionPercentage string                                 `` /* 146-byte string literal not displayed */
	ObserverSlashAmount         github_com_cosmos_cosmos_sdk_types.Int `` /* 160-byte string literal not displayed */
	BallotMaturityBlocks        int64                                  `protobuf:"varint,10,opt,name=ballot_maturity_blocks,json=ballotMaturityBlocks,proto3" json:"ballot_maturity_blocks,omitempty"`
	BlockRewardAmount           github_com_cosmos_cosmos_sdk_types.Dec `` /* 155-byte string literal not displayed */
}

Params defines the parameters for the module. Sample values:

ValidatorEmissionPercentage: "00.50",
ObserverEmissionPercentage:  "00.25",
TssSignerEmissionPercentage: "00.25",
ObserverSlashAmount:         100000000000000000,
BallotMaturityBlocks:        100,
BlockRewardAmount:           9620949074074074074.074070733466756687,

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

func (m *Params) GetBallotMaturityBlocks() int64

func (*Params) GetObserverEmissionPercentage

func (m *Params) GetObserverEmissionPercentage() string

func (*Params) GetTssSignerEmissionPercentage

func (m *Params) GetTssSignerEmissionPercentage() string

func (*Params) GetValidatorEmissionPercentage

func (m *Params) GetValidatorEmissionPercentage() string

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) 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)
	// Queries a list of ListBalances items.
	ListPoolAddresses(ctx context.Context, in *QueryListPoolAddressesRequest, opts ...grpc.CallOption) (*QueryListPoolAddressesResponse, error)
	// Queries a list of ShowAvailableEmissions items.
	ShowAvailableEmissions(ctx context.Context, in *QueryShowAvailableEmissionsRequest, opts ...grpc.CallOption) (*QueryShowAvailableEmissionsResponse, 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 QueryListPoolAddressesRequest

type QueryListPoolAddressesRequest struct {
}

func (*QueryListPoolAddressesRequest) Descriptor

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

func (*QueryListPoolAddressesRequest) Marshal

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

func (*QueryListPoolAddressesRequest) MarshalTo

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

func (*QueryListPoolAddressesRequest) MarshalToSizedBuffer

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

func (*QueryListPoolAddressesRequest) ProtoMessage

func (*QueryListPoolAddressesRequest) ProtoMessage()

func (*QueryListPoolAddressesRequest) Reset

func (m *QueryListPoolAddressesRequest) Reset()

func (*QueryListPoolAddressesRequest) Size

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

func (*QueryListPoolAddressesRequest) String

func (*QueryListPoolAddressesRequest) Unmarshal

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

func (*QueryListPoolAddressesRequest) XXX_DiscardUnknown

func (m *QueryListPoolAddressesRequest) XXX_DiscardUnknown()

func (*QueryListPoolAddressesRequest) XXX_Marshal

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

func (*QueryListPoolAddressesRequest) XXX_Merge

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

func (*QueryListPoolAddressesRequest) XXX_Size

func (m *QueryListPoolAddressesRequest) XXX_Size() int

func (*QueryListPoolAddressesRequest) XXX_Unmarshal

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

type QueryListPoolAddressesResponse

type QueryListPoolAddressesResponse struct {
	UndistributedObserverBalancesAddress string `` /* 173-byte string literal not displayed */
	UndistributedTssBalancesAddress      string `` /* 158-byte string literal not displayed */
	EmissionModuleAddress                string `` /* 126-byte string literal not displayed */
}

func (*QueryListPoolAddressesResponse) Descriptor

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

func (*QueryListPoolAddressesResponse) GetEmissionModuleAddress

func (m *QueryListPoolAddressesResponse) GetEmissionModuleAddress() string

func (*QueryListPoolAddressesResponse) GetUndistributedObserverBalancesAddress

func (m *QueryListPoolAddressesResponse) GetUndistributedObserverBalancesAddress() string

func (*QueryListPoolAddressesResponse) GetUndistributedTssBalancesAddress

func (m *QueryListPoolAddressesResponse) GetUndistributedTssBalancesAddress() string

func (*QueryListPoolAddressesResponse) Marshal

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

func (*QueryListPoolAddressesResponse) MarshalTo

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

func (*QueryListPoolAddressesResponse) MarshalToSizedBuffer

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

func (*QueryListPoolAddressesResponse) ProtoMessage

func (*QueryListPoolAddressesResponse) ProtoMessage()

func (*QueryListPoolAddressesResponse) Reset

func (m *QueryListPoolAddressesResponse) Reset()

func (*QueryListPoolAddressesResponse) Size

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

func (*QueryListPoolAddressesResponse) String

func (*QueryListPoolAddressesResponse) Unmarshal

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

func (*QueryListPoolAddressesResponse) XXX_DiscardUnknown

func (m *QueryListPoolAddressesResponse) XXX_DiscardUnknown()

func (*QueryListPoolAddressesResponse) XXX_Marshal

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

func (*QueryListPoolAddressesResponse) XXX_Merge

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

func (*QueryListPoolAddressesResponse) XXX_Size

func (m *QueryListPoolAddressesResponse) XXX_Size() int

func (*QueryListPoolAddressesResponse) XXX_Unmarshal

func (m *QueryListPoolAddressesResponse) 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 ListBalances items.
	ListPoolAddresses(context.Context, *QueryListPoolAddressesRequest) (*QueryListPoolAddressesResponse, error)
	// Queries a list of ShowAvailableEmissions items.
	ShowAvailableEmissions(context.Context, *QueryShowAvailableEmissionsRequest) (*QueryShowAvailableEmissionsResponse, error)
}

QueryServer is the server API for Query service.

type QueryShowAvailableEmissionsRequest

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

func (*QueryShowAvailableEmissionsRequest) Descriptor

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

func (*QueryShowAvailableEmissionsRequest) GetAddress

func (*QueryShowAvailableEmissionsRequest) Marshal

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

func (*QueryShowAvailableEmissionsRequest) MarshalTo

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

func (*QueryShowAvailableEmissionsRequest) MarshalToSizedBuffer

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

func (*QueryShowAvailableEmissionsRequest) ProtoMessage

func (*QueryShowAvailableEmissionsRequest) ProtoMessage()

func (*QueryShowAvailableEmissionsRequest) Reset

func (*QueryShowAvailableEmissionsRequest) Size

func (*QueryShowAvailableEmissionsRequest) String

func (*QueryShowAvailableEmissionsRequest) Unmarshal

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

func (*QueryShowAvailableEmissionsRequest) XXX_DiscardUnknown

func (m *QueryShowAvailableEmissionsRequest) XXX_DiscardUnknown()

func (*QueryShowAvailableEmissionsRequest) XXX_Marshal

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

func (*QueryShowAvailableEmissionsRequest) XXX_Merge

func (*QueryShowAvailableEmissionsRequest) XXX_Size

func (*QueryShowAvailableEmissionsRequest) XXX_Unmarshal

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

type QueryShowAvailableEmissionsResponse

type QueryShowAvailableEmissionsResponse struct {
	Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
}

func (*QueryShowAvailableEmissionsResponse) Descriptor

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

func (*QueryShowAvailableEmissionsResponse) GetAmount

func (*QueryShowAvailableEmissionsResponse) Marshal

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

func (*QueryShowAvailableEmissionsResponse) MarshalTo

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

func (*QueryShowAvailableEmissionsResponse) MarshalToSizedBuffer

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

func (*QueryShowAvailableEmissionsResponse) ProtoMessage

func (*QueryShowAvailableEmissionsResponse) ProtoMessage()

func (*QueryShowAvailableEmissionsResponse) Reset

func (*QueryShowAvailableEmissionsResponse) Size

func (*QueryShowAvailableEmissionsResponse) String

func (*QueryShowAvailableEmissionsResponse) Unmarshal

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

func (*QueryShowAvailableEmissionsResponse) XXX_DiscardUnknown

func (m *QueryShowAvailableEmissionsResponse) XXX_DiscardUnknown()

func (*QueryShowAvailableEmissionsResponse) XXX_Marshal

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

func (*QueryShowAvailableEmissionsResponse) XXX_Merge

func (*QueryShowAvailableEmissionsResponse) XXX_Size

func (*QueryShowAvailableEmissionsResponse) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	BondedRatio(ctx sdk.Context) sdk.Dec
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) WithdrawEmission

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ListPoolAddresses

func (*UnimplementedQueryServer) Params

type WithdrawableEmissions

type WithdrawableEmissions struct {
	Address string                                 `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Amount  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func (*WithdrawableEmissions) Descriptor

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

func (*WithdrawableEmissions) GetAddress

func (m *WithdrawableEmissions) GetAddress() string

func (*WithdrawableEmissions) Marshal

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

func (*WithdrawableEmissions) MarshalTo

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

func (*WithdrawableEmissions) MarshalToSizedBuffer

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

func (*WithdrawableEmissions) ProtoMessage

func (*WithdrawableEmissions) ProtoMessage()

func (*WithdrawableEmissions) Reset

func (m *WithdrawableEmissions) Reset()

func (*WithdrawableEmissions) Size

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

func (*WithdrawableEmissions) String

func (m *WithdrawableEmissions) String() string

func (*WithdrawableEmissions) Unmarshal

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

func (*WithdrawableEmissions) XXX_DiscardUnknown

func (m *WithdrawableEmissions) XXX_DiscardUnknown()

func (*WithdrawableEmissions) XXX_Marshal

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

func (*WithdrawableEmissions) XXX_Merge

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

func (*WithdrawableEmissions) XXX_Size

func (m *WithdrawableEmissions) XXX_Size() int

func (*WithdrawableEmissions) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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