types

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

	// StoreKey defines the primary module store key
	StoreKey = ModuleName
	// ParamsKey is the prefix to retrieve all Params
	ParamsKey = "Params/value/"
)
View Source
const (
	// Eden denom
	Elys = "uelys"

	// Eden denom
	Eden = "ueden"

	// Eden Boost denom
	EdenB = "uedenb"

	// Base currency
	BaseCurrency = "uusdc"

	// Atom denom
	ATOM = "uatom"

	// BaseDecimal
	BASE_DECIMAL = 6

	// Return ok
	RES_OK = uint64(200)
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrInvalidMinCommissionRate    = errorsmod.Register(ModuleName, 1101, "invalid min commission rate")
	ErrInvalidMaxVotingPower       = errorsmod.Register(ModuleName, 1102, "invalid max voting power")
	ErrInvalidMinSelfDelegation    = errorsmod.Register(ModuleName, 1103, "invalid min self delegation")
	ErrInvalidRewardsDataLifecycle = errorsmod.Register(ModuleName, 1104, "invalid rewards data lifecycle")
)

x/parameter 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 (
	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")
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v0.50.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

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

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

type BankKeeper

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

BankKeeper defines the expected interface needed to retrieve account balances.

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the parameter module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) 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 added in v0.31.0

type LegacyParams struct {
	MinCommissionRate   cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
	MaxVotingPower      cosmossdk_io_math.LegacyDec `` /* 134-byte string literal not displayed */
	MinSelfDelegation   cosmossdk_io_math.Int       `` /* 137-byte string literal not displayed */
	TotalBlocksPerYear  uint64                      `protobuf:"varint,4,opt,name=total_blocks_per_year,json=totalBlocksPerYear,proto3" json:"total_blocks_per_year,omitempty"`
	RewardsDataLifetime uint64                      `protobuf:"varint,5,opt,name=rewards_data_lifetime,json=rewardsDataLifetime,proto3" json:"rewards_data_lifetime,omitempty"`
}

func (*LegacyParams) Descriptor added in v0.31.0

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

func (*LegacyParams) GetRewardsDataLifetime added in v0.51.0

func (m *LegacyParams) GetRewardsDataLifetime() uint64

func (*LegacyParams) GetTotalBlocksPerYear added in v0.33.0

func (m *LegacyParams) GetTotalBlocksPerYear() uint64

func (*LegacyParams) Marshal added in v0.31.0

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

func (*LegacyParams) MarshalTo added in v0.31.0

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

func (*LegacyParams) MarshalToSizedBuffer added in v0.31.0

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

func (*LegacyParams) ProtoMessage added in v0.31.0

func (*LegacyParams) ProtoMessage()

func (*LegacyParams) Reset added in v0.31.0

func (m *LegacyParams) Reset()

func (*LegacyParams) Size added in v0.31.0

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

func (*LegacyParams) String added in v0.31.0

func (m *LegacyParams) String() string

func (*LegacyParams) Unmarshal added in v0.31.0

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

func (*LegacyParams) XXX_DiscardUnknown added in v0.31.0

func (m *LegacyParams) XXX_DiscardUnknown()

func (*LegacyParams) XXX_Marshal added in v0.31.0

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

func (*LegacyParams) XXX_Merge added in v0.31.0

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

func (*LegacyParams) XXX_Size added in v0.31.0

func (m *LegacyParams) XXX_Size() int

func (*LegacyParams) XXX_Unmarshal added in v0.31.0

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

type MsgClient

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 MsgUpdateMaxVotingPower added in v0.19.0

type MsgUpdateMaxVotingPower struct {
	Creator        string                      `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	MaxVotingPower cosmossdk_io_math.LegacyDec `` /* 134-byte string literal not displayed */
}

func (*MsgUpdateMaxVotingPower) Descriptor added in v0.19.0

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

func (*MsgUpdateMaxVotingPower) GetCreator added in v0.19.0

func (m *MsgUpdateMaxVotingPower) GetCreator() string

func (*MsgUpdateMaxVotingPower) Marshal added in v0.19.0

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

func (*MsgUpdateMaxVotingPower) MarshalTo added in v0.19.0

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

func (*MsgUpdateMaxVotingPower) MarshalToSizedBuffer added in v0.19.0

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

func (*MsgUpdateMaxVotingPower) ProtoMessage added in v0.19.0

func (*MsgUpdateMaxVotingPower) ProtoMessage()

func (*MsgUpdateMaxVotingPower) Reset added in v0.19.0

func (m *MsgUpdateMaxVotingPower) Reset()

func (*MsgUpdateMaxVotingPower) Size added in v0.19.0

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

func (*MsgUpdateMaxVotingPower) String added in v0.19.0

func (m *MsgUpdateMaxVotingPower) String() string

func (*MsgUpdateMaxVotingPower) Unmarshal added in v0.19.0

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

func (*MsgUpdateMaxVotingPower) ValidateBasic added in v0.19.0

func (msg *MsgUpdateMaxVotingPower) ValidateBasic() error

func (*MsgUpdateMaxVotingPower) XXX_DiscardUnknown added in v0.19.0

func (m *MsgUpdateMaxVotingPower) XXX_DiscardUnknown()

func (*MsgUpdateMaxVotingPower) XXX_Marshal added in v0.19.0

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

func (*MsgUpdateMaxVotingPower) XXX_Merge added in v0.19.0

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

func (*MsgUpdateMaxVotingPower) XXX_Size added in v0.19.0

func (m *MsgUpdateMaxVotingPower) XXX_Size() int

func (*MsgUpdateMaxVotingPower) XXX_Unmarshal added in v0.19.0

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

type MsgUpdateMaxVotingPowerResponse added in v0.19.0

type MsgUpdateMaxVotingPowerResponse struct {
}

func (*MsgUpdateMaxVotingPowerResponse) Descriptor added in v0.19.0

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

func (*MsgUpdateMaxVotingPowerResponse) Marshal added in v0.19.0

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

func (*MsgUpdateMaxVotingPowerResponse) MarshalTo added in v0.19.0

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

func (*MsgUpdateMaxVotingPowerResponse) MarshalToSizedBuffer added in v0.19.0

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

func (*MsgUpdateMaxVotingPowerResponse) ProtoMessage added in v0.19.0

func (*MsgUpdateMaxVotingPowerResponse) ProtoMessage()

func (*MsgUpdateMaxVotingPowerResponse) Reset added in v0.19.0

func (*MsgUpdateMaxVotingPowerResponse) Size added in v0.19.0

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

func (*MsgUpdateMaxVotingPowerResponse) String added in v0.19.0

func (*MsgUpdateMaxVotingPowerResponse) Unmarshal added in v0.19.0

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

func (*MsgUpdateMaxVotingPowerResponse) XXX_DiscardUnknown added in v0.19.0

func (m *MsgUpdateMaxVotingPowerResponse) XXX_DiscardUnknown()

func (*MsgUpdateMaxVotingPowerResponse) XXX_Marshal added in v0.19.0

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

func (*MsgUpdateMaxVotingPowerResponse) XXX_Merge added in v0.19.0

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

func (*MsgUpdateMaxVotingPowerResponse) XXX_Size added in v0.19.0

func (m *MsgUpdateMaxVotingPowerResponse) XXX_Size() int

func (*MsgUpdateMaxVotingPowerResponse) XXX_Unmarshal added in v0.19.0

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

type MsgUpdateMinCommission added in v0.19.0

type MsgUpdateMinCommission struct {
	Creator       string                      `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	MinCommission cosmossdk_io_math.LegacyDec `` /* 129-byte string literal not displayed */
}

func (*MsgUpdateMinCommission) Descriptor added in v0.19.0

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

func (*MsgUpdateMinCommission) GetCreator added in v0.19.0

func (m *MsgUpdateMinCommission) GetCreator() string

func (*MsgUpdateMinCommission) Marshal added in v0.19.0

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

func (*MsgUpdateMinCommission) MarshalTo added in v0.19.0

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

func (*MsgUpdateMinCommission) MarshalToSizedBuffer added in v0.19.0

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

func (*MsgUpdateMinCommission) ProtoMessage added in v0.19.0

func (*MsgUpdateMinCommission) ProtoMessage()

func (*MsgUpdateMinCommission) Reset added in v0.19.0

func (m *MsgUpdateMinCommission) Reset()

func (*MsgUpdateMinCommission) Size added in v0.19.0

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

func (*MsgUpdateMinCommission) String added in v0.19.0

func (m *MsgUpdateMinCommission) String() string

func (*MsgUpdateMinCommission) Unmarshal added in v0.19.0

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

func (*MsgUpdateMinCommission) ValidateBasic added in v0.19.0

func (msg *MsgUpdateMinCommission) ValidateBasic() error

func (*MsgUpdateMinCommission) XXX_DiscardUnknown added in v0.19.0

func (m *MsgUpdateMinCommission) XXX_DiscardUnknown()

func (*MsgUpdateMinCommission) XXX_Marshal added in v0.19.0

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

func (*MsgUpdateMinCommission) XXX_Merge added in v0.19.0

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

func (*MsgUpdateMinCommission) XXX_Size added in v0.19.0

func (m *MsgUpdateMinCommission) XXX_Size() int

func (*MsgUpdateMinCommission) XXX_Unmarshal added in v0.19.0

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

type MsgUpdateMinCommissionResponse added in v0.19.0

type MsgUpdateMinCommissionResponse struct {
}

func (*MsgUpdateMinCommissionResponse) Descriptor added in v0.19.0

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

func (*MsgUpdateMinCommissionResponse) Marshal added in v0.19.0

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

func (*MsgUpdateMinCommissionResponse) MarshalTo added in v0.19.0

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

func (*MsgUpdateMinCommissionResponse) MarshalToSizedBuffer added in v0.19.0

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

func (*MsgUpdateMinCommissionResponse) ProtoMessage added in v0.19.0

func (*MsgUpdateMinCommissionResponse) ProtoMessage()

func (*MsgUpdateMinCommissionResponse) Reset added in v0.19.0

func (m *MsgUpdateMinCommissionResponse) Reset()

func (*MsgUpdateMinCommissionResponse) Size added in v0.19.0

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

func (*MsgUpdateMinCommissionResponse) String added in v0.19.0

func (*MsgUpdateMinCommissionResponse) Unmarshal added in v0.19.0

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

func (*MsgUpdateMinCommissionResponse) XXX_DiscardUnknown added in v0.19.0

func (m *MsgUpdateMinCommissionResponse) XXX_DiscardUnknown()

func (*MsgUpdateMinCommissionResponse) XXX_Marshal added in v0.19.0

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

func (*MsgUpdateMinCommissionResponse) XXX_Merge added in v0.19.0

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

func (*MsgUpdateMinCommissionResponse) XXX_Size added in v0.19.0

func (m *MsgUpdateMinCommissionResponse) XXX_Size() int

func (*MsgUpdateMinCommissionResponse) XXX_Unmarshal added in v0.19.0

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

type MsgUpdateMinSelfDelegation added in v0.19.0

type MsgUpdateMinSelfDelegation struct {
	Creator           string                `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	MinSelfDelegation cosmossdk_io_math.Int `` /* 137-byte string literal not displayed */
}

func (*MsgUpdateMinSelfDelegation) Descriptor added in v0.19.0

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

func (*MsgUpdateMinSelfDelegation) GetCreator added in v0.19.0

func (m *MsgUpdateMinSelfDelegation) GetCreator() string

func (*MsgUpdateMinSelfDelegation) Marshal added in v0.19.0

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

func (*MsgUpdateMinSelfDelegation) MarshalTo added in v0.19.0

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

func (*MsgUpdateMinSelfDelegation) MarshalToSizedBuffer added in v0.19.0

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

func (*MsgUpdateMinSelfDelegation) ProtoMessage added in v0.19.0

func (*MsgUpdateMinSelfDelegation) ProtoMessage()

func (*MsgUpdateMinSelfDelegation) Reset added in v0.19.0

func (m *MsgUpdateMinSelfDelegation) Reset()

func (*MsgUpdateMinSelfDelegation) Size added in v0.19.0

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

func (*MsgUpdateMinSelfDelegation) String added in v0.19.0

func (m *MsgUpdateMinSelfDelegation) String() string

func (*MsgUpdateMinSelfDelegation) Unmarshal added in v0.19.0

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

func (*MsgUpdateMinSelfDelegation) ValidateBasic added in v0.19.0

func (msg *MsgUpdateMinSelfDelegation) ValidateBasic() error

func (*MsgUpdateMinSelfDelegation) XXX_DiscardUnknown added in v0.19.0

func (m *MsgUpdateMinSelfDelegation) XXX_DiscardUnknown()

func (*MsgUpdateMinSelfDelegation) XXX_Marshal added in v0.19.0

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

func (*MsgUpdateMinSelfDelegation) XXX_Merge added in v0.19.0

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

func (*MsgUpdateMinSelfDelegation) XXX_Size added in v0.19.0

func (m *MsgUpdateMinSelfDelegation) XXX_Size() int

func (*MsgUpdateMinSelfDelegation) XXX_Unmarshal added in v0.19.0

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

type MsgUpdateMinSelfDelegationResponse added in v0.19.0

type MsgUpdateMinSelfDelegationResponse struct {
}

func (*MsgUpdateMinSelfDelegationResponse) Descriptor added in v0.19.0

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

func (*MsgUpdateMinSelfDelegationResponse) Marshal added in v0.19.0

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

func (*MsgUpdateMinSelfDelegationResponse) MarshalTo added in v0.19.0

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

func (*MsgUpdateMinSelfDelegationResponse) MarshalToSizedBuffer added in v0.19.0

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

func (*MsgUpdateMinSelfDelegationResponse) ProtoMessage added in v0.19.0

func (*MsgUpdateMinSelfDelegationResponse) ProtoMessage()

func (*MsgUpdateMinSelfDelegationResponse) Reset added in v0.19.0

func (*MsgUpdateMinSelfDelegationResponse) Size added in v0.19.0

func (*MsgUpdateMinSelfDelegationResponse) String added in v0.19.0

func (*MsgUpdateMinSelfDelegationResponse) Unmarshal added in v0.19.0

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

func (*MsgUpdateMinSelfDelegationResponse) XXX_DiscardUnknown added in v0.19.0

func (m *MsgUpdateMinSelfDelegationResponse) XXX_DiscardUnknown()

func (*MsgUpdateMinSelfDelegationResponse) XXX_Marshal added in v0.19.0

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

func (*MsgUpdateMinSelfDelegationResponse) XXX_Merge added in v0.19.0

func (*MsgUpdateMinSelfDelegationResponse) XXX_Size added in v0.19.0

func (*MsgUpdateMinSelfDelegationResponse) XXX_Unmarshal added in v0.19.0

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

type MsgUpdateRewardsDataLifetime added in v0.43.0

type MsgUpdateRewardsDataLifetime struct {
	Creator             string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	RewardsDataLifetime uint64 `protobuf:"varint,2,opt,name=rewards_data_lifetime,json=rewardsDataLifetime,proto3" json:"rewards_data_lifetime,omitempty"`
}

func (*MsgUpdateRewardsDataLifetime) Descriptor added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetime) GetCreator added in v0.43.0

func (m *MsgUpdateRewardsDataLifetime) GetCreator() string

func (*MsgUpdateRewardsDataLifetime) GetRewardsDataLifetime added in v0.43.0

func (m *MsgUpdateRewardsDataLifetime) GetRewardsDataLifetime() uint64

func (*MsgUpdateRewardsDataLifetime) Marshal added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetime) MarshalTo added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetime) MarshalToSizedBuffer added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetime) ProtoMessage added in v0.43.0

func (*MsgUpdateRewardsDataLifetime) ProtoMessage()

func (*MsgUpdateRewardsDataLifetime) Reset added in v0.43.0

func (m *MsgUpdateRewardsDataLifetime) Reset()

func (*MsgUpdateRewardsDataLifetime) Size added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetime) String added in v0.43.0

func (*MsgUpdateRewardsDataLifetime) Unmarshal added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetime) ValidateBasic added in v0.43.0

func (msg *MsgUpdateRewardsDataLifetime) ValidateBasic() error

func (*MsgUpdateRewardsDataLifetime) XXX_DiscardUnknown added in v0.43.0

func (m *MsgUpdateRewardsDataLifetime) XXX_DiscardUnknown()

func (*MsgUpdateRewardsDataLifetime) XXX_Marshal added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetime) XXX_Merge added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetime) XXX_Size added in v0.43.0

func (m *MsgUpdateRewardsDataLifetime) XXX_Size() int

func (*MsgUpdateRewardsDataLifetime) XXX_Unmarshal added in v0.43.0

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

type MsgUpdateRewardsDataLifetimeResponse added in v0.43.0

type MsgUpdateRewardsDataLifetimeResponse struct {
}

func (*MsgUpdateRewardsDataLifetimeResponse) Descriptor added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetimeResponse) Marshal added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetimeResponse) MarshalTo added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetimeResponse) MarshalToSizedBuffer added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetimeResponse) ProtoMessage added in v0.43.0

func (*MsgUpdateRewardsDataLifetimeResponse) ProtoMessage()

func (*MsgUpdateRewardsDataLifetimeResponse) Reset added in v0.43.0

func (*MsgUpdateRewardsDataLifetimeResponse) Size added in v0.43.0

func (*MsgUpdateRewardsDataLifetimeResponse) String added in v0.43.0

func (*MsgUpdateRewardsDataLifetimeResponse) Unmarshal added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetimeResponse) XXX_DiscardUnknown added in v0.43.0

func (m *MsgUpdateRewardsDataLifetimeResponse) XXX_DiscardUnknown()

func (*MsgUpdateRewardsDataLifetimeResponse) XXX_Marshal added in v0.43.0

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

func (*MsgUpdateRewardsDataLifetimeResponse) XXX_Merge added in v0.43.0

func (*MsgUpdateRewardsDataLifetimeResponse) XXX_Size added in v0.43.0

func (*MsgUpdateRewardsDataLifetimeResponse) XXX_Unmarshal added in v0.43.0

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

type MsgUpdateTotalBlocksPerYear added in v0.31.0

type MsgUpdateTotalBlocksPerYear struct {
	Creator            string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	TotalBlocksPerYear uint64 `protobuf:"varint,2,opt,name=total_blocks_per_year,json=totalBlocksPerYear,proto3" json:"total_blocks_per_year,omitempty"`
}

func (*MsgUpdateTotalBlocksPerYear) Descriptor added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYear) GetCreator added in v0.31.0

func (m *MsgUpdateTotalBlocksPerYear) GetCreator() string

func (*MsgUpdateTotalBlocksPerYear) GetTotalBlocksPerYear added in v0.31.0

func (m *MsgUpdateTotalBlocksPerYear) GetTotalBlocksPerYear() uint64

func (*MsgUpdateTotalBlocksPerYear) Marshal added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYear) MarshalTo added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYear) MarshalToSizedBuffer added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYear) ProtoMessage added in v0.31.0

func (*MsgUpdateTotalBlocksPerYear) ProtoMessage()

func (*MsgUpdateTotalBlocksPerYear) Reset added in v0.31.0

func (m *MsgUpdateTotalBlocksPerYear) Reset()

func (*MsgUpdateTotalBlocksPerYear) Size added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYear) String added in v0.31.0

func (m *MsgUpdateTotalBlocksPerYear) String() string

func (*MsgUpdateTotalBlocksPerYear) Unmarshal added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYear) ValidateBasic added in v0.31.0

func (msg *MsgUpdateTotalBlocksPerYear) ValidateBasic() error

func (*MsgUpdateTotalBlocksPerYear) XXX_DiscardUnknown added in v0.31.0

func (m *MsgUpdateTotalBlocksPerYear) XXX_DiscardUnknown()

func (*MsgUpdateTotalBlocksPerYear) XXX_Marshal added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYear) XXX_Merge added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYear) XXX_Size added in v0.31.0

func (m *MsgUpdateTotalBlocksPerYear) XXX_Size() int

func (*MsgUpdateTotalBlocksPerYear) XXX_Unmarshal added in v0.31.0

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

type MsgUpdateTotalBlocksPerYearResponse added in v0.31.0

type MsgUpdateTotalBlocksPerYearResponse struct {
}

func (*MsgUpdateTotalBlocksPerYearResponse) Descriptor added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYearResponse) Marshal added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYearResponse) MarshalTo added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYearResponse) MarshalToSizedBuffer added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYearResponse) ProtoMessage added in v0.31.0

func (*MsgUpdateTotalBlocksPerYearResponse) ProtoMessage()

func (*MsgUpdateTotalBlocksPerYearResponse) Reset added in v0.31.0

func (*MsgUpdateTotalBlocksPerYearResponse) Size added in v0.31.0

func (*MsgUpdateTotalBlocksPerYearResponse) String added in v0.31.0

func (*MsgUpdateTotalBlocksPerYearResponse) Unmarshal added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYearResponse) XXX_DiscardUnknown added in v0.31.0

func (m *MsgUpdateTotalBlocksPerYearResponse) XXX_DiscardUnknown()

func (*MsgUpdateTotalBlocksPerYearResponse) XXX_Marshal added in v0.31.0

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

func (*MsgUpdateTotalBlocksPerYearResponse) XXX_Merge added in v0.31.0

func (*MsgUpdateTotalBlocksPerYearResponse) XXX_Size added in v0.31.0

func (*MsgUpdateTotalBlocksPerYearResponse) XXX_Unmarshal added in v0.31.0

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

type Params

type Params struct {
	MinCommissionRate   cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
	MaxVotingPower      cosmossdk_io_math.LegacyDec `` /* 134-byte string literal not displayed */
	MinSelfDelegation   cosmossdk_io_math.Int       `` /* 137-byte string literal not displayed */
	TotalBlocksPerYear  uint64                      `protobuf:"varint,4,opt,name=total_blocks_per_year,json=totalBlocksPerYear,proto3" json:"total_blocks_per_year,omitempty"`
	RewardsDataLifetime uint64                      `protobuf:"varint,5,opt,name=rewards_data_lifetime,json=rewardsDataLifetime,proto3" json:"rewards_data_lifetime,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	minCommissionRate sdkmath.LegacyDec,
	maxVotingPower sdkmath.LegacyDec,
	minSelfDelegation sdkmath.Int,
	totalBlocksPerYear uint64,
	rewardsDataLifeTime uint64,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetRewardsDataLifetime added in v0.33.0

func (m *Params) GetRewardsDataLifetime() uint64

func (*Params) GetTotalBlocksPerYear added in v0.31.0

func (m *Params) GetTotalBlocksPerYear() uint64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

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

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateMaxVotingPower added in v0.19.0

func (*UnimplementedMsgServer) UpdateMinCommission added in v0.19.0

func (*UnimplementedMsgServer) UpdateMinSelfDelegation added in v0.19.0

func (*UnimplementedMsgServer) UpdateRewardsDataLifetime added in v0.43.0

func (*UnimplementedMsgServer) UpdateTotalBlocksPerYear added in v0.31.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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