cosmos-sdk/x/mock
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
..
simulation simulation: Allow operations to specify future operations 2018-08-27 14:27:00 -07:00
app.go Merge PR #1783: Slashing, validator set, and governance simulation 2018-08-16 17:36:15 +02:00
app_test.go Introduce simulate mode 2018-08-31 19:04:11 +02:00
doc.go Merge pull request #1175: Randomized Module Testing 2018-07-06 16:19:11 -04:00
test_utils.go Introduce simulate mode 2018-08-31 19:04:11 +02:00