diff --git a/docs/transaction_proposal.md b/docs/transaction_proposal.md index 08cae696b..93d28a0ae 100644 --- a/docs/transaction_proposal.md +++ b/docs/transaction_proposal.md @@ -4,7 +4,7 @@ In this tutorial we will learn how to submit a proposal and then vote on it. Pro ## Author - Matthew Witkowski -## Prequisites +## Prerequisites The reader should first have understanding of what Provenance is and how to use its CLI. Additionally, the user should have the following setup. - A local Provence directory that can be built and run @@ -30,7 +30,7 @@ This will allow users to vote on a proposal for a minute. This should be more th A new proposal can be made if the voting time expires. ## Creating the Proposal -In order to propose we need a json file containing our messages to run if the proposal passes. We can make use of the `--generate-only` flag on a transaction to easily give us the JSON. In this example, the `wasm store` transaction is being proposed. The code for the contract will only be stored if the proposal passes. In order to obtain the JSON for this transaction the following command can be ran. +In order to propose we need a json file containing our messages to run if the proposal passes. We can make use of the `--generate-only` flag on a transaction to easily give us the JSON. In this example, the `wasm store` transaction is being proposed. The code for the contract will only be stored if the proposal passes. In order to obtain the JSON for this transaction the following command can be run. `provenanced -t tx wasm store contract.wasm --from $ACCOUNT --gas auto --gas-adjustment 1.5 --gas-prices 1905nhash --instantiate-everybody "true" --generate-only` @@ -72,7 +72,7 @@ The only remaining issue is the `sender`. In order for the transaction to pass i Update the sender and save the file as `proposal.json` ## Proposing -The json file has been written to disk, but the proposal has not yet been sent out to Provenance. To propose it the following command can be ran: +The json file has been written to disk, but the proposal has not yet been sent out to Provenance. To propose it the following command can be run: `provenanced -t tx gov submit-proposal proposal.json --gas-prices 1905nhash --gas auto --gas-adjustment 1.5 --from $ACCOUNT` @@ -84,4 +84,4 @@ The proposal id in this example is 4 so the following transaction will vote on p `provenanced -t tx gov vote 4 yes --from $ACCOUNT --gas auto --gas-adjustment 1.5 --gas-prices 1905nhash` Lastly, proposal 4 can be monitored by using the following command. The proposal will eventually succeed or fail depending on the transaction message that was passed in. -`provenanced -t q gov proposal 4` \ No newline at end of file +`provenanced -t q gov proposal 4`