Documentation ¶
Index ¶
- Constants
- func MakeFundFeeCollectorMsg(fundFeeCollectorMsg types.FundFeeCollectorMsg, from sdk.AccAddress) (rewardtypes.MsgFundFeeCollector, error)
- func MakeQueryRewardParamsMsg() (rewardtypes.QueryParamsRequest, error)
- func MakeQueryRewardPoolMsg() (rewardtypes.QueryPoolRequest, error)
- func NewCoreModule() core.CoreModule
- func QueryReward(i core.QueryClient) (string, error)
- type RewardExternal
Constants ¶
View Source
const ( RewardModule = "reward" RewardFundFeeCollectorMsgType = "fund-fee-collector" RewardQueryRewardParamsMsgType = "query-reward-params" RewardQueryRewardPoolMsgType = "query-reward-pool" )
Variables ¶
This section is empty.
Functions ¶
func MakeFundFeeCollectorMsg ¶
func MakeFundFeeCollectorMsg(fundFeeCollectorMsg types.FundFeeCollectorMsg, from sdk.AccAddress) (rewardtypes.MsgFundFeeCollector, error)
(Tx) make msg - Fund fee collector
func MakeQueryRewardParamsMsg ¶
func MakeQueryRewardParamsMsg() (rewardtypes.QueryParamsRequest, error)
(Query) make msg - query reward params
func MakeQueryRewardPoolMsg ¶
func MakeQueryRewardPoolMsg() (rewardtypes.QueryPoolRequest, error)
(Query) make msg - query reward pool
func NewCoreModule ¶ added in v0.1.2
func NewCoreModule() core.CoreModule
func QueryReward ¶
func QueryReward(i core.QueryClient) (string, error)
Query client for reward module.
Types ¶
type RewardExternal ¶ added in v0.1.2
type RewardExternal struct {
Xplac provider.XplaClient
}
func NewRewardExternal ¶ added in v0.1.2
func NewRewardExternal(xplac provider.XplaClient) (e RewardExternal)
func (RewardExternal) FundFeeCollector ¶ added in v0.1.2
func (e RewardExternal) FundFeeCollector(fundFeeCollectorMsg types.FundFeeCollectorMsg) provider.XplaClient
Funds the fee collector with the specified amount
func (RewardExternal) RewardParams ¶ added in v0.1.2
func (e RewardExternal) RewardParams() provider.XplaClient
Query reward params
func (RewardExternal) RewardPool ¶ added in v0.1.2
func (e RewardExternal) RewardPool() provider.XplaClient
Query reward pool
Click to show internal directories.
Click to hide internal directories.