Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 RewardPoolKey(launchID uint64) []byte
- type AccountKeeper
- type BankKeeper
- type EventRewardPoolCreated
- func (*EventRewardPoolCreated) Descriptor() ([]byte, []int)
- func (m *EventRewardPoolCreated) GetLaunchID() uint64
- func (m *EventRewardPoolCreated) GetProvider() string
- func (m *EventRewardPoolCreated) Marshal() (dAtA []byte, err error)
- func (m *EventRewardPoolCreated) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRewardPoolCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRewardPoolCreated) ProtoMessage()
- func (m *EventRewardPoolCreated) Reset()
- func (m *EventRewardPoolCreated) Size() (n int)
- func (m *EventRewardPoolCreated) String() string
- func (m *EventRewardPoolCreated) Unmarshal(dAtA []byte) error
- func (m *EventRewardPoolCreated) XXX_DiscardUnknown()
- func (m *EventRewardPoolCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRewardPoolCreated) XXX_Merge(src proto.Message)
- func (m *EventRewardPoolCreated) XXX_Size() int
- func (m *EventRewardPoolCreated) XXX_Unmarshal(b []byte) error
- type EventRewardPoolRemoved
- func (*EventRewardPoolRemoved) Descriptor() ([]byte, []int)
- func (m *EventRewardPoolRemoved) GetLaunchID() uint64
- func (m *EventRewardPoolRemoved) Marshal() (dAtA []byte, err error)
- func (m *EventRewardPoolRemoved) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRewardPoolRemoved) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRewardPoolRemoved) ProtoMessage()
- func (m *EventRewardPoolRemoved) Reset()
- func (m *EventRewardPoolRemoved) Size() (n int)
- func (m *EventRewardPoolRemoved) String() string
- func (m *EventRewardPoolRemoved) Unmarshal(dAtA []byte) error
- func (m *EventRewardPoolRemoved) XXX_DiscardUnknown()
- func (m *EventRewardPoolRemoved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRewardPoolRemoved) XXX_Merge(src proto.Message)
- func (m *EventRewardPoolRemoved) XXX_Size() int
- func (m *EventRewardPoolRemoved) XXX_Unmarshal(b []byte) error
- type EventRewardsDistributed
- func (*EventRewardsDistributed) Descriptor() ([]byte, []int)
- func (m *EventRewardsDistributed) GetLaunchID() uint64
- func (m *EventRewardsDistributed) GetReceiver() string
- func (m *EventRewardsDistributed) GetRewards() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *EventRewardsDistributed) Marshal() (dAtA []byte, err error)
- func (m *EventRewardsDistributed) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRewardsDistributed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRewardsDistributed) ProtoMessage()
- func (m *EventRewardsDistributed) Reset()
- func (m *EventRewardsDistributed) Size() (n int)
- func (m *EventRewardsDistributed) String() string
- func (m *EventRewardsDistributed) Unmarshal(dAtA []byte) error
- func (m *EventRewardsDistributed) XXX_DiscardUnknown()
- func (m *EventRewardsDistributed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRewardsDistributed) XXX_Merge(src proto.Message)
- func (m *EventRewardsDistributed) XXX_Size() int
- func (m *EventRewardsDistributed) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRewardPools() []RewardPool
- 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 LaunchKeeper
- type MsgClient
- type MsgServer
- type MsgSetRewards
- func (*MsgSetRewards) Descriptor() ([]byte, []int)
- func (m *MsgSetRewards) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgSetRewards) GetLastRewardHeight() int64
- func (m *MsgSetRewards) GetLaunchID() uint64
- func (m *MsgSetRewards) GetProvider() string
- func (msg *MsgSetRewards) GetSignBytes() []byte
- func (msg *MsgSetRewards) GetSigners() []sdk.AccAddress
- func (m *MsgSetRewards) Marshal() (dAtA []byte, err error)
- func (m *MsgSetRewards) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetRewards) ProtoMessage()
- func (m *MsgSetRewards) Reset()
- func (msg *MsgSetRewards) Route() string
- func (m *MsgSetRewards) Size() (n int)
- func (m *MsgSetRewards) String() string
- func (msg *MsgSetRewards) Type() string
- func (m *MsgSetRewards) Unmarshal(dAtA []byte) error
- func (msg *MsgSetRewards) ValidateBasic() error
- func (m *MsgSetRewards) XXX_DiscardUnknown()
- func (m *MsgSetRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetRewards) XXX_Merge(src proto.Message)
- func (m *MsgSetRewards) XXX_Size() int
- func (m *MsgSetRewards) XXX_Unmarshal(b []byte) error
- type MsgSetRewardsResponse
- func (*MsgSetRewardsResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetRewardsResponse) GetNewCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgSetRewardsResponse) GetNewLastRewardHeight() int64
- func (m *MsgSetRewardsResponse) GetPreviousCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgSetRewardsResponse) GetPreviousLastRewardHeight() int64
- func (m *MsgSetRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetRewardsResponse) ProtoMessage()
- func (m *MsgSetRewardsResponse) Reset()
- func (m *MsgSetRewardsResponse) Size() (n int)
- func (m *MsgSetRewardsResponse) String() string
- func (m *MsgSetRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetRewardsResponse) XXX_DiscardUnknown()
- func (m *MsgSetRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetRewardsResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetRewardsResponse) XXX_Size() int
- func (m *MsgSetRewardsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- 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 (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 ProfileKeeper
- type QueryAllRewardPoolRequest
- func (*QueryAllRewardPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllRewardPoolRequest) GetPagination() *query.PageRequest
- func (m *QueryAllRewardPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRewardPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRewardPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRewardPoolRequest) ProtoMessage()
- func (m *QueryAllRewardPoolRequest) Reset()
- func (m *QueryAllRewardPoolRequest) Size() (n int)
- func (m *QueryAllRewardPoolRequest) String() string
- func (m *QueryAllRewardPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllRewardPoolRequest) XXX_DiscardUnknown()
- func (m *QueryAllRewardPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRewardPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllRewardPoolRequest) XXX_Size() int
- func (m *QueryAllRewardPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryAllRewardPoolResponse
- func (*QueryAllRewardPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllRewardPoolResponse) GetPagination() *query.PageResponse
- func (m *QueryAllRewardPoolResponse) GetRewardPool() []RewardPool
- func (m *QueryAllRewardPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRewardPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRewardPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRewardPoolResponse) ProtoMessage()
- func (m *QueryAllRewardPoolResponse) Reset()
- func (m *QueryAllRewardPoolResponse) Size() (n int)
- func (m *QueryAllRewardPoolResponse) String() string
- func (m *QueryAllRewardPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllRewardPoolResponse) XXX_DiscardUnknown()
- func (m *QueryAllRewardPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRewardPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllRewardPoolResponse) XXX_Size() int
- func (m *QueryAllRewardPoolResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetRewardPoolRequest
- func (*QueryGetRewardPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetRewardPoolRequest) GetLaunchID() uint64
- func (m *QueryGetRewardPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetRewardPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetRewardPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetRewardPoolRequest) ProtoMessage()
- func (m *QueryGetRewardPoolRequest) Reset()
- func (m *QueryGetRewardPoolRequest) Size() (n int)
- func (m *QueryGetRewardPoolRequest) String() string
- func (m *QueryGetRewardPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetRewardPoolRequest) XXX_DiscardUnknown()
- func (m *QueryGetRewardPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetRewardPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetRewardPoolRequest) XXX_Size() int
- func (m *QueryGetRewardPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryGetRewardPoolResponse
- func (*QueryGetRewardPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetRewardPoolResponse) GetRewardPool() RewardPool
- func (m *QueryGetRewardPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetRewardPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetRewardPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetRewardPoolResponse) ProtoMessage()
- func (m *QueryGetRewardPoolResponse) Reset()
- func (m *QueryGetRewardPoolResponse) Size() (n int)
- func (m *QueryGetRewardPoolResponse) String() string
- func (m *QueryGetRewardPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetRewardPoolResponse) XXX_DiscardUnknown()
- func (m *QueryGetRewardPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetRewardPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetRewardPoolResponse) XXX_Size() int
- func (m *QueryGetRewardPoolResponse) XXX_Unmarshal(b []byte) error
- 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 RewardPool
- func (*RewardPool) Descriptor() ([]byte, []int)
- func (m *RewardPool) GetClosed() bool
- func (m *RewardPool) GetCurrentRewardHeight() int64
- func (m *RewardPool) GetInitialCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *RewardPool) GetLastRewardHeight() int64
- func (m *RewardPool) GetLaunchID() uint64
- func (m *RewardPool) GetProvider() string
- func (m *RewardPool) GetRemainingCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *RewardPool) Marshal() (dAtA []byte, err error)
- func (m *RewardPool) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardPool) ProtoMessage()
- func (m *RewardPool) Reset()
- func (m *RewardPool) Size() (n int)
- func (m *RewardPool) String() string
- func (m *RewardPool) Unmarshal(dAtA []byte) error
- func (m RewardPool) Validate() error
- func (m *RewardPool) XXX_DiscardUnknown()
- func (m *RewardPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardPool) XXX_Merge(src proto.Message)
- func (m *RewardPool) XXX_Size() int
- func (m *RewardPool) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) RewardPool(ctx context.Context, req *QueryGetRewardPoolRequest) (*QueryGetRewardPoolResponse, error)
- func (*UnimplementedQueryServer) RewardPoolAll(ctx context.Context, req *QueryAllRewardPoolRequest) (*QueryAllRewardPoolResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "reward" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_reward" // RewardPoolKeyPrefix is the prefix to retrieve all RewardPool RewardPoolKeyPrefix = "RewardPool/value/" )
const TypeMsgSetRewards = "set_rewards"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidRewardPoolCoins = sdkerrors.Register(ModuleName, 2, "invalid coins for reward pool") ErrInvalidCoordinatorID = sdkerrors.Register(ModuleName, 3, "invalid coordinator id for reward pool") ErrRewardPoolNotFound = sdkerrors.Register(ModuleName, 4, "reward pool not found") ErrRewardPoolClosed = sdkerrors.Register(ModuleName, 5, "reward pool is closed") ErrInvalidSignatureCounts = sdkerrors.Register(ModuleName, 6, "invalid signature counts") ErrInvalidLastBlockHeight = sdkerrors.Register(ModuleName, 7, "invalid last block height") ErrInvalidRewardHeight = sdkerrors.Register(ModuleName, 8, "invalid reward height") ErrInvalidProviderAddress = sdkerrors.Register(ModuleName, 9, "invalid provider address") ErrInsufficientFunds = sdkerrors.Register(ModuleName, 10, "insufficient funds") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func 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 RewardPoolKey ¶
RewardPoolKey returns the store key to retrieve a RewardPool from the index fields
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetModuleAddress(moduleName string) sdk.AccAddress GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI }
AccountKeeper defines the expected account keeper used for simulations
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type EventRewardPoolCreated ¶ added in v0.3.0
type EventRewardPoolCreated struct { LaunchID uint64 `protobuf:"varint,1,opt,name=launchID,proto3" json:"launchID,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` }
func (*EventRewardPoolCreated) Descriptor ¶ added in v0.3.0
func (*EventRewardPoolCreated) Descriptor() ([]byte, []int)
func (*EventRewardPoolCreated) GetLaunchID ¶ added in v0.3.0
func (m *EventRewardPoolCreated) GetLaunchID() uint64
func (*EventRewardPoolCreated) GetProvider ¶ added in v0.3.0
func (m *EventRewardPoolCreated) GetProvider() string
func (*EventRewardPoolCreated) Marshal ¶ added in v0.3.0
func (m *EventRewardPoolCreated) Marshal() (dAtA []byte, err error)
func (*EventRewardPoolCreated) MarshalTo ¶ added in v0.3.0
func (m *EventRewardPoolCreated) MarshalTo(dAtA []byte) (int, error)
func (*EventRewardPoolCreated) MarshalToSizedBuffer ¶ added in v0.3.0
func (m *EventRewardPoolCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRewardPoolCreated) ProtoMessage ¶ added in v0.3.0
func (*EventRewardPoolCreated) ProtoMessage()
func (*EventRewardPoolCreated) Reset ¶ added in v0.3.0
func (m *EventRewardPoolCreated) Reset()
func (*EventRewardPoolCreated) Size ¶ added in v0.3.0
func (m *EventRewardPoolCreated) Size() (n int)
func (*EventRewardPoolCreated) String ¶ added in v0.3.0
func (m *EventRewardPoolCreated) String() string
func (*EventRewardPoolCreated) Unmarshal ¶ added in v0.3.0
func (m *EventRewardPoolCreated) Unmarshal(dAtA []byte) error
func (*EventRewardPoolCreated) XXX_DiscardUnknown ¶ added in v0.3.0
func (m *EventRewardPoolCreated) XXX_DiscardUnknown()
func (*EventRewardPoolCreated) XXX_Marshal ¶ added in v0.3.0
func (m *EventRewardPoolCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRewardPoolCreated) XXX_Merge ¶ added in v0.3.0
func (m *EventRewardPoolCreated) XXX_Merge(src proto.Message)
func (*EventRewardPoolCreated) XXX_Size ¶ added in v0.3.0
func (m *EventRewardPoolCreated) XXX_Size() int
func (*EventRewardPoolCreated) XXX_Unmarshal ¶ added in v0.3.0
func (m *EventRewardPoolCreated) XXX_Unmarshal(b []byte) error
type EventRewardPoolRemoved ¶ added in v0.3.0
type EventRewardPoolRemoved struct {
LaunchID uint64 `protobuf:"varint,1,opt,name=launchID,proto3" json:"launchID,omitempty"`
}
func (*EventRewardPoolRemoved) Descriptor ¶ added in v0.3.0
func (*EventRewardPoolRemoved) Descriptor() ([]byte, []int)
func (*EventRewardPoolRemoved) GetLaunchID ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) GetLaunchID() uint64
func (*EventRewardPoolRemoved) Marshal ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) Marshal() (dAtA []byte, err error)
func (*EventRewardPoolRemoved) MarshalTo ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) MarshalTo(dAtA []byte) (int, error)
func (*EventRewardPoolRemoved) MarshalToSizedBuffer ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRewardPoolRemoved) ProtoMessage ¶ added in v0.3.0
func (*EventRewardPoolRemoved) ProtoMessage()
func (*EventRewardPoolRemoved) Reset ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) Reset()
func (*EventRewardPoolRemoved) Size ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) Size() (n int)
func (*EventRewardPoolRemoved) String ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) String() string
func (*EventRewardPoolRemoved) Unmarshal ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) Unmarshal(dAtA []byte) error
func (*EventRewardPoolRemoved) XXX_DiscardUnknown ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) XXX_DiscardUnknown()
func (*EventRewardPoolRemoved) XXX_Marshal ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRewardPoolRemoved) XXX_Merge ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) XXX_Merge(src proto.Message)
func (*EventRewardPoolRemoved) XXX_Size ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) XXX_Size() int
func (*EventRewardPoolRemoved) XXX_Unmarshal ¶ added in v0.3.0
func (m *EventRewardPoolRemoved) XXX_Unmarshal(b []byte) error
type EventRewardsDistributed ¶ added in v0.3.0
type EventRewardsDistributed struct { LaunchID uint64 `protobuf:"varint,1,opt,name=launchID,proto3" json:"launchID,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Rewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 160-byte string literal not displayed */ }
func (*EventRewardsDistributed) Descriptor ¶ added in v0.3.0
func (*EventRewardsDistributed) Descriptor() ([]byte, []int)
func (*EventRewardsDistributed) GetLaunchID ¶ added in v0.3.0
func (m *EventRewardsDistributed) GetLaunchID() uint64
func (*EventRewardsDistributed) GetReceiver ¶ added in v0.3.0
func (m *EventRewardsDistributed) GetReceiver() string
func (*EventRewardsDistributed) GetRewards ¶ added in v0.3.0
func (m *EventRewardsDistributed) GetRewards() github_com_cosmos_cosmos_sdk_types.Coins
func (*EventRewardsDistributed) Marshal ¶ added in v0.3.0
func (m *EventRewardsDistributed) Marshal() (dAtA []byte, err error)
func (*EventRewardsDistributed) MarshalTo ¶ added in v0.3.0
func (m *EventRewardsDistributed) MarshalTo(dAtA []byte) (int, error)
func (*EventRewardsDistributed) MarshalToSizedBuffer ¶ added in v0.3.0
func (m *EventRewardsDistributed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRewardsDistributed) ProtoMessage ¶ added in v0.3.0
func (*EventRewardsDistributed) ProtoMessage()
func (*EventRewardsDistributed) Reset ¶ added in v0.3.0
func (m *EventRewardsDistributed) Reset()
func (*EventRewardsDistributed) Size ¶ added in v0.3.0
func (m *EventRewardsDistributed) Size() (n int)
func (*EventRewardsDistributed) String ¶ added in v0.3.0
func (m *EventRewardsDistributed) String() string
func (*EventRewardsDistributed) Unmarshal ¶ added in v0.3.0
func (m *EventRewardsDistributed) Unmarshal(dAtA []byte) error
func (*EventRewardsDistributed) XXX_DiscardUnknown ¶ added in v0.3.0
func (m *EventRewardsDistributed) XXX_DiscardUnknown()
func (*EventRewardsDistributed) XXX_Marshal ¶ added in v0.3.0
func (m *EventRewardsDistributed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRewardsDistributed) XXX_Merge ¶ added in v0.3.0
func (m *EventRewardsDistributed) XXX_Merge(src proto.Message)
func (*EventRewardsDistributed) XXX_Size ¶ added in v0.3.0
func (m *EventRewardsDistributed) XXX_Size() int
func (*EventRewardsDistributed) XXX_Unmarshal ¶ added in v0.3.0
func (m *EventRewardsDistributed) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { RewardPools []RewardPool `protobuf:"bytes,1,rep,name=rewardPools,proto3" json:"rewardPools"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
GenesisState defines the reward module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRewardPools ¶ added in v0.3.0
func (m *GenesisState) GetRewardPools() []RewardPool
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 LaunchKeeper ¶
type LaunchKeeper interface { GetChain(ctx sdk.Context, launchID uint64) (launchtypes.Chain, bool) GetAllChain(ctx sdk.Context) []launchtypes.Chain }
type MsgClient ¶
type MsgClient interface {
SetRewards(ctx context.Context, in *MsgSetRewards, opts ...grpc.CallOption) (*MsgSetRewardsResponse, 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 {
SetRewards(context.Context, *MsgSetRewards) (*MsgSetRewardsResponse, error)
}
MsgServer is the server API for Msg service.
type MsgSetRewards ¶
type MsgSetRewards struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` LaunchID uint64 `protobuf:"varint,2,opt,name=launchID,proto3" json:"launchID,omitempty"` Coins github_com_cosmos_cosmos_sdk_types.Coins `` /* 156-byte string literal not displayed */ LastRewardHeight int64 `protobuf:"varint,4,opt,name=lastRewardHeight,proto3" json:"lastRewardHeight,omitempty"` }
func NewMsgSetRewards ¶
func (*MsgSetRewards) Descriptor ¶
func (*MsgSetRewards) Descriptor() ([]byte, []int)
func (*MsgSetRewards) GetCoins ¶
func (m *MsgSetRewards) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgSetRewards) GetLastRewardHeight ¶
func (m *MsgSetRewards) GetLastRewardHeight() int64
func (*MsgSetRewards) GetLaunchID ¶
func (m *MsgSetRewards) GetLaunchID() uint64
func (*MsgSetRewards) GetProvider ¶
func (m *MsgSetRewards) GetProvider() string
func (*MsgSetRewards) GetSignBytes ¶
func (msg *MsgSetRewards) GetSignBytes() []byte
func (*MsgSetRewards) GetSigners ¶
func (msg *MsgSetRewards) GetSigners() []sdk.AccAddress
func (*MsgSetRewards) Marshal ¶
func (m *MsgSetRewards) Marshal() (dAtA []byte, err error)
func (*MsgSetRewards) MarshalToSizedBuffer ¶
func (m *MsgSetRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetRewards) ProtoMessage ¶
func (*MsgSetRewards) ProtoMessage()
func (*MsgSetRewards) Reset ¶
func (m *MsgSetRewards) Reset()
func (*MsgSetRewards) Route ¶
func (msg *MsgSetRewards) Route() string
func (*MsgSetRewards) Size ¶
func (m *MsgSetRewards) Size() (n int)
func (*MsgSetRewards) String ¶
func (m *MsgSetRewards) String() string
func (*MsgSetRewards) Type ¶
func (msg *MsgSetRewards) Type() string
func (*MsgSetRewards) Unmarshal ¶
func (m *MsgSetRewards) Unmarshal(dAtA []byte) error
func (*MsgSetRewards) ValidateBasic ¶
func (msg *MsgSetRewards) ValidateBasic() error
func (*MsgSetRewards) XXX_DiscardUnknown ¶
func (m *MsgSetRewards) XXX_DiscardUnknown()
func (*MsgSetRewards) XXX_Marshal ¶
func (m *MsgSetRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetRewards) XXX_Merge ¶
func (m *MsgSetRewards) XXX_Merge(src proto.Message)
func (*MsgSetRewards) XXX_Size ¶
func (m *MsgSetRewards) XXX_Size() int
func (*MsgSetRewards) XXX_Unmarshal ¶
func (m *MsgSetRewards) XXX_Unmarshal(b []byte) error
type MsgSetRewardsResponse ¶
type MsgSetRewardsResponse struct { PreviousCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 172-byte string literal not displayed */ PreviousLastRewardHeight int64 `protobuf:"varint,2,opt,name=previousLastRewardHeight,proto3" json:"previousLastRewardHeight,omitempty"` NewCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 162-byte string literal not displayed */ NewLastRewardHeight int64 `protobuf:"varint,4,opt,name=newLastRewardHeight,proto3" json:"newLastRewardHeight,omitempty"` }
func (*MsgSetRewardsResponse) Descriptor ¶
func (*MsgSetRewardsResponse) Descriptor() ([]byte, []int)
func (*MsgSetRewardsResponse) GetNewCoins ¶
func (m *MsgSetRewardsResponse) GetNewCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgSetRewardsResponse) GetNewLastRewardHeight ¶
func (m *MsgSetRewardsResponse) GetNewLastRewardHeight() int64
func (*MsgSetRewardsResponse) GetPreviousCoins ¶
func (m *MsgSetRewardsResponse) GetPreviousCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgSetRewardsResponse) GetPreviousLastRewardHeight ¶
func (m *MsgSetRewardsResponse) GetPreviousLastRewardHeight() int64
func (*MsgSetRewardsResponse) Marshal ¶
func (m *MsgSetRewardsResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetRewardsResponse) MarshalTo ¶
func (m *MsgSetRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetRewardsResponse) MarshalToSizedBuffer ¶
func (m *MsgSetRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetRewardsResponse) ProtoMessage ¶
func (*MsgSetRewardsResponse) ProtoMessage()
func (*MsgSetRewardsResponse) Reset ¶
func (m *MsgSetRewardsResponse) Reset()
func (*MsgSetRewardsResponse) Size ¶
func (m *MsgSetRewardsResponse) Size() (n int)
func (*MsgSetRewardsResponse) String ¶
func (m *MsgSetRewardsResponse) String() string
func (*MsgSetRewardsResponse) Unmarshal ¶
func (m *MsgSetRewardsResponse) Unmarshal(dAtA []byte) error
func (*MsgSetRewardsResponse) XXX_DiscardUnknown ¶
func (m *MsgSetRewardsResponse) XXX_DiscardUnknown()
func (*MsgSetRewardsResponse) XXX_Marshal ¶
func (m *MsgSetRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetRewardsResponse) XXX_Merge ¶
func (m *MsgSetRewardsResponse) XXX_Merge(src proto.Message)
func (*MsgSetRewardsResponse) XXX_Size ¶
func (m *MsgSetRewardsResponse) XXX_Size() int
func (*MsgSetRewardsResponse) XXX_Unmarshal ¶
func (m *MsgSetRewardsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type ProfileKeeper ¶
type ProfileKeeper interface { GetValidator(ctx sdk.Context, address string) (profiletypes.Validator, bool) GetValidatorByOperatorAddress(ctx sdk.Context, operatorAddress string) (profiletypes.ValidatorByOperatorAddress, bool) GetCoordinator(ctx sdk.Context, id uint64) (profiletypes.Coordinator, bool) CoordinatorIDFromAddress(ctx sdk.Context, address string) (uint64, error) }
type QueryAllRewardPoolRequest ¶
type QueryAllRewardPoolRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllRewardPoolRequest) Descriptor ¶
func (*QueryAllRewardPoolRequest) Descriptor() ([]byte, []int)
func (*QueryAllRewardPoolRequest) GetPagination ¶
func (m *QueryAllRewardPoolRequest) GetPagination() *query.PageRequest
func (*QueryAllRewardPoolRequest) Marshal ¶
func (m *QueryAllRewardPoolRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllRewardPoolRequest) MarshalTo ¶
func (m *QueryAllRewardPoolRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllRewardPoolRequest) MarshalToSizedBuffer ¶
func (m *QueryAllRewardPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllRewardPoolRequest) ProtoMessage ¶
func (*QueryAllRewardPoolRequest) ProtoMessage()
func (*QueryAllRewardPoolRequest) Reset ¶
func (m *QueryAllRewardPoolRequest) Reset()
func (*QueryAllRewardPoolRequest) Size ¶
func (m *QueryAllRewardPoolRequest) Size() (n int)
func (*QueryAllRewardPoolRequest) String ¶
func (m *QueryAllRewardPoolRequest) String() string
func (*QueryAllRewardPoolRequest) Unmarshal ¶
func (m *QueryAllRewardPoolRequest) Unmarshal(dAtA []byte) error
func (*QueryAllRewardPoolRequest) XXX_DiscardUnknown ¶
func (m *QueryAllRewardPoolRequest) XXX_DiscardUnknown()
func (*QueryAllRewardPoolRequest) XXX_Marshal ¶
func (m *QueryAllRewardPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllRewardPoolRequest) XXX_Merge ¶
func (m *QueryAllRewardPoolRequest) XXX_Merge(src proto.Message)
func (*QueryAllRewardPoolRequest) XXX_Size ¶
func (m *QueryAllRewardPoolRequest) XXX_Size() int
func (*QueryAllRewardPoolRequest) XXX_Unmarshal ¶
func (m *QueryAllRewardPoolRequest) XXX_Unmarshal(b []byte) error
type QueryAllRewardPoolResponse ¶
type QueryAllRewardPoolResponse struct { RewardPool []RewardPool `protobuf:"bytes,1,rep,name=rewardPool,proto3" json:"rewardPool"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllRewardPoolResponse) Descriptor ¶
func (*QueryAllRewardPoolResponse) Descriptor() ([]byte, []int)
func (*QueryAllRewardPoolResponse) GetPagination ¶
func (m *QueryAllRewardPoolResponse) GetPagination() *query.PageResponse
func (*QueryAllRewardPoolResponse) GetRewardPool ¶
func (m *QueryAllRewardPoolResponse) GetRewardPool() []RewardPool
func (*QueryAllRewardPoolResponse) Marshal ¶
func (m *QueryAllRewardPoolResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllRewardPoolResponse) MarshalTo ¶
func (m *QueryAllRewardPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllRewardPoolResponse) MarshalToSizedBuffer ¶
func (m *QueryAllRewardPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllRewardPoolResponse) ProtoMessage ¶
func (*QueryAllRewardPoolResponse) ProtoMessage()
func (*QueryAllRewardPoolResponse) Reset ¶
func (m *QueryAllRewardPoolResponse) Reset()
func (*QueryAllRewardPoolResponse) Size ¶
func (m *QueryAllRewardPoolResponse) Size() (n int)
func (*QueryAllRewardPoolResponse) String ¶
func (m *QueryAllRewardPoolResponse) String() string
func (*QueryAllRewardPoolResponse) Unmarshal ¶
func (m *QueryAllRewardPoolResponse) Unmarshal(dAtA []byte) error
func (*QueryAllRewardPoolResponse) XXX_DiscardUnknown ¶
func (m *QueryAllRewardPoolResponse) XXX_DiscardUnknown()
func (*QueryAllRewardPoolResponse) XXX_Marshal ¶
func (m *QueryAllRewardPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllRewardPoolResponse) XXX_Merge ¶
func (m *QueryAllRewardPoolResponse) XXX_Merge(src proto.Message)
func (*QueryAllRewardPoolResponse) XXX_Size ¶
func (m *QueryAllRewardPoolResponse) XXX_Size() int
func (*QueryAllRewardPoolResponse) XXX_Unmarshal ¶
func (m *QueryAllRewardPoolResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Queries a RewardPool by index. RewardPool(ctx context.Context, in *QueryGetRewardPoolRequest, opts ...grpc.CallOption) (*QueryGetRewardPoolResponse, error) // Queries a list of RewardPool items. RewardPoolAll(ctx context.Context, in *QueryAllRewardPoolRequest, opts ...grpc.CallOption) (*QueryAllRewardPoolResponse, error) // Params 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 QueryGetRewardPoolRequest ¶
type QueryGetRewardPoolRequest struct {
LaunchID uint64 `protobuf:"varint,1,opt,name=launchID,proto3" json:"launchID,omitempty"`
}
func (*QueryGetRewardPoolRequest) Descriptor ¶
func (*QueryGetRewardPoolRequest) Descriptor() ([]byte, []int)
func (*QueryGetRewardPoolRequest) GetLaunchID ¶
func (m *QueryGetRewardPoolRequest) GetLaunchID() uint64
func (*QueryGetRewardPoolRequest) Marshal ¶
func (m *QueryGetRewardPoolRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetRewardPoolRequest) MarshalTo ¶
func (m *QueryGetRewardPoolRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetRewardPoolRequest) MarshalToSizedBuffer ¶
func (m *QueryGetRewardPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetRewardPoolRequest) ProtoMessage ¶
func (*QueryGetRewardPoolRequest) ProtoMessage()
func (*QueryGetRewardPoolRequest) Reset ¶
func (m *QueryGetRewardPoolRequest) Reset()
func (*QueryGetRewardPoolRequest) Size ¶
func (m *QueryGetRewardPoolRequest) Size() (n int)
func (*QueryGetRewardPoolRequest) String ¶
func (m *QueryGetRewardPoolRequest) String() string
func (*QueryGetRewardPoolRequest) Unmarshal ¶
func (m *QueryGetRewardPoolRequest) Unmarshal(dAtA []byte) error
func (*QueryGetRewardPoolRequest) XXX_DiscardUnknown ¶
func (m *QueryGetRewardPoolRequest) XXX_DiscardUnknown()
func (*QueryGetRewardPoolRequest) XXX_Marshal ¶
func (m *QueryGetRewardPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetRewardPoolRequest) XXX_Merge ¶
func (m *QueryGetRewardPoolRequest) XXX_Merge(src proto.Message)
func (*QueryGetRewardPoolRequest) XXX_Size ¶
func (m *QueryGetRewardPoolRequest) XXX_Size() int
func (*QueryGetRewardPoolRequest) XXX_Unmarshal ¶
func (m *QueryGetRewardPoolRequest) XXX_Unmarshal(b []byte) error
type QueryGetRewardPoolResponse ¶
type QueryGetRewardPoolResponse struct {
RewardPool RewardPool `protobuf:"bytes,1,opt,name=rewardPool,proto3" json:"rewardPool"`
}
func (*QueryGetRewardPoolResponse) Descriptor ¶
func (*QueryGetRewardPoolResponse) Descriptor() ([]byte, []int)
func (*QueryGetRewardPoolResponse) GetRewardPool ¶
func (m *QueryGetRewardPoolResponse) GetRewardPool() RewardPool
func (*QueryGetRewardPoolResponse) Marshal ¶
func (m *QueryGetRewardPoolResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetRewardPoolResponse) MarshalTo ¶
func (m *QueryGetRewardPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetRewardPoolResponse) MarshalToSizedBuffer ¶
func (m *QueryGetRewardPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetRewardPoolResponse) ProtoMessage ¶
func (*QueryGetRewardPoolResponse) ProtoMessage()
func (*QueryGetRewardPoolResponse) Reset ¶
func (m *QueryGetRewardPoolResponse) Reset()
func (*QueryGetRewardPoolResponse) Size ¶
func (m *QueryGetRewardPoolResponse) Size() (n int)
func (*QueryGetRewardPoolResponse) String ¶
func (m *QueryGetRewardPoolResponse) String() string
func (*QueryGetRewardPoolResponse) Unmarshal ¶
func (m *QueryGetRewardPoolResponse) Unmarshal(dAtA []byte) error
func (*QueryGetRewardPoolResponse) XXX_DiscardUnknown ¶
func (m *QueryGetRewardPoolResponse) XXX_DiscardUnknown()
func (*QueryGetRewardPoolResponse) XXX_Marshal ¶
func (m *QueryGetRewardPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetRewardPoolResponse) XXX_Merge ¶
func (m *QueryGetRewardPoolResponse) XXX_Merge(src proto.Message)
func (*QueryGetRewardPoolResponse) XXX_Size ¶
func (m *QueryGetRewardPoolResponse) XXX_Size() int
func (*QueryGetRewardPoolResponse) XXX_Unmarshal ¶
func (m *QueryGetRewardPoolResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params 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 { // Queries a RewardPool by index. RewardPool(context.Context, *QueryGetRewardPoolRequest) (*QueryGetRewardPoolResponse, error) // Queries a list of RewardPool items. RewardPoolAll(context.Context, *QueryAllRewardPoolRequest) (*QueryAllRewardPoolResponse, error) // Params queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type RewardPool ¶
type RewardPool struct { LaunchID uint64 `protobuf:"varint,1,opt,name=launchID,proto3" json:"launchID,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` InitialCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 170-byte string literal not displayed */ RemainingCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 174-byte string literal not displayed */ LastRewardHeight int64 `protobuf:"varint,5,opt,name=lastRewardHeight,proto3" json:"lastRewardHeight,omitempty"` CurrentRewardHeight int64 `protobuf:"varint,6,opt,name=currentRewardHeight,proto3" json:"currentRewardHeight,omitempty"` Closed bool `protobuf:"varint,7,opt,name=closed,proto3" json:"closed,omitempty"` }
func NewRewardPool ¶
func NewRewardPool(launchID uint64, currentRewardHeight int64) RewardPool
NewRewardPool returns a new RewardPool object
func (*RewardPool) Descriptor ¶
func (*RewardPool) Descriptor() ([]byte, []int)
func (*RewardPool) GetClosed ¶
func (m *RewardPool) GetClosed() bool
func (*RewardPool) GetCurrentRewardHeight ¶
func (m *RewardPool) GetCurrentRewardHeight() int64
func (*RewardPool) GetInitialCoins ¶
func (m *RewardPool) GetInitialCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*RewardPool) GetLastRewardHeight ¶
func (m *RewardPool) GetLastRewardHeight() int64
func (*RewardPool) GetLaunchID ¶
func (m *RewardPool) GetLaunchID() uint64
func (*RewardPool) GetProvider ¶
func (m *RewardPool) GetProvider() string
func (*RewardPool) GetRemainingCoins ¶
func (m *RewardPool) GetRemainingCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*RewardPool) Marshal ¶
func (m *RewardPool) Marshal() (dAtA []byte, err error)
func (*RewardPool) MarshalToSizedBuffer ¶
func (m *RewardPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardPool) ProtoMessage ¶
func (*RewardPool) ProtoMessage()
func (*RewardPool) Reset ¶
func (m *RewardPool) Reset()
func (*RewardPool) Size ¶
func (m *RewardPool) Size() (n int)
func (*RewardPool) String ¶
func (m *RewardPool) String() string
func (*RewardPool) Unmarshal ¶
func (m *RewardPool) Unmarshal(dAtA []byte) error
func (RewardPool) Validate ¶
func (m RewardPool) Validate() error
Validate check the RewardPool object
func (*RewardPool) XXX_DiscardUnknown ¶
func (m *RewardPool) XXX_DiscardUnknown()
func (*RewardPool) XXX_Marshal ¶
func (m *RewardPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardPool) XXX_Merge ¶
func (m *RewardPool) XXX_Merge(src proto.Message)
func (*RewardPool) XXX_Size ¶
func (m *RewardPool) XXX_Size() int
func (*RewardPool) XXX_Unmarshal ¶
func (m *RewardPool) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) SetRewards ¶
func (*UnimplementedMsgServer) SetRewards(ctx context.Context, req *MsgSetRewards) (*MsgSetRewardsResponse, 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) RewardPool ¶
func (*UnimplementedQueryServer) RewardPool(ctx context.Context, req *QueryGetRewardPoolRequest) (*QueryGetRewardPoolResponse, error)
func (*UnimplementedQueryServer) RewardPoolAll ¶
func (*UnimplementedQueryServer) RewardPoolAll(ctx context.Context, req *QueryAllRewardPoolRequest) (*QueryAllRewardPoolResponse, error)