Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type LegacyParams
- func (*LegacyParams) Descriptor() ([]byte, []int)
- func (m *LegacyParams) GetBrokerAddress() string
- func (m *LegacyParams) GetRewardsDataLifetime() int64
- func (m *LegacyParams) GetTotalBlocksPerYear() int64
- func (m *LegacyParams) Marshal() (dAtA []byte, err error)
- func (m *LegacyParams) MarshalTo(dAtA []byte) (int, error)
- func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LegacyParams) ProtoMessage()
- func (m *LegacyParams) Reset()
- func (m *LegacyParams) Size() (n int)
- func (m *LegacyParams) String() string
- func (m *LegacyParams) Unmarshal(dAtA []byte) error
- func (m *LegacyParams) XXX_DiscardUnknown()
- func (m *LegacyParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LegacyParams) XXX_Merge(src proto.Message)
- func (m *LegacyParams) XXX_Size() int
- func (m *LegacyParams) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpdateMaxVotingPower
- func (*MsgUpdateMaxVotingPower) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMaxVotingPower) GetCreator() string
- func (m *MsgUpdateMaxVotingPower) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMaxVotingPower) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMaxVotingPower) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMaxVotingPower) ProtoMessage()
- func (m *MsgUpdateMaxVotingPower) Reset()
- func (m *MsgUpdateMaxVotingPower) Size() (n int)
- func (m *MsgUpdateMaxVotingPower) String() string
- func (m *MsgUpdateMaxVotingPower) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateMaxVotingPower) ValidateBasic() error
- func (m *MsgUpdateMaxVotingPower) XXX_DiscardUnknown()
- func (m *MsgUpdateMaxVotingPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMaxVotingPower) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMaxVotingPower) XXX_Size() int
- func (m *MsgUpdateMaxVotingPower) XXX_Unmarshal(b []byte) error
- type MsgUpdateMaxVotingPowerResponse
- func (*MsgUpdateMaxVotingPowerResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMaxVotingPowerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMaxVotingPowerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMaxVotingPowerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMaxVotingPowerResponse) ProtoMessage()
- func (m *MsgUpdateMaxVotingPowerResponse) Reset()
- func (m *MsgUpdateMaxVotingPowerResponse) Size() (n int)
- func (m *MsgUpdateMaxVotingPowerResponse) String() string
- func (m *MsgUpdateMaxVotingPowerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateMaxVotingPowerResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateMaxVotingPowerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMaxVotingPowerResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMaxVotingPowerResponse) XXX_Size() int
- func (m *MsgUpdateMaxVotingPowerResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateMinCommission
- func (*MsgUpdateMinCommission) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMinCommission) GetCreator() string
- func (m *MsgUpdateMinCommission) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMinCommission) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMinCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMinCommission) ProtoMessage()
- func (m *MsgUpdateMinCommission) Reset()
- func (m *MsgUpdateMinCommission) Size() (n int)
- func (m *MsgUpdateMinCommission) String() string
- func (m *MsgUpdateMinCommission) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateMinCommission) ValidateBasic() error
- func (m *MsgUpdateMinCommission) XXX_DiscardUnknown()
- func (m *MsgUpdateMinCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMinCommission) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMinCommission) XXX_Size() int
- func (m *MsgUpdateMinCommission) XXX_Unmarshal(b []byte) error
- type MsgUpdateMinCommissionResponse
- func (*MsgUpdateMinCommissionResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMinCommissionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMinCommissionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMinCommissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMinCommissionResponse) ProtoMessage()
- func (m *MsgUpdateMinCommissionResponse) Reset()
- func (m *MsgUpdateMinCommissionResponse) Size() (n int)
- func (m *MsgUpdateMinCommissionResponse) String() string
- func (m *MsgUpdateMinCommissionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateMinCommissionResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateMinCommissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMinCommissionResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMinCommissionResponse) XXX_Size() int
- func (m *MsgUpdateMinCommissionResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateMinSelfDelegation
- func (*MsgUpdateMinSelfDelegation) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMinSelfDelegation) GetCreator() string
- func (m *MsgUpdateMinSelfDelegation) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMinSelfDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMinSelfDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMinSelfDelegation) ProtoMessage()
- func (m *MsgUpdateMinSelfDelegation) Reset()
- func (m *MsgUpdateMinSelfDelegation) Size() (n int)
- func (m *MsgUpdateMinSelfDelegation) String() string
- func (m *MsgUpdateMinSelfDelegation) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateMinSelfDelegation) ValidateBasic() error
- func (m *MsgUpdateMinSelfDelegation) XXX_DiscardUnknown()
- func (m *MsgUpdateMinSelfDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMinSelfDelegation) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMinSelfDelegation) XXX_Size() int
- func (m *MsgUpdateMinSelfDelegation) XXX_Unmarshal(b []byte) error
- type MsgUpdateMinSelfDelegationResponse
- func (*MsgUpdateMinSelfDelegationResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMinSelfDelegationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMinSelfDelegationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMinSelfDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMinSelfDelegationResponse) ProtoMessage()
- func (m *MsgUpdateMinSelfDelegationResponse) Reset()
- func (m *MsgUpdateMinSelfDelegationResponse) Size() (n int)
- func (m *MsgUpdateMinSelfDelegationResponse) String() string
- func (m *MsgUpdateMinSelfDelegationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateMinSelfDelegationResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateMinSelfDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMinSelfDelegationResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMinSelfDelegationResponse) XXX_Size() int
- func (m *MsgUpdateMinSelfDelegationResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateRewardsDataLifetime
- func (*MsgUpdateRewardsDataLifetime) Descriptor() ([]byte, []int)
- func (m *MsgUpdateRewardsDataLifetime) GetCreator() string
- func (m *MsgUpdateRewardsDataLifetime) GetRewardsDataLifetime() uint64
- func (m *MsgUpdateRewardsDataLifetime) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateRewardsDataLifetime) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateRewardsDataLifetime) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateRewardsDataLifetime) ProtoMessage()
- func (m *MsgUpdateRewardsDataLifetime) Reset()
- func (m *MsgUpdateRewardsDataLifetime) Size() (n int)
- func (m *MsgUpdateRewardsDataLifetime) String() string
- func (m *MsgUpdateRewardsDataLifetime) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateRewardsDataLifetime) ValidateBasic() error
- func (m *MsgUpdateRewardsDataLifetime) XXX_DiscardUnknown()
- func (m *MsgUpdateRewardsDataLifetime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateRewardsDataLifetime) XXX_Merge(src proto.Message)
- func (m *MsgUpdateRewardsDataLifetime) XXX_Size() int
- func (m *MsgUpdateRewardsDataLifetime) XXX_Unmarshal(b []byte) error
- type MsgUpdateRewardsDataLifetimeResponse
- func (*MsgUpdateRewardsDataLifetimeResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateRewardsDataLifetimeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateRewardsDataLifetimeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateRewardsDataLifetimeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateRewardsDataLifetimeResponse) ProtoMessage()
- func (m *MsgUpdateRewardsDataLifetimeResponse) Reset()
- func (m *MsgUpdateRewardsDataLifetimeResponse) Size() (n int)
- func (m *MsgUpdateRewardsDataLifetimeResponse) String() string
- func (m *MsgUpdateRewardsDataLifetimeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateRewardsDataLifetimeResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateRewardsDataLifetimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateRewardsDataLifetimeResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateRewardsDataLifetimeResponse) XXX_Size() int
- func (m *MsgUpdateRewardsDataLifetimeResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateTotalBlocksPerYear
- func (*MsgUpdateTotalBlocksPerYear) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTotalBlocksPerYear) GetCreator() string
- func (m *MsgUpdateTotalBlocksPerYear) GetTotalBlocksPerYear() uint64
- func (m *MsgUpdateTotalBlocksPerYear) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTotalBlocksPerYear) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTotalBlocksPerYear) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTotalBlocksPerYear) ProtoMessage()
- func (m *MsgUpdateTotalBlocksPerYear) Reset()
- func (m *MsgUpdateTotalBlocksPerYear) Size() (n int)
- func (m *MsgUpdateTotalBlocksPerYear) String() string
- func (m *MsgUpdateTotalBlocksPerYear) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateTotalBlocksPerYear) ValidateBasic() error
- func (m *MsgUpdateTotalBlocksPerYear) XXX_DiscardUnknown()
- func (m *MsgUpdateTotalBlocksPerYear) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTotalBlocksPerYear) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTotalBlocksPerYear) XXX_Size() int
- func (m *MsgUpdateTotalBlocksPerYear) XXX_Unmarshal(b []byte) error
- type MsgUpdateTotalBlocksPerYearResponse
- func (*MsgUpdateTotalBlocksPerYearResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTotalBlocksPerYearResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTotalBlocksPerYearResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTotalBlocksPerYearResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTotalBlocksPerYearResponse) ProtoMessage()
- func (m *MsgUpdateTotalBlocksPerYearResponse) Reset()
- func (m *MsgUpdateTotalBlocksPerYearResponse) Size() (n int)
- func (m *MsgUpdateTotalBlocksPerYearResponse) String() string
- func (m *MsgUpdateTotalBlocksPerYearResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateTotalBlocksPerYearResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateTotalBlocksPerYearResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTotalBlocksPerYearResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTotalBlocksPerYearResponse) XXX_Size() int
- func (m *MsgUpdateTotalBlocksPerYearResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetRewardsDataLifetime() uint64
- func (m *Params) GetTotalBlocksPerYear() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) UpdateMaxVotingPower(ctx context.Context, req *MsgUpdateMaxVotingPower) (*MsgUpdateMaxVotingPowerResponse, error)
- func (*UnimplementedMsgServer) UpdateMinCommission(ctx context.Context, req *MsgUpdateMinCommission) (*MsgUpdateMinCommissionResponse, error)
- func (*UnimplementedMsgServer) UpdateMinSelfDelegation(ctx context.Context, req *MsgUpdateMinSelfDelegation) (*MsgUpdateMinSelfDelegationResponse, error)
- func (*UnimplementedMsgServer) UpdateRewardsDataLifetime(ctx context.Context, req *MsgUpdateRewardsDataLifetime) (*MsgUpdateRewardsDataLifetimeResponse, error)
- func (*UnimplementedMsgServer) UpdateTotalBlocksPerYear(ctx context.Context, req *MsgUpdateTotalBlocksPerYear) (*MsgUpdateTotalBlocksPerYearResponse, error)
- type UnimplementedQueryServer
Constants ¶
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/" )
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) )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
Variables ¶
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") ErrInvalidBrokerAddress = errorsmod.Register(ModuleName, 1104, "invalid broker address") ErrInvalidRewardsDataLifecycle = errorsmod.Register(ModuleName, 1105, "invalid rewards data lifecycle") )
x/parameter module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶ added in v0.50.0
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
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) 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 */ BrokerAddress string `protobuf:"bytes,4,opt,name=broker_address,json=brokerAddress,proto3" json:"broker_address,omitempty"` TotalBlocksPerYear int64 `protobuf:"varint,5,opt,name=total_blocks_per_year,json=totalBlocksPerYear,proto3" json:"total_blocks_per_year,omitempty"` RewardsDataLifetime int64 `protobuf:"varint,6,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) GetBrokerAddress ¶ added in v0.31.0
func (m *LegacyParams) GetBrokerAddress() string
func (*LegacyParams) GetRewardsDataLifetime ¶ added in v0.51.0
func (m *LegacyParams) GetRewardsDataLifetime() int64
func (*LegacyParams) GetTotalBlocksPerYear ¶ added in v0.33.0
func (m *LegacyParams) GetTotalBlocksPerYear() int64
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 ¶
type MsgClient interface { UpdateMinCommission(ctx context.Context, in *MsgUpdateMinCommission, opts ...grpc.CallOption) (*MsgUpdateMinCommissionResponse, error) UpdateMaxVotingPower(ctx context.Context, in *MsgUpdateMaxVotingPower, opts ...grpc.CallOption) (*MsgUpdateMaxVotingPowerResponse, error) UpdateMinSelfDelegation(ctx context.Context, in *MsgUpdateMinSelfDelegation, opts ...grpc.CallOption) (*MsgUpdateMinSelfDelegationResponse, error) UpdateTotalBlocksPerYear(ctx context.Context, in *MsgUpdateTotalBlocksPerYear, opts ...grpc.CallOption) (*MsgUpdateTotalBlocksPerYearResponse, error) UpdateRewardsDataLifetime(ctx context.Context, in *MsgUpdateRewardsDataLifetime, opts ...grpc.CallOption) (*MsgUpdateRewardsDataLifetimeResponse, 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 { UpdateMinCommission(context.Context, *MsgUpdateMinCommission) (*MsgUpdateMinCommissionResponse, error) UpdateMaxVotingPower(context.Context, *MsgUpdateMaxVotingPower) (*MsgUpdateMaxVotingPowerResponse, error) UpdateMinSelfDelegation(context.Context, *MsgUpdateMinSelfDelegation) (*MsgUpdateMinSelfDelegationResponse, error) UpdateTotalBlocksPerYear(context.Context, *MsgUpdateTotalBlocksPerYear) (*MsgUpdateTotalBlocksPerYearResponse, error) UpdateRewardsDataLifetime(context.Context, *MsgUpdateRewardsDataLifetime) (*MsgUpdateRewardsDataLifetimeResponse, error) }
MsgServer is the server API for Msg service.
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 (m *MsgUpdateMaxVotingPowerResponse) Reset()
func (*MsgUpdateMaxVotingPowerResponse) Size ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) Size() (n int)
func (*MsgUpdateMaxVotingPowerResponse) String ¶ added in v0.19.0
func (m *MsgUpdateMaxVotingPowerResponse) String() string
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 (m *MsgUpdateMinCommissionResponse) String() string
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 (m *MsgUpdateMinSelfDelegationResponse) Reset()
func (*MsgUpdateMinSelfDelegationResponse) Size ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) Size() (n int)
func (*MsgUpdateMinSelfDelegationResponse) String ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) String() string
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 (m *MsgUpdateMinSelfDelegationResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateMinSelfDelegationResponse) XXX_Size ¶ added in v0.19.0
func (m *MsgUpdateMinSelfDelegationResponse) XXX_Size() int
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 (m *MsgUpdateRewardsDataLifetime) String() string
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 (m *MsgUpdateRewardsDataLifetimeResponse) Reset()
func (*MsgUpdateRewardsDataLifetimeResponse) Size ¶ added in v0.43.0
func (m *MsgUpdateRewardsDataLifetimeResponse) Size() (n int)
func (*MsgUpdateRewardsDataLifetimeResponse) String ¶ added in v0.43.0
func (m *MsgUpdateRewardsDataLifetimeResponse) String() string
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 (m *MsgUpdateRewardsDataLifetimeResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateRewardsDataLifetimeResponse) XXX_Size ¶ added in v0.43.0
func (m *MsgUpdateRewardsDataLifetimeResponse) XXX_Size() int
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 (m *MsgUpdateTotalBlocksPerYearResponse) Reset()
func (*MsgUpdateTotalBlocksPerYearResponse) Size ¶ added in v0.31.0
func (m *MsgUpdateTotalBlocksPerYearResponse) Size() (n int)
func (*MsgUpdateTotalBlocksPerYearResponse) String ¶ added in v0.31.0
func (m *MsgUpdateTotalBlocksPerYearResponse) String() string
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 (m *MsgUpdateTotalBlocksPerYearResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateTotalBlocksPerYearResponse) XXX_Size ¶ added in v0.31.0
func (m *MsgUpdateTotalBlocksPerYearResponse) XXX_Size() int
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 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) GetRewardsDataLifetime ¶ added in v0.33.0
func (*Params) GetTotalBlocksPerYear ¶ added in v0.31.0
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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) UpdateMaxVotingPower(ctx context.Context, req *MsgUpdateMaxVotingPower) (*MsgUpdateMaxVotingPowerResponse, error)
func (*UnimplementedMsgServer) UpdateMinCommission ¶ added in v0.19.0
func (*UnimplementedMsgServer) UpdateMinCommission(ctx context.Context, req *MsgUpdateMinCommission) (*MsgUpdateMinCommissionResponse, error)
func (*UnimplementedMsgServer) UpdateMinSelfDelegation ¶ added in v0.19.0
func (*UnimplementedMsgServer) UpdateMinSelfDelegation(ctx context.Context, req *MsgUpdateMinSelfDelegation) (*MsgUpdateMinSelfDelegationResponse, error)
func (*UnimplementedMsgServer) UpdateRewardsDataLifetime ¶ added in v0.43.0
func (*UnimplementedMsgServer) UpdateRewardsDataLifetime(ctx context.Context, req *MsgUpdateRewardsDataLifetime) (*MsgUpdateRewardsDataLifetimeResponse, error)
func (*UnimplementedMsgServer) UpdateTotalBlocksPerYear ¶ added in v0.31.0
func (*UnimplementedMsgServer) UpdateTotalBlocksPerYear(ctx context.Context, req *MsgUpdateTotalBlocksPerYear) (*MsgUpdateTotalBlocksPerYearResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)