chore: CLI metadata help text (#15071)

This commit is contained in:
atheeshp 2023-02-20 19:39:49 +05:30 committed by GitHub
parent 1eb3b430f2
commit 9e5e8ea89d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 2 deletions

View File

@ -105,12 +105,24 @@ Where proposal.json contains:
"amount":[{"denom": "stake","amount": "10"}]
}
],
"metadata: "4pIMOgIGx1vZGU=", // base64-encoded metadata
// metadata can be any of base64 encoded, raw text, stringified json, IPFS link to json
// see below for example metadata
"metadata: "4pIMOgIGx1vZGU=",
"deposit": "10stake"
"title: "My proposal"
"summary": "A short summary of my proposal",
"expedited": false
}
metadata example:
{
"title": "",
"authors": [""],
"summary": "",
"details": "",
"proposal_forum_url": "",
"vote_option_context": "",
}
`,
version.AppName,
),

View File

@ -570,9 +570,22 @@ Parameters:
"summary": "This is a proposal to send 10 stake to cosmos1...",
}
],
// metadata can be any of base64 encoded, raw text, stringified json, IPFS link to json
// see below for example metadata
"metadata": "4pIMOgIGx1vZGU=", // base64-encoded metadata
"proposers": ["cosmos1...", "cosmos1..."],
}`, version.AppName),
}
metadata example:
{
"title": "",
"authors": [""],
"summary": "",
"details": "",
"proposal_forum_url": "",
"vote_option_context": "",
}
`, version.AppName),
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
prop, err := getCLIProposal(args[0])