"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cancelProposal = exports.updateParams = exports.deposit = exports.voteWeighted = exports.vote = exports.execLegacyContent = exports.submitProposal = void 0;
const helper_func_types_1 = require("../../../helper-func-types");
const tx_1 = require("./tx");
/**
 * SubmitProposal defines a method to create new proposal given the messages.
 * @name submitProposal
 * @package cosmos.gov.v1
 * @see proto service: cosmos.gov.v1.SubmitProposal
 */
exports.submitProposal = (0, helper_func_types_1.buildTx)({
    msg: tx_1.MsgSubmitProposal
});
/**
 * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
 * to execute a legacy content-based proposal.
 * @name execLegacyContent
 * @package cosmos.gov.v1
 * @see proto service: cosmos.gov.v1.ExecLegacyContent
 */
exports.execLegacyContent = (0, helper_func_types_1.buildTx)({
    msg: tx_1.MsgExecLegacyContent
});
/**
 * Vote defines a method to add a vote on a specific proposal.
 * @name vote
 * @package cosmos.gov.v1
 * @see proto service: cosmos.gov.v1.Vote
 */
exports.vote = (0, helper_func_types_1.buildTx)({
    msg: tx_1.MsgVote
});
/**
 * VoteWeighted defines a method to add a weighted vote on a specific proposal.
 * @name voteWeighted
 * @package cosmos.gov.v1
 * @see proto service: cosmos.gov.v1.VoteWeighted
 */
exports.voteWeighted = (0, helper_func_types_1.buildTx)({
    msg: tx_1.MsgVoteWeighted
});
/**
 * Deposit defines a method to add deposit on a specific proposal.
 * @name deposit
 * @package cosmos.gov.v1
 * @see proto service: cosmos.gov.v1.Deposit
 */
exports.deposit = (0, helper_func_types_1.buildTx)({
    msg: tx_1.MsgDeposit
});
/**
 * UpdateParams defines a governance operation for updating the x/gov module
 * parameters. The authority is defined in the keeper.
 * @name updateParams
 * @package cosmos.gov.v1
 * @see proto service: cosmos.gov.v1.UpdateParams
 */
exports.updateParams = (0, helper_func_types_1.buildTx)({
    msg: tx_1.MsgUpdateParams
});
/**
 * CancelProposal defines a method to cancel governance proposal
 * @name cancelProposal
 * @package cosmos.gov.v1
 * @see proto service: cosmos.gov.v1.CancelProposal
 */
exports.cancelProposal = (0, helper_func_types_1.buildTx)({
    msg: tx_1.MsgCancelProposal
});
