Documentation ¶
Index ¶
- Constants
- func MakeFundCommunityPoolMsg(fundCommunityPoolMsg types.FundCommunityPoolMsg, privKey key.PrivateKey) (disttypes.MsgFundCommunityPool, error)
- func MakeProposalCommunityPoolSpendMsg(communityPoolSpendMsg types.CommunityPoolSpendMsg, privKey key.PrivateKey, ...) (govtypes.MsgSubmitProposal, error)
- func MakeQueryCommunityPoolMsg() (disttypes.QueryCommunityPoolRequest, error)
- func MakeQueryDistCommissionMsg(queryDistCommissionMsg types.QueryDistCommissionMsg) (disttypes.QueryValidatorCommissionRequest, error)
- func MakeQueryDistRewardsMsg(queryDistRewardsMsg types.QueryDistRewardsMsg) (disttypes.QueryDelegationRewardsRequest, error)
- func MakeQueryDistSlashesMsg(queryDistSlashesMsg types.QueryDistSlashesMsg) (disttypes.QueryValidatorSlashesRequest, error)
- func MakeQueryDistTotalRewardsMsg(queryDistRewardsMsg types.QueryDistRewardsMsg) (disttypes.QueryDelegationTotalRewardsRequest, error)
- func MakeQueryDistributionParamsMsg() (disttypes.QueryParamsRequest, error)
- func MakeSetWithdrawAddrMsg(setWithdrawAddrMsg types.SetWithdrawAddrMsg, privKey key.PrivateKey) (disttypes.MsgSetWithdrawAddress, error)
- func MakeValidatorOutstandingRewardsMsg(validatorOutstandingRewardsMsg types.ValidatorOutstandingRewardsMsg) (disttypes.QueryValidatorOutstandingRewardsRequest, error)
- func MakeWithdrawAllRewardsMsg(privKey key.PrivateKey, grpcConn grpc.ClientConn, ctx context.Context) ([]sdk.Msg, error)
- func MakeWithdrawRewardsMsg(withdrawRewardsMsg types.WithdrawRewardsMsg, privKey key.PrivateKey) ([]sdk.Msg, error)
Constants ¶
View Source
const ( DistributionModule = "distribution" DistributionFundCommunityPoolMsgType = "fund-community-pool" DistributionProposalCommunityPoolSpendMsgType = "proposal-community-pool-spend" DistributionWithdrawRewardsMsgType = "withdraw-rewards" DistributionWithdrawAllRewardsMsgType = "withdraw-all-rewards" DistributionSetWithdrawAddrMsgType = "set-withdraw-addr" DistributionQueryDistributionParamsMsgType = "query-distribution-params" DistributionValidatorOutstandingRewardsMsgType = "validator-outstanding-rewards" DistributionQueryDistCommissionMsgType = "dist-query-commission" DistributionQuerySlashesMsgType = "dist-slashes" DistributionQueryRewardsMsgType = "dist-rewards" DistributionQueryTotalRewardsMsgType = "dist-total-rewards" DistributionQueryCommunityPoolMsgType = "query-community-pool" )
Variables ¶
This section is empty.
Functions ¶
func MakeFundCommunityPoolMsg ¶
func MakeFundCommunityPoolMsg(fundCommunityPoolMsg types.FundCommunityPoolMsg, privKey key.PrivateKey) (disttypes.MsgFundCommunityPool, error)
(Tx) make msg - fund community pool
func MakeProposalCommunityPoolSpendMsg ¶
func MakeProposalCommunityPoolSpendMsg(communityPoolSpendMsg types.CommunityPoolSpendMsg, privKey key.PrivateKey, encodingConfig params.EncodingConfig) (govtypes.MsgSubmitProposal, error)
(Tx) make msg - proposal community pool
func MakeQueryCommunityPoolMsg ¶
func MakeQueryCommunityPoolMsg() (disttypes.QueryCommunityPoolRequest, error)
(Query) make msg - community pool
func MakeQueryDistCommissionMsg ¶
func MakeQueryDistCommissionMsg(queryDistCommissionMsg types.QueryDistCommissionMsg) (disttypes.QueryValidatorCommissionRequest, error)
(Query) make msg - commission
func MakeQueryDistRewardsMsg ¶ added in v0.1.3
func MakeQueryDistRewardsMsg(queryDistRewardsMsg types.QueryDistRewardsMsg) (disttypes.QueryDelegationRewardsRequest, error)
(Query) make msg - distribution rewards
func MakeQueryDistSlashesMsg ¶
func MakeQueryDistSlashesMsg(queryDistSlashesMsg types.QueryDistSlashesMsg) (disttypes.QueryValidatorSlashesRequest, error)
(Query) make msg - distribution slashes
func MakeQueryDistTotalRewardsMsg ¶ added in v0.1.3
func MakeQueryDistTotalRewardsMsg(queryDistRewardsMsg types.QueryDistRewardsMsg) (disttypes.QueryDelegationTotalRewardsRequest, error)
(Query) make msg - distribution all rewards
func MakeQueryDistributionParamsMsg ¶
func MakeQueryDistributionParamsMsg() (disttypes.QueryParamsRequest, error)
(Query) make msg - distribution params
func MakeSetWithdrawAddrMsg ¶
func MakeSetWithdrawAddrMsg(setWithdrawAddrMsg types.SetWithdrawAddrMsg, privKey key.PrivateKey) (disttypes.MsgSetWithdrawAddress, error)
(Tx) make msg - withdraw address
func MakeValidatorOutstandingRewardsMsg ¶
func MakeValidatorOutstandingRewardsMsg(validatorOutstandingRewardsMsg types.ValidatorOutstandingRewardsMsg) (disttypes.QueryValidatorOutstandingRewardsRequest, error)
(Query) make msg - validator outstanding rewards
func MakeWithdrawAllRewardsMsg ¶
func MakeWithdrawAllRewardsMsg(privKey key.PrivateKey, grpcConn grpc.ClientConn, ctx context.Context) ([]sdk.Msg, error)
(Tx) make msg - withdraw all rewards
func MakeWithdrawRewardsMsg ¶
func MakeWithdrawRewardsMsg(withdrawRewardsMsg types.WithdrawRewardsMsg, privKey key.PrivateKey) ([]sdk.Msg, error)
(Tx) make msg - withdraw rewards
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.