Skip to content

Commit

Permalink
typos transaction_proposal.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cypherpepe authored Dec 11, 2024
1 parent bb8935a commit 5652e3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/transaction_proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`

Expand Down Expand Up @@ -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`

Expand All @@ -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`
`provenanced -t q gov proposal 4`

0 comments on commit 5652e3e

Please sign in to comment.