cosmos-sdk/client
Alessio Treglia 599923fb99
Introduce simulate mode
Add a simulate only flag '--dry-run' to both CLI tx commands
and RESTful endpoints to trigger the simulation of unsigned
transactions.

* Turning --dry-run on causes the --gas flag to be ignored.
  The simulation will return the estimate of the gas required
  to actually run the transaction.
* Adjustment is no longer required. It now defaults to 1.0.
* In some test cases accounts retrieved from the state do not
  come with a PubKey. In such cases, a fake secp256k1 key is
  generated and gas consumption calculated accordingly.

Closes: #2110
2018-08-31 19:04:11 +02:00
..
context Introduce simulate mode 2018-08-31 19:04:11 +02:00
keys Merge PR #2040: Refactor Validator Account Types/Bech32 Prefixing 2018-08-31 00:06:44 -04:00
lcd Introduce simulate mode 2018-08-31 19:04:11 +02:00
rpc Merge PR #2040: Refactor Validator Account Types/Bech32 Prefixing 2018-08-31 00:06:44 -04:00
tx Add plaintext flags to show keys; default print response to true; helptext updates 2018-08-21 15:36:53 -07:00
utils Introduce simulate mode 2018-08-31 19:04:11 +02:00
flags.go Introduce simulate mode 2018-08-31 19:04:11 +02:00
input.go Merge pull request #1856: gen-tx: Support User Given Key Passwords 2018-08-01 15:15:37 -04:00
keys.go update for tm v0.22.0. tmlibs->tendermint/libs 2018-07-02 16:34:06 -04:00