LogoLogo
  • Technical Architecture
  • LagomChain CLI
    • Configuration
    • Working With Docker
    • Single Node
    • Multi Node
    • Alternative Databases
    • CLI Commands
    • Drafting a proposal
  • Concepts
    • Accounts
    • EIP-155: Replay Protection
    • Chain ID
    • Encoding
    • Gas and Fees
    • IBC Relayers
    • Key Management
    • Keyring
    • State Export/Imort
    • Multisig
    • Pending State
    • Signing
    • Token
    • Transactions
  • Modules
    • epochs
    • erc20
    • evm
    • feemarket
    • inflation
    • vesting
  • Module Accounts
  • Bugs
  • IBC Channels
  • Security Overview
    • Audits
    • Simple Arrangement for Funding Upload (SAFU)
  • Metrics
  • Frequently Asked Questions
Powered by GitBook
On this page
  • Command Syntax​
  • Usage​
  1. LagomChain CLI

Drafting a proposal

The draft-proposal command in the LagomChain CLI is part of the Cosmos-SDK governance module and is used to generate a draft proposal JSON file. This generated proposal JSON file contains a skeleton structure for a governance proposal.

Command Syntax​

lagomd tx gov draft-proposal [flags]

Usage​

To create a draft proposal using the lagomd tx gov draft-proposal command, follow these steps:

  1. Run the command

    lagomd tx gov draft-proposal
  2. The command will present a list of proposal types for selection. The available options typically include:

    Use the arrow keys to navigate: ↓ ↑ → ← 
     ? Select proposal type: 
         text
         community-pool-spend
         software-upgrade
         cancel-software-upgrade
       ▸ other

    In case you don't find the required proposal (e.g. update params), choose the other option. It will show an extensive list of the supported messages:

    ✔ other
    Use the arrow keys to navigate: ↓ ↑ → ← 
    ? Select proposal message type:: 
    ↑   /lagom.erc20.v1.MsgConvertERC20
      ▸ /lagom.erc20.v1.MsgUpdateParams
        /lagom.vesting.v2.MsgFundVestingAccount
        /lagom.vesting.v2.MsgUpdateVestingFunder
    ↓   /lagom.inflation.v1.MsgUpdateParams
  3. Follow the on-screen instructions to complete the process. The command will generate a JSON file that you can use for your proposal.

  4. Once the JSON file is generated, you can make any necessary changes to the proposal information within the file.

  5. Finally, use the generated JSON file as input when submitting your proposal using the lagomd tx gov submit-proposal command.

    lagomd tx gov submit-proposal draft_proposal.json [flags]
PreviousCLI CommandsNextConcepts

Last updated 3 months ago