reward

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 6 Imported by: 0

README

Reward module

Usage

(Tx) Fund fee collector for reward module
// fund fee collector test
fundFeeCollectorMsg := types.FundFeeCollectorMsg{
    DepositorAddr: "xpla1j55tymfdys9n7k0dq6xmyd4hgfelp9jghzympt",
    Amount:        "1000",
}

txbytes, err := xplac.FundFeeCollector(fundFeeCollectorMsg).CreateAndSignTx()
res, err := xplac.Broadcast(txbytes)
(Query) Query reward module params
res, err := xplac.RewardParams().Query()
(Query) Query pool amount of reward module
res, err := xplac.RewardPool().Query()

Documentation

Index

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, privKey key.PrivateKey) (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

Types

This section is empty.

Jump to

Keyboard shortcuts

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