Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.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)
- func ValidateGenesis(gs *GenesisState) error
- type AccountKeeper
- type BankKeeper
- type DistributionKeeper
- 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 (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 MintKeeper
- type MsgClient
- type MsgFundFeeCollector
- func (*MsgFundFeeCollector) Descriptor() ([]byte, []int)
- func (msg MsgFundFeeCollector) GetSignBytes() []byte
- func (msg MsgFundFeeCollector) GetSigners() []sdk.AccAddress
- func (m *MsgFundFeeCollector) Marshal() (dAtA []byte, err error)
- func (m *MsgFundFeeCollector) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFundFeeCollector) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFundFeeCollector) ProtoMessage()
- func (m *MsgFundFeeCollector) Reset()
- func (msg MsgFundFeeCollector) Route() string
- func (m *MsgFundFeeCollector) Size() (n int)
- func (m *MsgFundFeeCollector) String() string
- func (msg MsgFundFeeCollector) Type() string
- func (m *MsgFundFeeCollector) Unmarshal(dAtA []byte) error
- func (msg MsgFundFeeCollector) ValidateBasic() error
- func (m *MsgFundFeeCollector) XXX_DiscardUnknown()
- func (m *MsgFundFeeCollector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFundFeeCollector) XXX_Merge(src proto.Message)
- func (m *MsgFundFeeCollector) XXX_Size() int
- func (m *MsgFundFeeCollector) XXX_Unmarshal(b []byte) error
- type MsgFundFeeCollectorResponse
- func (*MsgFundFeeCollectorResponse) Descriptor() ([]byte, []int)
- func (m *MsgFundFeeCollectorResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgFundFeeCollectorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFundFeeCollectorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFundFeeCollectorResponse) ProtoMessage()
- func (m *MsgFundFeeCollectorResponse) Reset()
- func (m *MsgFundFeeCollectorResponse) Size() (n int)
- func (m *MsgFundFeeCollectorResponse) String() string
- func (m *MsgFundFeeCollectorResponse) Unmarshal(dAtA []byte) error
- func (m *MsgFundFeeCollectorResponse) XXX_DiscardUnknown()
- func (m *MsgFundFeeCollectorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFundFeeCollectorResponse) XXX_Merge(src proto.Message)
- func (m *MsgFundFeeCollectorResponse) XXX_Size() int
- func (m *MsgFundFeeCollectorResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (msg MsgUpdateParams) GetSignBytes() []byte
- func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetReserveAccount() string
- func (m *Params) GetRewardDistributeAccount() string
- 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 (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (p Params) TotalRate() sdk.Dec
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) ValidateBasic() 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 QueryPoolRequest
- func (*QueryPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolRequest) ProtoMessage()
- func (m *QueryPoolRequest) Reset()
- func (m *QueryPoolRequest) Size() (n int)
- func (m *QueryPoolRequest) String() string
- func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPoolRequest) XXX_DiscardUnknown()
- func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryPoolRequest) XXX_Size() int
- func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryPoolResponse
- func (*QueryPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryPoolResponse) GetPool() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolResponse) ProtoMessage()
- func (m *QueryPoolResponse) Reset()
- func (m *QueryPoolResponse) Size() (n int)
- func (m *QueryPoolResponse) String() string
- func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPoolResponse) XXX_DiscardUnknown()
- func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryPoolResponse) XXX_Size() int
- func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StakingKeeper
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "reward" // StoreKey is the store key string for reward StoreKey = ModuleName // RouterKey is the message route for reward RouterKey = ModuleName )
const ( TypeMsgFundFeeCollector = "fund_fee_collector" TypeMsgUpdateParams = "update_params" )
const ( DefaultReserveAccount = "" DefaultRewardDistributeAccount = "" )
const ( QueryParams = "params" QueryPool = "pool" )
querier keys
const (
AttributeValueCategory = ModuleName
)
Variables ¶
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 ( DefaultRateFeePool = sdk.NewDecWithPrec(20, 2) // 20% DefaultRateCommunityPool = sdk.NewDecWithPrec(80, 2) // 80% DefaultRateReserve = sdk.NewDecWithPrec(0, 2) // 0% )
var ( ParamStoreKeyFeePoolRate = []byte("feepoolrate") ParamStoreKeyCommunityPoolRate = []byte("communitypoolrate") ParamStoreKeyReserveRate = []byte("reserverate") ParamStoreKeyReserveAccount = []byte("reserveaccount") ParamStoreKeyRewardDistributeAccount = []byte("rewarddistributeaccount") )
Parameter keys
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthReward = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowReward = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupReward = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/reward module codec. Note, the codec // should ONLY be used in certain instances of tests and for JSON encoding as Amino // is still used for that purpose. // // The actual codec used for serialization should be provided to x/reward and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
var (
ParamsKey = []byte{0x01} // key for reward module params
)
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable - Key declaration for parameters
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
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)
func ValidateGenesis ¶
func ValidateGenesis(gs *GenesisState) error
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, name string) types.ModuleAccountI }
type BankKeeper ¶
type BankKeeper interface { GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error }
type DistributionKeeper ¶
type GenesisState ¶
type GenesisState struct { // params defines all the paramaters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` }
GenesisState defines the reward module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(params Params) *GenesisState
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) 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 MintKeeper ¶
type MsgClient ¶
type MsgClient interface { // FundFeeCollector defines a method to allow an account to directly // fund the fee collector. FundFeeCollector(ctx context.Context, in *MsgFundFeeCollector, opts ...grpc.CallOption) (*MsgFundFeeCollectorResponse, error) // UpdateParams defined a governance operation for updating the x/reward // module parameters. The authority is hard-coded to the Cosmos SDK x/gov // module account UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgFundFeeCollector ¶
type MsgFundFeeCollector struct { Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` }
MsgFundFeeCollector allows an account to directly fund the fee collector.
func NewMsgFundFeeCollector ¶
func NewMsgFundFeeCollector(amount sdk.Coins, depositor sdk.AccAddress) *MsgFundFeeCollector
NewMsgFundFeeCollector returns a new MsgFundFeeCollector with a sender and a funding amount.
func (*MsgFundFeeCollector) Descriptor ¶
func (*MsgFundFeeCollector) Descriptor() ([]byte, []int)
func (MsgFundFeeCollector) GetSignBytes ¶
func (msg MsgFundFeeCollector) GetSignBytes() []byte
GetSignBytes returns the raw bytes for a MsgFundFeeCollector message that the expected signer needs to sign.
func (MsgFundFeeCollector) GetSigners ¶
func (msg MsgFundFeeCollector) GetSigners() []sdk.AccAddress
GetSigners returns the signer addresses that are expected to sign the result of GetSignBytes.
func (*MsgFundFeeCollector) Marshal ¶
func (m *MsgFundFeeCollector) Marshal() (dAtA []byte, err error)
func (*MsgFundFeeCollector) MarshalTo ¶
func (m *MsgFundFeeCollector) MarshalTo(dAtA []byte) (int, error)
func (*MsgFundFeeCollector) MarshalToSizedBuffer ¶
func (m *MsgFundFeeCollector) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFundFeeCollector) ProtoMessage ¶
func (*MsgFundFeeCollector) ProtoMessage()
func (*MsgFundFeeCollector) Reset ¶
func (m *MsgFundFeeCollector) Reset()
func (MsgFundFeeCollector) Route ¶
func (msg MsgFundFeeCollector) Route() string
Route returns the MsgFundFeeCollector message route.
func (*MsgFundFeeCollector) Size ¶
func (m *MsgFundFeeCollector) Size() (n int)
func (*MsgFundFeeCollector) String ¶
func (m *MsgFundFeeCollector) String() string
func (MsgFundFeeCollector) Type ¶
func (msg MsgFundFeeCollector) Type() string
Type returns the MsgFundFeeCollector message type.
func (*MsgFundFeeCollector) Unmarshal ¶
func (m *MsgFundFeeCollector) Unmarshal(dAtA []byte) error
func (MsgFundFeeCollector) ValidateBasic ¶
func (msg MsgFundFeeCollector) ValidateBasic() error
ValidateBasic performs basic MsgFundFeeCollector message validation.
func (*MsgFundFeeCollector) XXX_DiscardUnknown ¶
func (m *MsgFundFeeCollector) XXX_DiscardUnknown()
func (*MsgFundFeeCollector) XXX_Marshal ¶
func (m *MsgFundFeeCollector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFundFeeCollector) XXX_Merge ¶
func (m *MsgFundFeeCollector) XXX_Merge(src proto.Message)
func (*MsgFundFeeCollector) XXX_Size ¶
func (m *MsgFundFeeCollector) XXX_Size() int
func (*MsgFundFeeCollector) XXX_Unmarshal ¶
func (m *MsgFundFeeCollector) XXX_Unmarshal(b []byte) error
type MsgFundFeeCollectorResponse ¶
type MsgFundFeeCollectorResponse struct { }
MsgFundFeeCollectorResponse defines the Msg/FundFeeCollector response type.
func (*MsgFundFeeCollectorResponse) Descriptor ¶
func (*MsgFundFeeCollectorResponse) Descriptor() ([]byte, []int)
func (*MsgFundFeeCollectorResponse) Marshal ¶
func (m *MsgFundFeeCollectorResponse) Marshal() (dAtA []byte, err error)
func (*MsgFundFeeCollectorResponse) MarshalTo ¶
func (m *MsgFundFeeCollectorResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgFundFeeCollectorResponse) MarshalToSizedBuffer ¶
func (m *MsgFundFeeCollectorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFundFeeCollectorResponse) ProtoMessage ¶
func (*MsgFundFeeCollectorResponse) ProtoMessage()
func (*MsgFundFeeCollectorResponse) Reset ¶
func (m *MsgFundFeeCollectorResponse) Reset()
func (*MsgFundFeeCollectorResponse) Size ¶
func (m *MsgFundFeeCollectorResponse) Size() (n int)
func (*MsgFundFeeCollectorResponse) String ¶
func (m *MsgFundFeeCollectorResponse) String() string
func (*MsgFundFeeCollectorResponse) Unmarshal ¶
func (m *MsgFundFeeCollectorResponse) Unmarshal(dAtA []byte) error
func (*MsgFundFeeCollectorResponse) XXX_DiscardUnknown ¶
func (m *MsgFundFeeCollectorResponse) XXX_DiscardUnknown()
func (*MsgFundFeeCollectorResponse) XXX_Marshal ¶
func (m *MsgFundFeeCollectorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFundFeeCollectorResponse) XXX_Merge ¶
func (m *MsgFundFeeCollectorResponse) XXX_Merge(src proto.Message)
func (*MsgFundFeeCollectorResponse) XXX_Size ¶
func (m *MsgFundFeeCollectorResponse) XXX_Size() int
func (*MsgFundFeeCollectorResponse) XXX_Unmarshal ¶
func (m *MsgFundFeeCollectorResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // FundFeeCollector defines a method to allow an account to directly // fund the fee collector. FundFeeCollector(context.Context, *MsgFundFeeCollector) (*MsgFundFeeCollectorResponse, error) // UpdateParams defined a governance operation for updating the x/reward // module parameters. The authority is hard-coded to the Cosmos SDK x/gov // module account UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶ added in v1.5.0
type MsgUpdateParams struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/evm parameters to update. // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type for reward parameters. Since: cosmos-sdk 0.47
func (*MsgUpdateParams) Descriptor ¶ added in v1.5.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v1.5.0
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v1.5.0
func (m *MsgUpdateParams) GetParams() Params
func (MsgUpdateParams) GetSignBytes ¶ added in v1.5.0
func (msg MsgUpdateParams) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg interface.
func (*MsgUpdateParams) GetSigners ¶ added in v1.5.0
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶ added in v1.5.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v1.5.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v1.5.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v1.5.0
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶ added in v1.5.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v1.5.0
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶ added in v1.5.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v1.5.0
func (msg *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check of the provided data
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v1.5.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v1.5.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v1.5.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v1.5.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v1.5.0
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v1.5.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v1.5.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v1.5.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { FeePoolRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 157-byte string literal not displayed */ CommunityPoolRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 181-byte string literal not displayed */ ReserveRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 154-byte string literal not displayed */ ReserveAccount string `protobuf:"bytes,4,opt,name=reserve_account,json=reserveAccount,proto3" json:"reserve_account,omitempty"` RewardDistributeAccount string `` /* 132-byte string literal not displayed */ }
Params defines the set of params for the reward module.
func (*Params) Descriptor ¶
func (*Params) GetReserveAccount ¶
func (*Params) GetRewardDistributeAccount ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) ValidateBasic ¶
ValidateBasic performs basic validation on reward parameters.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Params queries params of the reward module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Pool queries the reward module pool coins. Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, 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 the 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 defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the 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 QueryPoolRequest ¶
type QueryPoolRequest struct { }
QueryPoolRequest is the request type for the Query/Pool RPC method.
func (*QueryPoolRequest) Descriptor ¶
func (*QueryPoolRequest) Descriptor() ([]byte, []int)
func (*QueryPoolRequest) Marshal ¶
func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error)
func (*QueryPoolRequest) MarshalToSizedBuffer ¶
func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolRequest) ProtoMessage ¶
func (*QueryPoolRequest) ProtoMessage()
func (*QueryPoolRequest) Reset ¶
func (m *QueryPoolRequest) Reset()
func (*QueryPoolRequest) Size ¶
func (m *QueryPoolRequest) Size() (n int)
func (*QueryPoolRequest) String ¶
func (m *QueryPoolRequest) String() string
func (*QueryPoolRequest) Unmarshal ¶
func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error
func (*QueryPoolRequest) XXX_DiscardUnknown ¶
func (m *QueryPoolRequest) XXX_DiscardUnknown()
func (*QueryPoolRequest) XXX_Marshal ¶
func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolRequest) XXX_Merge ¶
func (m *QueryPoolRequest) XXX_Merge(src proto.Message)
func (*QueryPoolRequest) XXX_Size ¶
func (m *QueryPoolRequest) XXX_Size() int
func (*QueryPoolRequest) XXX_Unmarshal ¶
func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error
type QueryPoolResponse ¶
type QueryPoolResponse struct { // pool defines reward pool's coins. Pool github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=pool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"pool"` }
QueryPoolResponse is the response type for the Query/Pool RPC method.
func (*QueryPoolResponse) Descriptor ¶
func (*QueryPoolResponse) Descriptor() ([]byte, []int)
func (*QueryPoolResponse) GetPool ¶
func (m *QueryPoolResponse) GetPool() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryPoolResponse) Marshal ¶
func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error)
func (*QueryPoolResponse) MarshalTo ¶
func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolResponse) MarshalToSizedBuffer ¶
func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolResponse) ProtoMessage ¶
func (*QueryPoolResponse) ProtoMessage()
func (*QueryPoolResponse) Reset ¶
func (m *QueryPoolResponse) Reset()
func (*QueryPoolResponse) Size ¶
func (m *QueryPoolResponse) Size() (n int)
func (*QueryPoolResponse) String ¶
func (m *QueryPoolResponse) String() string
func (*QueryPoolResponse) Unmarshal ¶
func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error
func (*QueryPoolResponse) XXX_DiscardUnknown ¶
func (m *QueryPoolResponse) XXX_DiscardUnknown()
func (*QueryPoolResponse) XXX_Marshal ¶
func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolResponse) XXX_Merge ¶
func (m *QueryPoolResponse) XXX_Merge(src proto.Message)
func (*QueryPoolResponse) XXX_Size ¶
func (m *QueryPoolResponse) XXX_Size() int
func (*QueryPoolResponse) XXX_Unmarshal ¶
func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries params of the reward module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Pool queries the reward module pool coins. Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error) }
QueryServer is the server API for Query service.
type StakingKeeper ¶
type StakingKeeper interface { // Delegation allows for getting a particular delegation for a given validator // and delegator outside the scope of the staking module. Delegate( ctx sdk.Context, delAddr sdk.AccAddress, bondAmt sdk.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool, ) (newShares sdk.Dec, err error) GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool) IterateDelegations( ctx sdk.Context, delegator sdk.AccAddress, fn func(index int64, delegation stakingtypes.DelegationI) (stop bool), ) }
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) FundFeeCollector ¶
func (*UnimplementedMsgServer) FundFeeCollector(ctx context.Context, req *MsgFundFeeCollector) (*MsgFundFeeCollectorResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v1.5.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, 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)
func (*UnimplementedQueryServer) Pool ¶
func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error)