Documentation ¶
Index ¶
- Constants
- func MakeGovDepositMsg(govDepositMsg types.GovDepositMsg, from sdk.AccAddress) (govtypes.MsgDeposit, error)
- func MakeGovParamsMsg(govParamsMsg types.GovParamsMsg) (govtypes.QueryParamsRequest, error)
- func MakeGovTallyMsg(tallyMsg types.TallyMsg, httpMutex *sync.Mutex, grpcConn grpc.ClientConn, ...) (interface{}, error)
- func MakeQueryDepositMsg(queryDepositMsg types.QueryDepositMsg, httpMutex *sync.Mutex, ...) (interface{}, string, error)
- func MakeQueryDepositsMsg(queryDepositMsg types.QueryDepositMsg, httpMutex *sync.Mutex, ...) (interface{}, string, error)
- func MakeQueryProposalMsg(queryProposalMsg types.QueryProposalMsg) (govtypes.QueryProposalRequest, error)
- func MakeQueryProposalsMsg(queryProposalsMsg types.QueryProposalsMsg) (govtypes.QueryProposalsRequest, error)
- func MakeQueryVoteMsg(queryVoteMsg types.QueryVoteMsg, httpMutex *sync.Mutex, ...) (govtypes.QueryVoteRequest, error)
- func MakeQueryVotesMsg(queryVoteMsg types.QueryVoteMsg, httpMutex *sync.Mutex, ...) (interface{}, string, error)
- func MakeSubmitProposalMsg(submitProposalMsg types.SubmitProposalMsg, proposer sdk.AccAddress) (govtypes.MsgSubmitProposal, error)
- func MakeVoteMsg(voteMsg types.VoteMsg, from sdk.AccAddress) (govtypes.MsgVote, error)
- func MakeWeightedVoteMsg(weightedVoteMsg types.WeightedVoteMsg, from sdk.AccAddress) (govtypes.MsgVoteWeighted, error)
- func NewCoreModule() core.CoreModule
- func QueryGov(i core.QueryClient) (string, error)
- type GovExternal
- func (e GovExternal) GovDeposit(govDepositMsg types.GovDepositMsg) provider.XplaClient
- func (e GovExternal) GovParams(govParamsMsg ...types.GovParamsMsg) provider.XplaClient
- func (e GovExternal) Proposer(proposerMsg types.ProposerMsg) provider.XplaClient
- func (e GovExternal) QueryDeposit(queryDepositMsg types.QueryDepositMsg) provider.XplaClient
- func (e GovExternal) QueryProposal(queryProposal types.QueryProposalMsg) provider.XplaClient
- func (e GovExternal) QueryProposals(queryProposals types.QueryProposalsMsg) provider.XplaClient
- func (e GovExternal) QueryVote(queryVoteMsg types.QueryVoteMsg) provider.XplaClient
- func (e GovExternal) SubmitProposal(submitProposalMsg types.SubmitProposalMsg) provider.XplaClient
- func (e GovExternal) Tally(tallyMsg types.TallyMsg) provider.XplaClient
- func (e GovExternal) Vote(voteMsg types.VoteMsg) provider.XplaClient
- func (e GovExternal) WeightedVote(weightedVoteMsg types.WeightedVoteMsg) provider.XplaClient
Constants ¶
const ( GovModule = "gov" GovSubmitProposalMsgType = "submit-proposal" GovDepositMsgType = "gov-deposit" GovVoteMsgType = "vote" GovWeightedVoteMsgType = "weighted-vote" GovQueryProposalMsgType = "query-proposal" GovQueryProposalsMsgType = "query-proposals" GovQueryDepositParamsMsgType = "query-deposit-params" GovQueryDepositRequestMsgType = "query-deposit-request" GovQueryDepositsParamsMsgType = "query-deposits-params" GovQueryDepositsRequestMsgType = "query-deposits-request" GovTallyMsgType = "gov-tally" GovQueryGovParamsMsgType = "gov-params" GovQueryGovParamVotingMsgType = "gov-param-voting" GovQueryGovParamTallyingMsgType = "gov-param-tallying" GovQueryGovParamDepositMsgType = "gov-param-deposit" GovQueryProposerMsgType = "query-proposer" GovQueryVoteMsgType = "query-vote" GovQueryVotesNotPassedMsgType = "query-votes-notpassed" GovQueryVotesPassedMsgType = "query-votes-passed" )
Variables ¶
This section is empty.
Functions ¶
func MakeGovDepositMsg ¶
func MakeGovDepositMsg(govDepositMsg types.GovDepositMsg, from sdk.AccAddress) (govtypes.MsgDeposit, error)
(Tx) make msg - deposit
func MakeGovParamsMsg ¶
func MakeGovParamsMsg(govParamsMsg types.GovParamsMsg) (govtypes.QueryParamsRequest, error)
(Query) make msg - gov params
func MakeGovTallyMsg ¶
func MakeGovTallyMsg(tallyMsg types.TallyMsg, httpMutex *sync.Mutex, grpcConn grpc.ClientConn, ctx context.Context, lcdUrl string, queryType int) (interface{}, error)
(Query) make msg - tally
func MakeQueryDepositMsg ¶
func MakeQueryDepositMsg(queryDepositMsg types.QueryDepositMsg, httpMutex *sync.Mutex, grpcConn grpc.ClientConn, ctx context.Context, lcdUrl string, queryType int) (interface{}, string, error)
(Query) make msg - query deposit
func MakeQueryDepositsMsg ¶
func MakeQueryDepositsMsg(queryDepositMsg types.QueryDepositMsg, httpMutex *sync.Mutex, grpcConn grpc.ClientConn, ctx context.Context, lcdUrl string, queryType int) (interface{}, string, error)
(Query) make msg - query deposits
func MakeQueryProposalMsg ¶
func MakeQueryProposalMsg(queryProposalMsg types.QueryProposalMsg) (govtypes.QueryProposalRequest, error)
(Query) make msg - proposal
func MakeQueryProposalsMsg ¶
func MakeQueryProposalsMsg(queryProposalsMsg types.QueryProposalsMsg) (govtypes.QueryProposalsRequest, error)
(Query) make msg - proposals
func MakeQueryVoteMsg ¶
func MakeQueryVoteMsg(queryVoteMsg types.QueryVoteMsg, httpMutex *sync.Mutex, grpcConn grpc.ClientConn, ctx context.Context, lcdUrl string, queryType int) (govtypes.QueryVoteRequest, error)
(Query) make msg - query vote
func MakeQueryVotesMsg ¶
func MakeQueryVotesMsg(queryVoteMsg types.QueryVoteMsg, httpMutex *sync.Mutex, grpcConn grpc.ClientConn, ctx context.Context, lcdUrl string, queryType int) (interface{}, string, error)
(Query) make msg - query votes
func MakeSubmitProposalMsg ¶
func MakeSubmitProposalMsg(submitProposalMsg types.SubmitProposalMsg, proposer sdk.AccAddress) (govtypes.MsgSubmitProposal, error)
(Tx) make msg - submit proposal
func MakeVoteMsg ¶
(Tx) make msg - vote
func MakeWeightedVoteMsg ¶
func MakeWeightedVoteMsg(weightedVoteMsg types.WeightedVoteMsg, from sdk.AccAddress) (govtypes.MsgVoteWeighted, error)
(Tx) make msg - weighted vote
func NewCoreModule ¶ added in v0.1.2
func NewCoreModule() core.CoreModule
Types ¶
type GovExternal ¶ added in v0.1.2
type GovExternal struct {
Xplac provider.XplaClient
}
func NewGovExternal ¶ added in v0.1.2
func NewGovExternal(xplac provider.XplaClient) (e GovExternal)
func (GovExternal) GovDeposit ¶ added in v0.1.2
func (e GovExternal) GovDeposit(govDepositMsg types.GovDepositMsg) provider.XplaClient
Deposit tokens for an active proposal.
func (GovExternal) GovParams ¶ added in v0.1.2
func (e GovExternal) GovParams(govParamsMsg ...types.GovParamsMsg) provider.XplaClient
Query parameters of the governance process or the parameters (voting|tallying|deposit) of the governance process.
func (GovExternal) Proposer ¶ added in v0.1.2
func (e GovExternal) Proposer(proposerMsg types.ProposerMsg) provider.XplaClient
Query the proposer of a governance proposal.
func (GovExternal) QueryDeposit ¶ added in v0.1.2
func (e GovExternal) QueryDeposit(queryDepositMsg types.QueryDepositMsg) provider.XplaClient
Query details of a deposit or deposits on a proposal.
func (GovExternal) QueryProposal ¶ added in v0.1.2
func (e GovExternal) QueryProposal(queryProposal types.QueryProposalMsg) provider.XplaClient
Query details of a singla proposal.
func (GovExternal) QueryProposals ¶ added in v0.1.2
func (e GovExternal) QueryProposals(queryProposals types.QueryProposalsMsg) provider.XplaClient
Query proposals with optional filters.
func (GovExternal) QueryVote ¶ added in v0.1.2
func (e GovExternal) QueryVote(queryVoteMsg types.QueryVoteMsg) provider.XplaClient
Query details of a single vote or votes on a proposal.
func (GovExternal) SubmitProposal ¶ added in v0.1.2
func (e GovExternal) SubmitProposal(submitProposalMsg types.SubmitProposalMsg) provider.XplaClient
Submit a proposal along with an initial deposit.
func (GovExternal) Tally ¶ added in v0.1.2
func (e GovExternal) Tally(tallyMsg types.TallyMsg) provider.XplaClient
Query the tally of a proposal vote.
func (GovExternal) Vote ¶ added in v0.1.2
func (e GovExternal) Vote(voteMsg types.VoteMsg) provider.XplaClient
Vote for an active proposal, options: yes/no/no_with_veto/abstain.
func (GovExternal) WeightedVote ¶ added in v0.1.2
func (e GovExternal) WeightedVote(weightedVoteMsg types.WeightedVoteMsg) provider.XplaClient
Vote for an active proposal, options: yes/no/no_with_veto/abstain.